/* =====================================================================
   Alans Wunschzettel – Stylesheet
   ===================================================================== */

/* ---------- Fonts (self-hosted, keine Google-Abrufe) ---------- */
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --night-0: #04071A;
  --night-1: #070B1F;
  --night-2: #0C1438;
  --night-3: #14205A;
  --blue: #3461FF;
  --blue-2: #5C83FF;
  --blue-soft: #A9BCFF;
  --amber: #FFB648;
  --amber-2: #FF9A3D;
  --ice: #EAF0FF;

  --bg: #F4F5FC;
  --bg-2: #ECEEFA;
  --paper: #FFFCF4;
  --paper-line: #E6E2F3;
  --ink: #10142E;
  --ink-2: #2B3157;
  --muted: #5E6488;
  --line: #DCDFF0;

  --c-rolle: #3461FF;
  --c-kontext: #11A683;
  --c-aufgabe: #E8762B;
  --c-format: #B04BD8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;

  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 1px rgba(16,20,46,.04), 0 8px 24px -8px rgba(16,20,46,.14), 0 30px 60px -30px rgba(16,20,46,.22);
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --gutter: clamp(16px, 4vw, 40px);
}

/* Die Seite ist bewusst ein festes Hell/Dunkel-Wechselspiel (Nachthimmel ↔ Papier) –
   das Farbschema folgt nicht dem System, damit die Inszenierung immer stimmt. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: .86em; background: rgba(52,97,255,.08); padding: .1em .38em; border-radius: 6px; }
em { font-style: italic; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; gap: .6em;
  height: var(--h); padding: 0 1.25em;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--small { --h: 38px; font-size: 14px; padding: 0 1em; }
.btn--big { --h: 58px; font-size: 17px; padding: 0 1.6em; }
.btn--amber {
  background: linear-gradient(180deg, #FFC766, var(--amber) 55%, var(--amber-2));
  color: #1A1206;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px -8px rgba(255,170,60,.65);
}
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 16px 40px -8px rgba(255,170,60,.8); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(16,20,46,.55); }
.btn--ink:hover { transform: translateY(-2px); background: #1B2150; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.pill { display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.pill--glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--ice); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255,182,72,.7); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,182,72,.7);} 70%,100% { box-shadow: 0 0 0 10px rgba(255,182,72,0);} }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: 1180px; margin: 0 auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  color: var(--ice);
  background: rgba(10,15,45,.35);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.nav.is-light { background: rgba(255,255,255,.78); color: var(--ink); border-color: rgba(16,20,46,.08); box-shadow: 0 10px 30px -18px rgba(16,20,46,.35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; color: currentColor; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 14px; letter-spacing: .08em; }
.brand__text i { font-family: var(--serif); font-size: 13px; opacity: .75; margin-top: 3px; }
.nav__links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex; align-items: center;
  padding: 120px 0 140px;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(52,97,255,.55), transparent 60%),
    radial-gradient(60% 50% at 85% 10%, rgba(92,131,255,.18), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 35%, var(--night-2) 75%, var(--night-3) 100%);
  color: var(--ice);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
.hero__glow { position: absolute; left: 50%; top: 46%; width: min(1100px, 120vw); aspect-ratio: 2.4; translate: -50% -50%; background: radial-gradient(closest-side, rgba(52,97,255,.30), transparent); filter: blur(30px); z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__kicker { margin-bottom: 18px; opacity: 0; animation: up .9s .2s var(--ease) forwards; }
.hero__title { position: relative; font-weight: 400; }
.hero__alans {
  display: block;
  font-family: var(--hand); font-weight: 600;
  font-size: clamp(40px, 6.5vw, 76px);
  color: var(--amber);
  line-height: 1;
  transform: rotate(-4deg) translateX(-28%);
  margin-bottom: -.12em;
  text-shadow: 0 0 30px rgba(255,182,72,.45);
  opacity: 0; animation: write 1.1s 1.6s var(--ease) forwards;
  clip-path: inset(0 100% 0 0);
}
@keyframes write { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hero__slot { display: block; height: clamp(120px, 21vw, 250px); width: min(100%, 1080px); margin: 0 auto; }
.hero__lead {
  max-width: 640px; margin: 18px auto 0;
  font-size: clamp(16px, 1.6vw, 19px); color: rgba(234,240,255,.78);
  opacity: 0; animation: up .9s 2.4s var(--ease) forwards;
}
.hero__lead em { font-family: var(--serif); font-style: italic; color: #fff; font-size: 1.08em; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; opacity: 0; animation: up .9s 2.6s var(--ease) forwards; }
.countdown { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-size: 12px; color: rgba(234,240,255,.6); letter-spacing: .04em; }
.countdown__val { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.countdown__val b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.countdown__val small { margin-right: 8px; font-size: 12px; }
.countdown[hidden] { display: none; }
.hero__hint { margin-top: 34px; font-size: 13px; color: rgba(234,240,255,.42); font-family: var(--hand); font-size: 20px; opacity: 0; animation: up .9s 3.4s var(--ease) forwards; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.hero__ground { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 0; background: linear-gradient(180deg, transparent, rgba(244,245,252,.06)); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Section heads ---------- */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.sec-head h2 em { color: var(--blue); font-weight: 400; }
.sec-head__sub { margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 640px; }
.sec-head--dark .eyebrow { color: var(--amber); }
.sec-head--dark h2 { color: #fff; }
.sec-head--dark h2 em { color: var(--blue-soft); }
.sec-head--dark .sec-head__sub { color: rgba(234,240,255,.68); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- FACTS ---------- */
.facts { margin-top: -70px; z-index: 3; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 28px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact__num { font-family: var(--serif); font-size: 52px; line-height: .9; font-weight: 400; color: var(--blue); flex: none; letter-spacing: -.03em; }
.fact__num small { font-size: .45em; margin-left: 2px; }
.fact__txt { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.fact__txt b { color: var(--ink); display: block; }

/* ---------- DEMO ---------- */
.demo { padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.tag { font-weight: 700; padding: 0 .25em; border-radius: 4px; }
.tag--rolle { color: var(--c-rolle); background: color-mix(in srgb, var(--c-rolle) 10%, transparent); }
.tag--kontext { color: var(--c-kontext); background: color-mix(in srgb, var(--c-kontext) 10%, transparent); }
.tag--aufgabe { color: var(--c-aufgabe); background: color-mix(in srgb, var(--c-aufgabe) 10%, transparent); }
.tag--format { color: var(--c-format); background: color-mix(in srgb, var(--c-format) 10%, transparent); }

.demo__stage { display: grid; grid-template-columns: 1fr 70px 1.05fr; align-items: center; gap: 0; }
.win { border-radius: 20px; background: var(--night-1); color: var(--ice); box-shadow: 0 30px 70px -30px rgba(7,11,31,.6), 0 0 0 1px rgba(255,255,255,.06) inset; overflow: hidden; }
.win--light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.win--light .win__bar { border-color: var(--line); }
.win__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.win--light .win__bar span { background: #E3E5F2; }
.win__bar b { margin-left: 10px; font-weight: 600; opacity: .7; }
.win__body { padding: 22px 24px 26px; position: relative; }
.demo__text { font-family: var(--mono); font-size: 14.5px; line-height: 1.75; min-height: 13.5em; white-space: pre-wrap; display: inline; }
.demo__text .dseg { border-radius: 3px; padding: 2px 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-image: linear-gradient(var(--c), var(--c)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .7s var(--ease), background-color .7s var(--ease); }
.demo__text .dseg.lit { background-size: 100% 2px; background-color: color-mix(in srgb, var(--c) 24%, transparent); }
.caret { display: inline-block; width: 8px; height: 1.15em; background: var(--amber); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.legend { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 4px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.legend__item { display: flex; align-items: center; gap: 7px; opacity: .35; transition: opacity .5s, color .5s; }
.legend__item i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend__item.lit { opacity: 1; color: var(--ink); }
[data-k="rolle"] { --c: var(--c-rolle); }
[data-k="kontext"] { --c: var(--c-kontext); }
[data-k="aufgabe"] { --c: var(--c-aufgabe); }
[data-k="format"] { --c: var(--c-format); }

.demo__beam { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.demo__beam span { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px 4px rgba(255,182,72,.7); opacity: 0; }
.demo__stage.beam .demo__beam span { animation: beam 1s var(--ease) forwards; }
@keyframes beam { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; opacity: .25; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.kpi.on { opacity: 1; transform: none; }
.kpi__label { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.kpi__val { font-size: 13px; color: var(--muted); }
.kpi__val b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi__meter { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #F06A5B, #F5C14B 45%, #2DB37E); position: relative; }
.kpi__meter i { position: absolute; top: -4px; left: calc(var(--p) * 100% - 1px); width: 3px; height: 14px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transition: transform .5s .3s var(--spring); }
.kpi.on .kpi__meter i { transform: scaleY(1); }
.kpi__delta { font-size: 11.5px; font-weight: 700; }
.kpi__delta.up { color: #13996A; }
.kpi__delta.down { color: #C9512F; }
.comment { margin-top: 14px; border-radius: 12px; background: var(--bg); padding: 14px 16px; }
.comment__head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.comment__head::before { content: "✶"; font-size: 14px; color: var(--amber); }
.comment__text { margin-top: 6px; font-size: 14.5px; line-height: 1.6; min-height: 6.4em; color: var(--ink-2); }
.demo__note { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }
.demo__replay { text-align: center; margin-top: 24px; }
.demo__replay .link-btn { color: var(--muted); font-size: 14px; }

/* ---------- KATEGORIEN ---------- */
.cats { padding: clamp(60px, 8vw, 100px) 0 clamp(90px, 11vw, 140px); }
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px 28px 30px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat:hover { transform: translateY(-6px); box-shadow: 0 2px 2px rgba(16,20,46,.04), 0 24px 50px -20px rgba(16,20,46,.3); }
.cat--feature { background: var(--night-1); color: var(--ice); }
.cat__art { height: 86px; color: var(--blue); margin-bottom: 22px; }
.cat__art svg { height: 100%; width: auto; }
.cat--feature .cat__art { color: var(--blue-soft); }
.cat__flow { stroke-dasharray: 4 4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.cat__line { stroke: var(--amber); stroke-width: 2.2; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.cat.in .cat__line { stroke-dashoffset: 0; }
.cat__star { stroke: var(--amber); transform-origin: 60px 36px; transition: transform .8s var(--spring); }
.cat:hover .cat__star { transform: rotate(72deg) scale(1.08); }
.cat__no { position: absolute; top: 24px; right: 26px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.cat--feature .cat__no { color: rgba(234,240,255,.5); }
.cat h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -.01em; }
.cat > p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.cat--feature > p { color: rgba(234,240,255,.7); }
.cat__ideas { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 9px; }
.cat--feature .cat__ideas { border-color: rgba(255,255,255,.14); }
.cat__ideas li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; }
.cat__ideas li::before { content: "✶"; position: absolute; left: 0; top: 0; color: var(--amber); font-size: 13px; }

/* ---------- ABLAUF (Adventstürchen) ---------- */
.timeline { padding: clamp(100px, 12vw, 150px) 0 clamp(90px, 11vw, 130px); background: linear-gradient(180deg, var(--night-1), var(--night-2)); color: var(--ice); overflow: hidden; }
.timeline__sky { position: absolute; inset: 0; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7), transparent),
  radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.5), transparent),
  radial-gradient(1.4px 1.4px at 46% 30%, rgba(255,255,255,.6), transparent),
  radial-gradient(1px 1px at 63% 82%, rgba(255,255,255,.45), transparent),
  radial-gradient(1.2px 1.2px at 78% 22%, rgba(255,255,255,.7), transparent),
  radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.5), transparent),
  radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.4), transparent),
  radial-gradient(60% 60% at 50% 120%, rgba(52,97,255,.35), transparent 70%);
  pointer-events: none; }
.doors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.door__frame { position: relative; border-radius: 22px; min-height: 250px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transform-style: preserve-3d; }
.door__content { padding: 30px 28px; }
.door__date { display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--amber); padding: 4px 10px; border-radius: 8px; background: rgba(255,182,72,.1); }
.door h3 { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: 32px; color: #fff; }
.door p { margin-top: 10px; color: rgba(234,240,255,.7); font-size: 15.5px; }
.door__panel {
  position: absolute; inset: -1px; border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 45%),
    linear-gradient(145deg, #1D2C7A, #121C55 60%, #0D1544);
  border: 1px solid rgba(169,188,255,.25);
  transform-origin: left center;
  transition: transform 1.4s var(--ease), box-shadow 1.4s var(--ease);
  display: grid; place-items: center;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.03), inset 0 0 0 9px rgba(169,188,255,.12);
}
.door__panel::before { content: ""; position: absolute; inset: 16px; border-radius: 12px; border: 1.5px dashed rgba(169,188,255,.28); }
.door__num { font-family: var(--serif); font-style: italic; font-size: 92px; font-weight: 400; color: #fff; text-shadow: 0 0 40px rgba(169,188,255,.6); }
.door__knob { position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px rgba(255,182,72,.8); }
.door.is-open .door__panel { transform: rotateY(-108deg); box-shadow: -30px 0 40px -20px rgba(0,0,0,.6); }
.door.is-current .door__frame { border-color: rgba(255,182,72,.55); box-shadow: 0 0 0 4px rgba(255,182,72,.08), 0 30px 80px -30px rgba(255,182,72,.45); }
.door.is-current .door__frame::after { content: "Jetzt"; position: absolute; top: -12px; right: 22px; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: #1A1206; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.door.is-done .door__content { opacity: .55; }
.track { position: relative; height: 2px; margin-top: 40px; background: rgba(255,255,255,.12); border-radius: 2px; }
.track__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--blue-2), var(--amber)); border-radius: 2px; transition: width 1.6s var(--ease) .4s; }
.track__now { position: absolute; top: 12px; left: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--amber); white-space: nowrap; transition: left 1.6s var(--ease) .4s; }
.track__now::before { content: ""; position: absolute; left: 50%; top: -18px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,182,72,.2); }

/* ---------- WUNSCHZETTEL ---------- */
.wish { padding: clamp(100px, 12vw, 150px) 0; background:
  radial-gradient(60% 50% at 90% 10%, rgba(52,97,255,.08), transparent 70%),
  var(--bg-2); }
.wish__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.wish__side { position: sticky; top: 110px; }
.wish__side h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.02em; }
.wish__side h2 em { color: var(--blue); font-weight: 400; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--blue) 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.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.phase-note { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); display: none; }
.phase-note.show { display: block; }
.phase-note b { color: var(--ink); }

.wish__stage { position: relative; }
.letter {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, var(--paper-line) 35px 36px) 0 120px / 100% calc(100% - 120px) no-repeat,
    var(--paper);
  border-radius: 6px 6px 22px 6px;
  padding: 48px clamp(22px, 4vw, 54px) 40px;
  box-shadow: 0 1px 0 #fff inset, 0 2px 3px rgba(16,20,46,.05), 0 30px 60px -28px rgba(16,20,46,.35), 0 60px 120px -60px rgba(52,97,255,.35);
  transform: rotate(.6deg);
  transition: transform .6s var(--ease);
}
.letter::before { content: ""; position: absolute; left: clamp(14px, 2.6vw, 34px); top: 0; bottom: 0; width: 1.5px; background: rgba(232,118,43,.35); }
.letter:focus-within { transform: rotate(0); }
.letter__pin { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255,214,140,.65); transform: rotate(-3deg); box-shadow: 0 2px 6px rgba(0,0,0,.08); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 100%, 2% 96%, 0 50%); }
.letter__hello { font-family: var(--hand); font-size: clamp(38px, 4vw, 48px); line-height: 1; color: var(--blue); font-weight: 600; }
.letter__intro { font-family: var(--hand); font-size: 25px; color: var(--ink-2); margin: 6px 0 26px; line-height: 1.25; }

.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field label, .field legend { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.65);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { font-family: var(--mono); font-size: 14.5px; line-height: 1.65; resize: vertical; min-height: 180px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(52,97,255,.14); }
.field input::placeholder, .field textarea::placeholder { color: #A3A8C3; }
.field.invalid input, .field.invalid textarea { border-color: #D9472B; box-shadow: 0 0 0 4px rgba(217,71,43,.1); }
.field.invalid .choices, .field.invalid .seg { box-shadow: 0 0 0 2px rgba(217,71,43,.45); border-radius: 14px; }

.field .choice, .field .seg label { display: block; margin: 0; padding: 0; text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice input, .seg input, .consent input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.65); font-weight: 700; font-size: 14.5px; line-height: 1.25; cursor: pointer; transition: all .25s var(--ease); }
.choice i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid #A7ADCB; position: relative; transition: all .25s var(--spring); }
.choice i::after { content: ""; position: absolute; inset: -4px -6px -2px -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M5 15c3 2 5 5 7 9 4-9 8-15 15-21' fill='none' stroke='%233461FF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transform: scale(0); transition: transform .35s var(--spring); }
.choice input:checked + span { border-color: var(--blue); background: #fff; box-shadow: 0 8px 20px -12px rgba(52,97,255,.6); }
.choice input:checked + span i { border-color: var(--blue); }
.choice input:checked + span i::after { transform: scale(1); }
.choice input:focus-visible + span, .seg input:focus-visible + span, .consent input:focus-visible + span::before { outline: 2.5px solid var(--blue); outline-offset: 2px; }

.field__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ingredients { display: flex; gap: 6px; flex-wrap: wrap; }
.ingredients span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1.5px dashed #C8CCE2; color: #A3A8C3; transition: all .4s var(--spring); }
.ingredients span.on { border-style: solid; border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); transform: scale(1.04); }
.counter { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.warn { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #FFF1E8; color: #8F3A12; font-size: 14px; border: 1px solid #FFD5BC; }

.letter__sign { margin-top: 30px; padding-top: 26px; border-top: 1.5px dashed var(--line); }
.letter__from { font-family: var(--hand); font-size: 25px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.2; }
.letter__from small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.seg { display: flex; padding: 4px; background: rgba(255,255,255,.65); border: 1.5px solid var(--line); border-radius: 12px; gap: 4px; }
.seg label { flex: 1; margin: 0; text-transform: none; letter-spacing: 0; }
.seg span { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .25s var(--ease); }
.seg input:checked + span { background: var(--ink); color: #fff; }

.consents { display: grid; gap: 12px; margin-top: 8px; }
.consent { display: block; cursor: pointer; }
.consent span { position: relative; display: block; padding-left: 34px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.consent span::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid #A7ADCB; background: #fff; transition: all .25s var(--spring); }
.consent input:checked + span::before { background: var(--blue) 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/100% no-repeat; border-color: var(--blue); transform: scale(1.06); }
.consent.invalid span::before { border-color: #D9472B; box-shadow: 0 0 0 3px rgba(217,71,43,.15); }

.letter__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.form-error { flex-basis: 100%; color: #B2381F; font-weight: 700; font-size: 14.5px; }
.draft-state { font-size: 13px; color: var(--muted); }

/* Envelope flight */
.fly { position: fixed; inset: 0; pointer-events: none; z-index: 60; display: none; }
.fly.is-active { display: block; }
.fly-letter { position: absolute; transform-style: preserve-3d; }
.fly-panel { position: absolute; left: 0; width: 100%; background: var(--paper); transform-style: preserve-3d; backface-visibility: visible; overflow: hidden; }
.fly-panel::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 21px, var(--paper-line) 21px 22px); opacity: .7; }
.fly-panel .ink { position: relative; z-index: 1; padding: 18px 22px; font-family: var(--hand); color: var(--ink-2); font-size: 22px; line-height: 1.1; }
.fly-panel .ink b { color: var(--blue); font-size: 30px; display: block; margin-bottom: 6px; }
.fly-panel .ink span { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); display: block; }
.fly-panel .back { position: absolute; inset: 0; background: #F3EEDF; transform: rotateX(180deg); backface-visibility: hidden; z-index: 2; }
.env { position: absolute; transform-style: preserve-3d; }
.env__back, .env__front, .env__flap { position: absolute; inset: 0; }
.env__back { background: linear-gradient(180deg, #2A3D9C, #1B2A78); border-radius: 10px; }
.env__front { background: linear-gradient(170deg, #3A55D6, #2541C2); clip-path: polygon(0 18%, 50% 62%, 100% 18%, 100% 100%, 0 100%); border-radius: 10px; z-index: 3; box-shadow: inset 0 -20px 40px rgba(0,0,0,.12); }
.env__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, rgba(255,255,255,.12) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, rgba(255,255,255,.12) 50%, transparent 50.6%); }
.env__flap { height: 62%; background: linear-gradient(180deg, #4B66E6, #3352D6); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; z-index: 4; border-radius: 10px 10px 0 0; }
.env__seal { position: absolute; left: 50%; top: 52%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD48A, var(--amber) 45%, #D9781F); z-index: 6; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; color: #6A3A08; box-shadow: 0 4px 10px rgba(0,0,0,.25), inset 0 0 0 3px rgba(255,255,255,.25); transform: scale(0); }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(255,182,72,.8); pointer-events: none; }

.sent { text-align: center; padding: 70px 30px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.sent:focus { outline: none; }
.sent__stamp { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFD48A, var(--amber) 45%, #D9781F); font-family: var(--serif); font-style: italic; font-size: 42px; color: #6A3A08; box-shadow: 0 10px 30px -8px rgba(217,120,31,.6); animation: pop .7s var(--spring); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.sent h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); }
.sent p { margin: 14px auto 0; max-width: 460px; color: var(--muted); }
.sent__id code { font-size: 15px; }
.sent__demo { font-size: 13px; color: #8F3A12 !important; }
.sent .link-btn { margin-top: 22px; }

/* ---------- PREISE ---------- */
.prizes { padding: clamp(100px, 12vw, 150px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.prizes .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.prizes .eyebrow { justify-content: center; }
.tags { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 60px); padding-top: 10px; }
.tags::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 40px; border-top: 2px solid #C8B89A; border-radius: 50%; }
.gift { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: top center; }
.gift.in { animation: swing 5s ease-in-out infinite; animation-delay: var(--sw, 0s); }
.gift--1 { --sw: -.8s; margin-top: 30px; }
.gift--2 { --sw: -2.2s; margin-top: 18px; }
.gift--3 { --sw: -3.4s; margin-top: 18px; }
@keyframes swing { 0%,100% { transform: rotate(2.4deg); } 50% { transform: rotate(-2.4deg); } }
.gift:hover { animation-play-state: paused; }
.gift__string { width: 2px; height: 70px; background: #C8B89A; }
.gift--1 .gift__string { height: 100px; }
.gift__tag {
  position: relative; width: clamp(150px, 20vw, 220px); padding: 46px 18px 26px; text-align: center;
  background: var(--paper); border-radius: 14px;
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  box-shadow: var(--shadow);
  filter: drop-shadow(0 18px 24px rgba(16,20,46,.15));
  transition: transform .5s var(--spring);
}
.gift:hover .gift__tag { transform: scale(1.04) rotate(-2deg); }
.gift--1 .gift__tag { background: linear-gradient(170deg, #1D2C7A, var(--night-1)); color: #fff; width: clamp(170px, 24vw, 260px); }
.gift__hole { position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.gift__place { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gift--1 .gift__place { color: var(--amber); }
.gift__amount { display: block; font-family: var(--serif); font-size: clamp(54px, 7vw, 84px); font-weight: 400; line-height: 1; margin: 10px 0 6px; letter-spacing: -.03em; }
.gift__amount small { font-size: .42em; margin-left: 3px; }
.gift--1 .gift__amount { font-size: clamp(64px, 8.5vw, 104px); background: linear-gradient(180deg, #fff, #FFD48A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gift__kind { font-family: var(--hand); font-size: 22px; color: var(--ink-2); }
.gift--1 .gift__kind { color: rgba(234,240,255,.8); }
.prize-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: clamp(50px, 7vw, 80px) auto 0; }
.note { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.note svg { flex: none; width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.note b { font-size: 16px; }
.note p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- FAIRNESS / VOTING ---------- */
.fair { padding: clamp(90px, 11vw, 140px) 0; background: var(--bg-2); }
.fair__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.fair .sec-head { margin-bottom: 0; }
.fair__points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fair__points li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.fair__points b { color: var(--ink); }
.vcards { position: relative; display: grid; gap: 18px; }
.vcard { background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.vcard--tilt { margin-left: 34px; margin-right: -14px; }
.vcard header { display: flex; justify-content: space-between; align-items: center; }
.vcard__cat { font-size: 12px; font-weight: 800; color: var(--blue); background: rgba(52,97,255,.08); padding: 4px 10px; border-radius: 999px; }
.vcard__no { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.vcard h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-top: 14px; }
.vcard__prompt { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink-2); margin-top: 10px; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.vcard__who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.vcard__blur { filter: blur(6px); user-select: none; color: var(--ink-2); transition: filter .5s; }
.vcard__lock { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.75); padding: 1px 10px 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.vcard__lock::before { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 11h12v9H6zM8.5 11V8a3.5 3.5 0 0 1 7 0v3' fill='none' stroke='%235E6488' stroke-width='2.2'/%3E%3C/svg%3E") center/contain no-repeat; }
.vcard footer { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.vbtn { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; transition: all .3s var(--spring); }
.vbtn--ghost { background: var(--bg); color: var(--ink-2); }
.vbtn--ghost:hover { background: var(--bg-2); }
.vbtn--vote { background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.vbtn__star { display: inline-block; color: var(--amber); transition: transform .6s var(--spring); }
.vbtn--vote[aria-pressed="true"] { background: var(--amber); color: #1A1206; }
.vbtn--vote[aria-pressed="true"] .vbtn__star { transform: rotate(144deg) scale(1.4); color: #1A1206; }
.vcards__note { font-size: 12px; color: var(--muted); text-align: right; }
.vote-toast { position: absolute; left: 50%; bottom: -10px; transform: translate(-50%, 100%); background: var(--ink); color: #fff; font-size: 13.5px; padding: 10px 16px; border-radius: 12px; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.vote-toast.show { opacity: 1; transform: translate(-50%, 70%); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(90px, 11vw, 140px) 0; }
.faq__wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 5vw, 70px); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-weight: 700; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2310142E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; border: 1px solid var(--line); transition: transform .4s var(--spring), background-color .3s; }
.qa[open] summary::after { transform: rotate(135deg); background-color: var(--amber); }
.qa p { padding: 0 4px 24px; color: var(--muted); max-width: 640px; }

/* ---------- FOOTER ---------- */
.foot { background: var(--night-1); color: rgba(234,240,255,.7); padding: 56px 0; font-size: 14.5px; }
.foot__wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot__brand img { filter: invert(1) brightness(1.4); opacity: .9; height: 30px; width: auto; }
.foot__brand p { margin-top: 12px; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a, .foot__links .link-btn { color: rgba(234,240,255,.75); text-decoration: none; font-weight: 600; }
.foot__links a:hover, .foot__links .link-btn:hover { color: #fff; }

/* ---------- Dialog ---------- */
.terms { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 0; border-radius: 22px; padding: 36px clamp(22px, 4vw, 40px); color: var(--ink); background: var(--paper); box-shadow: 0 40px 100px -20px rgba(7,11,31,.6); }
.terms::backdrop { background: rgba(7,11,31,.55); backdrop-filter: blur(4px); }
.terms h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.terms ol { padding-left: 20px; margin: 20px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.terms__close { position: absolute; top: 14px; right: 14px; }
.terms__close button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; }
.terms__draft { margin-top: 20px; font-size: 13px; color: #8F3A12; }

/* ---------- Preview bar ---------- */
.preview { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(16,20,46,.92); color: #fff; font-size: 13px; box-shadow: 0 10px 40px rgba(0,0,0,.35); max-width: calc(100vw - 32px); overflow-x: auto; }
.preview[hidden] { display: none; }
.preview span { white-space: nowrap; opacity: .7; margin-right: 4px; }
.preview button { border: 0; background: rgba(255,255,255,.08); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.preview button.on { background: var(--amber); color: #1A1206; }

/* ---------- Phase-dependent visibility ---------- */
body:not([data-phase="teaser"]):not([data-phase="submit"]) .js-hide-after-submit { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .demo__stage { grid-template-columns: 1fr; gap: 0; }
  .demo__beam { width: 2px; height: 50px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
  .demo__beam span { left: -4px !important; }
  .demo__stage.beam .demo__beam span { animation-name: beamV; }
  @keyframes beamV { 0% { top: 0; opacity: 0; } 15%,85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
  .cats__grid { grid-template-columns: 1fr; max-width: 620px; }
  .wish__wrap, .fair__wrap, .faq__wrap { grid-template-columns: 1fr; }
  .wish__side { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { inset: 10px 10px auto; gap: 12px; }
  .nav__links { display: none; }
  .brand__text i { display: none; }
  .hero { padding: 110px 0 120px; min-height: max(640px, 100svh); }
  .hero__alans { transform: rotate(-4deg) translateX(-18%); }
  .hero__slot { height: clamp(90px, 30vw, 160px); }
  .hero__actions { flex-direction: column; gap: 18px; }
  .countdown { align-items: center; text-align: center; }
  .facts { margin-top: -50px; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px 22px; }
  .fact:first-child { border-top: 0; }
  .fact__num { font-size: 42px; min-width: 56px; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi { padding: 9px; }
  .kpi__val b { font-size: 20px; }
  .doors { grid-template-columns: 1fr; }
  .door__frame { min-height: 200px; }
  .track { display: none; }
  .choices { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .letter { transform: none; }
  .tags { gap: 10px; }
  .gift__tag { width: 30vw; padding: 38px 8px 20px; }
  .gift--1 .gift__tag { width: 34vw; }
  .gift__kind { font-size: 17px; }
  .prize-notes { grid-template-columns: 1fr; }
  .vcard--tilt { margin: 0; }
  .vbtn--vote { margin-left: 0; }
  .preview span { display: none; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi__label { min-height: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .gift.in { animation: none; }
}

/* ---------- Fehlerseiten ---------- */
.errpage { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter);
  background: radial-gradient(120% 70% at 50% 120%, rgba(52,97,255,.5), transparent 60%), linear-gradient(180deg, var(--night-0), var(--night-2)); color: var(--ice); text-align: center; }
.err { max-width: 620px; }
.err__code { font-family: var(--hand); font-size: 34px; color: var(--amber); }
.err h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 58px); color: #fff; letter-spacing: -.02em; margin-top: 6px; }
.err h1 em { color: var(--blue-soft); font-weight: 400; }
.err__txt { margin-top: 18px; color: rgba(234,240,255,.72); font-size: 17px; }
.err__actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err__ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }

/* ---------- Phasen: Formular nach Einsendeschluss ausblenden, Voting-CTA ---------- */
body[data-phase="review"] #wunschzettel,
body[data-phase="voting"] #wunschzettel,
body[data-phase="counting"] #wunschzettel,
body[data-phase="winners"] #wunschzettel { display: none; }
.fair__cta { display: none; margin-top: 30px; }
body[data-phase="voting"] .fair__cta,
body[data-phase="counting"] .fair__cta,
body[data-phase="winners"] .fair__cta { display: block; }
body[data-phase="voting"] .vcards__note,
body[data-phase="counting"] .vcards__note,
body[data-phase="winners"] .vcards__note { visibility: hidden; }

/* ---------- SIEGEREHRUNG ---------- */
.winners { position: relative; overflow: hidden; color: var(--ice); padding: clamp(110px, 13vw, 160px) 0 clamp(90px, 11vw, 130px);
  background: radial-gradient(70% 60% at 50% 0%, rgba(255,182,72,.16), transparent 70%), linear-gradient(180deg, var(--night-1), var(--night-2) 70%, var(--night-3)); }
.winners[hidden] { display: none; }
.winners__sky { position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(1.2px 1.2px at 8% 20%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 22% 64%, rgba(255,255,255,.5), transparent),
  radial-gradient(1.4px 1.4px at 41% 12%, rgba(255,214,140,.8), transparent), radial-gradient(1px 1px at 58% 78%, rgba(255,255,255,.45), transparent),
  radial-gradient(1.3px 1.3px at 74% 26%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 92% 58%, rgba(255,214,140,.6), transparent); }
.winners__head { margin-left: auto; margin-right: auto; text-align: center; }
.winners__head .eyebrow { justify-content: center; }
.winners__head .sec-head__sub { margin-left: auto; margin-right: auto; }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: end; }
.pod { position: relative; display: flex; flex-direction: column; border-radius: 26px; padding: 30px 26px 24px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(169,188,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pod--2 { order: 1; }
.pod--1 { order: 2; padding-top: 40px; background: linear-gradient(170deg, rgba(255,182,72,.16), rgba(255,255,255,.05) 45%); border-color: rgba(255,182,72,.55);
  box-shadow: 0 0 0 5px rgba(255,182,72,.07), 0 40px 90px -40px rgba(255,182,72,.55); }
.pod--3 { order: 3; }
.pod--skel { height: 380px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.pod--skel:nth-child(2) { height: 430px; }
@keyframes sk { to { background-position: -200% 0; } }
.pod__tag { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pod__place { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); }
.pod--1 .pod__place { color: var(--amber); }
.pod__amount { font-family: var(--serif); font-size: 34px; line-height: 1; color: #fff; }
.pod__amount small { font-size: .5em; margin-left: 2px; }
.pod--1 .pod__amount { font-size: 46px; background: linear-gradient(180deg, #fff, #FFD48A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pod__cat { margin-top: 22px; font-size: 12.5px; font-weight: 700; color: rgba(234,240,255,.55); }
.pod h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; color: #fff; margin-top: 6px; }
.pod--1 h3 { font-size: 30px; }

/* Namen: anonym → Enthüllung */
.pod__who { position: relative; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); }
.pod__name, .pod__bank { display: block; filter: blur(9px); opacity: .5; transition: filter 1.1s var(--ease), opacity 1.1s var(--ease); }
.pod__name { font-weight: 800; font-size: 17px; color: #fff; }
.pod__bank { font-size: 14px; color: rgba(234,240,255,.72); margin-top: 2px; }
.pod__lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(234,240,255,.75); transition: opacity .6s; }
.pod.revealed .pod__name, .pod.revealed .pod__bank { filter: none; opacity: 1; }
.pod.revealed .pod__name { animation: glowName 1.6s var(--ease); }
.pod.revealed .pod__lock { opacity: 0; }
@keyframes glowName { 0% { text-shadow: 0 0 0 rgba(255,182,72,0); } 40% { text-shadow: 0 0 22px rgba(255,182,72,.9); } 100% { text-shadow: 0 0 0 rgba(255,182,72,0); } }
.pod.revealed { animation: podPop .9s var(--spring); }
@keyframes podPop { 30% { transform: translateY(-6px) scale(1.015); } }

.pod__votes { margin-top: 14px; font-size: 14px; color: rgba(234,240,255,.6); }
.pod__votes b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #fff; margin-right: 3px; }
.pod__prompt { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.pod__prompt summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--amber); list-style: none; }
.pod__prompt summary::-webkit-details-marker { display: none; }
.pod__prompt summary::after { content: " ↓"; }
.pod__prompt[open] summary::after { content: " ↑"; }
.pod__prompt div { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: rgba(234,240,255,.85);
  background: rgba(0,0,0,.25); border-radius: 12px; padding: 14px; max-height: 300px; overflow: auto; }
.pod-pending { grid-column: 1 / -1; text-align: center; padding: 50px 24px; border-radius: 26px; border: 1px dashed rgba(169,188,255,.3); color: rgba(234,240,255,.7); }
.pod-pending span { display: block; font-size: 30px; color: var(--amber); }
.pod-pending b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: #fff; margin: 6px 0; }
.winners__foot { text-align: center; margin-top: 44px; }
.winners__note { margin-top: 14px; font-size: 12.5px; color: rgba(234,240,255,.45); }

@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pod--1 { order: 1; } .pod--2 { order: 2; } .pod--3 { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .pod__name, .pod__bank { transition: none; }
}

/* ---------- Mehrere Wunschzettel: Fortschritt ---------- */
.quota { margin: 22px auto 0; max-width: 420px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.quota__dots { display: flex; justify-content: center; gap: 10px; }
.quota__dots i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #C6CAE0; border: 1.5px dashed #C6CAE0; }
.quota__dots i.on { color: #6A3A08; border: 0; background: radial-gradient(circle at 35% 30%, #FFD48A, var(--amber) 45%, #D9781F); box-shadow: 0 6px 14px -6px rgba(217,120,31,.7); }
.quota p { margin: 12px 0 0 !important; font-size: 14.5px; color: var(--ink-2) !important; }
.sent__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.sent__actions .link-btn { margin-top: 0; }
