/* ============================================================
   Lynger – Landingpage Styles

   Alle Design-Werte kommen aus css/tokens.css.
   Doku: docs/DESIGN_SYSTEM.md · Ansicht: docs/styleguide.html
   Hier bitte KEINE festen Hex-/px-Werte einführen.
   ============================================================ */

@import url("tokens.css");

/* Aliase auf die Tokens (Kurzschreibweise für dieses Stylesheet) */
:root {
  --teal: var(--c-teal-500);
  --teal-dark: var(--c-night-700);
  --sage: var(--c-sage-500);
  --gold: var(--c-gold-500);
  --cream: var(--c-cream);
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --white: var(--c-white);
  --radius: var(--radius-card);
  --maxw: var(--maxw-page);
  --font-head: var(--font-display);
  --font-body: var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

/* Eyebrow: gesperrte Kleinversalien, wie in der Duft-Bildsprache.
   WICHTIG: auf hellem Grund das dunkle Gold (Kontrast 5.67:1).
   Das helle Gold nur auf dunklem Grund (.on-night). */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: var(--fs-eyebrow);
  color: var(--text-accent);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
}
.on-night .eyebrow { color: var(--night-accent); }

/* -------- Fokus: muss für Tastaturnutzer immer sichtbar sein -------- */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--c-teal-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.on-night :where(a, button):focus-visible { outline-color: var(--night-accent); }

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-text { background: transparent; color: var(--teal); border: none; padding: 0.85rem 0.6rem; }
.btn-text:hover { color: var(--teal-dark); text-decoration: underline; }

/* -------- Hero (Night-Welt: dunkel, intim, Gold-Akzent) -------- */
.hero {
  /* zarter Gold-Schimmer von oben, wie Kerzenlicht */
  background:
    radial-gradient(70% 55% at 50% 0%, var(--night-glow), transparent 70%),
    var(--night-bg);
  padding-bottom: var(--sp-16);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
/* Logo im Nav: weiße Variante für die Night-Welt */
.nav-home { display: inline-flex; align-items: center; }
.nav-logo { height: 72px; width: auto; max-width: 60vw; object-fit: contain; display: block; }

/* Mobil: Logo kompakter, Button schlanker, damit beides nebeneinander passt */
@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-logo { height: 44px; }
  .nav .btn-ghost { padding: 0.6rem 1rem; font-size: var(--fs-sm); }
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-16) 1.5rem var(--sp-4);
  text-align: center;
}
.hero h1 { font-size: var(--fs-h1); margin-bottom: 1.2rem; }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.scarcity { margin-top: 1.8rem; font-size: var(--fs-sm); color: var(--muted); }
.scarcity strong { color: var(--text-accent); }
.on-night .scarcity { color: var(--night-text-secondary); }
.on-night .scarcity strong { color: var(--night-accent); }

/* ---- Night-Welt: für Hero/Sektionen auf dunklem Grund ---- */
.on-night { background: var(--night-bg); color: var(--night-text); }
.on-night h1, .on-night h2, .on-night h3 { color: var(--night-text); }
.on-night .lede, .on-night .section-sub { color: var(--night-text-secondary); }
.on-night .btn-ghost { border-color: var(--night-accent); color: var(--night-accent); }
.on-night .btn-ghost:hover { background: var(--night-accent); color: var(--c-night-900); }
.on-night .btn-text { color: var(--night-accent); }

/* -------- Sections -------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--teal-dark); text-align: center; margin-bottom: 0.6rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; max-width: var(--maxw-prose); margin-left: auto; margin-right: auto; }
.eyebrow-center { text-align: center; }

/* -------- Kapitel 1: Split-Layout (Text + Manga-Bild) -------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-12);
  align-items: center;
}
.split-copy h2 { font-size: var(--fs-h2); color: var(--teal-dark); margin-bottom: var(--sp-4); }
.prose { color: var(--muted); max-width: var(--maxw-prose); margin-bottom: var(--sp-4); }
.prose em { font-style: italic; color: var(--text-accent); }
.split-copy .btn-text { padding-left: 0; }
.split-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.split-media img { display: block; width: 100%; height: auto; }
.split-media figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* -------- Kapitel 2: Persona-Karten (Avatare aus dem Duo-Bild) -------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  max-width: 760px;
  margin: 0 auto var(--sp-16);
}
.persona-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.persona-figure { aspect-ratio: 3 / 4; overflow: hidden; }
.persona-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Das Duo-Bild zeigt beide Avatare nebeneinander — je Karte eine Bildhälfte */
.persona-img-left { object-position: 26% top; }
.persona-img-right { object-position: 73% top; }
.persona-body { padding: var(--sp-6); text-align: center; }
.persona-body h3 { color: var(--teal); font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.persona-traits { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.persona-scheme {
  background: var(--c-teal-100);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.persona-scheme span {
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  color: var(--text-accent);
  margin-bottom: var(--sp-1);
}

/* -------- Die 4 Duftfamilien -------- */
.families-title {
  font-size: var(--fs-h3);
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: var(--sp-6);
}
.families {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.family-card {
  background: var(--bg-surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.family-card:hover { border-color: var(--sage); }
.family-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-sage-100);
  color: var(--teal);
  margin-bottom: var(--sp-3);
}
.family-icon svg { width: 26px; height: 26px; }
.family-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: var(--sp-1);
}
.family-trait { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-medium); margin-bottom: var(--sp-1); }
.family-notes { color: var(--muted); font-size: var(--fs-sm); }
.essence-cta { text-align: center; margin-top: var(--sp-8); }

/* -------- Steps -------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: 0 2px 14px rgba(18,64,72,0.06); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage); color: var(--white); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { color: var(--teal); margin-bottom: 0.5rem; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* -------- Quiz / Wizard -------- */
.section-quiz { max-width: 680px; }
.wizard { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 18px rgba(18,64,72,0.08); }
.progress { height: 6px; background: var(--c-line); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: var(--sp-8); }
.progress-bar { height: 100%; width: 0%; background: var(--teal); transition: width 0.3s ease; }
.question-area { min-height: 220px; }
.question-text { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 1.5rem; text-align: center; }
.options { display: grid; gap: 0.7rem; }
.option {
  text-align: left; padding: var(--sp-4) 1.2rem; border: var(--border-w) solid var(--c-line);
  border-radius: var(--radius); background: var(--cream); cursor: pointer;
  font-size: var(--fs-body); color: var(--ink);
  transition: all var(--dur-fast) var(--ease-out); font-family: var(--font-body);
  min-height: 44px; /* Touch-Ziel */
}
.option:hover { border-color: var(--sage); background: var(--c-white); }
.option.selected { border-color: var(--teal); background: var(--c-teal-100); }
.wizard-nav { margin-top: 1.5rem; display: flex; justify-content: flex-start; }

/* -------- Result -------- */
.result { text-align: center; max-width: 560px; margin: 2rem auto 0; background: var(--white); border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: 0 2px 18px rgba(18,64,72,0.08); }
.result-family { font-size: 2.2rem; color: var(--teal); margin: 0.3rem 0 1rem; }
.result-desc { color: var(--muted); margin-bottom: 1.8rem; }
.result .btn-text { display: block; margin-top: 1rem; }

/* -------- Reserve -------- */
.section-reserve { max-width: 560px; text-align: center; }
.reserve-form { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; }
.reserve-form label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.reserve-form input[type="email"] {
  padding: 0.9rem var(--sp-4); border: var(--border-w) solid var(--c-line); border-radius: var(--radius);
  font-size: var(--fs-body); font-family: var(--font-body); background: var(--white);
}
.reserve-form input[type="email"]:focus { outline: none; border-color: var(--teal); }
.reserve-form .btn { margin-top: 0.5rem; }
.form-msg { font-size: 0.92rem; min-height: 1.2em; }
.form-msg.success { color: var(--teal); }
.form-msg.error { color: var(--c-error); }
.fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 1.2rem; }

/* -------- Footer -------- */
.footer { text-align: center; padding: 3rem 1.5rem; background: var(--teal-dark); color: var(--cream); }
.footer-symbol { height: 46px; width: auto; margin-bottom: 1rem; opacity: 0.9; }
.footer p { font-size: 0.95rem; }
.footer-legal { font-size: 0.8rem; opacity: 0.7; margin-top: 0.5rem; }
