/* ============================================================
   Yogininni · Klang-Erlebnis
   Farben & Typografie streng nach Brand Guidelines v1.0
   ============================================================ */

:root {
  --blue:  #3A6FA0;   /* Mittelmeer-Blau — führt */
  --sky:   #A8C7E0;   /* Himmel-Hellblau */
  --gold:  #C9A961;   /* Gold — nur Akzent, nie Fläche */
  --cream: #F4EFE4;   /* Leinen-Creme — atmet */
  --ink:   #1F1F1D;   /* Tiefschwarz — Fließtext */
  --mist:  #D8E5F2;   /* Nebel-Blau */

  --gold-soft: rgba(201, 169, 97, 0.55);
  --gold-hair: rgba(201, 169, 97, 0.9);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 30rem;
  --pad:  clamp(1.4rem, 6vw, 2.4rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- App-Rahmen ---- */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(1.4rem, env(safe-area-inset-top)) var(--pad) max(1.4rem, env(safe-area-inset-bottom));
}

.stage {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Fortschritt (dünne Goldlinie) ---- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* ---- Screens ---- */
.screen { display: none; }
.screen.active {
  display: flex;
  flex-direction: column;
  animation: rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Marken-Logo (Start-Screen) ---- */
.brand-logo {
  display: block;
  width: clamp(158px, 46vw, 196px);
  height: auto;
  margin: 0 auto 2rem;
  animation: logoIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
/* Eck-Logo auf Kontakt- und Bestätigungsseite; Start hat das große Logo,
   die Fragenseiten dazwischen bleiben ohne Logo */
#app:has(.screen[data-screen="contact"].active) .corner-logo,
#app:has(.screen[data-screen="done"].active) .corner-logo { display: flex; }

/* ---- Start-Screen: alles zentriert ---- */
.screen[data-screen="start"] { text-align: center; }
.screen[data-screen="start"] .actions { align-items: stretch; }

/* Zentrierte Eyebrow ohne flankierende Goldlinie (Start-Screen) */
.eyebrow-plain { justify-content: center; }
.eyebrow-plain::before { display: none; }

/* ---- Hinweis: Mehrfachauswahl möglich ---- */
.multi-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.multi-hint::before {
  content: "";
  width: 15px; height: 15px;
  flex: 0 0 auto;
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="1" y="1" width="14" height="14" rx="3.5" fill="none" stroke="%23C9A961" stroke-width="1.5"/><path d="M4.4 8.2l2.3 2.3 4.9-4.9" fill="none" stroke="%23C9A961" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* ---- Eyebrow (Mikro-Label, von Goldlinien flankiert) ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-hair);
  flex: 0 0 auto;
}

/* ---- Überschriften ---- */
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 11vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin: 0 0 1.1rem;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--blue);
  margin: 0 0 2rem;
}

.body {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 2rem;
}
.hint { font-size: 0.85rem; color: rgba(31,31,29,0.6); }

/* ---- Optionen (Single- & Multi-Choice) ---- */
.options { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.8rem; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(58,111,160,0.14);
  border-top: 1.5px solid var(--gold-soft);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.option:active { transform: scale(0.99); }
.option .marker {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--sky);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.option.multi .marker { border-radius: 6px; }
.option .marker::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: inherit;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.option.selected {
  border-color: var(--gold-hair);
  background: #fffdf8;
}
.option.selected .marker { border-color: var(--gold); }
.option.selected .marker::after { transform: scale(1); }

/* ---- Textarea & Inputs ---- */
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(58,111,160,0.18);
  border-top: 1.5px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea:focus, input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.14);
}
label.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* ---- Buttons ---- */
.actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.15rem; }

.btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: transform 0.12s, filter 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:disabled { opacity: 0.4; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 0.5rem;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--gold); }

/* ---- Fußnote / Datenschutz-Hinweis ---- */
.consent-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(31,31,29,0.62);
  margin: 0 0 1rem;
}
.consent-note a { color: var(--blue); }

/* Kontakt-Screen: E-Mail-Feld und Absatz „Mit dem Absenden…" enger zusammen */
#contact-error { min-height: 0; margin-bottom: 0.15rem; }

/* ---- Fehlermeldung ---- */
.error {
  font-size: 0.85rem;
  color: #a6492f;
  margin-bottom: 0.3rem;
  min-height: 1.1em;
}

/* ---- Bestätigungs-Screen ---- */
.quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  height: 2rem;
}
.sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--blue);
  margin-top: 1.8rem;
}

/* ---- Fortschrittszähler ---- */
.step-count {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* ---- Kleines Eck-Logo (ab Frage 1, unten rechts) ---- */
.corner-logo {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: none;
  justify-content: flex-end;
  padding-top: 0.5rem;
}
.corner-logo img {
  width: clamp(38px, 11vw, 46px);
  height: auto;
  opacity: 0.9;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(31,31,29,0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, .screen.active { animation: none !important; transition: none !important; }
}
