/* =========================================================
   Escape Daheim
   Farben als Tokens, dunkel ist die Markenfarbe, hell per Umschalter.
   Radien: Schale 28px, Kern 22px, Buttons als Pille.
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations"), url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0d0f0e;
  --bg-2: #121513;
  --surface: #181c1a;
  --surface-2: #1f2421;
  --line: rgba(236, 235, 230, .09);
  --line-2: rgba(236, 235, 230, .16);
  --text: #ecebe6;
  --muted: #a3a6a0;
  --accent: #e2673c;
  --accent-soft: rgba(226, 103, 60, .14);
  --on-accent: #170b06;
  --paper: #efece4;
  --paper-ink: #22201c;
  --shell: rgba(236, 235, 230, .04);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 12px 24px -16px rgba(0, 0, 0, .5);
  --glass: rgba(18, 21, 19, .72);

  --r-shell: 28px;
  --r-core: 22px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f1f1ee;
  --bg-2: #e9e9e5;
  --surface: #fafaf8;
  --surface-2: #efefeb;
  --line: rgba(22, 25, 23, .09);
  --line-2: rgba(22, 25, 23, .16);
  --text: #161917;
  --muted: #555a56;
  --accent: #c2501f;
  --accent-soft: rgba(194, 80, 31, .1);
  --on-accent: #ffffff;
  --shell: rgba(22, 25, 23, .035);
  --shadow: 0 30px 60px -30px rgba(40, 36, 30, .35), 0 12px 24px -16px rgba(40, 36, 30, .2);
  --glass: rgba(250, 250, 248, .75);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
/* Filmkorn als feste Ebene */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::after { opacity: .035; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }

.section { padding-block: 96px; position: relative; }
@media (min-width: 1024px) { .section { padding-block: 136px; } }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 96;
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 46ch; margin: 0 0 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--shell);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-primary:has(.btn-ico) { padding-right: 7px; }
.btn-ghost { border-color: var(--line-2); background: var(--shell); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 42px; --pad: 18px; font-size: 15px; }
.btn-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .14);
  font-size: 18px;
  transition: transform .6s var(--ease);
}
:root[data-theme="light"] .btn-ico { background: rgba(255, 255, 255, .18); }
.btn:hover .btn-ico { transform: translate(2px, -2px) scale(1.06); }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.94); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--shell);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover:not(:disabled):not(.static) { border-color: var(--accent); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip.is-used { background: var(--accent-soft); border-color: transparent; }
.chip.static { cursor: default; }
.chip i { font-size: 18px; color: var(--accent); }

/* ---------- Double-Bezel ---------- */
.bezel {
  padding: 6px;
  border-radius: var(--r-shell);
  background: var(--shell);
  border: 1px solid var(--line);
  margin: 0;
}
.bezel-core {
  position: relative;
  height: 100%;
  border-radius: var(--r-core);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
:root[data-theme="light"] .bezel-core { box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.04); }

/* ---------- Papier-Karten ---------- */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.paper-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a3d18;
  border: 1px solid rgba(154, 61, 24, .4);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.paper p { margin: 0; font-size: 16px; line-height: 1.5; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 60;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  height: 64px;
  padding: 0 10px 0 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6);
  width: 100%;
  max-width: 1080px;
  justify-content: space-between;
  transition: transform .6s var(--ease), max-width .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg-2); } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.kh { fill: var(--accent); }
.brand-word { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.brand-word b { font-weight: 800; }

.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; color: var(--muted);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: var(--shell); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.theme-toggle .ph-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ph-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ph-moon { display: none; }

.burger {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; align-items: center;
  padding: 120px 28px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 3.2rem); letter-spacing: -.03em; line-height: 1.2;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform .7s var(--ease);
}
.mobile-menu a.accent { color: var(--accent); }
.mobile-menu.is-open a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 128px 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -200px; top: 5%;
  background: radial-gradient(closest-side, rgba(226, 103, 60, .20), transparent 70%);
  pointer-events: none;
}
:root[data-theme="light"] .hero-glow { background: radial-gradient(closest-side, rgba(226, 103, 60, .14), transparent 70%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 1.2rem + 5.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 96;
  max-width: 12ch;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; min-height: 460px; }
@media (min-width: 1024px) { .hero-stage { min-height: 640px; } }
.stage-photo {
  position: absolute;
  inset: 0 0 0 12%;
  transform: rotate(-2deg);
}
.stage-photo.reveal { transform: translateY(40px) rotate(-2deg); }
.stage-photo.reveal.is-in { transform: rotate(-2deg); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.stage-photo .bezel-core::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(13, 15, 14, .55));
}
.stage-card {
  position: absolute; right: -8px; top: 8%;
  width: 230px;
  transform: rotate(4deg);
}
.stage-card.reveal { transform: translateY(40px) rotate(4deg); }
.stage-card.reveal.is-in { transform: rotate(4deg); }
.stage-lock {
  position: absolute; left: 0; bottom: 6%;
  transform: rotate(-4deg);
}
.stage-lock.reveal { transform: translateY(40px) rotate(-4deg); }
.stage-lock.reveal.is-in { transform: rotate(-4deg); }

@media (max-width: 767px) {
  .hero { padding-top: 112px; }
  .hero-stage { min-height: 0; display: grid; gap: 16px; }
  .stage-photo, .stage-card, .stage-lock { position: relative; inset: auto; transform: none !important; width: auto; }
  .stage-photo { aspect-ratio: 4 / 3.4; }
  .stage-lock { justify-self: start; margin-top: -90px; margin-left: 12px; }
  .stage-card { display: none; }
}

/* ---------- Zahlenschloss ---------- */
.lock { --w: 46px; --h: 64px; position: relative; display: inline-block; padding-top: 58px; }
.lock-shackle {
  position: absolute; top: 0; left: 50%;
  width: 120px; height: 104px; margin-left: -60px;
  border: 16px solid #8d918c;
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
  background: transparent;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
  transition: transform .9s var(--ease);
  z-index: 0;
}
.lock-shackle::before {
  content: ""; position: absolute; inset: -16px -16px 0; border-radius: inherit;
  border: 16px solid transparent; border-bottom: 0;
  background: linear-gradient(90deg, #6f736e, #c9ccc6 35%, #7c807b 70%, #b4b7b1) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.lock.is-open .lock-shackle { transform: translateY(-34px); }
.lock-body {
  position: relative; z-index: 1;
  padding: 22px 20px 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2b302d, #151816 60%, #0f1110);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.5), 0 30px 50px -20px rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.06);
}
.lock-wheels { display: flex; gap: 8px; }
.lock .wheel .strip, .lock .win .strip { will-change: transform; }
.lock > .lock-body .wheel:not([data-i]) , .win {
  width: var(--w); height: var(--h);
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a0b0a, #262a27 50%, #0a0b0a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 8px 10px rgba(0,0,0,.6), inset 0 -8px 10px rgba(0,0,0,.6);
  position: relative;
}
.strip { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.strip span {
  height: var(--h); display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 30px; color: #f2efe8;
}
.lock-label {
  margin-top: 12px; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #8d918c;
}
.lock.is-open .lock-label { color: var(--accent); }

.lock-lg { --w: 58px; --h: 80px; padding-top: 74px; }
@media (min-width: 560px) { .lock-lg { --w: 74px; --h: 100px; padding-top: 96px; } }
.lock-lg .lock-shackle { width: 200px; height: 170px; margin-left: -100px; border-width: 24px; border-radius: 100px 100px 0 0; }
.lock-lg .lock-shackle::before { inset: -24px -24px 0; border-width: 24px; }
.lock-lg.is-open .lock-shackle { transform: translateY(-56px); }
.lock-lg .lock-body { padding: 18px 22px; border-radius: 30px; }
.lock-lg .lock-wheels { gap: 12px; }
.lock-lg .wheel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock-lg .strip span { font-size: clamp(38px, 4vw, 48px); }
@media (max-width: 559px) { .lock-lg .lock-shackle { width: 160px; height: 136px; margin-left: -80px; border-width: 20px; } .lock-lg .lock-shackle::before { inset: -20px -20px 0; border-width: 20px; } }
.wh-up, .wh-dn {
  width: 100%; height: 30px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.05); color: #c9ccc6; font-size: 18px;
  cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.wh-up:hover, .wh-dn:hover { background: rgba(255,255,255,.12); }
.wh-up:active, .wh-dn:active { transform: scale(.94); }
.lock-lg.shake .lock-body { animation: shake .5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul {
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0 18px;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee i { color: var(--accent); font-size: .8em; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Ablauf ---------- */
.ablauf-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .ablauf-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .ablauf-head { position: sticky; top: 140px; align-self: start; }
}
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
  background: var(--line-2);
}
.steps::after {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
  background: var(--accent);
  transform-origin: top; transform: scaleY(var(--p, 0));
  transition: transform .2s linear;
}
.step {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
  padding: 8px 0 56px 36px;
}
.step:last-child { padding-bottom: 8px; }
.step::before {
  content: ""; position: absolute; left: -5px; top: 14px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.step.is-lit::before { background: var(--accent); border-color: var(--accent); }
.step-when {
  grid-column: 1 / -1;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted); max-width: 48ch; }
.step-ico { font-size: 40px; color: var(--muted); align-self: start; margin-top: 4px; }

/* ---------- Themen ---------- */
.themen { overflow: hidden; }
.themen-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.themen-head .h2 { margin: 0; }
.rail-ctrl { display: flex; gap: 8px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - 1280px) / 2 + 40px)) 24px;
  scroll-padding-inline: max(24px, calc((100vw - 1280px) / 2 + 40px));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.theme-card {
  position: relative;
  aspect-ratio: 3 / 4.1;
  border-radius: var(--r-shell);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  isolation: isolate;
}
.theme-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.theme-card:hover img { transform: scale(1.06); }
.theme-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,9,8,0) 35%, rgba(8,9,8,.88) 100%);
}
.theme-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; color: #f2f0ea; }
.theme-info h3 { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.1; }
.theme-info p { margin: 0; font-size: 15.5px; color: rgba(242,240,234,.82); line-height: 1.5; }

/* ---------- Paket (Bento) ---------- */
.bento { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
  }
  .tile-handbuch { grid-column: span 7; grid-row: span 2; }
  .tile-druck { grid-column: span 5; }
  .tile-hinweise { grid-column: span 5; }
  .tile-depesche { grid-column: span 5; grid-row: span 1; }
  .tile-video { grid-column: span 4; }
  .tile-streu { grid-column: span 3; }
}
.tile .bezel-core { display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.tile-text { padding: 26px; position: relative; z-index: 1; }
.tile h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 42ch; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile-text.on-img { color: #f2f0ea; }
.tile-text.on-img p { color: rgba(242,240,234,.82); }
.tile:has(img) .bezel-core::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,8,0) 30%, rgba(8,9,8,.85));
}

.tile-handbuch .bezel-core { justify-content: space-between; background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.doc {
  margin: 0 26px -22px 44px;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 8px;
  padding: 22px 26px 30px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  font-size: 15.5px;
  transition: transform .8s var(--ease);
}
.tile-handbuch:hover .doc { transform: rotate(0deg) translateY(-4px); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 600; flex-wrap: wrap; }
.doc-stamp {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #9a3d18; border: 1.5px solid rgba(154,61,24,.55); border-radius: 4px; padding: 3px 8px;
  transform: rotate(-3deg);
}
.doc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 9px 0; border-top: 1px solid rgba(34,32,28,.12); }
.doc-row span:last-child { text-align: right; color: #5c5850; }
@media (max-width: 899px) {
  .doc { margin: 8px 14px -22px; padding: 18px 18px 28px; font-size: 14.5px; }
  .doc-row { grid-template-columns: auto 1fr auto; gap: 14px; }
  .doc-row .blur { text-align: center; }
}
.blur { font-family: var(--f-mono); font-weight: 600; filter: blur(5px); user-select: none; }

.tile-hinweise .bezel-core { justify-content: space-between; }
.hint-stack { display: flex; gap: 10px; padding: 26px 26px 0; }
.hint-card {
  flex: 1;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 8px; padding: 12px 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
  transition: transform .7s var(--ease);
}
.hint-card b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: #9a3d18; }
.hint-card span { font-size: 13.5px; }
.hint-card:nth-child(1) { transform: rotate(-3deg); }
.hint-card:nth-child(3) { transform: rotate(3deg); }
.tile-hinweise:hover .hint-card { transform: translateY(-4px); }

.tile-video .bezel-core { background: linear-gradient(150deg, var(--accent), color-mix(in oklab, var(--accent) 55%, #1a0b05)); }
.tile-video .tile-text, .tile-video .tile-text p { color: #fff6f1; }
.tile-video .tile-text p { opacity: .88; }
.play {
  position: absolute; top: 24px; left: 26px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18); color: #fff; font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .6s var(--ease);
}
.tile-video:hover .play { transform: scale(1.1); }

.tile-streu .bezel-core {
  background:
    radial-gradient(circle at 20% 25%, var(--accent-soft) 0 34px, transparent 35px),
    radial-gradient(circle at 78% 30%, var(--line-2) 0 18px, transparent 19px),
    radial-gradient(circle at 60% 12%, var(--line) 0 26px, transparent 27px),
    var(--surface-2);
}

/* ---------- Knack den Code ---------- */
.tryit { background: var(--bg-2); border-block: 1px solid var(--line); }
.tryit-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .tryit-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.riddle { max-width: 520px; transform: rotate(-1deg); margin-bottom: 24px; }
.riddle.reveal { transform: translateY(40px) rotate(-1deg); }
.riddle.reveal.is-in { transform: rotate(-1deg); }
.riddle p { font-size: 17px; line-height: 1.65; }
.hint-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hint-out { min-height: 1.6em; margin: 16px 0 0; color: var(--muted); max-width: 46ch; }
.hint-out b { color: var(--text); font-weight: 600; }
.tryit-lock { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.unlock-msg {
  text-align: center; max-width: 380px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.unlock-msg p { margin: 0 0 20px; color: var(--muted); }
.unlock-msg strong { color: var(--text); font-family: var(--f-display); font-size: 1.3rem; }
.unlock-msg.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Preise ---------- */
.price-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 960px) { .price-grid { grid-template-columns: 1.1fr 1fr; gap: 24px; } }
.price-feature .bezel-core {
  padding: 36px;
  background: radial-gradient(90% 70% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-top h3, .price-row h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
.badge {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.price { display: flex; align-items: flex-start; gap: 4px; margin: 18px 0 6px; font-family: var(--f-display); line-height: 1; }
.price .amount { font-size: clamp(4rem, 3rem + 3vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; }
.price .cur { font-size: 1.8rem; font-weight: 600; margin-top: .4rem; color: var(--muted); }
.price.sm { margin: 0; }
.price.sm .amount { font-size: 3rem; }
.price.sm .cur { font-size: 1.2rem; margin-top: .25rem; }
.pf-sub { color: var(--muted); margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks i { color: var(--accent); font-size: 20px; margin-top: 3px; }
.price-side { display: grid; gap: 16px; align-content: start; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 30px;
  border-radius: var(--r-shell);
  border: 1px solid var(--line);
  background: var(--shell);
  transition: border-color .4s var(--ease), transform .6s var(--ease);
}
.price-row:hover { border-color: var(--line-2); transform: translateY(-3px); }
.price-row p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.extras { padding: 22px 4px 0; }
.extras-title { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.extra-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Bestellen ---------- */
.order-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .order-grid { grid-template-columns: 4fr 7fr; gap: 64px; }
  .order-intro { position: sticky; top: 130px; align-self: start; }
}
.order-sum { max-width: 360px; }
.order-sum .bezel-core { padding: 24px 26px; }
.sum-label { margin: 0; color: var(--muted); font-size: 14px; }
.order-sum .price { margin: 8px 0; }
.order-sum .price .amount { font-size: 3.6rem; }
.sum-lines { margin: 0; color: var(--muted); font-size: 15px; }

.order .bezel-core { padding: 32px 28px; }
@media (min-width: 768px) { .order .bezel-core { padding: 44px 48px; } }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.14); transition: transform .7s var(--ease); }
.step-count { margin: 12px 0 24px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.fstep.is-active { display: grid; gap: 22px; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.fstep.is-back { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
legend { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; padding: 0; margin-bottom: 22px; }

.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .sublabel { font-size: 15px; font-weight: 500; }
.sublabel { margin: 0 0 -10px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
:root[data-theme="light"] input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
:root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #fff; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="file"] { font-size: 15px; color: var(--muted); }
input[type="file"]::file-selector-button {
  font: inherit; margin-right: 12px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--shell); color: var(--text); cursor: pointer;
}
.help { margin: 0; font-size: 14px; color: var(--muted); }
.err { display: none; margin: 0; font-size: 14px; color: #ff8a65; }
:root[data-theme="light"] .err { color: #b3261e; }
.field.invalid .err, .err.show { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff8a65; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tiles-2 { grid-template-columns: 1fr 1fr !important; }
.tiles-3 { grid-template-columns: repeat(3, 1fr) !important; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px; height: 100%;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--bg);
  font-weight: 500;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
}
:root[data-theme="light"] .opt span { background: #fff; }
.opt span i { font-size: 26px; color: var(--muted); transition: color .3s var(--ease); }
.opt:hover span { border-color: var(--text); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + span i { color: var(--accent); }
.opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.opt:active span { transform: scale(.98); }

.cond { display: none; }
.cond.is-on { display: grid; gap: 22px; animation: stepIn .5s var(--ease); }

.toggle { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; cursor: pointer; padding: 18px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s var(--ease); }
.toggle:hover { border-color: var(--line-2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tg { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .4s var(--ease); margin-top: 2px; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .5s var(--ease); }
.toggle input:checked + .tg { background: var(--accent); }
.toggle input:checked + .tg::after { transform: translateX(18px); background: var(--on-accent); }
.toggle input:focus-visible + .tg { box-shadow: 0 0 0 4px var(--accent-soft); }
.tg-text { font-weight: 400; color: var(--muted); }
.tg-text b { color: var(--text); font-weight: 600; margin-right: 4px; }
.tg-text small { display: block; font-size: 14px; margin-top: 4px; line-height: 1.5; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-weight: 400; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 3px; }
.check a { color: var(--text); }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.form-nav #next, .form-nav #submit { margin-left: auto; }
.form-state { text-align: center; padding: 40px 12px; }
.form-state h3 { font-family: var(--f-display); font-size: 2rem; letter-spacing: -.03em; margin: 12px 0 8px; }
.form-state p { color: var(--muted); margin: 0 auto 20px; max-width: 40ch; }
.big-ico { font-size: 56px; color: var(--accent); }
.skeleton { height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--line) 25%, var(--line-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; margin: 0 auto 12px; max-width: 360px; }
.skeleton.short { max-width: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.order.is-done .fstep, .order.is-done .form-nav, .order.is-done .progress, .order.is-done .step-count { display: none !important; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; } }
.faq-list { display: grid; gap: 12px; }
details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--shell);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
details[open] { border-color: var(--line-2); background: var(--surface); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary i { font-size: 22px; flex: none; transition: transform .5s var(--ease); color: var(--accent); }
details[open] summary i { transform: rotate(45deg); }
.ans { padding: 0 24px 22px; }
.ans p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- Final ---------- */
.final { padding-block: 120px 140px; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1000px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(226, 103, 60, .18), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 64px; height: 64px; color: var(--text); margin-bottom: 28px; }
.final-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem);
  letter-spacing: -.05em; line-height: .95; margin: 0 0 20px;
  font-variation-settings: "opsz" 96;
}
.final .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin: 0; font-size: 13px; color: var(--muted); width: 100%; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 780px; padding-block: 48px 96px; }
.legal-brand { margin-bottom: 48px; }
.legal h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 32px; }
.legal h2 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.015em; margin: 36px 0 8px; }
.legal p { color: var(--muted); margin: 0 0 12px; }
.legal a { color: var(--text); }
.draft { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent) !important; font-size: 14.5px; margin-bottom: 24px !important; }
.back { margin-top: 48px !important; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}
