:root {
  color-scheme: dark;
  /* Farben nach dem Logo: Blau, Magenta und Orange auf fast schwarzem Blau. */
  --bg: #06070d;
  --panel: rgba(10, 12, 22, 0.78);
  --line: rgba(226, 232, 255, 0.14);
  --text: #f3f4fa;
  --muted: #a9aec2;
  --accent: #ff8a3c;
  --accent-2: #ff6a2b;
  --blue: #2f9bff;
  --pink: #d946ef;
  --glow: linear-gradient(90deg, var(--blue), var(--pink) 50%, var(--accent));
  --ink: #1c0d03;
  --ok: #9fe0b0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--bg); padding: 8px 14px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Über dem hellen TV-Bild braucht die Verlaufsschrift einen dunklen Schein, um lesbar zu bleiben. */
h1 em { filter: drop-shadow(0 2px 14px rgba(0,0,0,.85)); }
h1, h2, h3 { font-weight: 800; margin: 0; }
button { font: inherit; color: inherit; }

/* ── Header ── */
.topbar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 3vw, 40px);
  background: linear-gradient(rgba(8,7,10,.75), rgba(8,7,10,0)); transition: opacity .6s; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 10px; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar nav a:hover { color: var(--text); }
.badge { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255,138,60,.35); border-radius: 99px; padding: 5px 12px; white-space: nowrap; }

.language-switch { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: rgba(18,16,21,.8); }
.language-switch button { min-width: 44px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.language-switch button:hover { color: var(--text); background: rgba(255,138,60,.15); }
.language-switch button[aria-pressed="true"]:hover { color: var(--ink); background: var(--accent-2); }
@media (max-width: 1150px) {
  .topbar { gap: 16px; }
  .badge-more { display: none; }
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .language-switch { margin-left: auto; }
  .topbar .badge { order: 3; width: 100%; border: 0; padding: 0; text-align: right; }
}

/* ── Stage ── */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: absolute; inset: 0; background: #000; opacity: 1; transition: opacity 2.4s ease .2s; pointer-events: none; }
.stage.ready .veil { opacity: 0; }
.letterbox { position: absolute; left: 0; right: 0; height: max(0px, calc((100svh - 100vw / 2.39) / 2)); max-height: 13svh; background: #000; transform: scaleY(0); transition: transform 1.4s var(--ease); z-index: 2; pointer-events: none; }
.lb-top { top: 0; transform-origin: top; }
.lb-bottom { bottom: 0; transform-origin: bottom; }
.stage[data-step="hero"] .letterbox, .stage[data-step="live"] .letterbox { transform: scaleY(1); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(5,4,7,.78) 0%, rgba(5,4,7,.35) 32%, rgba(5,4,7,0) 55%); opacity: 0; transition: opacity 1.2s; }
.stage[data-step="hero"]::after { opacity: 1; }
.stage:not([data-step="hero"]):not([data-step="live"])::after { opacity: .9; background: linear-gradient(90deg, rgba(5,4,7,.55) 0%, rgba(5,4,7,0) 36%); }

/* ── Hero ── */
.hero { position: absolute; z-index: 5; left: clamp(16px, 6vw, 96px); top: 50%; transform: translateY(-46%); max-width: 660px;
  transition: opacity .9s, transform 1.2s var(--ease); }
.stage:not([data-step="hero"]) .hero { opacity: 0; transform: translate(-30px, -46%); pointer-events: none; }
.stage .hero > * { opacity: 0; transform: translateY(14px); transition: opacity 1.2s, transform 1.2s var(--ease); }
.stage.ready .hero > * { opacity: 1; transform: none; }
.stage.ready .hero > :nth-child(1) { transition-delay: 2.6s; }
.stage.ready .hero > :nth-child(2) { transition-delay: 2.9s; }
.stage.ready .hero > :nth-child(3) { transition-delay: 3.2s; }
.stage.ready .hero > :nth-child(4) { transition-delay: 3.5s; }
.stage.ready .hero > :nth-child(5) { transition-delay: 3.8s; }
.eyebrow { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 18px; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .95; letter-spacing: -.045em; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #d5d8e6; margin: 24px 0 30px; max-width: 470px; text-shadow: 0 1px 20px rgba(0,0,0,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Direkt-Bedienung auf der Startansicht: Hue-Sync und Filmszene. */
.hero-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 24px; }
.hero-live .sync-switch { border-radius: 99px; padding: 9px 18px 9px 10px; font-size: 15px; gap: 12px; background: rgba(12,11,14,.6); backdrop-filter: blur(10px); }
.hero-live .sync-switch .sw { width: 46px; height: 26px; }
.hero-live .sync-switch .sw::after { width: 20px; height: 20px; }
.hero-live .sync-switch[aria-pressed="true"] .sw::after { left: 23px; }
.hero-scenes { display: flex; gap: 8px; }
.hero-scenes button { width: 36px; height: 36px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; transition: border-color .25s, transform .25s; }
.hero-scenes button:hover { transform: scale(1.1); }
.hero-scenes button i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.hero-scenes button[aria-pressed="true"] { border-color: var(--accent); }

/* ── Buttons ── */
.btn { cursor: pointer; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .3s, opacity .2s; }
.btn.primary { background: linear-gradient(#ffb47a, var(--accent-2)); color: var(--ink); box-shadow: 0 10px 40px -10px rgba(255,122,46,.6), inset 0 1px 0 rgba(255,255,255,.6); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 50px -10px rgba(255,122,46,.8), inset 0 1px 0 rgba(255,255,255,.6); }
.btn.primary:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.big { padding: 16px 24px; font-size: 16px; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.link { background: none; color: var(--muted); padding: 6px 4px; font-weight: 600; }
.btn.link:hover { color: var(--text); }
kbd { font: 700 10px/1 var(--sans); border: 1px solid currentColor; border-radius: 5px; padding: 3px 5px; opacity: .55; }

/* ── Panel (Einrichtung) ── */
.panel { position: absolute; z-index: 6; left: clamp(12px, 2.4vw, 32px); top: 84px; width: min(410px, calc(100vw - 24px)); max-height: calc(100% - 108px); overflow: auto;
  background: var(--panel); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  transition: opacity .6s, transform .8s var(--ease); }
.stage[data-step="hero"] .panel, .stage[data-step="live"] .panel { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.panel:empty { display: none; }
.rail { display: flex; gap: 5px; list-style: none; padding: 0; margin: 0 0 18px; }
.rail li { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; }
.rail li.done { background: rgba(255,138,60,.55); }
.rail li.now { background: var(--accent); box-shadow: 0 0 12px rgba(255,138,60,.7); }
.rail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.panel h2 { font-size: 30px; line-height: 1.12; margin-bottom: 10px; }
.panel p { margin: 0 0 12px; color: #d5d8e6; font-size: 15.5px; }
.panel .hint { font-size: 13.5px; color: var(--muted); }
.panel .msg { font-size: 14px; color: #ffd8a8; background: rgba(255,170,80,.12); border-radius: 12px; padding: 10px 12px; }
.checks { list-style: none; padding: 0; margin: 4px 0 18px; }
.checks li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; color: #e6dfd4; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(159,224,176,.16); color: var(--ok); font-size: 12px; display: grid; place-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 6px; }
.panel-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.panel-foot .btn { font-size: 13px; }
.loading { display: flex; gap: 6px; margin: 14px 0; }
.loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dot 1.1s infinite ease-in-out; }
.loading i:nth-child(2) { animation-delay: .15s; } .loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: none; } }
.choices { display: grid; gap: 8px; margin: 8px 0; }
.choice { text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); display: grid; gap: 2px; transition: .2s; }
.choice small { color: var(--muted); }
.choice:hover { background: rgba(255,255,255,.08); }
.choice.on { border-color: var(--accent); background: rgba(255,138,60,.12); }
.choice.muted strong { opacity: .5; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.mode { cursor: pointer; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 12px 10px; text-align: left; display: grid; gap: 2px; transition: .2s; }
.mode strong { font-weight: 800; font-size: 17px; }
.mode small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.mode.on { background: linear-gradient(#ffb47a, var(--accent-2)); color: var(--ink); border-color: transparent; }
.mode.on small { color: rgba(42,29,16,.7); }

/* Raumplan */
.map { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.map-room { fill: rgba(0,0,0,.28); stroke: var(--line); }
.map-tv { fill: #e8e2d6; }
.map-sofa { fill: rgba(255,255,255,.1); }
.map-label { fill: rgba(244,239,230,.45); font: 700 10px var(--sans); text-anchor: middle; }
.spot { cursor: pointer; outline: none; }
.spot .hit { fill: transparent; }
.spot .dot { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.55); stroke-width: 1.5; transition: .2s; }
.spot:hover .dot, .spot:focus-visible .dot { fill: rgba(255,138,60,.6); stroke: var(--accent); r: 11; }
.spot.ok { cursor: default; }
.spot.ok .dot { fill: var(--ok); stroke: var(--ok); }
.spot-label { fill: #d8d1c6; font: 600 10px var(--sans); text-anchor: middle; pointer-events: none; }
.spot.ok .spot-label { fill: var(--ok); }

/* ── Handy ── */
.phone { position: absolute; z-index: 7; right: clamp(16px, 7vw, 120px); bottom: 50%; width: 252px; height: 520px; border-radius: 42px; padding: 11px;
  background: linear-gradient(145deg, #3a3a40, #121215); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), inset 0 0 0 1.5px rgba(255,255,255,.12);
  transform: translateY(calc(50% + 120vh)) rotate(8deg); transition: transform 1.1s var(--ease); }
.phone.show { transform: translateY(50%) rotate(-3deg); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: #000; border-radius: 12px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 32px; background: #f6f2ea; color: #1b1712; overflow: hidden; padding: 56px 18px 18px; display: flex; flex-direction: column; }
.ph-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 26px; }
.ph-head img { width: 26px; height: 26px; border-radius: 7px; }
.phone-screen h3 { font: 800 23px/1.15 var(--sans); margin-bottom: 8px; }
.phone-screen p { font-size: 13px; color: #5a534a; margin: 0 0 18px; }
.ph-btn { cursor: pointer; border: 0; border-radius: 14px; padding: 14px; background: #1b1712; color: #fff; font-weight: 700; animation: nudge 2s infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,90,.6); } 50% { box-shadow: 0 0 0 10px rgba(255,180,90,0); } }
.ph-small { margin-top: auto !important; font-size: 11px !important; text-align: center; }
.pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 18px; }
.pin span { height: 52px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #d9d1c4; display: grid; place-items: center; font: 800 26px var(--sans); }
.pin.ok span { box-shadow: inset 0 0 0 2px #3aa860; color: #2b8a4c; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: auto; }
.keys button { cursor: pointer; border: 0; border-radius: 12px; height: 44px; background: #e9e3d8; font-weight: 700; font-size: 17px; color: #1b1712; }
.keys button:active { background: #d8d0c2; }
.keys .fill { background: #ffe0b2; }
.viewfinder { position: absolute; inset: 11px; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #3b3530, #0b0a09 70%); }
.qr-ghost { position: absolute; left: 50%; top: 42%; width: 130px; height: 130px; margin: -65px; border-radius: 10px; background:
  repeating-conic-gradient(#1a1714 0 25%, #efe9df 0 50%) 0 0/16px 16px; opacity: .65; filter: blur(.4px); transform: perspective(300px) rotateX(12deg) rotateZ(-4deg); }
.scanline { position: absolute; left: 22%; right: 22%; height: 2px; top: 30%; background: #ffd293; box-shadow: 0 0 14px #ffd293; animation: scan 1.4s infinite alternate ease-in-out; }
@keyframes scan { to { top: 56%; } }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.corner.a { left: 22%; top: 26%; border-right: 0; border-bottom: 0; } .corner.b { right: 22%; top: 26%; border-left: 0; border-bottom: 0; }
.corner.c { left: 22%; top: calc(58% - 26px); border-right: 0; border-top: 0; } .corner.d { right: 22%; top: calc(58% - 26px); border-left: 0; border-top: 0; }
.ph-cap { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; color: #fff !important; font-weight: 600; }

/* ── Bridge-Hotspot ── */
.hotspot { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .5s; }
.stage[data-step="bridge"][data-sub="press"] .hotspot { opacity: 1; pointer-events: auto; transition-delay: 2.2s; }
.hotspot::before, .hotspot::after { content: ""; position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s infinite; }
.hotspot::after { animation-delay: .9s; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hotspot span { position: absolute; left: 50%; top: -86px; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 13px; border-radius: 99px; padding: 6px 12px; }
.hotspot span::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 14px; background: var(--accent); }

/* ── Live-HUD ── */
.hud { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translate(-50%, 30px); width: min(1180px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; padding: 14px 20px; border-radius: 22px;
  background: rgba(14,12,17,.66); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .8s .4s, transform 1s var(--ease) .4s; }
.stage[data-step="live"] .hud { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-delay: 2.2s; }
.hud-group { display: grid; gap: 6px; }
.hud-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.scenes, .lamps, .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.scenes button, .lamps button, .seg button, .toggle { cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 11px; padding: 6px 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; transition: .2s; white-space: nowrap; }
.scenes button i { width: 22px; height: 22px; border-radius: 6px; }
.scenes button[aria-pressed="true"], .seg button[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,138,60,.16); color: #fff; }
.lamps button i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); transition: .2s; }
.lamps button[aria-pressed="false"] { opacity: .5; }
.lamps button[aria-pressed="false"] i { background: #555; box-shadow: none; }
.toggle .sw { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; transition: .25s; }
.toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .25s; }
.toggle[aria-pressed="true"] .sw { background: var(--accent-2); }
.toggle[aria-pressed="true"] .sw::after { left: 17px; }
.live-bar { position: absolute; z-index: 6; right: clamp(16px, 3vw, 40px); top: 78px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  background: rgba(14,12,17,.6); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 14px; opacity: 0; pointer-events: none; transition: opacity .8s; }
.stage[data-step="live"] .live-bar { opacity: 1; pointer-events: auto; transition-delay: 2s; }
.live-dot, .rec { width: 8px; height: 8px; border-radius: 50%; background: #8fe3a6; box-shadow: 0 0 10px #8fe3a6; display: inline-block; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.caption { position: absolute; z-index: 5; right: clamp(16px, 3vw, 40px); bottom: calc(max(0px, min(13svh, (100svh - 100vw / 2.39) / 2)) + 16px); margin: 0; font-size: 13px; color: #d5d8e6;
  text-shadow: 0 1px 10px #000; opacity: 0; transition: opacity 1s; display: flex; align-items: center; gap: 8px; }
.caption strong { color: #fff; }
.stage[data-step="hero"].ready .caption { opacity: 1; transition-delay: 4s; }
.stage[data-step="live"] .caption { opacity: 1; right: auto; left: clamp(16px, 3vw, 40px); top: 84px; bottom: auto; }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; opacity: 0; transition: opacity 1s; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(10px); opacity: 0; } }
.stage[data-step="hero"].ready .scroll-hint { opacity: 1; transition-delay: 5s; }
.nowebgl, .nojs { display: none; position: absolute; inset: 0; place-items: center; text-align: center; padding: 24px; }
.stage.no-webgl .nowebgl { display: grid; }

/* ── Inhalt ── */
main { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 8vw, 110px) clamp(12px, 3vw, 40px) 0; }
/* Jeder Abschnitt ist eine farbige Karte. */
main section { margin-bottom: 28px; padding: clamp(26px, 5vw, 64px); border-radius: clamp(22px, 3vw, 36px); background: var(--card); box-shadow: 0 -18px 50px rgba(0,0,0,.45); }
.how { --card: #0d1226; }
.steps { --card: #170f2b; }
.facts { --card: #0a2038; --stack: 0; }
/* Helle Karte: Textfarben innerhalb der Karte umkehren. */
/* --card als fester Wert: --accent wird in dieser Karte für die Schrift umdefiniert. */
.compat { --card: #ff8a3c; --stack: 1; --muted: #4a2408; --line: rgba(28,13,3,.25); --accent: var(--ink); color: var(--ink); }
.compat em { background: none; color: var(--ink); }
.closing { --card: #10121c; --stack: 2; }
/* Die drei kurzen Karten stapeln sich beim Scrollen. Die hohen Karten davor nicht:
   Eine haftende Karte, die höher ist als der Bildschirm, liesse sich nicht bis zum Ende lesen. */
@media (min-width: 1000px) and (min-height: 700px) {
  .facts, .compat, .closing { position: sticky; top: calc(84px + var(--stack) * 14px); }
}
main h2 { font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.how h2 { max-width: 900px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); margin-top: 40px; align-items: start; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.how-steps li { display: flex; gap: 18px; }
.how-steps b { font-size: 20px; color: var(--accent); }
.how-steps h3 { margin: 0 0 6px; font-size: 19px; }
.how-steps p { margin: 0; color: #d5d8e6; }
.sampler { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(0,0,0,.35); }
.sampler canvas { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }
.sampler-lamps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sampler-lamps button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); border-radius: 12px; padding: 9px 11px; font: inherit; font-size: 13.5px; transition: opacity .25s, border-color .25s; }
.sampler-lamps button i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: var(--lamp, #000); box-shadow: 0 0 14px 2px var(--lamp, transparent); }
.sampler-lamps button small { display: block; color: var(--muted); font-size: 12px; }
.sampler-lamps button.current { border-color: var(--accent); }
.sampler-lamps button[aria-pressed="false"] { opacity: .5; }
.sampler figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .eyebrow { width: 100%; margin-bottom: -8px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.step-list li { background: #0e0a1c; padding: 26px 24px; display: flex; gap: 18px; transition: background .3s; }
.step-list li:hover { background: #1a1230; }
.step-cta { padding: 0 !important; background: radial-gradient(circle at 100% 100%, rgba(255,122,46,.28), transparent 70%), #17141a !important; }
.step-cta button { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; padding: 26px 24px; display: grid; align-content: space-between; gap: 18px; }
.step-cta span { font: 800 21px/1.25 var(--sans); }
.step-cta em { font: 700 15px var(--sans); font-style: normal; }
.step-cta button:hover em { text-decoration: underline; }
.step-list b { font: 800 15px var(--sans); color: var(--accent); }
.step-list h3 { font-size: 21px; margin-bottom: 6px; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts article { border-radius: 24px; padding: 30px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.fact-icon { display: block; width: 32px; height: 32px; color: var(--accent); }
.facts h3 { font-size: 23px; margin: 14px 0 8px; }
.facts p { margin: 0; color: var(--muted); }
.compat { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.compat-list p { display: flex; gap: 18px; font-size: 19px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.compat-list span { color: var(--accent); }
.compat-list small { display: block; color: var(--muted); margin-top: 18px; font-size: 14px; }
.closing { text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing p:last-child { color: var(--muted); max-width: 520px; margin: 22px auto 0; }
.footer { border-top: 1px solid var(--line); padding: 32px clamp(16px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; color: var(--muted); font-size: 14px; max-width: 1180px; margin: 0 auto; }
.footer div { display: grid; }
.footer strong { color: var(--text); }
.footer p { max-width: 620px; margin: 0; }

/* ── Mobil ── */
@media (max-width: 860px) {
  .topbar nav { display: none; }
  .badge { margin-left: auto; font-size: 10px; }
  .badge-more { display: none; }
  /* Der Textblock sitzt unten; das Bild darüber bleibt frei (siehe `shift` der Kamera in config.js). */
  .hero { top: auto; bottom: 24px; transform: none; right: 16px; }
  .stage:not([data-step="hero"]) .hero { transform: translateY(20px); }
  .stage[data-step="hero"]::after { background: linear-gradient(0deg, rgba(5,4,7,.9) 0%, rgba(5,4,7,.4) 55%, rgba(5,4,7,0) 75%); }
  /* Einrichtung als kompakte Bottom-Sheet-Karte; der Hauptbutton bleibt beim Scrollen sichtbar. */
  .panel { top: auto; bottom: 10px; left: 10px; width: calc(100vw - 20px); max-height: 47svh; padding: 14px 16px 0; border-radius: 20px; background: rgba(16, 14, 19, .9); }
  .panel h2 { font-size: 22px; margin-bottom: 6px; }
  .panel p { font-size: 14.5px; margin-bottom: 8px; }
  .rail { margin-bottom: 10px; }
  .kicker { font-size: 11px; margin-bottom: 4px; }
  .checks { margin: 0 0 4px; }
  .checks li { font-size: 14px; padding: 4px 0 4px 28px; }
  .checks li::before { top: 4px; }
  .map { max-height: 24svh; }
  .modes { gap: 6px; }
  .mode { padding: 10px 8px; }
  .panel .actions:has([data-primary]) { position: sticky; bottom: 0; z-index: 1; margin: 8px -16px 0; padding: 10px 16px 12px; background: rgba(16, 14, 19, .97); }
  .panel .btn.big { padding: 13px 18px; font-size: 15px; }
  .panel-foot { margin-top: 0; padding: 6px 0 8px; }
  .phone { width: 220px; height: 420px; border-radius: 36px; right: auto; left: 50%; margin-left: -110px; bottom: 14px; transform: translateY(120%) rotate(6deg); }
  .phone.show { transform: rotate(-1deg); }
  .phone-screen { padding: 44px 13px 13px; border-radius: 26px; }
  .phone-screen h3 { font-size: 18px; }
  .keys button { height: 34px; }
  .pin span { height: 40px; }
  .letterbox { display: none; }
  h1 { font-size: 2.5rem; }
  .lead { font-size: 15.5px; margin: 14px 0 18px; }
  .scroll-hint { display: none; }
  .stage[data-step="hero"] .caption { display: none; }
  .hud { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 18px; bottom: 10px; padding: 12px 14px; scrollbar-width: none; }
  .hud-group { flex: none; }
  .scenes, .lamps, .seg { flex-wrap: nowrap; }
  .live-bar { top: auto; bottom: 112px; right: 12px; }
  .stage[data-sub="scan"] .panel, .stage[data-sub="request"] .panel, .stage[data-sub="enter"] .panel { opacity: 0; pointer-events: none; }
  .stage[data-step="live"] .caption { top: 70px; left: 12px; right: 12px; display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .how-grid, .compat, .facts { grid-template-columns: 1fr; gap: 20px; }
  .hero-live { margin-bottom: 16px; }
  /* Im Hochformat läge die Zeile über dem TV-Bild. */
  .hero .eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

.shot .veil { display: none; }
.shot .stage *, .shot .stage { transition: none !important; }



/* Footer privacy links and optional analytics consent. */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: 100%; }
.text-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.analytics-choice { position: fixed; z-index: 60; bottom: 20px; right: 20px; width: min(450px, calc(100% - 40px)); max-height: 75svh; overflow: auto; padding: 24px; background: #19171d; color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 50px #0009; }
.analytics-choice[hidden], .text-button[hidden] { display: none; }
.analytics-choice h2 { font: 800 24px/1.25 var(--sans); }
.analytics-choice p, .analytics-choice summary, .analytics-choice a { font-size: 14px; line-height: 1.65; }
.analytics-choice summary { cursor: pointer; text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-actions button { flex: 1 1 140px; border: 1px solid var(--choice-border); background: var(--choice-bg); color: #fff; border-radius: 10px; padding: 12px; font-size: 14px; cursor: pointer; }
.analytics-actions [data-analytics-choice="denied"] { --choice-bg: #842f3c; --choice-border: #d77d88; }
.analytics-actions [data-analytics-choice="granted"] { --choice-bg: #226143; --choice-border: #70b892; }
.analytics-actions button:hover { filter: brightness(1.16); }
.analytics-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.privacy-page .topbar { position: static; background: var(--bg); }
.privacy-page .language-switch { margin-left: auto; }
.privacy-content { max-width: 900px; margin: 36px auto 80px; padding: 0 24px; overflow-wrap: anywhere; }
.privacy-content h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.2; margin: 30px 0; }
.privacy-content h2 { font: 800 26px/1.3 var(--sans); margin: 36px 0 12px; }
.privacy-content p { color: #d5d8e6; }
.privacy-content .policy-nav { display: flex; flex-wrap: wrap; gap: 16px; }
html[lang="de"] [data-policy-language="en"], html[lang="en"] [data-policy-language="de"] { display: none; }
@media (max-width: 600px) { .privacy-page .topbar { flex-wrap: nowrap; } .analytics-choice { padding: 18px; } }
