/* ============================================================
   digi·sommelier — Design-Tokens
   Hybrid: dunkler Keller-Hero → heller Kalkstein-Body
   ============================================================ */
:root {
  /* Dunkel (Hero / Keller) */
  --cellar: #170A11;
  --lees: #2A1520;
  --parchment: #EDE7DD;

  /* Hell (Body / Kalkstein-Terroir) */
  --chalk: #E7E9E1;
  --ink: #211A20;

  /* Geteilt */
  --garnet: #6B1F2E;
  --rim: #C24A5E;
  --gilt: #C6A15A;
  --sediment: #8C8375;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--chalk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--gilt); color: var(--cellar);
  padding: 0.6rem 1rem; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Typo-Rollen ---------- */
.display {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.display em { color: var(--rim); font-weight: 600; }

.section-title {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--garnet); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--garnet); color: var(--parchment); }
.btn-solid:hover { background: #7d2536; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(237,231,221,.28); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--gilt); color: var(--gilt); }
.btn-text { color: var(--sediment); padding-inline: 0; }
.btn-text:hover { color: var(--parchment); }
.btn-block { width: 100%; }

:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   HERO — dunkler Keller
   ============================================================ */
.hero {
  position: relative;
  background: var(--cellar);
  color: var(--parchment);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  /* weicher Übergang in den hellen Body — kurz gehalten, kein Grauschleier */
  background-image:
    radial-gradient(120% 80% at 78% 22%, rgba(194,74,94,.16), transparent 55%),
    linear-gradient(var(--cellar) 88%, var(--chalk));
}

.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.28rem;
  letter-spacing: -0.01em; color: var(--parchment);
}
.brand-dot { color: var(--gilt); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-links > a:not(.btn) { color: var(--parchment); font-size: 0.95rem; opacity: .82; }
.nav-links > a:not(.btn):hover { opacity: 1; color: var(--gilt); }

.hero-grid {
  max-width: var(--maxw); margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy, .tasting { min-width: 0; }

.hero-copy .lede {
  max-width: 30ch; margin-top: 1.6rem;
  font-size: 1.14rem; color: rgba(237,231,221,.82);
}
.hero-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-trust {
  margin-top: 1.8rem; font-family: var(--ff-mono);
  font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(237,231,221,.6);
}

/* ---------- SIGNATURE: Tasting-Karte ---------- */
.tasting {
  background: var(--lees);
  border: 1px solid rgba(198,161,90,.28);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
  position: relative; overflow: hidden;
}
.tasting-head {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--parchment);
  padding-bottom: 1.1rem; border-bottom: 1px solid rgba(237,231,221,.1);
}
.tasting-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rim), var(--garnet));
  box-shadow: 0 0 10px rgba(194,74,94,.7);
}
.tasting-name { font-weight: 500; }
.tasting-live {
  margin-left: auto; color: var(--gilt);
  text-transform: uppercase; letter-spacing: .18em;
}

/* Wein im Glas — der Rand-Verlauf (Kern → glühender Rand) */
.glass {
  width: 130px; height: 130px; margin: 1.6rem auto 1.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%,
      #3d0f1a 0%, var(--garnet) 34%, #8d2b3d 58%, var(--rim) 80%, #e08a98 100%);
  box-shadow:
    inset 0 6px 20px rgba(0,0,0,.55),
    0 0 46px rgba(194,74,94,.32);
  position: relative;
}
.glass-wine {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 30%, rgba(237,231,221,.28), transparent 30%);
}

/* Chat-Inhalt der Tasting-Karte — faded beim Wechsel des Beispiels (siehe app.js) */
.chat { transition: opacity .25s ease; }
.chat.is-fading { opacity: 0; }

.ask {
  font-family: var(--ff-display); font-style: normal; font-size: 1.18rem;
  color: var(--parchment); line-height: 1.3; text-align: center;
  margin-bottom: 1.2rem;
  /* Reserviert Platz für 3 Zeilen (längste Frage der 3 rotierenden Beispiele) —
     verhindert Höhensprung der Karte am Smartphone beim Beispielwechsel
     (siehe PROGRESS.md). */
  min-height: 3.9em;
}
.ask::before, .ask::after { content: '»'; color: var(--gilt); }
.ask::after { content: '«'; }

.answer { text-align: center; }
.answer-lead { font-size: .92rem; color: rgba(237,231,221,.62); }
.answer-wine {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem;
  color: var(--parchment); margin-top: .2rem;
  /* Reserviert Platz für 2 Zeilen (längster Weinname der 3 Beispiele) — siehe .ask */
  min-height: 3.24em;
}
.answer-wine span { color: var(--gilt); }

.notes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin-top: 1rem;
}
.notes li {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .04em;
  color: var(--parchment);
  padding: .28rem .6rem; border: 1px solid rgba(198,161,90,.3);
  border-radius: 2px;
}

.tasting-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px solid rgba(237,231,221,.1);
  font-family: var(--ff-mono); font-size: .74rem; color: var(--sediment);
}
.price-chip { color: var(--parchment); }

/* Punkte zum manuellen Wechseln der Beispiele */
.tasting-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.tasting-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: none;
  background: rgba(237,231,221,.28); cursor: pointer; transition: background .2s ease;
}
.tasting-dot.is-active { background: var(--gilt); }

/* ============================================================
   BODY — heller Kalkstein
   ============================================================ */
.steps { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.step-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.6rem;
}
.step { border-top: 2px solid var(--garnet); padding-top: 1.1rem; }
.step-num {
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .1em;
  color: var(--sediment);
}
.step h3 {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500;
  margin: .5rem 0 .6rem;
}
.step p { color: #4a4048; max-width: 34ch; }

.value { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
}
.value-card {
  background: #fff; border: 1px solid rgba(33,26,32,.08);
  border-radius: 8px; padding: 1.8rem 1.6rem;
}
.value-card h3 {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 500;
  margin-bottom: .7rem;
}
.value-card p { color: #4a4048; }

/* ---------- Für wen ---------- */
.fit { padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 9vw, 6rem); }
.fit-grid {
  border-top: 1px solid rgba(33,26,32,.12);
  padding-top: clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.fit-grid h3 { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500; max-width: 16ch; }
.fit-grid p { color: #4a4048; align-self: end; }

/* ---------- Showcase ---------- */
.showcase { background: var(--ink); color: var(--parchment); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.showcase-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.showcase-text { color: rgba(237,231,221,.78); max-width: 40ch; margin: 1.3rem 0 2rem; }
.showcase-note {
  background: var(--lees); border: 1px solid rgba(198,161,90,.24);
  border-radius: 10px; padding: 1.8rem;
}
.showcase-note > p:first-of-type {
  font-family: var(--ff-display); font-style: normal; font-size: 1.25rem;
  line-height: 1.4; margin: 1rem 0;
}
.showcase-reply {
  font-family: var(--ff-mono); font-size: .82rem;
  color: var(--gilt); line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.faq-list { max-width: 760px; margin-top: 2.2rem; }
.faq-item {
  border-top: 1px solid rgba(33,26,32,.14);
  padding: 1.3rem 0;
}
.faq-item summary {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 500;
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--ff-mono); font-size: 1.2rem; color: var(--garnet);
  flex-shrink: 0; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: #4a4048; max-width: 64ch; line-height: 1.6; margin-top: 1rem; }

/* ---------- Anfrage / Formular ---------- */
.cta { padding: clamp(4rem, 9vw, 7rem) 0; }
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.cta-copy p { color: #4a4048; margin-top: 1.2rem; max-width: 42ch; }
.price-anchor {
  font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600;
  color: var(--ink); margin: 1.8rem 0 .3rem;
}
.price-line {
  margin-top: 0; font-family: var(--ff-mono); font-size: .82rem;
  color: var(--ink);
}

.lead-form {
  background: #fff; border: 1px solid rgba(33,26,32,.1);
  border-radius: 10px; padding: clamp(1.6rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  margin-bottom: .4rem; color: var(--ink);
}
.field .opt { color: var(--sediment); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 1rem;
  padding: .7rem .8rem; color: var(--ink);
  background: var(--chalk); border: 1px solid rgba(33,26,32,.16);
  border-radius: 3px; transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--garnet); background: #fff;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  margin-top: .4rem; margin-bottom: 1.1rem;
  font-size: .78rem; line-height: 1.5; color: var(--sediment);
}
.consent a { color: var(--garnet); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--rim); }

.form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--garnet); font-weight: 600; }
.form-status.err { color: #a12; }

/* ---------- Footer ---------- */
.foot { background: var(--cellar); color: var(--parchment); padding: 2.4rem 0; }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: rgba(237,231,221,.7); font-size: .9rem; }
.foot-links a:hover { color: var(--gilt); }
.foot-copy { font-family: var(--ff-mono); font-size: .74rem; color: var(--sediment); }

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz)
   ============================================================ */
.legal-head {
  background: var(--cellar); color: var(--parchment);
  background-image: linear-gradient(var(--cellar) 82%, var(--chalk));
}
.legal-head .nav { padding-block: 1.6rem; }
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal-main .wrap { max-width: 760px; }
.legal-main h1 {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); line-height: 1.1;
  letter-spacing: -0.018em; margin-bottom: 2rem;
}
.legal-main h2 {
  font-family: var(--ff-display); font-weight: 500; font-size: 1.35rem;
  margin: 2.4rem 0 .7rem;
}
.legal-main h3 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .4rem; }
.legal-main p, .legal-main li { color: #4a4048; max-width: 68ch; }
.legal-main p + p { margin-top: .8rem; }
.legal-main ul { list-style: disc; padding-left: 1.3rem; margin: .6rem 0; }
.legal-main li { margin-bottom: .3rem; }
.legal-main a { color: var(--garnet); text-decoration: underline; text-underline-offset: 2px; }
.legal-main a:hover { color: var(--rim); }
.legal-main dl { margin: .6rem 0; }
.legal-main dt { font-weight: 700; color: var(--ink); margin-top: .8rem; }
.legal-main dd { margin: 0; color: #4a4048; }
.legal-placeholder {
  background: rgba(198,161,90,.14); border: 1px dashed rgba(198,161,90,.6);
  border-radius: 3px; padding: .05rem .35rem; color: var(--ink);
  font-family: var(--ff-mono); font-size: .86em;
}
.legal-back {
  display: inline-block; margin-top: 2.6rem;
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .04em; color: var(--garnet);
}
.legal-updated { font-family: var(--ff-mono); font-size: .74rem; color: var(--sediment); margin-top: 2rem; }

/* ============================================================
   Load-Animation (respektiert reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Nur mit JS unsichtbar starten — ohne JS bleibt der Hero sofort sichtbar. */
  .js .hero-copy > *, .js .tasting { opacity: 0; transform: translateY(14px); }
  .reveal-in { animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .14s; }
  .hero-copy > *:nth-child(3) { animation-delay: .23s; }
  .hero-copy > *:nth-child(4) { animation-delay: .32s; }
  .hero-copy > *:nth-child(5) { animation-delay: .41s; }
  .tasting.reveal-in { animation-delay: .3s; animation-duration: .9s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tasting { max-width: 440px; }
  .step-list, .value-grid, .fit-grid { grid-template-columns: 1fr; }
  .fit-grid p { align-self: auto; }
  .showcase-inner, .cta-grid { grid-template-columns: 1fr; }
  .display br { display: none; }
}

@media (max-width: 560px) {
  .display { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .section-title { font-size: clamp(1.6rem, 6.8vw, 2.1rem); }
  .tasting { max-width: 100%; }
  .nav-links a:not(.btn) { display: none; }
  .hero-cta { gap: 1rem; }
}
