/* Figtree selbst gehostet (SIL OFL), damit keine IP an Google geht */
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JuiceBox-CI laut juicebox.at (CSS-Variablen der Produktseite) */
:root {
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --text: #1F1F1D;
  --muted: #76746E;
  --border: #ECE9E2;
  --border-soft: #F2EFE9;
  --green: #72A527;
  --green-dark: #5B861C;
  --green-bg: #F0F7EB;
  --blue: #013E7B;
  --light: #4A9FD9;
  --light-bg: #EBF5FC;
  --light-text: #1A5F8A;
  --orig: #E8A435;
  --orig-bg: #FDF6E9;
  --orig-text: #8B5E0A;
  --red: #D2274B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 31, 29, .04), 0 6px 20px rgba(31, 31, 29, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Kopf ---------- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.logo { height: 30px; width: auto; }
.back, .bar-spacer { width: 40px; height: 40px; }
.back {
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--text);
}
.back[hidden] { visibility: hidden; }
.back:hover { background: var(--border-soft); }
.back:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.progress { display: flex; gap: 4px; padding: 0 16px; max-width: 560px; margin: 0 auto; height: 4px; }
.progress span { flex: 1; border-radius: 4px; background: var(--border); transition: background .3s; }
.progress span.on { background: var(--green); }

.app { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; min-height: calc(100vh - 60px); }

/* ---------- Bildschirmwechsel ---------- */
.screen { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .drops span { animation: none !important; }
}

/* ---------- Intro ---------- */
.intro { text-align: center; padding-top: 8px; }
.intro-boxes { position: relative; height: 196px; margin: 6px auto 22px; max-width: 340px; }
.intro-boxes img {
  position: absolute; top: 26px; width: 138px; height: 138px; object-fit: cover;
  border-radius: 18px; border: 3px solid #fff; box-shadow: 0 12px 28px rgba(31, 31, 29, .16);
}
.intro-boxes img:nth-child(1) { left: calc(50% - 160px); transform: rotate(-8deg); }
.intro-boxes img:nth-child(2) { left: calc(50% - 80px); top: 0; width: 160px; height: 160px; z-index: 2; }
.intro-boxes img:nth-child(3) { left: calc(50% + 22px); transform: rotate(8deg); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 8px; }
h1, h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 7.4vw, 36px); }
.lead { color: var(--muted); font-size: 17px; margin: 12px auto 24px; max-width: 420px; }
.trust { font-size: 14px; color: var(--muted); margin-top: 16px; }
.stars { color: #00B67A; letter-spacing: 1px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 20px; line-height: 1.45; }

/* ---------- Buttons ---------- */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 16px rgba(114, 165, 39, .28);
  transition: background .15s, transform .1s;
}
.cta:hover { background: var(--green-dark); }
.cta:active { transform: scale(.985); }
.cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cta[disabled] { background: #C9CFC0; box-shadow: none; cursor: default; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px; font-size: 15px; }

/* ---------- Frage ---------- */
.q-count { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 10px; }
.q-title { font-size: clamp(24px, 6.4vw, 30px); }
.q-sub { color: var(--muted); margin: 8px 0 0; }
.options { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 16px; min-height: 62px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.opt:hover { border-color: #CFE3B6; }
.opt:active { transform: scale(.99); }
.opt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.opt.sel { border-color: var(--green); background: var(--green-bg); }
.opt-icon { font-size: 24px; width: 32px; text-align: center; flex: none; }
.opt-label { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.opt-sub { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.opt-check {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); display: grid; place-items: center;
}
.opt.sel .opt-check { background: var(--green); border-color: var(--green); }
.opt.sel .opt-check::after { content: ""; width: 10px; height: 6px; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.textbox {
  width: 100%; min-height: 128px; margin-top: 22px; padding: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--card);
  font-size: 17px; line-height: 1.45; resize: vertical;
}
.textbox:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.text-actions { display: grid; gap: 6px; margin-top: 16px; }

/* ---------- Laden ---------- */
.loading { text-align: center; padding-top: 18vh; }
.drops { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.drops span { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); animation: drop 1s ease-in-out infinite; }
.drops span:nth-child(2) { animation-delay: .15s; }
.drops span:nth-child(3) { animation-delay: .3s; }
@keyframes drop { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(6px, -6px); } }

/* ---------- Ergebnis ---------- */
.match { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green-dark); font-weight: 700; font-size: 14px; }
.match-emoji { font-size: 18px; }
.r-head { margin: 14px 0 0; font-size: clamp(27px, 7vw, 34px); }
.echo { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--card); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15px; }
.echo q { color: var(--text); font-style: italic; }

.section { margin-top: 30px; }
.section h2 { font-size: 21px; margin-bottom: 12px; }

.offer { background: var(--card); border: 1.5px solid var(--green); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-top: 24px; }
.offer-img { background: #F3F1EC; aspect-ratio: 1; }
.offer-img img { width: 100%; height: 100%; object-fit: contain; }
.offer-body { padding: 18px 18px 20px; }
.offer-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--green); border-radius: 6px; padding: 3px 8px; }
.offer-title { font-size: 23px; margin: 10px 0 4px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.save { color: var(--red); font-weight: 700; font-size: 14px; }
.items { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.items li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.items li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2372A527' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.honest { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.flavors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flavor { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.flavor-img { aspect-ratio: 1; display: grid; place-items: center; }
.flavor-img img { width: 82%; height: 82%; object-fit: contain; }
.flavor-name { padding: 8px 10px 2px; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.flavor-line { padding: 0 10px 10px; font-size: 12px; font-weight: 600; }
.flavor-line.light { color: var(--light-text); }
.flavor-line.original { color: var(--orig-text); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.calc b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.calc span { font-size: 13.5px; color: var(--muted); }
.calc-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.why li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; font-size: 15.5px; }

.quotes { display: grid; gap: 10px; }
.quote { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 0; }
.quote .stars { font-size: 14px; }
.quote p { margin: 6px 0 8px; white-space: pre-line; font-size: 15.5px; }
.quote footer { font-size: 13px; color: var(--muted); }
.src { font-size: 13px; color: var(--muted); margin-top: 8px; }

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; color: var(--muted); }
details.faq.hit { border-color: var(--green); }

.alt { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-decoration: none; }
.alt img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; background: #F3F1EC; }
.alt-k { font-size: 13px; color: var(--muted); }
.alt-t { font-weight: 700; }
.alt-p { font-weight: 700; color: var(--green-dark); }

.foot { margin-top: 34px; text-align: center; }
.foot .fine a { color: var(--muted); }
.legal { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 16px 28px; }
.legal a { color: var(--muted); }
.app:has(.result) + .legal { padding-bottom: 96px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 247, .95); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .cta { max-width: 528px; margin: 0 auto; min-height: 50px; font-size: 16px; }

/* ---------- Debug (?debug=1): zeigt, was „Jev" nach jeder Antwort entscheidet ---------- */
.debug {
  position: fixed; right: 12px; bottom: 12px; z-index: 10; width: min(340px, calc(100vw - 24px)); max-height: 30vh; overflow: auto;
  background: #111; color: #D6F5B0; border-radius: 12px; padding: 10px 12px; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.debug .bars { display: grid; gap: 4px; margin-bottom: 8px; }
.debug .bar-row { display: grid; grid-template-columns: 86px 1fr 40px; gap: 6px; align-items: center; color: #eee; }
.debug .bar-fill { height: 8px; background: #333; border-radius: 4px; overflow: hidden; }
.debug .bar-fill i { display: block; height: 100%; background: var(--green); }
.debug pre { margin: 0; white-space: pre-wrap; }
.debug button { margin-top: 8px; background: #2a2a2a; color: #eee; border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* ---------- Trink-Check: Startseite mit Frage 1 ---------- */
.intro .lead { margin-bottom: 18px; }
.first-q { text-align: left; margin-top: 8px; padding: 18px 16px 6px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.first-q .q-title { font-size: 22px; }
.first-q .options { margin-top: 14px; }
.skip { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Zwischenstand ---------- */
.fakt { text-align: center; padding-top: 6vh; }
.fakt-who { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.fakt-big { margin: 4px 0 6px; font-size: clamp(40px, 12vw, 56px); font-weight: 800; letter-spacing: -.03em; color: var(--green-dark); line-height: 1.05; }
.fakt-line { margin: 0 auto 22px; max-width: 420px; font-size: 18px; }
.fakt-box { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; margin-bottom: 22px; }
.fakt-box a { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- Analyse-Schritte ---------- */
.calc-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 320px; text-align: left; display: grid; gap: 10px; }
.calc-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 16px; transition: color .2s; }
.calc-steps li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); transition: all .2s; }
.calc-steps li.done { color: var(--text); }
.calc-steps li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; border-color: var(--green); }

/* ---------- Trinkbilanz ---------- */
.bilanz { margin-top: 22px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.tiles b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tiles span { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.jb-compare { margin-top: 10px; background: var(--green-bg); border-radius: 16px; padding: 14px 16px; }
.jb-h { margin: 0 0 8px; font-weight: 800; }
.jb-row { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 5px 0; border-top: 1px solid rgba(114, 165, 39, .18); }
.jb-row:first-of-type { border-top: 0; }
.jb-row b { margin-left: auto; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.light { background: var(--light); } .dot.orig { background: var(--orig); } .dot.box { background: var(--green); }
.jb-save { margin: 8px 0 0; font-weight: 700; color: var(--green-dark); }
