/* SideQuest – Erklär-Seite. Tokens nach Glisse (--lg-*) und CLAUDE.md. */

@font-face { font-family: "Inter"; src: url(fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --accent: #0088FF;
  --green: #34C759;
  --red: #FF383C;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --label: rgb(0 0 0 / 0.88);
  --secondary: rgb(60 60 67 / 0.6);
  --fill: rgb(118 118 128 / 0.12);
  --sep: rgb(60 60 67 / 0.15);
  --glass: rgb(255 255 255 / 0.6);
  --glass-edge: rgb(0 0 0 / 0.08);
  --glass-hi: rgb(255 255 255 / 0.7);
  --shadow-soft: 0 1px 3px rgb(0 0 0 / 0.06);
  --shadow-float: 0 12px 40px rgb(25 25 35 / 0.12);
  /* Karte (ruhig, Apple-Karten-ähnlich) */
  --map-land: #F1EFEA;
  --map-block: #E8E5DF;
  --map-road: #FFFFFF;
  --map-road-edge: #DAD6CE;
  --map-park: #D6E9CF;
  --map-water: #BFDDF4;
  --phone-frame: #1C1C1E;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dark: 1; }
}
:root[data-theme="dark"] {
  --accent: #0091FF;
  --green: #30D158;
  --red: #FF4245;
  --bg: #000000;
  --card: #1C1C1E;
  --label: rgb(255 255 255);
  --secondary: rgb(235 235 245 / 0.6);
  --fill: rgb(118 118 128 / 0.24);
  --sep: rgb(235 235 245 / 0.16);
  --glass: rgb(40 40 40 / 0.62);
  --glass-edge: rgb(255 255 255 / 0.13);
  --glass-hi: rgb(255 255 255 / 0.1);
  --shadow-soft: 0 1px 3px rgb(0 0 0 / 0.5);
  --shadow-float: 0 12px 40px rgb(0 0 0 / 0.38);
  --map-land: #1E1F22;
  --map-block: #26272B;
  --map-road: #3A3B40;
  --map-road-edge: #2C2D31;
  --map-park: #1F2E22;
  --map-water: #12263A;
  --phone-frame: #3A3A3C;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --accent: #0091FF; --green: #30D158; --red: #FF4245; --bg: #000; --card: #1C1C1E;
    --label: #fff; --secondary: rgb(235 235 245 / 0.6); --fill: rgb(118 118 128 / 0.24);
    --sep: rgb(235 235 245 / 0.16); --glass: rgb(40 40 40 / 0.62); --glass-edge: rgb(255 255 255 / 0.13);
    --glass-hi: rgb(255 255 255 / 0.1); --map-land: #1E1F22; --map-block: #26272B; --map-road: #3A3B40;
    --map-road-edge: #2C2D31; --map-park: #1F2E22; --map-water: #12263A; --phone-frame: #3A3A3C;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 400 17px/1.47 "Inter", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, .ev-title { font-family: "Inter Display", "Inter", system-ui, sans-serif; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.muted { color: var(--secondary); }
.accent-text { color: var(--accent); }

/* ───── Material: Liquid Glass (Bedienebene) ───── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge), inset 0 1px 0 var(--glass-hi), var(--shadow-float);
}

/* ───── Navigation ───── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px;
  height: 52px; padding: 0 10px 0 16px; border-radius: 26px;
  width: max-content; max-width: calc(100% - 32px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--label); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--label); font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 99px; transition: background .2s; }
.nav-links a:hover { background: var(--fill); text-decoration: none; }
.nav-links a.on { color: var(--accent); }
.theme { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--secondary); }
.gl-slot { display: inline-flex; }
.gl-switch { min-width: 64px; min-height: 28px; }

/* ───── Layout ───── */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding-top: 120px; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 14px; }
.lead { font-size: 22px; line-height: 1.4; color: var(--secondary); max-width: 30ch; margin: 22px 0 18px; letter-spacing: -0.017em; }
.hint { font-size: 15px; color: var(--secondary); max-width: 44ch; }
.hero-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-soft); font-weight: 600; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chapter.flip .chapter-copy { order: 2; }
.chapter-copy p { color: var(--secondary); font-size: 19px; max-width: 34ch; }
.chapter-copy p b { color: var(--label); }
.num { display: inline-block; font: 600 15px "Inter", sans-serif; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 99px; margin-bottom: 18px; }
.center-copy { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.center-copy p { color: var(--secondary); font-size: 19px; }

.control { display: flex; align-items: center; gap: 14px; margin: 28px 0; flex-wrap: wrap; }
.control-label { font-size: 15px; font-weight: 600; color: var(--secondary); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 420px; }
.facts li { background: var(--card); border-radius: 18px; padding: 12px 16px; font-size: 15px; color: var(--secondary); transition: transform .4s var(--spring), box-shadow .3s; }
.facts li b { display: block; color: var(--label); font-size: 16px; }
.facts li.on { box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.02); }
.crumbs { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; min-height: 30px; }
.crumbs span { padding: 5px 12px; border-radius: 99px; background: var(--card); animation: pop .45s var(--spring) both; }
.crumbs span:last-child { color: #fff; background: var(--accent); }
.crumbs i { color: var(--secondary); font-style: normal; }
.caption { text-align: center; font-size: 13px; color: var(--secondary); margin-top: 16px; }

/* ───── iPhone-Attrappe ───── */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  --w: 300px; --h: 640px;
  width: var(--w); height: var(--h);
  border-radius: 54px; padding: 10px;
  background: var(--phone-frame);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--phone-frame) 70%, #888), 0 40px 80px -20px rgb(0 0 0 / .35);
  position: relative;
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 20; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 99px; background: #000;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--map-land); isolation: isolate; }

/* Karte */
.map { position: absolute; inset: -10%; transition: transform 1.1s var(--ease); }
.map svg { width: 100%; height: 100%; display: block; }
.map .land { fill: var(--map-land); }
.map .block { fill: var(--map-block); }
.map .park { fill: var(--map-park); }
.map .water { fill: var(--map-water); }
.map .road-edge { stroke: var(--map-road-edge); fill: none; stroke-linecap: round; }
.map .road { stroke: var(--map-road); fill: none; stroke-linecap: round; }
.map .label { fill: var(--secondary); font: 600 9px "Inter", sans-serif; letter-spacing: .02em; }

.pins { position: absolute; inset: 0; pointer-events: none; transition: transform 1.1s var(--ease); }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgb(0 0 0 / .25);
  transform: scale(0); animation: pin-in .6s var(--spring) forwards;
  transition: opacity .35s, filter .35s;
}
.pin svg { width: 16px; height: 16px; }
.pin.now::after { content: ""; position: absolute; inset: -2.5px; border-radius: 50%; background: var(--accent); z-index: -1; animation: pulse 1.8s ease-out infinite; }
.pin.dim { opacity: .25; filter: saturate(0); }
.pin.sel { animation: none; transform: scale(1.3); z-index: 2; transition: transform .4s var(--spring); }
.pin.sel::before { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 8px; margin-left: -1.5px; background: var(--accent); border-radius: 2px; }
@keyframes pin-in { 0% { transform: translateY(-14px) scale(0); } 100% { transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

.me { position: absolute; left: 48%; top: 44%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
.me i { position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.me::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); animation: me 2.4s ease-in-out infinite; z-index: -1; }
.me.ping::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ping .9s ease-out forwards; }
@keyframes me { 50% { transform: scale(1.3); opacity: .5; } }
@keyframes ping { to { transform: scale(5); opacity: 0; } }

/* Glas-Knöpfe über der Karte */
.ctrl { position: absolute; right: 12px; top: 58px; display: flex; flex-direction: column; gap: 10px; z-index: 5; transition: transform .5s var(--spring); }
.ctrl button { width: 48px; height: 48px; }
.ctrl svg { width: 20px; height: 20px; }
.fake-glass-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; font-weight: 300; color: var(--label);
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge), inset 0 1px 0 var(--glass-hi), 0 4px 16px rgb(0 0 0 / .1);
  transition: transform .2s var(--ease);
}
.fake-glass-btn.loc::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-loc) center/contain no-repeat; mask: var(--i-loc) center/contain no-repeat; }
.fake-glass-btn.press { transform: scale(1.15); }
:root { --i-loc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.6 3.4 3.9 10.2c-.9.4-.8 1.6.1 1.9l6.6 1.8 1.8 6.6c.3.9 1.5 1 1.9.1l6.8-16.7c.3-.7-.3-1.3-1-1z'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E"); }

/* Sheet */
.sheet {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 6;
  height: 330px; border-radius: 38px; padding: 6px 14px 14px;
  overflow: hidden;
  transition: height .6s var(--spring);
}
.phone[data-detent="klein"] .sheet { height: 84px; }
.phone[data-detent="mittel"] .sheet { height: 330px; }
.phone[data-detent="gross"] .sheet { height: 546px; }
.phone[data-detent="gross"] .ctrl { transform: translateX(80px); }
.sheet.dragging { transition: none; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--sep); margin: 0 auto 10px; }
[data-drag] .grabber { cursor: grab; }
[data-drag] { touch-action: none; }
.sheet-head { display: flex; gap: 8px; align-items: center; }
.search {
  flex: 1; height: 40px; border-radius: 20px; background: var(--fill); color: var(--secondary);
  display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 16px;
}
.search::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-search) center/contain no-repeat; mask: var(--i-search) center/contain no-repeat; flex: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative;
  background: linear-gradient(135deg, #5AC8FA, var(--accent)); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 16px;
}
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.tokens { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tok, .picker { padding: 6px 12px; border-radius: 99px; background: var(--fill); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s, transform .3s var(--spring); }
.tok.on { background: var(--accent); color: #fff; }
.picker { color: var(--label); }
.group-label { font-size: 13px; font-weight: 600; color: var(--secondary); margin: 14px 4px 6px; }

.list { display: grid; gap: 0; margin-top: 10px; background: var(--card); border-radius: 22px; padding: 2px 12px; }
.row-ev { display: flex; gap: 10px; align-items: center; padding: 9px 0; position: relative; }
.row-ev + .row-ev::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: .5px; background: var(--sep); }
.row-ev img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none; }
.row-ev .t { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-ev .m { font-size: 12px; color: var(--secondary); }
.row-ev .txt { min-width: 0; flex: 1; }
.row-ev .live { font-size: 11px; font-weight: 700; color: var(--accent); }
[data-go] .row-ev { cursor: pointer; }

/* Navigationsstapel */
.panes { position: relative; height: calc(100% - 15px); }
.pane { position: absolute; inset: 0; transition: transform .55s var(--spring), opacity .35s var(--ease); }
.pane.ahead { transform: translateX(105%); opacity: 0; pointer-events: none; }
.pane.behind { transform: translateX(-30%) scale(.96); opacity: 0; pointer-events: none; }
.ev-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ev-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.ev-meta { margin: 4px 0 10px; font-size: 13px; color: var(--secondary); }
.round { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--secondary); flex: none; }
.ev-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; display: block; }
.ev-actions { display: flex; gap: 6px; margin: 10px 0; }
.btn-filled { flex: 1; text-align: center; padding: 10px 14px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; transition: transform .2s, background .3s; }
.btn-tinted { padding: 10px 14px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; font-size: 14px; }
.fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fact { background: var(--card); border-radius: 16px; padding: 9px 12px; display: grid; }
.fact span { font-size: 11px; color: var(--secondary); font-weight: 500; }
.fact b { font-size: 15px; }
.fact b.thin { font-size: 13px; font-weight: 500; }
.fact.wide { margin-top: 6px; }
.me-card { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 22px; padding: 12px; margin-top: 10px; }
.me-card b { display: block; font-size: 17px; }
.me-card .muted { font-size: 13px; }
.ring { position: relative; width: 60px; height: 60px; flex: none; }
.ring svg, .a-level svg { width: 100%; height: 100%; transform: scaleX(-1) rotate(-90deg); }
.ring span { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(135deg, #5AC8FA, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.ring-track { fill: none; stroke: var(--fill); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: 226.2; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.pane.active .ring-fill { stroke-dashoffset: 45.2; } /* 160/200 XP */
.rows { background: var(--card); border-radius: 18px; padding: 0 12px; font-size: 14px; font-weight: 500; }
.rows span { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: .5px solid var(--sep); }
.rows span:last-child { border: 0; }
.rows em { color: var(--secondary); font-style: normal; }
.red { color: var(--red); }

/* Composer */
.composer { opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .5s var(--spring); pointer-events: none; }
.phone[data-detent="mittel"] .composer { opacity: 1; transform: none; }
.phone[data-detent="mittel"] .small-only { display: none; }
.comp-title { font-size: 19px; font-family: "Inter Display", sans-serif; }
.field { margin-top: 12px; height: 44px; border-radius: 14px; background: var(--card); display: flex; align-items: center; padding: 0 14px; font-size: 17px; font-weight: 500; }
.field .typed:empty::before { content: "Was hast du vor?"; color: var(--secondary); }
.caret { width: 2px; height: 22px; background: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tok.cat { transform: scale(0); }
.tok.cat.show { transform: none; }
.post { display: block; margin-top: 14px; padding: 13px; font-size: 16px; }
.post.press { transform: scale(.95); }
.opts { display: block; text-align: center; font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 10px; }
.cross { position: absolute; left: 48%; top: 44%; width: 46px; height: 46px; margin: -23px; opacity: 0; transition: opacity .3s; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--accent); border-radius: 1px; }
.cross::before { left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; }
.cross::after { top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -.75px; }
.cross.show { opacity: .6; }
.new-pin { position: absolute; left: 48%; top: 44%; width: 34px; height: 34px; margin: -40px 0 0 -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(0, -60px) scale(0); background: var(--accent); box-shadow: 0 0 0 2.5px #fff, 0 6px 14px rgb(0 0 0 / .25); transition: transform .6s var(--spring), margin .6s var(--spring); z-index: 3; }
.new-pin span { position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.new-pin.drop { transform: rotate(-45deg) translate(0, 0) scale(1); }
.new-pin.drag { margin-left: 2px; margin-top: -54px; }
.new-pin.posted::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--accent); z-index: -1; animation: pulse 1.8s ease-out infinite; }

/* Toast */
.toast { position: absolute; z-index: 10; left: 50%; top: 56px; transform: translate(-50%, -30px) scale(.8); opacity: 0; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .5s var(--spring), opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ───── Ebenen (3D) ───── */
.layers-stage { height: 560px; perspective: 1600px; display: grid; place-items: center; margin-bottom: 40px; }
.layers { --p: 0; position: relative; width: 300px; height: 440px; transform-style: preserve-3d;
  transform: rotateX(calc(var(--p) * 55deg)) rotateZ(calc(var(--p) * -38deg)); }
.layer { position: absolute; inset: 0; border-radius: 34px; transform-style: preserve-3d; }
.l-content { overflow: hidden; background: var(--map-land); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .3); }
.l-sheet { transform: translateZ(calc(var(--p) * 110px)); }
.l-ctrl { transform: translateZ(calc(var(--p) * 220px)); }
.sheet-plate { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 250px; border-radius: 30px; padding: 6px 12px; }
.l-ctrl .fake-glass-btn { position: absolute; right: 14px; top: 20px; }
.l-ctrl .fake-glass-btn + .fake-glass-btn { top: 78px; }
.layer em { position: absolute; left: -150px; top: 50%; font-style: normal; font-weight: 700; font-size: 15px; color: var(--accent); white-space: nowrap; opacity: var(--p); transform: translateY(-50%); }
.layer em::after { content: ""; position: absolute; left: calc(100% + 10px); top: 50%; width: 50px; height: 1px; background: var(--accent); }
.l-content em { top: 85%; }
.l-sheet em { top: 70%; }
.l-ctrl em { top: 10%; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 26px; padding: 26px; }
.card p { color: var(--secondary); font-size: 16px; margin: 8px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* Schritte */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 440px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; background: var(--card); border-radius: 20px; padding: 14px 16px; transition: transform .45s var(--spring), box-shadow .3s; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-weight: 700; transition: background .3s, color .3s; }
.steps li span { color: var(--secondary); font-size: 15px; }
.steps li.on { transform: scale(1.03); box-shadow: inset 0 0 0 2px var(--accent); }
.steps li.on::before { background: var(--accent); color: #fff; }

/* ───── Prinzipien ───── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-card { display: flex; flex-direction: column; }
.anim { height: 130px; border-radius: 18px; background: var(--bg); margin-bottom: 18px; position: relative; overflow: hidden; display: grid; place-items: center; }

.a-roles .role { position: absolute; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; background: var(--card); }
.a-roles .r1 { animation: role-l 4s var(--ease) infinite; }
.a-roles .r2 { animation: role-r 4s var(--ease) infinite; }
.a-roles .all { background: var(--accent); color: #fff; animation: role-all 4s var(--spring) infinite; }
@keyframes role-l { 0%, 20% { transform: translateX(-60px); opacity: 1; } 45%, 100% { transform: translateX(0) scale(.6); opacity: 0; } }
@keyframes role-r { 0%, 20% { transform: translateX(55px); opacity: 1; } 45%, 100% { transform: translateX(0) scale(.6); opacity: 0; } }
@keyframes role-all { 0%, 40% { transform: scale(.4); opacity: 0; } 55%, 90% { transform: none; opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.a-defaults { display: flex; flex-direction: column; gap: 6px; place-items: stretch; padding: 14px 22px; }
.a-defaults span { display: flex; justify-content: space-between; background: var(--card); border-radius: 12px; padding: 5px 12px; font-size: 13px; color: var(--secondary); }
.a-defaults b { color: var(--accent); animation: fill-in 4.5s var(--spring) infinite; display: inline-block; }
.a-defaults span:nth-child(2) b { animation-delay: .25s; }
.a-defaults span:nth-child(3) b { animation-delay: .5s; }
@keyframes fill-in { 0%, 10% { transform: scale(0); opacity: 0; } 25%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.a-one .path { position: absolute; left: 30px; height: 4px; border-radius: 2px; background: var(--sep); width: 150px; }
.a-one .p1 { top: 40px; transform: rotate(10deg); transform-origin: left; animation: fade-path 4s infinite; }
.a-one .p2 { top: 63px; background: var(--accent); width: 0; animation: grow 4s var(--ease) infinite; }
.a-one .p3 { top: 86px; transform: rotate(-10deg); transform-origin: left; animation: fade-path 4s infinite; }
.a-one .goal { position: absolute; left: 190px; top: 50px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; display: grid; place-items: center; font-weight: 700; animation: pop-loop 4s var(--spring) infinite; }
@keyframes fade-path { 0%, 20% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes grow { 0%, 30% { width: 0; } 60%, 100% { width: 150px; } }
@keyframes pop-loop { 0%, 55% { transform: scale(0); } 70%, 100% { transform: none; } }
.a-disclose { display: flex; flex-direction: column; gap: 5px; place-items: stretch; padding: 10px 22px; align-content: center; }
.a-disclose .row { background: var(--card); border-radius: 10px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.a-disclose .more { color: var(--accent); font-weight: 600; }
.a-disclose .hidden { max-height: 0; padding: 0 12px; opacity: 0; overflow: hidden; animation: disclose 4s var(--ease) infinite; color: var(--secondary); }
@keyframes disclose { 0%, 35% { max-height: 0; padding: 0 12px; opacity: 0; } 50%, 85% { max-height: 30px; padding: 4px 12px; opacity: 1; } 100% { max-height: 0; opacity: 0; } }
.a-pulse i { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2.5px #fff; }
.a-pulse .pulse-pin::after { content: ""; position: absolute; inset: -2.5px; border-radius: 50%; background: var(--accent); z-index: -1; animation: pulse 1.8s ease-out infinite; }
.a-pulse .calm-pin { left: 30%; top: 30%; opacity: .55; }
.a-pulse .calm-pin.b { left: 66%; top: 62%; }
.a-level { position: relative; }
.a-level svg { width: 90px; height: 90px; }
.a-level .ring-fill { stroke-dasharray: 213.6; stroke-dashoffset: 213.6; animation: level 4s var(--ease) infinite; transition: none; }
.a-level b { position: absolute; font-size: 13px; color: var(--accent); }
@keyframes level { 0%, 10% { stroke-dashoffset: 213.6; } 60%, 90% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 213.6; } }

/* ───── Ausprobieren ───── */
.try-panel { background: var(--card); border-radius: 28px; padding: 20px; margin-top: 26px; max-width: 420px; min-height: 300px; }
.pg { display: grid; gap: 16px; }
.pg-row { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.pg-val { color: var(--accent); font-variant-numeric: tabular-nums; }
.results { background: var(--card); border-radius: 28px; padding: 22px; min-height: 520px; align-self: stretch; }
.results-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; font-size: 19px; }
.results-list { display: grid; gap: 10px; }
.res {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center;
  padding: 8px; border-radius: 20px; cursor: pointer; text-align: left; width: 100%;
  transition: background .2s, transform .45s var(--spring), opacity .3s;
  animation: pop .45s var(--spring) both;
}
.res:hover { background: var(--fill); }
.res.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.res img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; display: block; }
.res b { display: block; font-size: 16px; }
.res .m { font-size: 14px; color: var(--secondary); }
.res .friends { font-size: 13px; color: var(--accent); font-weight: 600; }
.res .chk { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; transform: scale(0); transition: transform .45s var(--spring); }
.res.joined .chk { transform: none; }
.empty { color: var(--secondary); text-align: center; padding: 60px 0; }

/* ───── Footer ───── */
.footer { max-width: 1160px; margin: 0 auto; padding: 60px 24px 80px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; border-top: .5px solid var(--sep); }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 9px; }
.foot-brand b { display: block; }
.foot-brand .muted { font-size: 14px; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h4 { margin: 0 0 8px; font-size: 13px; color: var(--secondary); font-weight: 600; }
.foot-links a { display: block; font-size: 15px; margin-bottom: 6px; }

/* ───── Einblenden beim Scrollen ───── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

/* ───── Responsive ───── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero, .chapter { grid-template-columns: 1fr; gap: 40px; }
  .chapter.flip .chapter-copy { order: 0; }
  .hero { padding-top: 110px; text-align: left; }
  .cards3, .grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .layer em { left: auto; right: -14px; transform: translate(100%, -50%); }
  .layer em::after { display: none; }
}
@media (min-width: 600px) and (max-width: 920px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .phone { zoom: .9; }
  .layers-stage { height: 460px; zoom: .8; }
  .theme span:first-child { display: none; }
  .results { padding: 14px; }
  .res { grid-template-columns: 72px 1fr auto; }
  .res img { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Korrekturen nach Sichtprüfung */
.chapter.layers-chapter { display: block; }
.row-ev .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-filled, .btn-tinted { white-space: nowrap; }
.ev-actions .btn-tinted { padding: 10px 12px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.1); opacity: 0; } }
.res .m, .res .friends { display: block; }
.ctrl { top: 104px; }
.layers-stage { height: 640px; }
.layers { transform: rotateX(calc(var(--p) * 50deg)) rotateZ(calc(var(--p) * -30deg)); }
.l-sheet { transform: translateZ(calc(var(--p) * 90px)); }
.l-ctrl { transform: translateZ(calc(var(--p) * 180px)); }
