/* CinemaMax Website: gleiche Farben und Formen wie die App */

:root {
  --accent: #3E8BFF;
  --bg: #0A0A0B;
  --surface: #141416;
  --surface2: #1D1D21;
  --line: #2A2A30;
  --text: #F5F5F7;
  --dim: #8E8E96;
  --on-accent: #fff;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --screen: #0A0A0B; /* App-Vorschau bleibt dunkel wie die App */
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* Hell: nach System, außer der Nutzer hat selbst gewählt */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F4F7;
    --surface: #FFFFFF;
    --surface2: #E9E9EF;
    --line: #D9D9E0;
    --text: #111114;
    --dim: #66666F;
    --shadow: 0 30px 80px -40px rgba(20, 20, 40, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --surface2: #E9E9EF;
  --line: #D9D9E0;
  --text: #111114;
  --dim: #66666F;
  --shadow: 0 30px 80px -40px rgba(20, 20, 40, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
code, kbd, pre { font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace; }
.dim { color: var(--dim); }
.accent-text { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Fokus: wie in der App, gut sichtbar auf dem Fernseher */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 100px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: var(--surface2); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.97); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  /* Handy: Platz für Statusleiste, Kamera-Loch und seitlichen Ausschnitt (quer) */
  padding: calc(14px + env(safe-area-inset-top)) max(calc(20px + env(safe-area-inset-right)), calc((100vw - 1200px) / 2))
    14px max(calc(20px + env(safe-area-inset-left)), calc((100vw - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-bar { display: inline-block; width: 9px; height: 22px; border-radius: 3px; background: var(--accent); transition: background-color .4s; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative; white-space: nowrap; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--dim);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav > .brand, .nav-actions > * { min-height: 44px; }

/* Hell/Dunkel-Schalter: Knopf rollt, Sonne wird zum Mond */
.theme-switch { padding: 4px; border-radius: 100px; }
.theme-track {
  position: relative; display: block; width: 58px; height: 32px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--line);
  transition: background-color .4s;
}
.theme-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--text); transform: translateX(26px) rotate(0deg);
  transition: transform .55s var(--ease-out), background-color .4s;
}
.sun, .moon { position: absolute; inset: 0; border-radius: 50%; transition: transform .55s var(--ease-out), opacity .3s; }
.sun { background: #FFB547; box-shadow: 0 0 0 3px color-mix(in srgb, #FFB547 30%, transparent); transform: scale(.4); opacity: 0; }
.moon { background: var(--surface2); transform: translate(7px, -5px) scale(.78); }
[data-mode="light"] .theme-knob { transform: translateX(0) rotate(-180deg); background: #FFB547; }
[data-mode="light"] .sun { transform: scale(.62); opacity: 1; }
[data-mode="light"] .moon { transform: translate(18px, -18px) scale(.4); opacity: 0; }

/* Kreisförmige Überblendung beim Theme-Wechsel (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .7s var(--ease-out); }
@keyframes reveal {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 30px)); }
  to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 30px)); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vh, 90px) 20px 40px; text-align: center; }
.intro {
  display: inline-flex; align-items: center; gap: 14px; height: 76px; margin-bottom: clamp(26px, 5vh, 44px);
}
.intro-bar {
  width: 15px; height: 76px; border-radius: 5px; background: var(--accent);
  transform: scaleY(0); animation: barIn .6s var(--ease-out) .1s forwards;
}
.intro-stage { position: relative; display: inline-flex; align-items: center; min-width: 62px; height: 76px; }
.intro-word {
  font-size: 60px; font-weight: 800; letter-spacing: -.045em; line-height: 1;
  clip-path: inset(0 100% 0 0); opacity: 0;
  animation: wordIn 1s var(--ease-out) .95s forwards;
}
.intro-tri {
  position: absolute; left: 0; top: 0; width: 62px; height: 76px; fill: var(--text);
  opacity: 0; transform: scale(.4) rotate(-28deg);
  animation: triLand .5s cubic-bezier(.34, 1.56, .64, 1) .3s forwards, triFire .38s cubic-bezier(.55, 0, .9, .4) .82s forwards;
}
@keyframes barIn { to { transform: scaleY(1); } }
@keyframes triLand { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes triFire { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(480px) scaleX(2.6) scaleY(.5); } }
@keyframes wordIn {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; letter-spacing: .1em; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; letter-spacing: -.045em; }
}

.hero-title { font-size: clamp(42px, 8vw, 104px); font-weight: 800; letter-spacing: -.05em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: 1.35s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.48s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--dim); }

.sound-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 100px; color: var(--dim); font-size: 15px; transition: color .2s, background-color .2s; }
.sound-btn:hover, .sound-btn:focus-visible { color: var(--text); background: var(--surface2); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; }
.sound-btn.playing { color: var(--accent); }
.sound-btn.playing .sound-bars i { animation: eq .5s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: .15s !important; }
.sound-bars i:nth-child(3) { animation-delay: .3s !important; }
.sound-bars i:nth-child(4) { animation-delay: .08s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html:not(.ready) .hero .reveal { transition-delay: calc(1.6s + var(--d, 0s)); }

/* ---------- App-Vorschau ---------- */
.demo-wrap { max-width: 1120px; margin: clamp(48px, 9vh, 90px) auto 0; }
.device-switch {
  position: relative; display: inline-flex; padding: 4px; margin-bottom: 26px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--line);
}
.device-switch button { position: relative; z-index: 1; min-height: 44px; padding: 9px 18px; border-radius: 100px; font-weight: 600; font-size: 15px; color: var(--dim); transition: color .3s; }
.device-switch button[aria-selected="true"] { color: var(--on-accent); }
.device-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 100px; background: var(--accent);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

.device {
  --w: 1100px; --h: 618px;
  position: relative; margin: 0 auto; width: min(var(--w), 100%); aspect-ratio: var(--ar, 16 / 9);
  border-radius: 22px; padding: 12px; background: #1A1A1E;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: width .7s var(--ease-out), aspect-ratio .7s var(--ease-out), border-radius .7s var(--ease-out), padding .7s var(--ease-out);
}
.device[data-device="tv"]::after {
  /* Standfuß */
  content: ""; position: absolute; left: 50%; bottom: -26px; width: 26%; height: 14px; transform: translateX(-50%);
  border-radius: 0 0 14px 14px; background: linear-gradient(#26262B, #18181C);
}
.device[data-device="desktop"] { --ar: 16 / 10; width: min(980px, 100%); border-radius: 14px; padding: 30px 8px 8px; }
.device[data-device="desktop"]::before {
  content: ""; position: absolute; top: 11px; left: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: #FF5F57; box-shadow: 15px 0 #FEBC2E, 30px 0 #28C840;
}
.device[data-device="phone"] { --ar: 9 / 19.5; width: min(340px, 82vw); border-radius: 44px; padding: 12px; }

.screen {
  position: relative; display: flex; width: 100%; height: 100%; overflow: hidden; border-radius: 12px;
  background: var(--screen); color: #F5F5F7; text-align: left; container-type: size;
  font-size: clamp(9px, 1.45cqw, 15px);
}
.device[data-device="phone"] .screen { border-radius: 34px; flex-direction: column-reverse; font-size: clamp(10px, 4cqw, 15px); }

/* Seitenleiste der Vorschau */
.d-nav { display: flex; flex-direction: column; gap: .3em; width: 15.5em; padding: 1.6em .9em; background: #141416; flex-shrink: 0; transition: width .5s var(--ease-out); }
.d-logo { display: flex; align-items: center; gap: .6em; padding: 0 .8em 1.6em; font-weight: 800; font-size: 1.15em; letter-spacing: -.03em; }
.d-logo .brand-bar { width: .55em; height: 1.3em; }
.d-tab {
  display: flex; align-items: center; gap: 1em; padding: .75em .9em; border-radius: .6em; font-size: 1em; color: rgba(255,255,255,.7);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.d-tab svg { width: 1.45em; height: 1.45em; fill: currentColor; flex-shrink: 0; }
.d-tab[aria-current="true"] { color: #fff; font-weight: 700; }
.d-tab[aria-current="true"] svg { fill: var(--accent); }
.d-tab:hover, .d-tab:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.device[data-device="phone"] .d-nav {
  flex-direction: row; justify-content: space-around; width: auto; padding: .5em .4em 1.1em; gap: 0;
}
.device[data-device="phone"] .d-logo, .device[data-device="phone"] .d-tab[data-tab="guide"] { display: none; }
.device[data-device="phone"] .d-tab { flex-direction: column; gap: .25em; padding: .5em .3em; font-size: .78em; }
.device[data-device="phone"] .d-tab svg { width: 1.9em; height: 1.9em; }

.d-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.d-head { display: flex; align-items: baseline; gap: .9em; padding: 1.4em 2em .6em; }
.d-title { font-size: 2em; font-weight: 800; letter-spacing: -.04em; }
.d-source { color: #8E8E96; font-size: .9em; }
.d-clock { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.1em; }
.device[data-device="phone"] .d-head { padding: 2.6em 1.2em .4em; }
.device[data-device="phone"] .d-source { display: none; }

.d-body { flex: 1; display: flex; min-height: 0; animation: fadeIn .45s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.d-cats { width: 15em; padding: .6em .6em 1em 1.6em; overflow: auto; flex-shrink: 0; border-right: 1px solid #2A2A30; scrollbar-width: none; }
.d-cat {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .62em .8em; margin-bottom: .15em;
  border-radius: .5em; color: rgba(255,255,255,.7); font-size: .95em; text-align: left; transition: background-color .2s, color .2s;
}
.d-cat i { font-style: normal; font-size: .82em; padding: .1em .55em; border-radius: 1em; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.d-cat.sel { color: #fff; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.d-cat:focus-visible, .d-cat:hover { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.d-cat-head { padding: .9em .8em .5em; font-size: .72em; font-weight: 700; letter-spacing: .12em; color: #8E8E96; }
.device[data-device="phone"] .d-body { flex-direction: column; }
.device[data-device="phone"] .d-cats { display: flex; width: auto; gap: .5em; padding: .4em 1.2em .8em; border: 0; overflow-x: auto; }
.device[data-device="phone"] .d-cat { width: auto; white-space: nowrap; background: #1D1D21; border-radius: 2em; margin: 0; }
.device[data-device="phone"] .d-cat i, .device[data-device="phone"] .d-cat-head { display: none; }
.device[data-device="phone"] .d-cat.sel { background: #fff; color: #000; }

.d-grid {
  flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5em, 1fr)); gap: 1.2em;
  padding: 1em 2em 2em 1.6em; overflow: auto; align-content: start; scrollbar-width: none;
}
.d-grid.posters { grid-template-columns: repeat(auto-fill, minmax(8.5em, 1fr)); }
.device[data-device="phone"] .d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .4em 1.2em 1.2em; gap: .8em; }
.device[data-device="phone"] .d-grid.posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.d-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25em;
  min-width: 0; aspect-ratio: 1.05; padding: .8em .7em; border-radius: .7em; background: #141416; color: #fff; text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s; will-change: transform;
  animation: tileIn .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 28ms);
}
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.d-tile:hover, .d-tile:focus-visible { outline: none; transform: scale(1.07); box-shadow: 0 0 0 2px #fff, 0 18px 40px -12px rgba(0,0,0,.9); z-index: 2; }
.d-logo-mark {
  flex: 1; display: grid; place-items: center; width: 100%; font-weight: 900; letter-spacing: -.05em; font-size: 1.9em;
  color: var(--c); font-style: italic;
}
.d-tile b { font-size: .9em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.d-tile small { font-size: .76em; color: #8E8E96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.d-tile .bar { width: 100%; height: .18em; border-radius: 1em; background: rgba(255,255,255,.12); overflow: hidden; }
.d-tile .bar i { display: block; height: 100%; width: var(--p); background: var(--accent); }

.d-poster { position: relative; display: flex; flex-direction: column; gap: .45em; text-align: left; transition: transform .25s var(--ease-out); animation: tileIn .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 28ms); }
.d-poster-art {
  position: relative; aspect-ratio: 2 / 3; border-radius: .6em; overflow: hidden;
  background: linear-gradient(160deg, var(--a), var(--b));
  display: flex; align-items: flex-end; padding: .7em; transition: box-shadow .25s, transform .25s var(--ease-out);
}
.d-poster-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 30% 0%, rgba(255,255,255,.22), transparent 55%); }
.d-poster-art span { position: relative; z-index: 1; font-weight: 900; font-size: 1.15em; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.d-poster b { font-size: .86em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-poster small { font-size: .72em; color: #8E8E96; margin-top: -.4em; }
.d-poster:hover .d-poster-art, .d-poster:focus-visible .d-poster-art { transform: scale(1.07); box-shadow: 0 0 0 2px #fff, 0 20px 40px -12px rgba(0,0,0,.9); }
.d-poster:focus-visible { outline: none; }

/* Start-Seite der Vorschau */
.d-home { flex: 1; overflow: auto; padding: .4em 0 2em 2em; scrollbar-width: none; }
.d-row-title { margin: 1em 0 .7em; font-weight: 800; font-size: 1.05em; }
.d-row { display: flex; gap: 1em; overflow-x: auto; padding: .3em 2em .6em .2em; scrollbar-width: none; }
.d-row .d-poster { width: 8.5em; flex-shrink: 0; }
.d-row .d-tile { width: 11em; flex-shrink: 0; }
.d-hero-card {
  position: relative; display: flex; align-items: flex-end; height: 12em; margin: .2em 2em .4em 0; padding: 1.4em; border-radius: .9em; overflow: hidden;
  background: linear-gradient(110deg, #0F172A 20%, color-mix(in srgb, var(--accent) 60%, #0F172A));
  text-align: left; width: calc(100% - 2em); transition: box-shadow .25s, transform .25s var(--ease-out);
}
.d-hero-card:focus-visible, .d-hero-card:hover { outline: none; box-shadow: 0 0 0 2px #fff; transform: scale(1.01); }
.d-hero-card div b { display: block; font-size: 1.9em; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.d-hero-card div span { color: rgba(255,255,255,.75); font-size: .9em; }
.d-hero-card em { position: absolute; right: 1.4em; bottom: 1.4em; padding: .55em 1.1em; border-radius: 2em; background: var(--accent); color: var(--on-accent); font-style: normal; font-weight: 700; font-size: .9em; }

/* TV-Guide der Vorschau */
.d-guide { flex: 1; display: flex; min-height: 0; }
.d-guide-ch { width: 16em; overflow: auto; padding: .4em .6em 1em 1.6em; border-right: 1px solid #2A2A30; scrollbar-width: none; }
.d-guide-ch button { display: flex; align-items: center; gap: .7em; width: 100%; padding: .55em .6em; border-radius: .5em; text-align: left; }
.d-guide-ch button.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.d-guide-ch button:focus-visible, .d-guide-ch button:hover { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.d-guide-ch .mk { width: 2.6em; text-align: center; font-weight: 900; font-style: italic; color: var(--c); }
.d-guide-ch b { display: block; font-size: .9em; }
.d-guide-ch small { display: block; color: #8E8E96; font-size: .75em; }
.d-progs { flex: 1; overflow: auto; padding: .4em 2em 1em 1em; scrollbar-width: none; }
.d-prog { display: flex; gap: 1.2em; width: 100%; padding: .75em 1em; margin-bottom: .35em; border-radius: .5em; text-align: left; border-left: 3px solid transparent; animation: tileIn .45s var(--ease-out) backwards; animation-delay: calc(var(--i) * 40ms); }
.d-prog time { width: 7.6em; flex-shrink: 0; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.d-prog b { display: block; }
.d-prog small { color: #8E8E96; font-size: .82em; }
.d-prog.now { background: color-mix(in srgb, var(--accent) 14%, transparent); border-left-color: var(--accent); }
.d-prog.past { opacity: .45; }
.d-prog:focus-visible, .d-prog:hover { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.device[data-device="phone"] .d-guide-ch { display: none; }

/* Suche der Vorschau */
.d-search { flex: 1; padding: .6em 2em 2em; overflow: auto; }
.d-search-field { display: flex; align-items: center; gap: .7em; padding: .9em 1.1em; border-radius: .7em; background: #1D1D21; box-shadow: inset 0 0 0 2px var(--accent); font-size: 1.1em; }
.d-search-field svg { width: 1.2em; fill: #8E8E96; }
.d-search-field .caret { width: 2px; height: 1.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Player der Vorschau */
.d-player { position: absolute; inset: 0; z-index: 5; background: #000; animation: playerIn .45s var(--ease-out); }
@keyframes playerIn { from { opacity: 0; transform: scale(1.04); } }
.d-video {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 80% at var(--x1, 30%) var(--y1, 40%), color-mix(in srgb, var(--v1, #3E8BFF) 85%, transparent), transparent 70%),
    radial-gradient(50% 70% at var(--x2, 75%) var(--y2, 65%), color-mix(in srgb, var(--v2, #14B8A6) 80%, transparent), transparent 70%),
    #05060A;
  animation: drift 9s ease-in-out infinite alternate;
}
.d-video::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
@keyframes drift { 0% { filter: hue-rotate(0deg) saturate(1.1); transform: scale(1); } 100% { filter: hue-rotate(50deg) saturate(1.3); transform: scale(1.12); } }
.d-video-title { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 3.4em; font-weight: 900; letter-spacing: -.05em; color: rgba(255,255,255,.14); white-space: nowrap; }
.d-osd { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2em 2.4em; background: linear-gradient(rgba(0,0,0,.8), transparent 30%, transparent 55%, rgba(0,0,0,.9)); transition: opacity .4s; }
.d-player.hide-osd .d-osd { opacity: 0; }
.d-osd-top { display: flex; align-items: flex-start; gap: 1em; }
.d-osd-logo { font-weight: 900; font-style: italic; font-size: 1.6em; color: var(--c); width: 2.6em; }
.d-osd-top strong { display: block; font-size: 1.5em; letter-spacing: -.03em; }
.d-osd-top small { color: rgba(255,255,255,.75); }
.d-osd-clock { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-progress { height: .3em; border-radius: 1em; background: rgba(255,255,255,.2); overflow: hidden; margin-bottom: 1em; }
.d-progress i { display: block; height: 100%; width: 40%; background: var(--accent); transition: width 1s linear; }
.d-btns { display: flex; align-items: center; gap: .4em; }
.d-spacer { flex: 1; }
.d-btn { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 50%; transition: background-color .2s, transform .2s var(--ease-out); }
.d-btn svg { width: 1.6em; height: 1.6em; fill: #fff; }
.d-btn[data-act="rec"] svg { fill: #FF4D4F; }
.d-btn-big { width: 3.7em; height: 3.7em; }
.d-btn-big svg { width: 2.1em; height: 2.1em; }
.d-btn:hover, .d-btn:focus-visible { outline: none; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.12); }
.d-toast { position: absolute; top: 5.4em; right: 2.4em; padding: .7em 1.1em; border-radius: .6em; background: rgba(0,0,0,.75); font-weight: 700; font-size: 1.2em; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none; }
.d-toast.show { opacity: 1; transform: none; }
.device[data-device="phone"] .d-osd { padding: 3em 1.2em 2em; }
.device[data-device="phone"] .d-btn[data-act="audio"], .device[data-device="phone"] .d-btn[data-act="list"] { display: none; }

.demo-hint { margin-top: 44px; color: var(--dim); font-size: 14px; }
kbd { display: inline-block; min-width: 1.8em; padding: .1em .45em; margin: 0 .1em; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); font-size: .85em; text-align: center; }

/* ---------- Zahlen ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1120px; margin: 70px auto 0; padding: 0 20px;
}
.stat { padding: 26px 10px; text-align: center; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--dim); font-size: 15px; }
.stat:nth-child(2) { --d: .08s; } .stat:nth-child(3) { --d: .16s; } .stat:nth-child(4) { --d: .24s; }

/* ---------- Abschnitte ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(80px, 14vh, 150px) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.section-head { max-width: 820px; margin-bottom: 48px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.lead { margin-top: 18px; color: var(--dim); font-size: 19px; }

/* Funktionen: Bento-Raster */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 290px; padding: 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .3s, background-color .4s, opacity .8s var(--ease-out);
  transform-style: preserve-3d;
}
.card h3 { font-size: 23px; font-weight: 800; }
.card p { color: var(--dim); font-size: 16px; }
.card.in:hover, .card.in:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.card-span2 { grid-column: span 2; }
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 30px; }
.card-wide .card-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bento .card:nth-child(3n+2) { --d: .07s; } .bento .card:nth-child(3n) { --d: .14s; }

/* Kleine Animationen in den Karten (laufen nur, wenn sichtbar) */
.card > div[aria-hidden], .card .sources-visual, .card .swatches { flex-shrink: 0; }
.mini-guide, .mini-dl, .mini-rec, .mini-pip, .mini-search, .mini-lang, .mini-pin, .mini-tags { margin-bottom: auto; }
.card:not(.in) * { animation-play-state: paused !important; }

.sources-visual { position: relative; width: 300px; height: 170px; }
.src {
  position: absolute; left: 0; top: calc(var(--i) * 40px + 8px); padding: 6px 12px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; z-index: 1;
  animation: srcPulse 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * .4s);
}
@keyframes srcPulse { 0%, 70%, 100% { border-color: var(--line); } 20% { border-color: var(--accent); color: var(--accent); } }
.src-hub { position: absolute; right: 50px; top: 52px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #0A0A0B; box-shadow: 0 0 0 1px var(--line), 0 0 40px -6px color-mix(in srgb, var(--accent) 60%, transparent); z-index: 1; }
.src-hub .brand-bar { width: 10px; height: 30px; }
.src-lines { position: absolute; inset: 0; width: 300px; height: 170px; }
.src-lines path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; opacity: .6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

.mini-guide { display: flex; flex-direction: column; gap: 6px; }
.mg-row { position: relative; display: flex; gap: 12px; padding: 8px 12px; border-radius: 9px; font-size: 14px; background: var(--surface2); overflow: hidden; }
.mg-row i { font-style: normal; color: var(--dim); font-variant-numeric: tabular-nums; }
.mg-row.now { background: color-mix(in srgb, var(--accent) 16%, var(--surface2)); }
.mg-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; }
.mg-bar span { display: block; height: 100%; background: var(--accent); animation: grow 6s linear infinite; transform-origin: left; }
@keyframes grow { from { transform: scaleX(.15); } to { transform: scaleX(.95); } }

.dl-ring { position: relative; display: grid; place-items: center; width: 92px; height: 92px; }
.dl-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dl-ring circle { fill: none; stroke: var(--surface2); stroke-width: 3; }
.dl-ring .dl-prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; animation: dl 3.6s var(--ease) infinite; }
@keyframes dl { 0% { stroke-dashoffset: 94.25; } 75%, 100% { stroke-dashoffset: 0; } }
.dl-ring b { font-size: 15px; }

.mini-rec { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 100px; background: var(--surface2); align-self: flex-start; font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF4D4F; animation: recPulse 1.4s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .25; transform: scale(.8); } }

.pip-screen { position: relative; display: block; width: 120px; height: 200px; border-radius: 22px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; }
.pip-win { position: absolute; width: 70px; height: 40px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #14B8A6); box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); animation: pip 5s var(--ease) infinite; }
@keyframes pip { 0%, 15% { left: 0; top: 0; width: 120px; height: 68px; border-radius: 0; } 40%, 70% { left: 42px; top: 146px; width: 70px; height: 40px; border-radius: 7px; } 100% { left: 0; top: 0; width: 120px; height: 68px; border-radius: 0; } }

.mini-search { display: flex; flex-direction: column; gap: 10px; }
.ms-field { display: inline-flex; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 10px; background: var(--surface2); box-shadow: inset 0 0 0 2px var(--accent); font-family: ui-monospace, monospace; font-size: 14px; }
.ms-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: type 4s steps(10) infinite; }
@keyframes type { 0% { width: 0; } 40%, 100% { width: 10ch; } }
.ms-caret { width: 2px; height: 16px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.ms-hit { align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; font-size: 14px; animation: hit 4s var(--ease) infinite; }
@keyframes hit { 0%, 42% { opacity: 0; transform: translateY(6px); } 52%, 100% { opacity: 1; transform: none; } }

.mini-lang { position: relative; height: 46px; overflow: hidden; }
.mini-lang span { position: absolute; font-size: 32px; font-weight: 800; letter-spacing: -.04em; opacity: 0; animation: lang 6s var(--ease) infinite; }
.mini-lang span:nth-child(2) { animation-delay: 2s; } .mini-lang span:nth-child(3) { animation-delay: 4s; }
@keyframes lang { 0% { opacity: 0; transform: translateY(100%); } 8%, 28% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-100%); } }

/* Neue Funktionen: Knöpfe wie in der App, der erste in Akzentfarbe */
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tags span { padding: 7px 12px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.mini-tags span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }

.mini-pin { display: flex; gap: 10px; }
.mini-pin i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dim); animation: pin 3.2s infinite; }
.mini-pin i:nth-child(2) { animation-delay: .25s; } .mini-pin i:nth-child(3) { animation-delay: .5s; } .mini-pin i:nth-child(4) { animation-delay: .75s; }
@keyframes pin { 0%, 15% { background: transparent; border-color: var(--dim); } 25%, 80% { background: var(--accent); border-color: var(--accent); } 100% { background: transparent; } }

.card-accent { background: linear-gradient(120deg, var(--surface) 30%, color-mix(in srgb, var(--accent) 16%, var(--surface))); }
.swatches { display: grid; grid-template-columns: repeat(4, 44px); gap: 12px; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--c); transition: transform .3s var(--ease-out), box-shadow .3s; }
.swatch:hover, .swatch:focus-visible { transform: scale(1.15); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.swatch-custom { background: conic-gradient(#E5484D, #E5A23A, #30A46C, #14B8A6, #3E8BFF, #8E4EC6, #E93D82, #E5484D); cursor: pointer; overflow: hidden; }
.swatch-custom:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch-custom input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }

/* So geht's */
.how-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 21px; top: 30px; width: 2px; height: calc((100% - 60px) * var(--progress, 0)); background: var(--accent); transition: height .6s var(--ease-out); }
.step button { position: relative; z-index: 1; display: flex; gap: 20px; width: 100%; padding: 18px 16px 18px 0; text-align: left; border-radius: 16px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--surface2); border: 2px solid var(--line); font-weight: 800; transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease-out); }
.step b { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; transition: color .3s; }
.step small { display: block; font-size: 16px; color: var(--dim); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s; }
.step.is-active .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.step.is-active small { max-height: 140px; opacity: 1; }
.step:not(.is-active) b { color: var(--dim); }
.how-stage { position: relative; display: grid; min-height: 380px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
/* Alle Stufen in derselben Gitterzelle: Rahmen wächst mit der höchsten */
.stage { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 34px; opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); pointer-events: none; }
.stage.is-active { opacity: 1; transform: none; pointer-events: auto; }
.form-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.form-tabs button { padding: 8px 14px; border-radius: 100px; background: var(--surface2); font-weight: 600; font-size: 14px; transition: background-color .25s, color .25s; }
.form-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.form-fields { display: flex; flex-direction: column; gap: 10px; }
.field { padding: 10px 14px; border-radius: 10px; background: var(--surface2); animation: fadeIn .4s var(--ease-out) backwards; }
.field label { display: block; font-size: 12px; color: var(--dim); }
.field span { font-family: ui-monospace, monospace; font-size: 15px; }
.field span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; opacity: var(--caret, 0); }
.form-btn { align-self: flex-start; padding: 12px 20px; border-radius: 100px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.sort-in { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-in span { padding: 6px 11px; border-radius: 8px; background: var(--surface2); font-size: 13px; font-family: ui-monospace, monospace; }
.stage-1.is-active .sort-in span { animation: sortOut 2.4s var(--ease-out) infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes sortOut { 0%, 10% { opacity: 1; transform: none; } 45%, 100% { opacity: .25; transform: translateY(26px) scale(.9); } }
.sort-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sort-out div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface2); }
.sort-out b { font-size: 15px; color: var(--accent); }
.sort-out span { padding: 6px 9px; border-radius: 7px; background: var(--surface); font-size: 13px; }
.stage-1.is-active .sort-out span { animation: sortIn 2.4s var(--ease-out) infinite; }
@keyframes sortIn { 0%, 40% { opacity: 0; transform: translateY(-14px); } 60%, 100% { opacity: 1; transform: none; } }
.mini-player { display: flex; flex-direction: column; gap: 14px; }
.mp-video { aspect-ratio: 16 / 9; border-radius: 14px; background: radial-gradient(60% 80% at 30% 40%, color-mix(in srgb, var(--accent) 80%, transparent), transparent 70%), radial-gradient(50% 70% at 75% 65%, #14B8A6cc, transparent 70%), #05060A; animation: drift 7s ease-in-out infinite alternate; }
.mp-bar { height: 5px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.mp-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: grow 5s linear infinite; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-chips span { padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.stage-2.is-active .mp-chips span { animation: fadeIn .5s var(--ease-out) backwards; }
.mp-chips span:nth-child(2) { animation-delay: .08s !important; } .mp-chips span:nth-child(3) { animation-delay: .16s !important; } .mp-chips span:nth-child(4) { animation-delay: .24s !important; } .mp-chips span:nth-child(5) { animation-delay: .32s !important; } .mp-chips span:nth-child(6) { animation-delay: .4s !important; }

/* Fernbedienung */
.remote-grid { display: grid; grid-template-columns: auto 1fr; gap: 70px; align-items: center; }
.remote {
  display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, 76px) 20px 60px; gap: 8px; padding: 34px 28px 30px;
  border-radius: 60px; background: linear-gradient(170deg, #26262B, #121215); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.rk { display: grid; place-items: center; border-radius: 50%; background: #2C2C32; color: #F5F5F7; font-weight: 800; transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
.rk svg { width: 28px; height: 28px; fill: currentColor; }
.rk-up { grid-column: 2; grid-row: 1; } .rk-left { grid-column: 1; grid-row: 2; } .rk-ok { grid-column: 2; grid-row: 2; background: #3A3A42; font-size: 18px; }
.rk-right { grid-column: 3; grid-row: 2; } .rk-down { grid-column: 2; grid-row: 3; }
.rk-back { grid-column: 1; grid-row: 5; border-radius: 30px; } .rk-menu { grid-column: 2; grid-row: 5; border-radius: 30px; } .rk-num { grid-column: 3; grid-row: 5; border-radius: 30px; font-size: 13px; }
.rk:hover, .rk:focus-visible, .rk.on { background: var(--accent); color: var(--on-accent); transform: scale(.94); outline: none; box-shadow: 0 0 24px -4px var(--accent); }
.remote-info h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; transition: opacity .3s; }
.remote-info > p:not(.eyebrow) { color: var(--dim); font-size: 18px; max-width: 520px; }
.keys { margin-top: 30px; border-collapse: collapse; font-size: 15px; }
.keys th { text-align: left; padding: 8px 22px 8px 0; font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; }
.keys td { padding: 8px 0; color: var(--dim); border-bottom: 1px solid var(--line); }
.keys tr:first-child td { border-top: 1px solid var(--line); }
.rk-flash { animation: flash .4s var(--ease-out); }
@keyframes flash { from { opacity: 0; transform: translateY(8px); } }

/* Download */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 30px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s, opacity .8s var(--ease-out);
}
.platform svg { width: 42px; height: 42px; fill: var(--text); margin-bottom: 18px; }
.platform b { font-size: 21px; letter-spacing: -.02em; }
.platform span { color: var(--dim); font-size: 15px; }
.platform.in:hover, .platform.in:focus-visible { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.pf-badge { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 100px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 12px; font-weight: 700; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease-out); }
.platform.mine { border-color: var(--accent); }
.platform.mine .pf-badge { opacity: 1; transform: none; }
.platform.mine svg { fill: var(--accent); }
.platforms .platform:nth-child(2) { --d: .07s; } .platforms .platform:nth-child(3) { --d: .14s; }
.linux-alt { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--dim); font-size: 15px; }
.linux-alt a { color: var(--text); text-underline-offset: 3px; }
.install { display: grid; gap: 10px; margin-top: 34px; }

details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, background-color .4s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; border-radius: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 10px; height: 10px; flex-shrink: 0; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details > :not(summary) { margin: 0 22px 20px; color: var(--dim); }
details[open] > :not(summary) { animation: fadeIn .4s var(--ease-out); }
details ol { padding-left: 20px; } details li { margin: 6px 0; }
pre { padding: 16px; border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; overflow-x: auto; }
code { font-size: .92em; }
.faq { display: grid; gap: 10px; max-width: 860px; }

/* Schluss */
.final { max-width: 900px; margin: clamp(90px, 15vh, 160px) auto 0; padding: 0 20px; text-align: center; }
.final-mark { display: inline-flex; gap: 14px; margin-bottom: 28px; }
.final-mark .brand-bar { width: 14px; height: 64px; border-radius: 5px; }
.final-mark svg { width: 52px; height: 64px; fill: var(--text); }
.final.in .final-mark svg { animation: triBounce 2.4s var(--ease-out) infinite; }
@keyframes triBounce { 0%, 60%, 100% { transform: none; } 75% { transform: translateX(10px) scaleX(1.12); } }
.final h2 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -.05em; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; max-width: 1200px; margin: 110px auto 0; padding: 30px max(20px, env(safe-area-inset-right)) calc(50px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.footer p { flex: 1; min-width: 240px; }
.footer .brand { font-size: 16px; color: var(--text); }

/* ---------- Anpassung an Geräte ---------- */
/* Zu schmal für alle Menüpunkte (auch Handy quer mit Kamera-Ausschnitt): ausblenden statt umbrechen */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .how-grid, .remote-grid { grid-template-columns: 1fr; gap: 40px; }
  .remote { justify-self: center; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav .btn span { display: none; }
  .intro { transform: scale(.72); margin-bottom: 12px; }
  .bento { grid-template-columns: 1fr; }
  .card-span2 { grid-column: auto; }
  .card-wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .sources-visual { transform: scale(.9); transform-origin: left; }
  .stats { grid-template-columns: 1fr 1fr; }
  .device-switch button { padding: 8px 13px; font-size: 14px; }
  .remote { grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px) 14px 54px; }
  .sort-out { grid-template-columns: 1fr; }
  .demo-hint { display: none; }
}
/* Fernseher (großer Bildschirm oder TV-Browser): größer, ruhiger */
@media (min-width: 1800px) { html { font-size: 112%; } body { font-size: 19px; } }
.tv body { font-size: 20px; }
.tv .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.tv :focus-visible, .tv :focus { outline: 4px solid var(--accent); outline-offset: 4px; }
.tv .d-video { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro-tri { display: none; }
}
.stage-1 { gap: 40px; }

/* Linux: Paketformat wählen */
.linux-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 26px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.linux-dialog[open] { animation: dlgIn .45s var(--ease-out); }
.linux-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); animation: fadeOnly .3s; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fadeOnly { from { opacity: 0; } }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.ld-head h3 { font-size: 24px; font-weight: 800; }
.ld-close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); }
.ld-close svg { width: 18px; fill: currentColor; }
.ld-sub { margin: 8px 0 18px; color: var(--dim); }
.ld-options { display: grid; gap: 10px; }
.ld-opt {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--surface2); border: 2px solid transparent; transition: border-color .25s, transform .3s var(--ease-out);
}
.ld-opt b { font-size: 18px; }
.ld-opt span { color: var(--dim); font-size: 14px; }
.ld-opt code { margin-top: 6px; font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; }
.ld-opt:hover, .ld-opt:focus-visible { border-color: var(--accent); transform: translateX(4px); outline: none; }
.ld-rec { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 100px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 12px; font-weight: 700; display: none; }
.ld-opt.rec { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.ld-opt.rec .ld-rec { display: inline-block; }

/* ---------- An Fernseher senden ---------- */
.send-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.send-points li { color: var(--dim); font-size: 17px; padding-left: 30px; position: relative; }
.send-points li b { color: var(--text); }
.send-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.send-stage { padding: 32px; align-content: center; gap: 26px; }
.send-tv { display: flex; gap: 24px; align-items: center; padding: 22px; border-radius: 18px; background: var(--screen); color: #F5F5F7; border: 1px solid var(--line); }
.link-qr { width: 132px; height: 132px; flex: none; border-radius: 12px; }
.send-tv small { display: block; color: #8E8E96; font-weight: 600; margin-bottom: 6px; }
.send-tv code { display: block; white-space: nowrap; font: 800 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 3px; background: #1D1D21; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; }
.send-wait { display: flex; gap: 8px; align-items: center; color: #8E8E96; font-size: 14px; }
.send-wait i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: send-spin .8s linear infinite; }
.send-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.send-steps li { display: flex; gap: 10px; align-items: center; color: var(--dim); opacity: .35; animation: send-step 8s infinite; }
.send-steps li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: #3DD68C; }
.send-steps li:nth-child(2) { animation-delay: .8s; }
.send-steps li:nth-child(3) { animation-delay: 1.6s; }
.send-steps li:nth-child(4) { animation-delay: 2.4s; }
@keyframes send-step { 0%, 8% { opacity: .35; color: var(--dim); } 14%, 85% { opacity: 1; color: var(--text); } 100% { opacity: .35; } }
@keyframes send-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .send-steps li, .send-wait i { animation: none; opacity: 1; } }
@media (max-width: 560px) { .send-tv { flex-direction: column; text-align: center; } .send-wait { justify-content: center; } }

/* ============ Neu in 1.7.0: Geräte-Check ============ */
.check-stage { padding: 30px; align-content: center; gap: 22px; }
.ck-card { display: flex; gap: 26px; align-items: center; padding: 24px; border-radius: 18px; background: var(--screen); color: #F5F5F7; border: 1px solid var(--line); }
.ck-ring { position: relative; flex: none; width: 128px; height: 128px; display: grid; place-items: center; align-content: center; }
.ck-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ck-ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.ck-ring .ck-prog { stroke: #3DD68C; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; }
.check-stage.in .ck-prog { animation: ck-fill 8s var(--ease-out) infinite; }
.ck-ring b { font-size: 34px; font-weight: 900; line-height: 1; }
.ck-ring b small { font-size: 15px; color: #8E8E96; font-weight: 700; }
.ck-ring span { color: #3DD68C; font-size: 13px; font-weight: 700; margin-top: 4px; }
.ck-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; min-width: 0; }
.ck-rows li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; opacity: .3; }
.ck-rows li::before { content: "✓"; grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: #3DD68C; transform: scale(.4); }
.ck-rows b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-rows i { font-style: normal; font-size: 12px; color: #8E8E96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-stage.in .ck-rows li { animation: ck-row 8s infinite; }
.check-stage.in .ck-rows li::before { animation: ck-pop 8s infinite; }
.ck-rows li:nth-child(2), .ck-rows li:nth-child(2)::before { animation-delay: .35s !important; }
.ck-rows li:nth-child(3), .ck-rows li:nth-child(3)::before { animation-delay: .7s !important; }
.ck-rows li:nth-child(4), .ck-rows li:nth-child(4)::before { animation-delay: 1.05s !important; }
.ck-rows li:nth-child(5), .ck-rows li:nth-child(5)::before { animation-delay: 1.4s !important; }
.ck-rows li:nth-child(6), .ck-rows li:nth-child(6)::before { animation-delay: 1.75s !important; }
.ck-modes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-modes span { padding: 8px 16px; border-radius: 100px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.ck-modes span.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ck-modes em { font-style: normal; color: var(--dim); font-size: 14px; }
@keyframes ck-fill { 0%, 6% { stroke-dashoffset: 97.4; } 40%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 97.4; } }
@keyframes ck-row { 0%, 4% { opacity: .3; } 10%, 88% { opacity: 1; } 100% { opacity: .3; } }
@keyframes ck-pop { 0%, 4% { transform: scale(.4); } 9% { transform: scale(1.25); } 13%, 88% { transform: scale(1); } 100% { transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .ck-rows li, .ck-rows li::before, .ck-prog { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; } }
@media (max-width: 560px) { .ck-card { flex-direction: column; align-items: stretch; } .ck-ring { align-self: center; } }

/* Ruhige Flächen und Knöpfe wie in der App */
.stat { border-top-color: color-mix(in srgb, var(--text) 12%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--text) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
