/* ============================================================
   fodmap-guide.ch — Website
   Minimalistisch wie die App: Indigo-Akzent, Ampel-Stufen,
   viel Weissraum. Instrument Serif (Display) + Inter (UI).
   ============================================================ */

:root {
  --accent: #6d5cff;
  --accent-strong: #5a3fd6;
  --accent-soft: #efedff;
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --text: #1a1a27;
  --text-soft: #56566a;
  --muted: #86869e;
  --border: #e7e7f0;

  /* FODMAP-Ampel wie in der App */
  --lv-none: #9aa3af;
  --lv-low: #16a34a;
  --lv-mod: #d97706;
  --lv-high: #dc2626;

  --dark-bg: #0d0d14;
  --dark-surface: #181822;
  --dark-border: #2a2a3a;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-2: 0 4px 12px rgba(20, 20, 50, .07), 0 10px 24px rgba(20, 20, 50, .05);
  --shadow-3: 0 12px 36px rgba(20, 20, 50, .16);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(44px, 7.2vw, 78px); }
h2 { font-size: clamp(34px, 4.6vw, 52px); }
h3 { font-size: clamp(24px, 3vw, 30px); }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-tight { padding: 64px 0; }

/* Ampel-Punkte — das Leitmotiv */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--lv-none); flex: none; }
.dot-low { background: var(--lv-low); }
.dot-mod { background: var(--lv-mod); }
.dot-high { background: var(--lv-high); }
.dot-row { display: inline-flex; gap: 6px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-soft); max-width: 560px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 251, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; }
.brand .thin { font-weight: 400; color: var(--text-soft); }
.site-nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--text-soft); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.head-cta { margin-left: 8px; }
@media (max-width: 860px) {
  .site-nav, .head-cta .btn-label { display: none; }
  .site-head .wrap { height: 62px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font: 600 15.5px/1 var(--sans); padding: 15px 26px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(109, 92, 255, .28); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--text); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }

/* Google-Play-Button */
.play-badge {
  display: inline-flex; align-items: center; gap: 13px;
  background: #0d0d14; color: #fff; border-radius: 14px; padding: 12px 22px 12px 16px;
  text-decoration: none !important; box-shadow: var(--shadow-2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.play-badge svg { width: 30px; height: 30px; flex: none; }
.play-badge .pb-top { display: block; font: 500 11px/1.3 var(--sans); letter-spacing: .06em; color: #b6b6c8; text-transform: uppercase; }
.play-badge .pb-main { display: block; font: 650 19px/1.2 var(--sans); letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 118px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 95% at 88% 110%, rgba(230, 247, 233, .7) 0%, rgba(230, 247, 233, 0) 55%),
    radial-gradient(90% 75% at 8% 108%, rgba(220, 252, 231, .55) 0%, rgba(220, 252, 231, 0) 58%),
    linear-gradient(180deg, rgba(230, 247, 233, 0) 60%, rgba(230, 247, 233, .5) 100%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 em { color: #15803d; }
.hero .eyebrow { color: #15803d; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 34px 0 20px; }
.hero-note { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Blätter-Wiese: organisch, im Grün der App, spannt über die ganze Hero-Breite */
.hero-leaves {
  position: absolute; inset: auto 0 0 0; width: 100%; height: auto;
  pointer-events: none; z-index: 0; display: block;
}
.hero-leaves svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes fg-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
  @keyframes fg-drift { from { transform: translateY(6px) rotate(-4deg); } to { transform: translateY(-8px) rotate(5deg); } }
  .hero-leaves .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: fg-sway 6.5s ease-in-out infinite alternate; }
  .hero-leaves .drift { transform-box: fill-box; transform-origin: 50% 50%; animation: fg-drift 9s ease-in-out infinite alternate; }
}

/* Getreidehalm: ein großes Element von unten links nach oben rechts (Vorlage vectorisiert) */
.hero-grain {
  position: absolute; left: clamp(140px, 19vw, 320px); bottom: -50px; width: min(54vw, 760px);
  pointer-events: none; z-index: 0;
}
.hero-grain img { width: 100%; height: auto; display: block; opacity: .42; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes grain-sway { from { transform: rotate(12deg); } to { transform: rotate(14.5deg); } }
  .hero-grain { transform: rotate(13deg); transform-origin: 26% 96%; animation: grain-sway 8s ease-in-out infinite alternate; }
}
@media (max-width: 960px) {
  .hero-grain { width: 96vw; left: -18vw; bottom: 24px; }
  .hero-grain img { opacity: .3; }
}
@media (max-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas, .hero-note-wrap { justify-content: center; }
  .hero-leaves { height: 210px; }
  .hero-leaves svg { height: 100%; }
}

/* Grünes Blatt-Glyph (Motiv statt Ampel-Punkte) */
.leaf-glyph { flex: none; color: #16a34a; }
.leaf-glyph svg { display: block; }

/* Tele-Rahmen (reines CSS, keine Bilder) */
.phone {
  position: relative; width: min(292px, 74vw);
  background: var(--dark-bg); border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(20, 20, 50, .06);
}
.phone img { border-radius: 36px; width: 100%; height: auto; }
.phone::after { /* dezente Kamera-Pille */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 999px; background: var(--dark-bg); z-index: 2;
}
.phone .float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font: 600 13.5px/1 var(--sans); color: var(--text);
  box-shadow: var(--shadow-2); white-space: nowrap;
}
.phone .float-chip small { font-weight: 500; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: -10% -16%;
  background: radial-gradient(52% 46% at 50% 55%, rgba(187, 240, 199, .6), rgba(187, 240, 199, 0) 72%);
  z-index: -1;
}
.hero-visual .phone-back {
  position: absolute; right: 2%; top: 50%; transform: translateY(-54%) rotate(6deg); z-index: -1;
  opacity: .96;
}
@media (max-width: 960px) { .phone .float-chip { display: none; } }

/* ---------- Zahlenstreifen ---------- */
.stats { border-block: 1px solid var(--border); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 44px; }
.stat b { display: block; font: 400 clamp(34px, 4vw, 46px)/1 var(--serif); letter-spacing: -.01em; }
.stat span { font-size: 14.5px; color: var(--text-soft); }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ---------- Feature-Sektionen ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy .eyebrow { margin-bottom: 18px; }
.feature-visual { position: relative; display: flex; justify-content: center; gap: 0; }
.feature-visual .phone-back {
  position: absolute; top: 50%; transform: translateY(-50%) rotate(-5deg); z-index: -1;
}
.feature-visual.flip-back .phone-back { transform: translateY(-50%) rotate(5deg); right: 6%; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-copy { order: 0; }
}

.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-soft); }
.check-list .tick { display: inline-flex; width: 15px; transform: translateY(2px); color: inherit; }
.check-list .tick svg { display: block; width: 15px; height: 15px; }
.check-list b { color: var(--text); font-weight: 600; }
.dark .check-list b { color: #ededf3; }

/* ---------- Dunkle Sektion (KI-Scan) ---------- */
.dark {
  background: var(--dark-bg); color: #ededf3;
  border-radius: 40px; margin: 0 16px;
}
.dark .wrap { padding-block: 96px; }
.dark h2 em { color: #8b7cff; }
.dark .lead { color: #b6b6c8; }
.dark .eyebrow { color: #82828f; }
.dark .feature-copy .check-list li { color: #b6b6c8; }
.dark .feature-copy .check-list b { color: #ededf3; }
.dark .phone { box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.dark .scan-note { font-size: 14px; color: #82828f; margin-top: 22px; }
.pill-premium {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dark-border);
  background: var(--dark-surface); border-radius: 999px; padding: 8px 15px;
  font: 600 12.5px/1 var(--sans); color: #b6b6c8; margin-top: 24px;
}
@media (max-width: 640px) { .dark { border-radius: 26px; margin: 0 10px; } .dark .wrap { padding-block: 64px; } }

/* ---------- FODMAP-Lexikon ---------- */
.fodmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; margin-top: 40px; }
.fodmap-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.fodmap-card h3 {
  font-family: var(--sans); font-weight: 650; font-size: 17px; letter-spacing: 0;
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
}
.fodmap-card p { font-size: 14.5px; color: var(--text-soft); margin: 0; }
.fodmap-card .src { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Screenshot-Reihe ---------- */
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; margin-top: 52px; }
.shot-row figure { margin: 0; }
.shot-row figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) {
  .shot-row { grid-template-columns: repeat(3, 72vw); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .shot-row figure { scroll-snap-align: center; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font: 600 18px/1.4 var(--sans); padding: 22px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font: 400 28px/1 var(--serif); color: var(--accent-strong); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 4px 24px; color: var(--text-soft); max-width: 640px; }

/* ---------- Schluss-CTA ---------- */
.final { text-align: center; padding-block: 120px; }
.final h2 { max-width: 640px; margin-inline: auto; }
.final .hero-note { display: block; margin-top: 18px; }
.beta-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 44px auto 0; }
.beta-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.beta-step h3 { font-family: var(--sans); font-weight: 650; font-size: 17px; letter-spacing: 0; line-height: 1.35; margin: 0; }
.beta-step p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 8px; }
.beta-num {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: #fff; font: 650 15px/1 var(--sans);
}
@media (max-width: 640px) { .beta-steps { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font: 650 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-soft); }
.foot-brand p { color: var(--text-soft); max-width: 300px; font-size: 14.5px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Rechtsseiten (Datenschutz/Impressum/Kontakt) ---------- */
.legal { background: var(--surface); }
.legal .wrap { max-width: 780px; padding-block: 72px 110px; }
.legal h1 { font-size: clamp(38px, 5vw, 54px); }
.legal h2 { font-family: var(--sans); font-weight: 650; font-size: 21px; letter-spacing: 0; line-height: 1.35; margin: 48px 0 12px; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.4; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-soft); font-size: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 15px; }
.legal th { text-align: left; font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--border); }
.legal td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: top; }
.legal td:first-child { color: var(--text); font-weight: 550; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal .box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}
.legal .box b { color: var(--text); }

/* ---------- Kontaktformular ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-2); }
.form-grid { display: grid; gap: 20px; margin-top: 24px; }
label { font: 600 14px/1.4 var(--sans); display: grid; gap: 8px; }
input[type=text], input[type=email], select, textarea {
  font: 400 16px/1.5 var(--sans); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; background: var(--bg);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.form-hint { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.contact-aside { display: grid; gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.contact-card h3 { font-family: var(--sans); font-weight: 650; font-size: 16px; letter-spacing: 0; margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: var(--text-soft); margin: 0; }
.form-ok { display: none; background: #ecfdf3; border: 1px solid #b7ebc6; color: #12693a; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-top: 18px; }
.form-ok.show { display: block; }

/* Motion dezent */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .phone, .feature-visual .phone { transition: transform .3s var(--ease, ease); }
  .hero-visual .phone:not(.phone-back):hover { transform: translateY(-6px); }
}

/* ---------- Consent-Banner (Google Analytics, siehe assets/js/consent.js) ---------- */
#consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 520px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 22px 24px;
}
#consent-banner p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 16px; }
#consent-banner .cb-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.legal .consent-link { margin-top: 24px; }
.foot-legal .consent-link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--text-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
