/* ZANE Funnel-Prototyp v2, Variante A: Quiz */
body { background: #050506; }
.app { max-width: var(--app); margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 600px) {
  body { background: radial-gradient(900px 520px at 50% -8%, #1b1608, #050506 62%); }
  .app { box-shadow: 0 0 0 1px #17171b, 0 40px 120px -20px rgba(0, 0, 0, .8); }
}

/* Kopf: Zurück, Logo, Abschnitt und Fortschritt */
.top { position: sticky; top: 0; z-index: 30; padding: 6px 12px 12px; background: linear-gradient(var(--bg) 70%, rgba(8, 8, 10, .0)); }
.top .row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 46px; }
.top .back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--t2); transition: color var(--d-ui) ease, transform var(--d-press) var(--ease-out); }
.top .back::before { content: ''; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--s2); box-shadow: 0 0 0 1px var(--line) inset; z-index: -1; }
.top .back { position: relative; isolation: isolate; }
.top .back:active { transform: scale(.94); }
.top .back .ic { font-size: 18px; }
.top .logo { height: 17px; justify-self: center; }
.prog { padding: 0 8px; }
.prog .sec { display: flex; justify-content: center; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--t3); margin: 2px 0 8px; }
.prog .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.prog .bar { height: 3px; border-radius: 3px; background: #24242A; overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 100% !important; background: var(--yellow); border-radius: 3px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 420ms var(--ease-out); }

/* Screen: kurzer Eintritt, Fragen erscheinen ohne Kaskade (sie kommen 44-mal vor) */
.scr { padding: 10px 20px 156px; animation: enter 200ms var(--ease-out) both; }
.hero-h { font-size: 46px; line-height: .92; text-transform: uppercase; letter-spacing: .005em; margin-top: 6px; }
.q2 { font-size: 17px; font-weight: 700; color: var(--t2); margin: 18px 0 0; }
.q { font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -.022em; }
.q.sm { font-size: 23px; line-height: 1.2; }
.q.center, .center { text-align: center; }
.sub { color: var(--t2); margin-top: 12px; font-size: 16.5px; line-height: 1.58; }
.sub b { color: var(--t1); font-weight: 700; }
.sub.sm { font-size: 14px; color: var(--t3); margin-top: 6px; }
.pre { color: var(--yellow); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.src { color: #8A8984; font-size: 12px; line-height: 1.5; margin-top: 16px; }
.legal { color: #8A8984; font-size: 12px; text-align: center; margin-top: 10px; line-height: 1.5; }
.legal a { color: var(--t3); }
.link.under { display: block; margin: 12px auto 0; }
.meta-line { font-size: 13px; color: var(--t3); font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* Antworten */
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px 12px 14px; border-radius: var(--r-opt); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; text-align: left; font-weight: 650; font-size: 16.5px; line-height: 1.3; color: var(--t1); transition: box-shadow var(--d-ui) ease, background-color var(--d-ui) ease, transform var(--d-press) var(--ease-out); }
.opt:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .opt:hover { box-shadow: 0 0 0 1px var(--line-2) inset; background: var(--s2); } }
.opt .oi { width: 40px; height: 40px; border-radius: 12px; background: var(--s3); display: grid; place-items: center; color: var(--t2); flex: none; transition: color var(--d-ui) ease, background-color var(--d-ui) ease; }
.opt .oi .ic { font-size: 21px; }
.opt .lb { flex: 1; }
.opt .lb small { display: block; font-weight: 500; color: var(--t3); font-size: 13.5px; margin-top: 2px; }
.mk { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px #45454E inset; flex: none; transition: background-color var(--d-ui) ease, box-shadow var(--d-ui) ease; }
.opt.multi .mk { border-radius: 7px; }
.mk::after { content: ''; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border: solid var(--yellow-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.6); opacity: 0; transition: transform var(--d-ui) var(--ease-out), opacity 120ms ease; }
.sel { box-shadow: 0 0 0 1.5px var(--yellow-line) inset !important; background: var(--yellow-wash) !important; }
.sel .oi { color: var(--yellow); background: rgba(255, 201, 33, .12); }
.sel .mk { background: var(--yellow); box-shadow: 0 0 0 1.5px var(--yellow) inset; }
.sel .mk::after { transform: rotate(45deg) scale(1); opacity: 1; }
.fb { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; background: rgba(91, 211, 148, .07); color: #CBE9D8; border-radius: var(--r-opt); padding: 14px 16px; font-size: 15px; line-height: 1.5; animation: enter 220ms var(--ease-out) both; }
.fb[hidden] { display: none; }
.fb .ic { color: var(--green); font-size: 20px; margin-top: 1px; }
.fb b { color: var(--t1); }

/* Bildkacheln Alter */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tile { position: relative; border-radius: var(--r-img); overflow: hidden; background: var(--s1); aspect-ratio: 3 / 3.55; box-shadow: 0 0 0 1px var(--line) inset; transition: transform var(--d-press) var(--ease-out), box-shadow var(--d-ui) ease; }
.tile:active { transform: scale(.975); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.tile .tl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 34px 10px 10px 14px; background: linear-gradient(transparent, rgba(6, 6, 8, .92) 58%); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .go { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; }
.tile .go .ic { font-size: 16px; }
.tile.sel { box-shadow: 0 0 0 2px var(--yellow) inset !important; }

/* Bildkacheln Körper */
.tiles3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tile3 { position: relative; width: calc(33.333% - 7px); aspect-ratio: 3 / 5; border-radius: 16px; overflow: hidden; background: #17171B; box-shadow: 0 0 0 1px var(--line) inset; transition: transform var(--d-press) var(--ease-out), box-shadow var(--d-ui) ease; }
.tile3:active { transform: scale(.97); }
.tile3 img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.tile3 .tl { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 6px 10px; background: linear-gradient(transparent, rgba(6, 6, 8, .95) 55%); font-weight: 750; font-size: 13.5px; line-height: 1.2; text-align: center; }
.tile3.sel { box-shadow: 0 0 0 2px var(--yellow) inset !important; }
.tile3.sel::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%231C1500' d='M232.5 77.5l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 0 1 17-17L96 180l119.5-119.5a12 12 0 0 1 17 17z'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Bilder in Zwischenseiten: randlos, unten in die Fläche auslaufend */
.ph-hero, .bleed { position: relative; margin: -10px -20px 22px; overflow: hidden; }
.ph-hero { height: 340px; }
.bleed { aspect-ratio: 4 / 3.2; }
.ph-hero img, .bleed img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ph-hero::after, .bleed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, .25), transparent 22%, transparent 55%, var(--bg) 99%); pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; color: var(--t2); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; border-radius: 999px; padding: 7px 13px 7px 10px; }
.chips .ic { font-size: 16px; color: var(--yellow); }
.big-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--yellow-wash); color: var(--yellow); display: grid; place-items: center; margin-bottom: 20px; }
.big-ic .ic { font-size: 30px; }
.tw { margin-top: 18px; }

/* Diagramme */
.chartcard { padding: 16px 14px 12px; margin-top: 20px; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.cc-t { font-size: 13px; font-weight: 700; color: var(--t2); margin: 0 4px 10px; }
.cc-s { font-size: 11.5px; color: #8A8984; margin: 6px 4px 0; }
.chart { width: 100%; height: auto; display: block; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.2s 120ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; height: 190px; padding: 6px 18px 0; }
.bars2 > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bars2 i { width: 64%; background: var(--yellow); border-radius: 12px 12px 4px 4px; max-height: 118px; transform-origin: bottom; animation: grow 700ms 100ms var(--ease-out) both; }
.bars2 .dim i { background: #34343B; }
.bars2 b { font-size: 32px; font-variant-numeric: tabular-nums; }
.bars2 span { font-size: 12.5px; color: var(--t2); text-align: center; }
@keyframes grow { from { transform: scaleY(.02); } }
.cmp { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-radius: var(--r-card); overflow: hidden; background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.cmp > div { padding: 16px 14px; }
.cmp > div.y { background: var(--yellow-wash); }
.cmp b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--t3); }
.cmp .y b { color: var(--yellow); }
.cmp p { display: flex; gap: 8px; font-size: 14px; color: var(--t3); margin-top: 7px; line-height: 1.35; }
.cmp p .ic { font-size: 16px; margin-top: 1px; color: #8A8984; }
.cmp .y p { color: var(--t1); }
.cmp .y p .ic { color: var(--yellow); }

/* Aussagen */
.qcard { margin-top: 20px; padding: 4px 0 4px; }
.qcard .qm { display: block; font-family: var(--display); font-size: 64px; line-height: .6; color: var(--yellow); height: 26px; }
.qcard p { font-size: 24px; font-weight: 750; line-height: 1.28; letter-spacing: -.015em; }
.opts.scale { margin-top: 22px; }

/* Habit Score: der gesetzte Moment des Quiz */
.score-top { display: flex; gap: 18px; align-items: center; margin-top: 2px; }
.score-top .ring { flex: none; }
.score-top .sub { margin-top: 6px; font-size: 15px; }
.ring-v { animation: ringIn 1.1s 150ms var(--ease-out) both; }
@keyframes ringIn { from { stroke-dasharray: 0 400; } }
.areas { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.areas li { display: grid; grid-template-columns: 22px 92px 1fr 88px; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.areas li > .ic { font-size: 18px; color: var(--t3); }
.areas li i.bar { display: block; height: 6px; background: #1F1F24; border-radius: 6px; overflow: hidden; }
.areas li i.bar b { display: block; height: 100%; border-radius: 6px; transform-origin: left; animation: barIn 800ms var(--ease-out) both; }
@keyframes barIn { from { transform: scaleX(0); } }
.areas li em { font-style: normal; font-size: 12.5px; text-align: right; font-weight: 700; }
.areas .lv0 b { background: var(--orange); } .areas .lv0 em { color: var(--orange); }
.areas .lv1 b { background: #8E8D96; } .areas .lv1 em { color: var(--t3); }
.areas .lv2 b { background: var(--green); } .areas .lv2 em { color: var(--green); }
.hint { display: flex; gap: 12px; padding: 16px; margin-top: 22px; align-items: flex-start; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.hint .ic { color: var(--yellow); margin-top: 1px; }
.hint p { font-size: 15px; color: var(--t2); }

/* Zitat Gründer */
.fquote { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; margin-top: 24px; padding: 18px; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.fquote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.fquote blockquote { font-size: 16px; line-height: 1.5; font-weight: 650; color: var(--t1); }
.fquote figcaption { font-size: 13px; color: var(--t3); }
.fquote figcaption b { color: var(--t1); margin-right: 6px; }

/* Verpasster Tag */
.streak { padding: 18px 16px 16px; margin-top: 20px; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.streak .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.streak .days i { aspect-ratio: 1; border-radius: 11px; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; }
.streak .days i .ic { font-size: 17px; }
.streak .days i.miss { background: #232329; color: #8A8984; }
.streak p { margin-top: 14px; font-size: 14px; color: var(--t2); }
.streak p b { color: var(--t1); }

/* Eingaben */
.field { display: flex; align-items: center; gap: 10px; margin-top: 24px; height: 60px; padding: 0 16px; border-radius: var(--r-opt); background: var(--s1); box-shadow: 0 0 0 1px var(--line-2) inset; transition: box-shadow var(--d-ui) ease; }
.field:focus-within { box-shadow: 0 0 0 1.5px var(--yellow) inset, 0 0 0 5px rgba(255, 201, 33, .1); }
.field .ic { color: var(--t3); }
.field input { flex: 1; background: none; border: 0; outline: 0; color: var(--t1); font-size: 17px; font-weight: 650; min-width: 0; }
.field input::placeholder { color: #75747E; font-weight: 500; }
.field.big { height: 66px; }
.field.big input { font-size: 22px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(91, 211, 148, .1); color: var(--green); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 13px; font-weight: 750; margin-bottom: 14px; }
.pill .ic { font-size: 15px; }
.fine { display: flex; gap: 8px; color: var(--t3); font-size: 13px; margin-top: 14px; line-height: 1.5; }
.fine .ic { font-size: 15px; margin-top: 2px; }
.fine a { color: var(--t2); }
.coach-mini { width: 76px; height: 76px; margin: 10px auto 18px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--yellow); }
.coach-mini img { width: 100%; height: 100%; object-fit: cover; }

/* Coaches */
.coaches { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.coachc { position: relative; display: grid; grid-template-columns: 80px 1fr 22px; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; text-align: left; transition: box-shadow var(--d-ui) ease, background-color var(--d-ui) ease, transform var(--d-press) var(--ease-out); }
.coachc:active { transform: scale(.985); }
.coachc img { width: 80px; height: 80px; border-radius: 13px; object-fit: cover; }
.coachc .cc b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.coachc .cc em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--yellow); margin-top: 1px; }
.coachc .cc span { display: block; font-size: 13.5px; color: var(--t2); margin-top: 4px; line-height: 1.35; }
.coachc .best { position: absolute; top: -9px; right: 14px; background: var(--yellow); color: var(--yellow-ink); font-size: 11px; font-weight: 800; letter-spacing: .02em; border-radius: 999px; padding: 3px 10px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); }

/* Ladescreen */
.lbars { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.lrow { opacity: .35; transition: opacity 300ms ease; }
.lrow.on { opacity: 1; }
.lrow .lt { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 9px; }
.lrow .lt b { color: var(--yellow); font-variant-numeric: tabular-nums; }
.lrow.done .lt b { color: var(--green); }
.lb2 { height: 6px; border-radius: 6px; background: #1F1F24; overflow: hidden; }
.lb2 i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 6px; }
.lrow.done .lb2 i { background: var(--green); }
.lstat { margin-top: 36px; padding: 24px 18px; min-height: 160px; display: grid; place-items: center; text-align: center; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.ls-in { transition: opacity 250ms ease, filter 250ms ease; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ls-in b.disp { font-size: 54px; color: var(--yellow); }
.ls-in span { color: var(--t2); font-size: 15px; max-width: 290px; }
.ls-in em { font-style: normal; color: var(--t3); font-size: 13px; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(3, 3, 4, .66); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fade 200ms ease both; }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; max-width: var(--app); background: var(--s1); box-shadow: 0 -1px 0 var(--line-2); border-radius: 26px 26px 0 0; padding: 12px 20px calc(26px + env(safe-area-inset-bottom)); animation: sheetUp 320ms var(--ease-out) both; }
.sheet-in::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 4px; background: #3A3A42; margin: 0 auto 18px; }
.sheet-in .label { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* Ergebnis */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-radius: var(--r-card); background: var(--s1); box-shadow: 0 0 0 1px var(--line) inset; }
.kpis div { padding: 14px 12px; }
.kpis div + div { box-shadow: -1px 0 0 var(--line); }
.kpis b { display: block; font-size: 40px; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12.5px; color: var(--t2); line-height: 1.3; display: block; margin-top: 2px; }
.weeks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; }
.weeks li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.weeks li span { font-size: 13px; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.weeks li b { font-size: 16px; font-weight: 700; }
.weeks li.more { border-bottom: 0; }
.weeks li.more span { color: var(--t3); }
.weeks li.more b { color: var(--t2); font-weight: 600; }
.h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin-top: 34px; }

/* Fuß mit Knopf */
.ctabar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--app); padding: 28px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(8, 8, 10, 0), var(--bg) 38%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ctabar .skip { font-size: 14px; color: var(--t3); }
.t-tiles .ctabar, .t-loading .ctabar { display: none; }
