/* ==========================================================================
   StreamGuard · Website · Variante „Signal“
   Startseite, Befehlsreferenz und Rechtstexte. Baut auf tokens.css und ui.css
   auf (LED, Tasten, Tags, Chatzeilen, Kreuzschiene) und ergänzt die Bühne:
   Navy-Verläufe, Programmblau als Licht, Glasplatten, große Display-Typo,
   Laufband, Kapitelnummern. Dashboard-Tokens bleiben unberührt.
   ========================================================================== */

/* ---------- Website-eigene Werte ------------------------------------------
   Nur Bühne, Illustration und Beispieldaten – alle UI-Farben kommen aus
   tokens.css. Hex-Werte stehen ausschließlich in diesem Block (test/site.test.js). */
:root {
  /* Namensfarben im Beispiel-Chat (jede ≥ 4,5:1 auf --panel) */
  --nm-0: #aab4c0;
  --nm-1: #e7e9ed;
  --nm-2: #e39a66;
  --nm-3: #6fc6a2;
  --nm-4: #c3a0e6;
  --nm-5: #ee8594;
  --nm-6: #7cc1ea;
  --nm-7: #e4c866;
  --nm-8: #aab4c0;
  --nm-9: #8e99a6;

  /* Bühne: Navy nach Schwarz, Programmblau als Licht, Cyan als Kante */
  --stage-0: #05070c;
  --stage-1: #0b1220;
  --stage-2: #10192c;
  --stage-3: #162540;
  --cyan: #6fd3ff;
  --cyan-ink: #a5e3ff;
  --white: #ffffff;
  --glow: rgba(91, 141, 239, 0.5);
  --glow-2: rgba(111, 211, 255, 0.22);
  --glow-3: rgba(91, 141, 239, 0.14);
  --glass: rgba(14, 18, 26, 0.86);
  --glass-2: rgba(16, 20, 28, 0.9);
  --glass-line: rgba(255, 255, 255, 0.085);
  --glass-hi: rgba(255, 255, 255, 0.05);
  --rim: rgba(91, 141, 239, 0.38);
  --rim-soft: rgba(91, 141, 239, 0.16);
  --shadow-float: 0 36px 90px rgba(0, 0, 0, 0.62), 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --hair: linear-gradient(90deg, var(--pgm) 0%, var(--cyan) 100%);
  --num-fill: rgba(91, 141, 239, 0.07);
  --num-line: rgba(143, 177, 245, 0.24);
  /* Kapitelnummern und Modul-Kürzel: Licht fällt von oben auf die Ziffer */
  --num-grad: linear-gradient(180deg, rgba(143, 177, 245, 0.3) 0%, rgba(143, 177, 245, 0.1) 48%, rgba(143, 177, 245, 0.02) 86%);
  --step-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 18%, rgba(143, 177, 245, 0.5) 100%);
  --deck-well: rgba(255, 255, 255, 0.018);
  --nav-glass: rgba(5, 7, 12, 0.72);
  --on-blue: #06101f;
  --on-blue-2: rgba(6, 16, 31, 0.72);
  /* Kleine Beschriftung auf erhabenen Flächen (Tastenkappen): wie --ink-3, aber ≥ 4,5:1 auf --key */
  --ink-3s: #8b93a1;

  /* Szenenbild im Monitor */
  --scene-sky: #111b2e;
  --scene-haze: #1d2d46;
  --scene-far: #1b2740;
  --scene-near: #141f31;
  --scene-floor: #090e17;
  --scene-cam: #1f252e;
  --scene-cam-2: #2b323c;
  --scene-cam-3: #39414c;
  --scene-cam-4: #4f5864;
  --boss-ink: #e2d9c8;
  --boss-line: #7a634c;
  --boss-bg: #1c1512;
  --boss-hp: #b24a3e;

  /* Overlay-Platten wie overlay.html */
  --ov-plate: rgba(6, 8, 12, 0.88);
  --ov-line: rgba(255, 255, 255, 0.1);
  --ov-rim-out: rgba(0, 0, 0, 0.5);

  /* Texturen */
  --grid-line: rgba(255, 255, 255, 0.028);
  --scan-line: rgba(255, 255, 255, 0.016);
  --alpha-a: #14171c;
  --alpha-b: #191c22;
  --zone-1: rgba(229, 84, 76, 0.4);
  --zone-2: rgba(229, 84, 76, 0.2);
  --zone-3: rgba(227, 163, 60, 0.26);
  --zone-4: rgba(65, 192, 126, 0.16);
  --zone-5: rgba(65, 192, 126, 0.32);
  --placeholder-wash: rgba(227, 163, 60, 0.1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E");

  /* Website-Typo */
  --t-hero: 600 clamp(52px, 7.4vw, 104px)/0.92 var(--f-cond);
  --t-chap: 600 clamp(38px, 4.4vw, 60px)/1 var(--f-cond);
  --t-m: 600 clamp(25px, 2.2vw, 31px)/1.12 var(--f-cond);
  --t-num: 600 clamp(96px, 11vw, 160px)/0.84 var(--f-cond);
  --num-cap: clamp(67px, 7.7vw, 112px); /* sichtbare Ziffernhöhe ≈ 0,7 × Schriftgröße */
  --num-grad-hi: linear-gradient(180deg, rgba(165, 196, 250, 0.62) 0%, rgba(143, 177, 245, 0.2) 55%, rgba(143, 177, 245, 0.04) 100%);
  --t-page: 600 clamp(48px, 6.6vw, 92px)/0.94 var(--f-cond);
  --wrap: 1320px;
  --nav-h: 64px;
  --i: 0;
}

/* ---------- Basis ------------------------------------------------------------ */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body.site {
  font: 400 17px/1.6 var(--f-sans);
  background: var(--bg);
  overflow-x: hidden;
}
.site a { color: inherit; }
.site ::selection { background: var(--pgm); color: var(--on-pgm); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.only-s { display: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: var(--z-skip);
  padding: 12px 14px;
  border-radius: var(--r1);
  background: var(--pgm);
  color: var(--on-pgm);
  font-weight: 500;
  text-decoration: none;
}
.site .skip:focus { top: 12px; color: var(--on-pgm); }

/* Typo-Skala der Website
   Hero        Condensed 600  clamp(54→112)/0.92
   Kapitel     Condensed 600  clamp(38→60)/1
   Modul       Condensed 600  clamp(25→31)/1.12
   Lead        Sans 400       20/1.5
   Body        Sans 400       17/1.6
   Small       Sans 400       14/1.5
   Label       Mono 500       11, versal                                       */
.site h1,
.site h2,
.site h3 { text-wrap: balance; }
.site p,
.site li,
.site dd { text-wrap: pretty; }
.h-xl { font: var(--t-page); letter-spacing: -0.026em; color: var(--white); }
.h-l { font: var(--t-chap); letter-spacing: -0.022em; color: var(--white); }
.h-m { font: var(--t-m); letter-spacing: -0.012em; color: var(--white); }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.ic { font: 500 0.88em/1 var(--f-mono); color: var(--pgm-ink); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- Marke, Buttons ----------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 20px/1 var(--f-cond);
  letter-spacing: -0.008em;
  color: var(--white);
  text-decoration: none;
}
.site .brand:hover { color: var(--white); }
.brand__mark { position: relative; flex: none; width: 15px; height: 15px; border: 1.5px solid var(--white); }
.brand__mark::after { content: ''; position: absolute; inset: 2.5px; background: var(--pgm); box-shadow: 0 0 10px var(--glow); }
.brand--sm { font-size: 15px; gap: 8px; }
.brand--sm .brand__mark { width: 11px; height: 11px; }
.brand--sm .brand__mark::after { inset: 2px; box-shadow: none; }

.site .btn { border-radius: 6px; }
.site .btn--xl { height: 52px; padding: 0 24px; font-size: 16px; gap: 10px; }
.site a.btn--primary,
.site a.btn--primary:hover { color: var(--on-pgm); }
.site .btn--xl { font-weight: 600; }
.site .btn--primary { box-shadow: 0 0 0 1px var(--pgm), 0 12px 30px rgba(91, 141, 239, 0.3); }
.site .btn--primary:hover { box-shadow: 0 0 0 1px var(--pgm-hover), 0 14px 36px rgba(91, 141, 239, 0.42); }
.site .btn--line { background: var(--glass-hi); border-color: var(--glass-line); box-shadow: none; color: var(--white); }
.site .btn--line:hover { background: var(--key-hi); border-color: var(--line-3); }
.site .btn--inv { background: var(--white); border-color: var(--white); color: var(--on-blue); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.site .btn--inv:hover { background: var(--cyan-ink); border-color: var(--cyan-ink); color: var(--on-blue); }
.site .btn--ghost-l { background: transparent; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; color: var(--white); }
.site .btn--ghost-l:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn .arr { font-family: var(--f-mono); font-size: 13px; opacity: 0.75; }

/* ---------- Navigation ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-bridge);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--glass-line);
  transition: box-shadow var(--dur-2), background-color var(--dur-2);
}
.nav.is-scrolled { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4); }
.nav__in { position: relative; display: flex; align-items: center; gap: var(--s6); height: var(--nav-h); }
.nav__links { display: flex; gap: var(--s5); margin-left: var(--s4); }
.nav__links a,
.nav__login { position: relative; padding-block: 6px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color var(--dur-1); }
.site .nav__links a:hover,
.site .nav__login:hover { color: var(--white); }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hair); }
.nav__act { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.site .nav__cta { height: 38px; padding: 0 16px; font-size: 14px; }

/* Menü auf schmalen Bildschirmen: details/summary, ohne Skript bedienbar */
.mnav { display: none; position: static; }
.mnav__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  background: var(--glass-hi);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.mnav__btn::-webkit-details-marker { display: none; }
.mnav__btn:hover,
.mnav[open] .mnav__btn { background: var(--key-hi); color: var(--white); }
.mnav__panel {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  top: calc(100% + 10px);
  z-index: var(--z-menu);
  display: grid;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-float);
}
.mnav__panel a { padding: 11px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.site .mnav__panel a:hover { background: var(--key); color: var(--white); }

/* ---------- Bühne: Verläufe, Licht, Korn ---------------------------------------- */

.stage { position: relative; isolation: isolate; }
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.07;
  mix-blend-mode: screen;
}
.stage > .wrap { position: relative; z-index: 1; }
.stage__bloom {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 30% at 46% 52%, var(--glow) 0%, transparent 72%),
    radial-gradient(ellipse 30% 22% at 88% 40%, var(--glow-2) 0%, transparent 70%),
    radial-gradient(ellipse 34% 24% at 8% 18%, var(--glow-3) 0%, transparent 70%),
    radial-gradient(ellipse 60% 24% at 50% 100%, var(--glow-3) 0%, transparent 70%);
  animation: bloomIn 1.6s var(--ease-out) both;
}
@keyframes bloomIn { from { opacity: 0; } }

/* ---------- Hero ------------------------------------------------------------------- */

.hero {
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 6vw, 80px);
  background:
    linear-gradient(to bottom, var(--stage-1) 0%, var(--stage-0) 55%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
}
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: clamp(32px, 4vw, 64px); row-gap: var(--s6); align-items: end; }
.hero__head { grid-column: 1; min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s5); color: var(--pgm-ink); animation: riseIn 0.7s var(--ease-out) both; }
.hero__h { margin: 0; font: var(--t-hero); letter-spacing: -0.03em; color: var(--white); display: grid; }
.hero__l1,
.hero__l2 { display: block; animation: riseIn 0.9s var(--ease-out) both; }
.hero__l1 { animation-delay: 0.05s; }
.hero__l2 {
  padding-right: 0.08em;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
  background: linear-gradient(90deg, var(--pgm-ink) 0%, var(--cyan) 55%, var(--cyan-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation-delay: 0.14s;
}
.hero__side { grid-column: 2; min-width: 0; padding-bottom: 10px; animation: riseIn 0.9s var(--ease-out) 0.26s both; }
.hero__lead { font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__fine { margin-top: var(--s4); }
.noscript-note { margin-top: var(--s3); color: var(--ink-3); font-size: 14px; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Szene: Brücke, Programmbild, Chat, Pegel, Pult --------------------------- */

.scene {
  position: relative;
  margin-top: clamp(56px, 6vw, 96px);
  font-size: 13.5px;
  line-height: 1.45;
  animation: sceneIn 1.1s var(--ease-out) 0.3s both;
}
@keyframes sceneIn { from { opacity: 0; transform: translateY(28px) scale(0.985); } to { opacity: 1; transform: none; } }
.scene__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: auto auto;
}

/* Brücke */
.cbar {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-height: 50px;
  padding: 8px 18px;
  border: 1px solid var(--glass-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--glass-2);
  font: 500 12.5px/1 var(--f-mono);
  color: var(--ink-2);
}
.cbar::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: 12px 12px 0 0; background: var(--hair); opacity: 0.9; }
.cbar__chan { color: var(--white); }
.cbar__tc { display: inline-flex; align-items: baseline; gap: 10px; }
.cbar .tc { font-size: 15px; color: var(--white); }
.cbar__sp { flex: 1; }
.cbar .st { color: var(--ink-2); }

/* Programmbild */
.frame {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--stage-0);
  box-shadow: 0 0 140px rgba(91, 141, 239, 0.16), var(--shadow-card);
}
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: var(--scene-floor); }
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45) 100%),
    repeating-linear-gradient(to bottom, var(--scan-line) 0, var(--scan-line) 1px, transparent 1px, transparent 3px);
}
.scene-art { position: absolute; inset: 0; }
.scene__sky { position: absolute; inset: 0 0 45% 0; background: linear-gradient(to bottom, var(--scene-sky), var(--scene-haze)); }
.scene__sky::before { content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 100%; background: radial-gradient(ellipse 50% 60% at 50% 70%, var(--glow-3), transparent 70%); }
.scene__sky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, var(--glow-3), transparent); }
.ridge { position: absolute; left: 0; right: 0; }
.ridge--far { bottom: 44.8%; height: 26%; background: var(--scene-far); clip-path: polygon(0 100%, 0 64%, 7% 50%, 13% 58%, 21% 30%, 29% 52%, 38% 40%, 47% 63%, 55% 34%, 64% 55%, 73% 22%, 82% 47%, 91% 36%, 100% 50%, 100% 100%); }
.ridge--near { bottom: 44.8%; height: 15%; background: var(--scene-near); clip-path: polygon(0 100%, 0 40%, 10% 70%, 18% 45%, 30% 76%, 41% 52%, 50% 80%, 62% 48%, 74% 72%, 86% 40%, 100% 66%, 100% 100%); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to bottom, var(--scene-near), var(--scene-floor) 60%), repeating-linear-gradient(to bottom, var(--scan-line) 0 1px, transparent 1px 7px); background-blend-mode: screen; }
.boss { position: absolute; top: 4cqw; left: 32cqw; right: 32cqw; text-align: center; color: var(--boss-ink); }
.boss span { display: block; margin-bottom: 0.9cqw; font: italic 500 1.7cqw/1 'IBM Plex Serif', Georgia, serif; letter-spacing: 0.14em; text-transform: uppercase; }
.boss__bar { height: 0.8cqw; border: 1px solid var(--boss-line); background: var(--boss-bg); }
.boss__bar i { display: block; width: 38%; height: 100%; background: var(--boss-hp); }
.cam { position: absolute; left: 3cqw; top: 3cqw; width: 20cqw; aspect-ratio: 4 / 3; overflow: hidden; border: 0.3cqw solid var(--void); border-radius: 0.4cqw; background: var(--scene-cam); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.5); }
.cam svg { display: block; width: 100%; height: 100%; }
.cam__bg { fill: var(--scene-cam); }
.cam__shelf { fill: var(--scene-cam-2); }
.cam__box { fill: var(--scene-cam-2); }
.cam__body { fill: var(--scene-cam-3); }
.cam__set { fill: none; stroke: var(--scene-cam-4); stroke-width: 3; }
.cam__ear { fill: var(--scene-cam-4); }
.umd {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 14px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--stage-0);
  border-top: 1px solid var(--glass-line);
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.umd__t { display: inline-flex; align-items: center; gap: 7px; color: var(--pgm-ink); }
.umd__t::before { content: ''; width: 10px; height: 6px; background: var(--pgm); box-shadow: 0 0 8px var(--glow); }
.umd__r { margin-left: auto; color: var(--ink-3); }
/* Im Hero liegt der Chat über dem rechten Rand des Programmbilds: Beschriftung davor halten */
.frame .umd { padding-right: 112px; }

/* Glasplatten */
.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-float), inset 0 1px 0 var(--glass-hi);
}
.plate::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(160deg, var(--rim) 0%, transparent 35%, transparent 70%, var(--glow-2) 100%);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask-composite: exclude;
  pointer-events: none;
}
.plate__head {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--glass-line);
}
.plate__legend { display: inline-flex; align-items: center; gap: 6px; }
.plate__win {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 64px);
  mask-image: linear-gradient(to bottom, transparent 0, black 64px);
}
.plate__win .chatlog { padding: 0 10px 12px 16px; font-size: 14px; }
.plate__win .msg { grid-template-columns: 62px minmax(0, 1fr); padding: 4px 8px 4px 0; }
.plate__win .msg__time { line-height: 20px; }
.plate__win .msg--bot { border-radius: 0 6px 6px 0; }
.plate__foot {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--glass-line);
  font: 400 12px/1.45 var(--f-mono);
  color: var(--ink-2);
}
.plate__foot-l { display: block; }
.plate__caps { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.plate__caps .icon { width: 14px; height: 14px; flex: none; }

.plate--chat {
  z-index: 3;
  grid-column: 2;
  grid-row: 2;
  margin: 24px 0 -56px -96px;
}
/* Höhe kommt vom Programmbild, nicht von der Länge des Chats */
.plate--chat .plate__win { contain: size; }

/* Bot-Antworten: Farbmuster wie .msg--bot */
.sw { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 6px; }
.sw--bot { background: var(--pgm-wash); box-shadow: inset 2px 0 0 var(--pgm); }

/* Chronik, klein (unter dem Chat) */
.chron { margin: 0; padding: 0; list-style: none; }
.chron li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.chron__t { font: 400 12px/1.6 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 1; }
.chron__x .tag { margin-right: 4px; vertical-align: 1px; }
.chron li.is-new { animation: siteIn var(--dur-3) ease-out; }
.chron--mini { overflow: hidden; }
.chron--mini li:nth-child(n + 3) { display: none; }
.chron--mini li { padding: 3px 0; border-bottom: 0; font-size: 12.5px; color: var(--ink-2); grid-template-columns: 40px minmax(0, 1fr); }
.chron--mini li .chron__x { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chron--mini .chron__t { font-size: 11.5px; }

/* Pegel: LED-Leitern (ui.css .meter--ladder) */
.meters { display: grid; grid-template-columns: 28px repeat(4, minmax(0, 1fr)); gap: 0 6px; height: 176px; padding: 16px 14px 14px; }
.scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 4px 60px 0;
  font: 400 10px/1 var(--f-mono);
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mcol { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; }
.mcol .meter--ladder { flex: 1; width: 18px; min-height: 0; gap: 2px; }
.mcol .meter--ladder i { transition: background-color 90ms, box-shadow 90ms; }
.mcol .meter i.on:nth-last-child(1 of .on) { box-shadow: 0 0 8px currentColor; }
.mcol .meter i.on { color: var(--pgm); }
.mcol .meter--neutral i.on { color: var(--chart-lit); }
.mcol__v { margin-top: 10px; font: 600 18px/18px var(--f-cond); color: var(--white); font-variant-numeric: tabular-nums; }
.mcol__u { margin-top: 3px; font: 400 10px/10px var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.mcol .lbl { margin-top: 7px; font-size: 10px; line-height: 13px; letter-spacing: 0.06em; white-space: nowrap; }
.meter--amber i.on { background: var(--amber); color: var(--amber); }
.meter--amber i.pk { background: var(--amber); opacity: 0.5; }

/* Pult */
.cdeck {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  margin-top: 88px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass-2);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-hi);
  overflow: hidden;
}
.cdeck__meters { min-width: 0; border-right: 1px solid var(--glass-line); background: var(--deck-well); }
.cdeck__keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.dg { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 18px 22px 20px; }
.dg:nth-child(odd) { border-right: 1px solid var(--glass-line); }
.dg:nth-child(-n + 2) { border-bottom: 1px solid var(--glass-line); }
.dg--end b { font: 500 16px/34px var(--f-mono); color: var(--white); font-variant-numeric: tabular-nums; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.site .key .pts { color: var(--ink-3s); }
.site .key { border-radius: 5px; }
.site .key--bus[aria-pressed="true"] { box-shadow: 0 0 16px var(--glow); }
.figcap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.figcap .lbl { display: inline-flex; align-items: center; }

@keyframes siteIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Overlay-Nachbau (overlay.html, unten mittig) --------------------------------- */
/* --orem entspricht 1rem des echten Overlays, hier etwas größer, damit es im Monitor lesbar bleibt. */
.ovl {
  --orem: max(1.6cqw, 6px);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--orem) * 1.5);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  pointer-events: none;
}
.frame .ovl { --orem: max(1.3cqw, 6px); }
.ovl__toasts { display: flex; flex-direction: column-reverse; align-items: center; width: calc(var(--orem) * 26); max-width: 92%; }
.ovl-mood,
.ovl-toast {
  width: calc(var(--orem) * 26);
  max-width: 92%;
  border: 1px solid var(--ov-line);
  border-radius: calc(var(--orem) * 0.25);
  background: var(--ov-plate);
  box-shadow: 0 0 0 1px var(--ov-rim-out), 0 calc(var(--orem) * 0.8) calc(var(--orem) * 2) rgba(0, 0, 0, 0.45);
  color: var(--ink);
}
.ovl-mood {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: calc(var(--orem) * 0.625) calc(var(--orem) * 0.75);
  padding: calc(var(--orem) * 0.75) calc(var(--orem) * 0.875) calc(var(--orem) * 0.875);
}
.ovl-mood__name { display: inline-flex; align-items: center; gap: calc(var(--orem) * 0.5); font: 500 calc(var(--orem) * 0.75)/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.ovl-led { display: inline-block; flex: none; width: calc(var(--orem) * 0.4375); height: calc(var(--orem) * 0.4375); border-radius: 50%; background: var(--pgm); box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.16), 0 0 8px var(--glow); }
.ovl-mood__read { display: inline-flex; align-items: baseline; gap: calc(var(--orem) * 0.5); }
.ovl-mood__trend { width: calc(var(--orem) * 0.5625); height: calc(var(--orem) * 0.5625); fill: currentColor; visibility: hidden; }
.ovl-mood[data-trend="up"] .ovl-mood__trend { visibility: visible; color: var(--sig); }
.ovl-mood__word { font: 500 calc(var(--orem) * 0.75)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pgm-ink); white-space: nowrap; }
.ovl-mood__score { min-width: 3ch; text-align: right; font: 500 calc(var(--orem) * 1.5)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--white); }
.ovl-mood__bar { display: flex; grid-column: 1 / -1; gap: calc(var(--orem) * 0.1875); height: calc(var(--orem) * 0.875); }
.ovl-mood__bar i { flex: 1; min-width: 2px; border-radius: 1px; background: var(--chart-track); transition: background-color var(--dur-1); }
.ovl-mood__bar i:nth-child(4n):not(:last-child) { margin-right: calc(var(--orem) * 0.25); }
.ovl-mood__bar i.on { background: var(--pgm); }
.ovl-mood__bar i.pk { background: var(--pgm-ink); }
.ovl-toast {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: calc(var(--orem) * 0.75);
  margin-bottom: calc(var(--orem) * 0.5);
  padding: calc(var(--orem) * 0.6875) calc(var(--orem) * 0.875) calc(var(--orem) * 0.8125);
  overflow: hidden;
  animation: ovIn var(--dur-3) var(--ease-out) both;
}
.ovl__toasts .ovl-toast { width: 100%; max-width: none; }
.ovl-toast.is-leaving { opacity: 0; transition: opacity var(--dur-2) ease-in; }
.ovl-toast__icon { width: calc(var(--orem) * 1.375); height: calc(var(--orem) * 1.375); color: var(--pgm-ink); }
.ovl-toast__icon .is-fill { fill: currentColor; }
.ovl-toast__icon .is-stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ovl-toast__text { min-width: 0; }
.ovl-toast__name,
.ovl-toast__meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ovl-toast__name { font: 600 calc(var(--orem) * 1.25)/1.1 var(--f-cond); letter-spacing: -0.004em; color: var(--white); }
.ovl-toast__meta { margin-top: calc(var(--orem) * 0.25); font: 400 calc(var(--orem) * 0.75)/1.25 var(--f-mono); color: var(--ink-2); }
/* Restzeit: die Linie läuft in 4 s leer, solange der Hinweis steht */
.ovl-toast__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hair); transform-origin: left center; }
.ovl-toast__line.is-running { transform: scaleX(0); transition: transform 4s linear; }
@keyframes ovIn { from { opacity: 0; transform: translateY(calc(var(--orem) * 0.5)); } }

/* ---------- Laufband: echte Befehle ------------------------------------------------------- */

.ticker {
  position: relative;
  z-index: 2;
  padding: 16px 0;
  overflow: hidden;
  background: var(--stage-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 64s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__half { display: flex; gap: 44px; padding-right: 44px; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ticker__item code { font: 500 14px/1 var(--f-mono); color: var(--pgm-ink); }
.ticker__item span { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ticker__item::before { content: ''; align-self: center; width: 5px; height: 5px; border-radius: 50%; background: var(--pgm); opacity: 0.6; margin-right: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Kapitelköpfe: Cue-Nummer, Haarlinie, Titel ---------------------------------- */

.sec { padding-top: clamp(72px, 8vw, 120px); }
.chap__head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s5);
  row-gap: var(--s5);
  padding-top: var(--num-cap);
  margin-bottom: clamp(44px, 5vw, 72px);
}
.chap__num {
  position: absolute;
  left: -0.05em;
  bottom: calc(100% - 0.06em);
  z-index: 0;
  font: var(--t-num);
  letter-spacing: -0.04em;
  color: transparent;
  background: var(--num-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--num-line);
  pointer-events: none;
  user-select: none;
}
.chap__cue {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: 14px;
}
.chap__cue::before { content: ''; position: absolute; left: 0; top: 0; width: 140px; height: 2px; background: var(--hair); }
.chap__cue::after { content: ''; position: absolute; left: 140px; right: 0; top: 0; height: 1px; background: var(--line-2); }
.chap__cue .lbl:first-child { color: var(--pgm-ink); }
.chap__h { position: relative; z-index: 1; grid-column: 1 / 8; margin: 0; font: var(--t-chap); letter-spacing: -0.024em; color: var(--white); }
.chap__intro { position: relative; z-index: 1; grid-column: 8 / 13; align-self: end; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Cue 01 · Im Stream ----------------------------------------------------------- */

/* Studio-Bühne: Navy blendet weich ein und wieder aus, das Licht liegt hinter dem Monitor */
.chap--stage {
  padding-bottom: clamp(80px, 9vw, 136px);
  background:
    radial-gradient(ellipse 64% 42% at 50% 64%, var(--glow-3) 0%, transparent 72%),
    linear-gradient(to bottom, var(--bg) 0%, var(--stage-1) 26%, var(--stage-1) 74%, var(--bg) 100%);
}
.chap--stage + .sec { padding-top: clamp(48px, 5vw, 72px); }

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  grid-template-rows: auto auto;
  align-items: stretch;
  font-size: 13.5px;
  line-height: 1.45;
}
.rundown {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid var(--glass-line);
  border-top: 0;
  border-radius: 0 12px 12px 12px;
  background: var(--glass-2);
  box-shadow: var(--shadow-card);
}
.rundown__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 56px; padding: 10px 18px; }
.rundown__n { min-width: 9ch; color: var(--pgm-ink); font-variant-numeric: tabular-nums; }
.rundown__ctl { display: flex; gap: 6px; }
.demo__glow {
  position: absolute;
  inset: -120px 0 -160px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, var(--glow-3) 0%, transparent 70%);
}
/* Sechs Cues als Zeitleiste: die Linie oben läuft mit dem Ablauf mit */
.cues {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--glass-line);
}
.cue {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-content: start;
  gap: 6px 8px;
  min-width: 0;
  padding: 18px 18px 20px;
  border-right: 1px solid var(--line);
  transition: background-color var(--dur-2);
}
.cue:last-child { border-right: 0; }
.cue::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; transition: background-color var(--dur-2); }
.cue .led { margin-top: 6px; }
.cue code { font: 500 13px/1.5 var(--f-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.cue p { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.cue.is-live { background: var(--pgm-soft); }
.cue.is-live::before { background: var(--hair); }
.cue.is-done::before { background: var(--pgm-line); }
.cue.is-live code { color: var(--white); }
.cue.is-live p { color: var(--ink-2); }
.cue.is-live .led { background: var(--pgm); box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.16), 0 0 10px var(--glow); }
.cue.is-done .led { background: var(--sig); box-shadow: none; }

.mon {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 0;
  border: 1px solid var(--glass-line);
  border-radius: 12px 12px 0 0;
  background: var(--stage-0);
  box-shadow: var(--shadow-card);
}
.mon__lbls { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mon .screen { border: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.mon .umd { margin: 0 0 16px; padding-right: 60px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; height: 32px; }

.tchat {
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  margin: 36px 0 -36px -48px;
}
.tchat .plate__win { contain: size; }
.tchat__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin: 0 16px 16px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--void);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Cue 02 · Funktionen: Module ------------------------------------------------- */

.rack { display: grid; }
.unit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 6vw, 112px);
  align-items: center;
  padding-block: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.unit:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.unit:nth-of-type(even) .unit__copy { order: 2; }
.unit:nth-of-type(even) .unit__spec { order: 1; }
.unit__copy { position: relative; z-index: 1; min-width: 0; }
.unit__code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.unit__code b { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--white); }
.unit__copy p { max-width: 46ch; margin-top: var(--s4); color: var(--ink-2); }
.facts { max-width: 46ch; margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.facts li {
  display: grid;
  grid-template-columns: 10.5em minmax(0, 1fr);
  gap: var(--s4);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font: 400 12.5px/1.5 var(--f-mono);
  color: var(--ink-2);
}
.facts li > span:first-child { color: var(--ink-3); }
.facts li > span:last-child { color: var(--ink); }

/* Plan-Kennung: Farbfeld aus der Plan-Rampe */
.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--glass-line);
  border-radius: 5px;
  background: var(--glass-hi);
  font: 500 10.5px/1 var(--f-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.plan-chip::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--p-free); }
.plan-chip--starter::before { background: var(--p-starter); }
.plan-chip--pro::before { background: var(--p-pro); box-shadow: 0 0 8px var(--glow); }
.plan-chip--agency::before { background: var(--p-agency); }

.unit__spec { position: relative; z-index: 1; min-width: 0; }
/* Modul-Kürzel steckt hinter der Glasplatte und ragt oben heraus */
.unit__spec::before {
  content: attr(data-code);
  position: absolute;
  right: 14px;
  bottom: calc(100% - 0.3em);
  z-index: -1;
  font: 600 clamp(80px, 8.4vw, 124px)/0.8 var(--f-cond);
  letter-spacing: -0.02em;
  color: transparent;
  background: var(--num-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--num-line);
  pointer-events: none;
  user-select: none;
}
.unit:nth-of-type(even) .unit__spec::before { right: auto; left: 14px; }
.spec {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: linear-gradient(var(--glass-2), var(--glass-2)), var(--bg);
  box-shadow: var(--shadow-float), inset 0 1px 0 var(--glass-hi);
  font-size: 13.5px;
  line-height: 1.45;
}
.spec::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(150deg, var(--rim) 0%, transparent 40%, transparent 75%, var(--glow-2) 100%);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask-composite: exclude;
  pointer-events: none;
}
.spec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--glass-line);
}
.spec__head--sub { border-top: 1px solid var(--glass-line); }
.spec__body { padding: 18px 16px; }
.spec__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid var(--glass-line); font-size: 12.5px; }
.spec__link { margin-left: auto; font: 500 12px/1 var(--f-mono); color: var(--pgm-ink); }
.site .spec__link:hover { color: var(--white); }
.spec__hint { display: block; margin: 16px 0 8px; }
.spec__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.spec__note .mono { color: var(--ink-2); }
.tscroll { overflow-x: auto; }
/* Schmale Rollbalken in Paneelen */
.tscroll,
.cues,
.mx-wrap { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.chatlog--static { padding: 10px 16px 12px; font-size: 13.5px; }
.spec > .chatlog--static { border-top: 1px solid var(--glass-line); }
.spec__body > .chatlog--static { padding: 0; }

/* Befehle */
.cmdtab,
.lb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmdtab th,
.lb th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-line);
  font: 500 10.5px/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.cmdtab td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmdtab tr:last-child td { border-bottom: 0; }
.cmdtab td:first-child { width: 148px; white-space: nowrap; }
.cmdtab code { font: 500 13px/1.5 var(--f-mono); color: var(--pgm-ink); }
.cmdtab .lbl { display: block; margin-top: 4px; font-size: 10px; }
.tpl { font: 400 13px/1.55 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
.ph { padding: 1px 4px; border-radius: 3px; background: var(--pgm-wash); color: var(--pgm-ink); }
.out { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.out::before { content: '→ '; font-family: var(--f-mono); color: var(--cyan); }

/* Vertrauen */
.trust { margin-bottom: 22px; }
.trust__zones { display: flex; align-items: flex-end; margin-bottom: 6px; }
.trust__zones span {
  flex: 0 0 var(--w);
  min-width: 0;
  padding-left: 6px;
  border-left: 1px solid var(--line-2);
  font: 500 10px/1.25 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.trust__track { display: flex; height: 10px; border-radius: 3px; overflow: hidden; }
.trust__track i { flex: 1; }
.trust__track .z1 { background: var(--zone-1); }
.trust__track .z2 { background: var(--zone-2); }
.trust__track .z3 { background: var(--zone-3); }
.trust__track .z4 { background: var(--zone-4); }
.trust__track .z5 { background: var(--zone-5); }
.trust__marks { position: relative; height: 44px; }
.tm { position: absolute; top: 0; padding-top: 10px; font: 400 12px/1.3 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.tm::before { content: ''; position: absolute; top: -10px; width: 1px; height: 18px; background: var(--white); }
.tm b { font-weight: 500; color: var(--white); }
.tm--l::before { left: 0; }
.tm--c { transform: translateX(-50%); }
.tm--c::before { left: 50%; }
.tm--r { transform: translateX(-100%); }
.tm--r::before { right: 0; }
.sample { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--void); font: 400 13px/1.4 var(--f-mono); color: var(--ink); }
.verd { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.verd li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 170px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.verd li:last-child { border-bottom: 0; }
.verd__who { font-weight: 600; }
.verd__v { font: 400 12px var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.verd__out { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--f-mono); color: var(--ink); }

/* Ranglisten */
.lb td { padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb td.r,
.lb th.r { text-align: right; }
.lb .rk { width: 36px; font: 400 12px var(--f-mono); color: var(--ink-3); }
.lb .lv { font: 500 12px var(--f-mono); color: var(--ink-2); }
.lb .ttl { font-size: 13px; color: var(--ink-2); }
.lb .pts { font: 500 13px var(--f-mono); color: var(--white); }
.lb tr.gap td { padding: 4px 16px; font-family: var(--f-mono); color: var(--ink-4); }
.xpb { display: inline-block; width: 64px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--chart-track); border-radius: 2px; overflow: hidden; }
.xpb i { display: block; height: 100%; background: var(--hair); }
.xp-n { font: 400 11.5px var(--f-mono); color: var(--ink-3); }
.titles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.titles li { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-2); }
.titles b { margin-right: 6px; font-weight: 500; color: var(--ink-3); }

/* Zeitkapsel */
.chron--spec li { grid-template-columns: 46px minmax(0, 1fr); }
.caps { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--void); }
.caps__l { display: flex; align-items: center; gap: 8px; }
.caps__l .icon { width: 14px; height: 14px; }
.caps__t { font: 600 26px/1 var(--f-cond); color: var(--white); }
.caps__q { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; color: var(--ink); }
.caps__when { grid-column: 1 / -1; margin-top: 6px; }
.caps__out { grid-column: 1 / -1; padding: 8px 10px; border-radius: 0 6px 6px 0; background: var(--pgm-soft); box-shadow: inset 2px 0 0 var(--pgm); font: 400 12.5px/1.45 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }

/* Soundboard */
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pad {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-bottom-color: var(--key-lo);
  border-radius: 6px;
  background: var(--key);
  box-shadow: var(--key-inset);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.pad:hover { background: var(--key-hi); }
.pad:active { transform: translateY(1px); }
.pad b { font: 500 13px/1 var(--f-mono); color: var(--ink); }
.pad span { font: 400 11.5px/1 var(--f-mono); color: var(--ink-3s); }
.pad .led { position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; }
.pad.is-fired { border-color: var(--pgm); box-shadow: 0 0 16px var(--glow); }
.pad.is-fired .led { background: var(--pgm); }

.alpha {
  position: relative;
  height: 172px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: conic-gradient(var(--alpha-a) 25%, var(--alpha-b) 0 50%, var(--alpha-a) 0 75%, var(--alpha-b) 0) 0 0 / 16px 16px;
}
.alpha .ovl { --orem: 13px; bottom: 14px; }

/* OBS-Quellen, Kanäle */
.srcs,
.chanlist { margin: 0; padding: 0; list-style: none; }
.srcs li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.srcs .lbl { margin-left: auto; }
.chanlist li {
  display: grid;
  grid-template-columns: 14px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.chanlist li:last-child { border-bottom: 0; }
.chanlist .mono { overflow: hidden; font-size: 12px; color: var(--ink-3); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.chanlist li.off { color: var(--ink-3); }

/* ---------- Cue 03 · So startest du (Band mit schrägen Kanten) --------------------------- */

.stage--band {
  margin-top: clamp(24px, 3vw, 48px);
  padding-top: calc(clamp(64px, 7vw, 104px) + clamp(28px, 4vw, 64px));
  padding-bottom: calc(clamp(56px, 6vw, 96px) + clamp(28px, 4vw, 64px));
  background: linear-gradient(to bottom, var(--stage-0) 0%, var(--stage-1) 35%, var(--stage-2) 70%, var(--stage-0) 100%);
  clip-path: polygon(0 clamp(28px, 4vw, 64px), 100% 0, 100% calc(100% - clamp(28px, 4vw, 64px)), 0 100%);
}
.stage--band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 20% 100%, var(--glow-3), transparent 70%), radial-gradient(ellipse 40% 40% at 90% 20%, var(--glow-3), transparent 70%);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); opacity: 0.5; }
.step { display: grid; align-content: start; row-gap: var(--s4); min-width: 0; padding-top: 28px; }
.step__n { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step__num { font: var(--t-num); font-size: clamp(72px, 7.6vw, 112px); letter-spacing: -0.04em; color: transparent; background: var(--step-grad); -webkit-background-clip: text; background-clip: text; }
.step__lbl { padding-top: 10px; color: var(--pgm-ink); }
.step__t { margin: 0; font: var(--t-m); letter-spacing: -0.012em; color: var(--white); }
.step__p { color: var(--ink-2); }
.step__extra { display: grid; gap: 8px; align-content: start; }
.shot {
  position: relative;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: var(--glass-2);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-hi);
  font-size: 13.5px;
  line-height: 1.45;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-float), inset 0 1px 0 var(--glass-hi); }
.shot__bar,
.shot__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--glass-line);
}
.shot__h { font: var(--t-heading); }
.shot__body { display: grid; gap: 12px; padding: 16px 14px; }
.shot__title { font: 600 24px/1.1 var(--f-cond); color: var(--white); }
.shot__text { color: var(--ink-2); }
.shot__body .key { justify-self: start; }
.shot__body .key .icon { width: 14px; height: 14px; }
.shot__body--form { grid-template-columns: 1fr 1fr; }
.shot__f { display: grid; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.shot__f--half { grid-column: auto; }
.shot__in { display: block; height: 32px; padding: 0 10px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 5px; background: var(--void); font-size: 12.5px; line-height: 30px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.shot__row { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--glass-line); font-size: 12.5px; }
.shot__row .soft { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.shot .btn .icon { width: 16px; height: 16px; }
.scopes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scopes code { display: inline-block; padding: 3px 8px; border: 1px solid var(--glass-line); border-radius: 5px; background: var(--glass-hi); font: 400 11.5px/1.4 var(--f-mono); color: var(--ink-2); }

/* ---------- Cue 04 · Preise: Karten und Kreuzschiene ------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px 26px 26px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass-2);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-3);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-hi); border-color: var(--line-3); }
.plan--hi {
  background: linear-gradient(to bottom, var(--stage-3) 0%, var(--stage-1) 100%);
  border-color: var(--rim);
  box-shadow: 0 0 0 1px var(--rim-soft), 0 30px 80px rgba(91, 141, 239, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.plan--hi::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--hair); border-radius: 2px; }
.plan--hi:hover { box-shadow: 0 0 0 1px var(--rim), 0 36px 90px rgba(91, 141, 239, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1); border-color: var(--rim); }
.plan__head { display: grid; gap: 10px; }
.plan__name { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.plan__dot { width: 9px; height: 9px; border-radius: 2px; background: var(--p-free); }
.plan__dot--starter { background: var(--p-starter); }
.plan__dot--pro { background: var(--p-pro); box-shadow: 0 0 10px var(--glow); }
.plan__dot--agency { background: var(--p-agency); }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; font: 600 clamp(44px, 4vw, 58px)/1 var(--f-cond); letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.plan__price b { font-weight: inherit; }
.plan__price small { font: 600 22px/1 var(--f-cond); color: var(--ink-2); }
.plan__per { color: var(--ink-3); }
.plan__tag { min-height: 3lh; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.plan--hi .plan__tag { color: var(--ink); }
.plan--hi .plan__per,
.plan--hi .plan__facts li span:first-child { color: var(--ink-3s); }
.plan__facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--glass-line); }
.plan__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 12.5px/1.45 var(--f-mono); color: var(--ink-3); }
.plan__facts li span:last-child { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.plan__cta { margin-top: auto; }
.site .plan__cta.btn--xl { height: 48px; font-size: 15px; }
.plan .btn.is-disabled { opacity: 0.5; }

.mx {
  margin-top: var(--s6);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass-2);
  overflow: hidden;
}
.mx > summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
}
.mx > summary::-webkit-details-marker { display: none; }
.mx__t { display: inline-flex; align-items: center; gap: 12px; font: 600 20px/1.2 var(--f-cond); color: var(--white); }
.mx__t::before { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--glass-line); border-radius: 6px; background: var(--glass-hi); font: 400 18px/1 var(--f-mono); color: var(--pgm-ink); }
.mx[open] .mx__t::before { content: '−'; }
.mx > summary:hover .mx__t::before { border-color: var(--line-3); }
.mx-wrap { overflow-x: auto; border-top: 1px solid var(--glass-line); }
.mx-wrap .matrix { min-width: 760px; }
.mx-wrap .matrix thead th { padding: 22px 20px 20px; }
.mx-wrap .matrix__plan { font-size: 11px; }
.mx-wrap .matrix__price { margin-top: 14px; font-size: 40px; color: var(--white); }
.mx-wrap .matrix__per { font-size: 12px; }
.mx-wrap .matrix tbody th { padding: 11px 20px; font-size: 14.5px; }
.mx-wrap .matrix td { padding: 11px 20px; font-size: 13px; }
.mx-wrap .matrix tr.matrix__grp th { padding: 22px 20px 8px; }
.mx-wrap .matrix tfoot td { padding: 18px 20px 20px; font-size: 13px; line-height: 1.5; }
.mx-wrap .matrix tfoot .btn { height: 38px; }
.matrix .is-col { background: var(--pgm-soft); }
.plans-s { display: none; }

/* ---------- Cue 05 · FAQ ----------------------------------------------------------------- */

.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
.faq__head { position: relative; grid-column: 1 / 5; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s5); padding-top: var(--num-cap); }
.faq__head .chap__cue { display: flex; }
.faq__head .chap__h { grid-column: auto; }
.faq__head p:not(.chap__cue) { position: relative; z-index: 1; max-width: 30ch; margin: 0; color: var(--ink-2); }
.faq__head a,
.faq__list a { color: var(--pgm-ink); }
.faq__list { grid-column: 6 / 13; align-self: start; margin-top: var(--num-cap); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4);
  padding: 22px 0;
  font: 500 19px/1.35 var(--f-sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-1);
}
.faq summary:hover { color: var(--white); }
.faq summary:focus-visible { outline-offset: 6px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px/1.3 var(--f-mono); color: var(--pgm-ink); transition: transform var(--dur-2); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--white); }
.faq details p { max-width: 52ch; padding: 0 40px 26px 0; color: var(--ink-2); }

/* ---------- Schlussband: großes blaues Feld -------------------------------------------- */

.cta {
  margin-top: clamp(72px, 8vw, 120px);
  padding-block: calc(clamp(56px, 7vw, 112px) + clamp(28px, 4vw, 64px)) clamp(88px, 11vw, 160px);
  background:
    linear-gradient(to bottom, transparent 88%, var(--stage-0) 100%),
    radial-gradient(ellipse 60% 70% at 50% 110%, var(--pgm) 0%, transparent 70%),
    linear-gradient(to bottom, var(--stage-0) 0%, var(--stage-1) 30%, var(--stage-3) 100%);
  clip-path: polygon(0 clamp(28px, 4vw, 64px), 100% 0, 100% 100%, 0 100%);
  text-align: center;
  overflow: hidden;
}
.cta__bloom {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 30% at 50% 100%, var(--cyan) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 90%, var(--glow) 0%, transparent 70%);
  opacity: 0.55;
  /* Licht läuft zum Footer hin aus statt an der Kante abzureißen */
  -webkit-mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
}
.cta__in { display: grid; justify-items: center; gap: var(--s5); }
.cta__lbl { display: inline-flex; align-items: center; gap: 10px; color: var(--pgm-ink); }
.cta__led { background: var(--cyan); box-shadow: 0 0 0 2px rgba(111, 211, 255, 0.2), 0 0 12px var(--cyan); }
.cta__h { margin: 0; font: var(--t-hero); font-size: clamp(44px, 6.6vw, 96px); letter-spacing: -0.03em; color: var(--white); }
.cta__p { max-width: 52ch; margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.cta__act { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s2); }
.cta__fine { color: var(--cyan-ink); }

/* ---------- Footer ------------------------------------------------------------------------- */

.foot { position: relative; padding-block: var(--s8) calc(var(--s8) + env(safe-area-inset-bottom, 0px)); background: var(--stage-0); }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); opacity: 0.35; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s5); }
.foot__brand { display: grid; gap: 12px; max-width: 42ch; }
.foot__tag { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 14.5px; }
.foot__links a { color: var(--ink-2); text-decoration: none; transition: color var(--dur-1); }
.site .foot__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot__links a[aria-current="page"] { color: var(--white); }
.foot__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); }

/* ==========================================================================
   Unterseiten: Befehlsreferenz und Rechtstexte
   ========================================================================== */

.page-head {
  padding-block: clamp(56px, 7vw, 96px) clamp(48px, 5vw, 72px);
  background: linear-gradient(to bottom, var(--stage-1) 0%, var(--stage-0) 70%, var(--bg) 100%);
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, var(--glow-3) 0%, transparent 70%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent 85%);
}
/* Nummer auf der Haarlinie, wie die Kapitel der Startseite */
.page-head__num {
  position: absolute;
  left: -0.05em;
  bottom: calc(100% - 0.06em);
  z-index: 0;
  font: var(--t-num);
  letter-spacing: -0.04em;
  color: transparent;
  background: var(--num-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--num-line);
  pointer-events: none;
  user-select: none;
}
.page-head--num { padding-top: calc(clamp(40px, 5vw, 64px) + var(--num-cap)); }
.page-head__rule { position: relative; display: flex; justify-content: space-between; gap: var(--s4); padding-top: 14px; margin-bottom: var(--s6); }
.page-head__rule::before { content: ''; position: absolute; left: 0; top: 0; width: 140px; height: 2px; background: var(--hair); }
.page-head__rule::after { content: ''; position: absolute; left: 140px; right: 0; top: 0; height: 1px; background: var(--line-2); }
.page-head__rule .lbl:first-child { color: var(--pgm-ink); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: end; }
.page-head__grid h1 { grid-column: 1 / 8; margin: 0; }
.page-head__grid .lead { grid-column: 8 / 13; margin: 0; }
.page-head + .wrap { padding-top: var(--s7); }
.page-head__act { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* 404 */
.site--404 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.site--404 main { display: flex; flex: 1 0 auto; flex-direction: column; }
.nf { display: flex; flex: 1 0 auto; align-items: center; padding-block: clamp(40px, 5vw, 72px); }
.nf__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(40px, 6vw, 96px); width: 100%; }
.nf__copy .page-head__rule { margin-bottom: var(--s6); }
.nf__copy .h-xl { margin: 0; }
.nf__copy .lead { max-width: 44ch; margin-top: var(--s6); }
.nf__mon {
  position: relative;
  padding: 14px 14px 0;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--stage-0);
  box-shadow: 0 0 140px rgba(91, 141, 239, 0.16), var(--shadow-float);
}
.nf__screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--stage-3) 0%, var(--stage-1) 45%, var(--stage-0) 100%);
}
/* Rauschen und Zeilen wie ein Eingang ohne Bild */
.nf__screen::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: var(--grain);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: nfNoise 0.5s steps(4) infinite;
}
.nf__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(to bottom, var(--scan-line) 0, var(--scan-line) 1px, transparent 1px, transparent 3px);
}
@keyframes nfNoise {
  25% { transform: translate(-6%, 4%); }
  50% { transform: translate(5%, -7%); }
  75% { transform: translate(-3%, -4%); }
  100% { transform: translate(7%, 5%); }
}
.nf__num {
  position: relative;
  z-index: 1;
  font: 600 clamp(96px, 12vw, 184px)/0.8 var(--f-cond);
  letter-spacing: -0.04em;
  color: transparent;
  background: var(--num-grad-hi);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--num-line);
}
.nf__mon .umd { margin: 0 0 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; }
.nf__t::before { background: var(--red); box-shadow: none; }
.nf__sig { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

/* Befehlsreferenz */
.ref { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.ref__nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; padding: 10px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass-2); }
.ref__nav .lbl { padding: 6px 8px 10px; }
.ref__nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--dur-1), color var(--dur-1);
}
.ref__nav a code { font: 500 10.5px var(--f-mono); letter-spacing: 0.08em; color: var(--pgm-ink); }
.ref__nav a .n { font: 400 11px var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.site .ref__nav a:hover { background: var(--key); color: var(--white); }
.ref__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s5); }
.ref__tools .search .input { width: 340px; height: 42px; font-size: 14.5px; border-radius: 8px; background: var(--glass-2); }
.ref__tools .search .icon { left: 12px; }
.ref__tools .search .input { padding-left: 34px; }
.ref__tools .lbl { margin-left: auto; }
.ref__empty { padding: var(--s6) 0; color: var(--ink-2); }
.grp { position: relative; padding-block: var(--s7) var(--s8); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.grp__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3) var(--s5); align-items: start; margin-bottom: var(--s5); }
.grp__code { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 500 13px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--pgm-ink); }
.grp__head h2 { margin: 0; font: var(--t-m); letter-spacing: -0.012em; color: var(--white); }
.grp__head p { grid-column: 1 / -1; max-width: 52ch; color: var(--ink-2); }
.grp__head .plan-chip { justify-self: start; margin-top: 0; }
.grp__note { margin-top: var(--s3); max-width: 52ch; font-size: 14.5px; color: var(--ink-3); }
.grp__note--top { margin: 0 0 var(--s4); }
.grp__sub { margin-top: var(--s7); margin-bottom: var(--s2); font: 600 18px/1.25 var(--f-sans); color: var(--white); scroll-margin-top: calc(var(--nav-h) + 16px); }
.ref__main { min-width: 0; }
.ex__later { margin-top: 6px; font-size: 10px; }
.ref-block { overflow: hidden; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass-2); box-shadow: inset 0 1px 0 var(--glass-hi); }
.ref-block + .ref-block,
.grp__sub + .ref-block { margin-top: var(--s5); }
.ref-block > .grp__sub { margin: 0; padding: 20px 18px 0; }
.ref-block > .grp__note--top { margin: 0; padding: 6px 18px 18px; }
.ref-tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.grp > .ref-tbl { border: 1px solid var(--glass-line); border-radius: 12px; overflow: hidden; background: var(--glass-2); }
.ref-tbl th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.025);
  font: 500 10.5px/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  white-space: nowrap;
}
.ref-tbl td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-tbl tr:last-child td { border-bottom: 0; }
.ref-tbl td:first-child { width: 34%; }
.ref-tbl:not(.ph-tbl) td:nth-child(2) { width: 96px; white-space: nowrap; }
.syn { font: 500 13.5px/1.5 var(--f-mono); color: var(--pgm-ink); overflow-wrap: anywhere; }
.syn var { font-style: normal; color: var(--ink-2); }
.what { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }
.who-tag { display: inline-block; padding: 3px 7px; border: 1px solid var(--glass-line); border-radius: 5px; font: 500 11px/1 var(--f-mono); color: var(--ink-2); }
.ex { display: grid; gap: 5px; font: 400 12.5px/1.5 var(--f-mono); }
.ex__in { color: var(--ink); overflow-wrap: anywhere; }
.ex__in::before { content: attr(data-user) ': '; color: var(--ink-3); }
.ex__out { padding: 5px 9px; border-radius: 0 6px 6px 0; background: var(--pgm-soft); box-shadow: inset 2px 0 0 var(--pgm); color: var(--ink); overflow-wrap: anywhere; }
.ex__none { color: var(--ink-3); font-style: italic; font-family: var(--f-sans); font-size: 13px; }
.ph-tbl td:first-child { width: 26%; }
.ph-tbl code { font: 500 13px/1.5 var(--f-mono); color: var(--pgm-ink); }

/* Rechtstexte */
.legal { display: grid; grid-template-columns: 236px minmax(0, 54ch); gap: var(--s8); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; margin: 0; padding: 10px; list-style: none; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass-2); }
.legal__toc .lbl { display: block; padding: 6px 8px 10px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background-color var(--dur-1), color var(--dur-1); }
.site .legal__toc a:hover { background: var(--key); color: var(--white); }
.legal__body { color: var(--ink-2); }
.legal__body h2 { position: relative; margin: var(--s8) 0 var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); font: 600 24px/1.2 var(--f-cond); color: var(--white); scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal__body h2::before { content: ''; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--hair); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin: var(--s5) 0 var(--s2); font: 600 16.5px/1.35 var(--f-sans); color: var(--white); }
.legal__body p,
.legal__body ul,
.legal__body ol,
.legal__body address { margin: 0 0 var(--s3); }
.legal__body ul,
.legal__body ol { padding-left: 1.2em; }
.legal__body li { margin-bottom: 6px; }
.legal__body address { font-style: normal; }
.legal__body a { color: var(--pgm-ink); }
.legal__body strong { color: var(--white); font-weight: 500; }
.legal__body code { font-size: 0.9em; color: var(--ink); }
.legal__stamp { margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid var(--line); }
/* Platzhalter, die der Betreiber ersetzen muss: deutlich sichtbar */
.fill-in {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--placeholder-wash);
  box-shadow: inset 0 -1px 0 var(--amber);
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 0.92em;
}

/* ==========================================================================
   Bewegung: Einblenden beim Scrollen (nur mit Skript, sonst alles sichtbar)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsiv
   ========================================================================== */

@media (max-width: 1240px) {
  /* Hero: Zeile darunter – Text links, Tasten rechts */
  .hero__top { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
  .hero__head,
  .hero__side { grid-column: 1; }
  .hero__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s7); align-items: end; padding-bottom: 0; }
  .hero__lead { max-width: 54ch; }
  .hero__cta { margin-top: 0; }
  .hero__fine { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .scene__grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .plate--chat { margin-left: -64px; }
  .frame .umd { padding-right: 80px; }
  .cdeck { grid-template-columns: 296px minmax(0, 1fr); }
  .demo { grid-template-columns: minmax(0, 1fr) 320px; }
  .tchat { margin-left: -32px; }
  .cues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cue:nth-child(3n) { border-right: 0; }
  .cue:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .unit,
  .unit:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .unit:nth-of-type(even) .unit__copy { order: 1; }
  .unit:nth-of-type(even) .unit__spec { order: 2; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan__tag { min-height: 0; }
}

@media (max-width: 960px) {
  .nav__links,
  .nav__login { display: none; }
  .mnav { display: block; }
  .nav__act { gap: var(--s3); }
  .hero__head,
  .hero__side,
  .chap__h,
  .chap__intro,
  .page-head__grid h1,
  .page-head__grid .lead { grid-column: 1 / -1; }
  .hero__side { display: block; padding-bottom: 0; }
  .hero__cta { margin-top: var(--s5); }
  .hero__top { row-gap: var(--s5); }
  .scene__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .frame { grid-column: 1; grid-row: auto; border-radius: 0 0 12px 12px; }
  .plate--chat { grid-column: 1; grid-row: auto; height: 380px; margin: 16px 0 0; }
  .frame .umd { padding-right: 14px; }
  .meters { height: 170px; }
  .cdeck { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .cdeck__meters { border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .mon { grid-column: 1; grid-row: auto; border-radius: 12px; }
  .tchat { grid-column: 1; grid-row: auto; height: 400px; margin: 16px 0 0; }
  .rundown { grid-column: 1; grid-row: auto; margin-top: 16px; border-top: 1px solid var(--glass-line); border-radius: 12px; }
  .cues { display: flex; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .cue,
  .cue:nth-child(-n + 3) { flex: 0 0 232px; border-bottom: 0; border-right: 1px solid var(--line); scroll-snap-align: start; }
  .cue:last-child { border-right: 0; }
  .mon .umd { padding-right: 14px; }
  .faq__head,
  .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: var(--s5); padding-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--s7); }
  .ref,
  .legal { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .ref__nav,
  .legal__toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .ref__nav .lbl,
  .legal__toc li:first-child { flex-basis: 100%; }
  .ref__nav .lbl,
  .legal__toc .lbl { padding-left: 0; }
  .ref__nav a { grid-template-columns: auto auto; gap: 8px; height: 32px; border: 1px solid var(--line-2); font-size: 13px; }
  .ref__nav a .n { display: none; }
  .legal__toc a { border: 1px solid var(--line-2); font-size: 13px; }
}

@media (max-width: 760px) {
  body.site { font-size: 16px; }
  .sec { padding-top: var(--s9); }
  .only-l { display: none; }
  .only-s { display: inline; }
  .hero { padding-bottom: var(--s8); }
  .hero__h { letter-spacing: -0.025em; }
  .hero__lead,
  .lead { font-size: 17.5px; }
  .scene { margin-top: var(--s7); }
  .cbar { gap: 8px 14px; padding: 8px 14px; font-size: 11px; }
  .cbar__sp { flex-basis: 100%; height: 0; }
  .plate--chat { height: 400px; }
  .plate__win .chatlog { font-size: 13.5px; }
  .plate__foot { padding: 10px 14px 12px; }
  .scale { padding-bottom: 60px; }
  .cdeck__keys { grid-template-columns: minmax(0, 1fr); }
  .dg,
  .dg:nth-child(odd) { padding: 16px 18px 18px; border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .dg:last-child { border-bottom: 0; }
  .ticker { padding: 13px 0; }
  .chap__head { margin-bottom: var(--s6); }
  .chap__cue { flex-direction: column; gap: 6px; }
  .chap__intro { font-size: 16.5px; }
  .unit { padding-block: var(--s7); row-gap: var(--s7); }
  .unit__code { gap: 8px 12px; }
  .spec__head { flex-wrap: wrap; row-gap: 2px; padding-block: 10px; }
  .lb td,
  .lb th { padding-inline: 10px; }
  .lb--rpg th:nth-child(5),
  .lb--rpg td:nth-child(5) { display: none; }
  .verd li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .verd__out { grid-column: 1 / -1; }
  .cmdtab,
  .cmdtab tbody,
  .cmdtab tr,
  .cmdtab td { display: block; }
  .cmdtab thead { display: none; }
  .cmdtab td:first-child { width: auto; padding-bottom: 0; border-bottom: 0; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chanlist li { grid-template-columns: 14px minmax(0, 1fr); }
  .chanlist .mono { grid-column: 2; text-align: left; }
  .trust__marks { height: 62px; }
  .tm--c { top: 22px; }
  .tm--c::before { top: -32px; height: 40px; }
  .trust__zones span { font-size: 9px; padding-left: 4px; letter-spacing: 0.02em; }
  .umd__r,
  .mon__lbls .lbl:last-child { display: none; }
  .cam { width: 18cqw; }
  .alpha .ovl { --orem: 11px; }
  .boss { left: 30cqw; right: 30cqw; }
  .frame .ovl { --orem: max(1.6cqw, 6px); }
  .stage--band { margin-top: var(--s6); }
  .step__num { font-size: 72px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plan { padding: 24px 22px 22px; }
  .plan__price { font-size: 44px; }
  .mx > summary { padding: 18px 20px; }
  .mx__t { font-size: 18px; }

  /* Kreuzschiene kompakt: passt ohne Scrollen auf 390 px */
  .mx-wrap .matrix { min-width: 0; }
  .mx-wrap .matrix col.matrix__f { width: 36%; }
  .mx-wrap .matrix thead th { padding: 14px 6px 12px 8px; }
  .mx-wrap .matrix thead th:first-child { padding-left: 12px; }
  .mx-wrap .matrix__plan { font-size: 9.5px; letter-spacing: 0.04em; }
  .mx-wrap .matrix__price { margin-top: 8px; font-size: 19px; white-space: nowrap; }
  .mx-wrap .matrix__per { font-size: 9.5px; }
  .mx-wrap .matrix tbody th { padding: 9px 12px; font-size: 12.5px; line-height: 1.35; }
  .mx-wrap .matrix td { padding: 9px 4px; font-size: 11px; text-align: center; }
  .mx-wrap .matrix tr.matrix__grp th { padding: 16px 12px 6px; }
  .mx-wrap .matrix tfoot { display: none; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .cta__p { font-size: 17px; }
  .cta__act { width: 100%; }
  .cta__act .btn { flex: 1 1 auto; }
  .ref__tools .search,
  .ref__tools .search .input { width: 100%; }
  .ref__tools .lbl { margin-left: 0; }
  .grp__head { grid-template-columns: minmax(0, 1fr); }
  .ref-tbl,
  .ref-tbl tbody,
  .ref-tbl tr,
  .ref-tbl td { display: block; width: auto; }
  .ref-tbl thead { display: none; }
  .ref-tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ref-tbl tr:last-child { border-bottom: 0; }
  .ref-tbl td { padding: 4px 16px; border-bottom: 0; }
  .ref-tbl td:first-child,
  .ref-tbl td:nth-child(2) { width: auto; }
  .ref-tbl:not(.ph-tbl) td:nth-child(2)::before { content: 'Wer: '; color: var(--ink-3); font: 500 11.5px var(--f-mono); }
  .nf__grid { grid-template-columns: minmax(0, 1fr); }
  .page-head__rule { flex-direction: column; gap: 6px; }
  .page-head + .wrap { padding-top: var(--s6); }
  .page-head__act .btn { flex: 1 1 auto; }
  .nf { align-items: flex-start; }
}

@media (max-width: 520px) {
  /* Fakten: Bezeichnung über dem Wert statt daneben */
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Touch: jede Taste und jeder Link in Leisten mindestens 44 px hoch */
@media (pointer: coarse), (max-width: 760px) {
  .site .key { height: 44px; padding: 0 14px; }
  .site .nav__cta { height: 44px; }
  .mnav__btn { width: 44px; height: 44px; }
  .site .btn { min-height: 44px; }
  .spec__link { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
  .foot__links a { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
  .ref__tools .search .input { height: 44px; }
  .ref__nav a { height: 44px; }
  .legal__toc a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .site .nav__cta { padding: 0 12px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .cbar .st--opt { display: none; }
  .shot__row { grid-template-columns: 12px minmax(0, 1fr); row-gap: 2px; }
  .shot__row .soft { grid-column: 2; text-align: left; }
  .meters { grid-template-columns: 24px repeat(4, minmax(0, 1fr)); padding: 14px 10px 12px; }
  .step__n { flex-direction: column; gap: 4px; }
  .step__lbl { padding-top: 0; }
}

/* ==========================================================================
   Weniger Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ovl-toast__line.is-running { transition: none; }
  .ticker__track { animation: none; }
  .nf__screen::before,
  .stage__bloom,
  .hero__eyebrow,
  .hero__l1,
  .hero__l2,
  .hero__side,
  .scene { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .plan:hover,
  .shot:hover { transform: none; }
}
