/* Sound Loud · Desktop-3D /3d/ — Scroll-Seite, Pult, Generator. Marke: Tinte #060607, Papier #f2f2f0, EIN Akzent Lime #d2ee52
 * (Rot nur fuer Red Room). Schriften: Unbounded (Anzeige), Onest (Text), JetBrains Mono (Bedienteile). Ruhig: eine Lime-Handlung
 * je Bildschirm, Bewegung nur auf Absicht; prefers-reduced-motion (html.calm) schaltet Uebergaenge ab.
 * Zustaende (html[data-s]): site = Scroll-Seite (Dokument scrollt nativ, Leinwand fest dahinter) · load · deck (Pult, kein Scrollen). */
:root {
  color-scheme: dark;
  --ink: #060607; --ink2: #0c0c0f; --ink3: #15161a; --steel: #24252b; --line: rgb(242 242 240 / .1); --line2: rgb(242 242 240 / .18);
  --smoke: #8b8f97; --fog: #c7c9c4; --paper: #f2f2f0; --lime: #d2ee52; --lime2: #b8d23e; --red: #e5383f;
  --disp: Unbounded, "Arial Black", system-ui, sans-serif; --text: Onest, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1); --pad: 28px; --djm: 120px;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--ink); }
html:not(.calm)[data-s="site"] { scroll-behavior: smooth; }
html[data-s="deck"], html[data-s="load"] { overflow: hidden; }
body { min-height: 100vh; color: var(--paper); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); }
kbd { font: 500 10px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line2); border-radius: 5px; color: var(--fog); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 90; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
html[data-gl="on"] #gl { opacity: 1; }
#grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-gl="on"] #grain { display: none; }

/* ---------- Kopf ---------- */
.top { position: fixed; inset: 0 0 auto; height: 64px; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 0 var(--pad);
  background: linear-gradient(rgb(6 6 7 / .86), rgb(6 6 7 / .5) 65%, rgb(6 6 7 / 0)); pointer-events: none; }
.top > * { pointer-events: auto; flex: none; }                         /* nichts im Kopf bricht um oder schrumpft — nur das Kapitel */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--paper); display: grid; place-content: center; }
.logo i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.logo b { font: 800 12px/1 var(--disp); letter-spacing: .2em; white-space: nowrap; }
.chap { margin-left: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 10px #000, 0 0 2px #000; }
.chap b { color: var(--lime); font-weight: 500; }
.langs { display: flex; gap: 2px; font-size: 11px; letter-spacing: .12em; background: rgb(12 12 15 / .55); border: 1px solid var(--line2); border-radius: 999px; padding: 0 6px; }   /* Pille: lesbar auch vor heller Buehne */
.langs a { text-decoration: none; color: var(--smoke); padding: 9px 7px; line-height: 1; border-radius: 8px; }
.langs a[aria-current] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--lime); }
.langs a:hover { color: var(--paper); }
.tb { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fog);
  background: rgb(12 12 15 / .5); border: 1px solid var(--line2); border-radius: 999px; padding: 9px 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s; }
.tb:hover { color: var(--paper); border-color: rgb(242 242 240 / .4); }
.tb[aria-pressed="true"], .tb.on { color: var(--ink); background: var(--paper); border-color: var(--paper); }
#snd[aria-pressed="false"] span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--smoke); margin-right: 8px; vertical-align: 1px; }
#snd[aria-pressed="true"] { background: rgb(12 12 15 / .5); color: var(--paper); border-color: var(--line2); }
#snd[aria-pressed="true"] span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--lime); }

/* ---------- Knoepfe ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1 var(--text); padding: 17px 24px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgb(12 12 15 / .55); color: var(--paper); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .3s; }
.btn:hover { border-color: var(--paper); }
.btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 0 rgb(210 238 82 / .4); }
.btn.lime:hover { box-shadow: 0 0 32px -4px rgb(210 238 82 / .55); }
.btn.ghost { background: rgb(6 6 7 / .55); }                       /* nicht durchsichtig: Text bleibt lesbar vor Ring, Pult, Buehne */
.btn.small { font-size: 14px; padding: 12px 18px; }
.btn:active { transform: scale(.98); }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Scroll-Seite: Abschnitte links, die Szene rechts (Linsenversatz in app.js), Leiste rechts ---------- */
.site { position: relative; z-index: 10; pointer-events: none; }
html[data-s="deck"] :is(.site, .rail, #scrim, #poster), html[data-s="load"] :is(.site, .rail, #scrim, #poster), html[data-s="deck"] .auto-only { display: none !important; }
html:not([data-s="deck"]) .deck-only { display: none; }
#scrim { --col: calc(clamp(28px, 6vw, 112px) + 600px); position: fixed; inset: 0; z-index: 5; pointer-events: none;   /* dicht bis hinter die Textspalte, dann frei */
  background: linear-gradient(90deg, rgb(6 6 7 / .86) 0, rgb(6 6 7 / .76) var(--col), rgb(6 6 7 / .22) calc(var(--col) + 220px), rgb(6 6 7 / 0) calc(var(--col) + 420px)); }
#poster { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1.2s var(--ease), visibility 0s; }
html[data-gl="on"] #poster { opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
#poster i { position: absolute; inset: 0; background: center / cover no-repeat; background-position: 72% 50%; opacity: 0; filter: grayscale(.15) brightness(.62); transition: opacity .8s var(--ease); }
#poster i.on { opacity: 1; }
.sc { position: relative; min-height: calc(var(--vh, 100) * 1vh); display: flex; flex-direction: column; justify-content: center; padding: 112px clamp(28px, 6vw, 112px) 96px;
  pointer-events: none; }                                               /* neben der Textspalte gehen Klicks zur Szene (Bildschirme) bzw. zum Video */
.sc > * { pointer-events: auto; }
.sc-c { position: relative; max-width: 590px; }
.sc h2 { font: 700 clamp(30px, 2.6vw, 44px)/1.1 var(--disp); letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .6); }
.sc h3 { font: 700 20px/1.2 var(--disp); margin: 36px 0 10px; }
.sc .lead { font-size: 17px; line-height: 27px; color: var(--fog); max-width: 560px; margin-bottom: 14px; text-shadow: 0 1px 18px rgb(0 0 0 / .8); }
.sc .row { margin-top: 22px; }
.kick { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--smoke); margin-bottom: 22px; }
.kick.red { color: var(--red); }
.sc :is(.kick, .proof, .ask, .micro, dt, .steps li) { text-shadow: 0 1px 10px rgb(0 0 0 / .9), 0 0 2px rgb(0 0 0 / .8); }   /* kleine graue Zeilen vor der Szene */
.sub { font-size: 18px; line-height: 28px; color: var(--fog); max-width: 540px; margin-bottom: 34px; }
.micro { font-size: 13px; line-height: 20px; color: var(--smoke); margin-top: 18px; max-width: 520px; }
.offer { display: inline-block; font-size: 15px; color: var(--paper); text-decoration: none; border-bottom: 1px solid rgb(210 238 82 / .7); padding-bottom: 3px; }
.offer:hover { color: var(--lime); }
.lnk { background: none; border: 0; padding: 0 0 2px; color: var(--paper); border-bottom: 1px solid rgb(210 238 82 / .7); cursor: pointer; font: inherit; }
.lnk:hover { color: var(--lime); }
.proof, .ask { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.proof { margin: 4px 0 8px; } .ask { margin: 28px 0 12px; }
.tag { display: inline-block; align-self: flex-start; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 7px 11px; border-radius: 999px; margin-bottom: 20px; }
.disc.big { font-size: 16px; }
.tiles, .courses { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 600px; }
.tiles a, .courses a { display: grid; gap: 4px; align-content: start; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgb(10 10 13 / .6); text-decoration: none; transition: border-color .2s, background .2s; }
.tiles a:hover, .courses a:hover { border-color: var(--paper); background: rgb(18 18 22 / .75); }
.tiles b { font: 600 15px/1.25 var(--text); } .tiles span { font-size: 13px; line-height: 18px; color: var(--smoke); }
.courses { margin-bottom: 12px; }
.courses b { font: 700 16px/1.2 var(--disp); } .courses .mono { font-size: 10.5px; letter-spacing: .04em; color: var(--lime); } .courses span:last-child { font-size: 13.5px; line-height: 19px; color: var(--fog); }
.btn.wide { width: 100%; max-width: 600px; justify-content: space-between; text-align: left; } .btn.wide span { display: grid; gap: 5px; } .btn.wide small { font: 500 13px/1.25 var(--text); opacity: .72; } .btn.wide i { font-style: normal; }
.uses { list-style: none; padding: 0; display: grid; gap: 9px; margin: 6px 0 4px; }
.uses li { position: relative; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--fog); }
.uses li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.uses b { color: var(--paper); font-weight: 600; }
.steps, .chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps { counter-reset: s; }
.steps li, .chips li { font-size: 11px; letter-spacing: .06em; color: var(--fog); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 12px; background: rgb(10 10 13 / .5); }
.steps li { counter-increment: s; } .steps li::before { content: counter(s, decimal-leading-zero) " · "; color: var(--lime); }
.chips { margin-bottom: 16px; }
.people { list-style: none; padding: 0; display: grid; gap: 8px; margin: 8px 0 4px; }
.people li { display: grid; gap: 3px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(10 10 13 / .5); transition: border-color .4s, background .4s; }
.people li.on { border-color: rgb(210 238 82 / .65); background: rgb(14 15 12 / .78); }
.people b { font: 600 16px/1.25 var(--text); } .people .mono { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); }
.people span:last-child { font-size: 14px; line-height: 20px; color: var(--fog); }
#mentors { justify-content: flex-start; } #mentors .sc-c { position: sticky; top: 13vh; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 8px 0 4px; max-width: 600px; }
.facts dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; line-height: 21px; }
.faq { display: grid; gap: 6px; max-width: 620px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgb(10 10 13 / .62); }
.faq details[open] { border-color: var(--line2); }
.faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 15px 18px; font: 600 16px/1.3 var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 400; } .faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; font-size: 15px; line-height: 23px; color: var(--fog); }
.final { display: flex; gap: 32px; align-items: center; margin-top: 24px; }
.final .micro { margin-top: 14px; }
.qrbox { display: grid; gap: 10px; justify-items: center; margin: 0; flex: none; }
.qr { display: block; border-radius: 12px; }
.qrbox figcaption { max-width: 150px; margin: 0; text-align: center; }
/* YouTube des eigenen Kanals (yt.js): Knopf, Chips, 16:9-Karte (Ersatz ohne Szene / schmal), iframe auf dem Bildschirm der Szene */
.yt { margin-top: 20px; max-width: 590px; }
.yt .ytrow { margin-top: 0; }
.ytcard { display: block; position: relative; max-width: min(100%, calc(46vh * 16 / 9)); margin: 0 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--ink2); aspect-ratio: 16 / 9; box-shadow: 0 24px 60px -30px rgb(0 0 0 / .9); }
@media (min-width: 1100px) { html.live3d:not(.nogl) .ytcard:not(.on) { display: none; } }   /* Szene laeuft und Platz neben dem Text: das Bild ist der Bildschirm in 3D */
.ytcard.live { aspect-ratio: auto; }
.ytposter { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ytposter img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(1.05); transition: filter .3s, transform .6s var(--ease); }
.ytposter:hover img, .ytposter:focus-visible img { filter: brightness(.95); transform: scale(1.02); }
.ytposter:focus-visible { outline-offset: -3px; }
.ytplay { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--paper); background: rgb(6 6 7 / .55); }
.ytplay::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid var(--paper); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ytposter:hover .ytplay { border-color: var(--lime); } .ytposter:hover .ytplay::after { border-left-color: var(--lime); }
.ytcap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 11px; border-radius: 999px; background: rgb(6 6 7 / .76); font-size: 10.5px; letter-spacing: .1em; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytframe { aspect-ratio: 16 / 9; background: #000; }
.ytframe iframe { display: block; width: 100%; height: 100%; border: 0; }
.ytin, .ytbar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; }
.ytt { flex: 1; min-width: 0; font-size: 10.5px; letter-spacing: .1em; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytin .tb, .ytbar .tb { padding: 8px 12px; letter-spacing: .08em; }
.ytin .x, .ytbar .x { flex: none; }
.ytlist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ytlist button { font: 500 11px/1 var(--mono); letter-spacing: .05em; color: var(--fog); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 12px; background: rgb(10 10 13 / .62); cursor: pointer; transition: border-color .2s, color .2s; }
.ytlist button b { font-weight: 500; color: #ff9ea3; }
.ytlist button:hover { color: var(--paper); border-color: rgb(242 242 240 / .45); }
.ytlist button[aria-current] { color: var(--paper); border-color: var(--paper); background: rgb(18 18 22 / .8); }
.ytch { margin-top: 14px; } .ytch a { color: var(--fog); } .ytch a:hover { color: var(--paper); }
#ytl { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }   /* ueber Szene + Blende, unter der Textspalte */
#ytl iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: auto; background: #000; outline: 1px solid rgb(242 242 240 / .14); }
.ytbar { position: fixed; left: 0; top: 0; z-index: 12; max-width: min(520px, calc(100vw - 24px)); border-radius: 999px; background: rgb(10 10 13 / .88); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -18px rgb(0 0 0 / .9); }
html[data-s="deck"] :is(#ytl, .ytbar) { display: none !important; }
/* Startbild = erster Abschnitt (Text unten links, CSS-Sonnenfinsternis bis die Szene steht) */
.hero { justify-content: flex-end; padding-bottom: clamp(90px, 14vh, 150px); overflow: hidden; }
.hero .sc-c { max-width: 780px; }
.hero h1 { font: 800 clamp(34px, 3.75vw, 64px)/1.06 var(--disp); letter-spacing: -.02em; margin-bottom: 24px; white-space: nowrap; }
.hero .row { margin-top: 0; flex-wrap: nowrap; }
.hero .btn { padding: 15px 20px; font-size: 15px; white-space: nowrap; }
.hero .eclipse { transition: opacity 1.2s var(--ease); }
html[data-gl="on"] .hero .eclipse { opacity: 0; }
.hint { position: absolute; left: clamp(28px, 6vw, 112px); bottom: 30px; display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); text-decoration: none; }
.hint i { width: 1px; height: 30px; background: linear-gradient(var(--lime), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* Kapitelleiste: Punkte rechts, Name beim aktiven, bei Hover/Fokus alle */
.rail { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 30; }
.rail ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 25px; padding: 0 4px; text-decoration: none; color: var(--smoke); font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; border-radius: 6px; }
.rail a::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgb(242 242 240 / .35); background: rgb(6 6 7 / .6); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; text-shadow: 0 0 10px #000, 0 0 2px #000;
  padding: 3px 6px; border-radius: 5px; background: rgb(6 6 7 / .62); }   /* Name lesbar auch vor hellen Tafeln/Buehne */
.rail:hover span, .rail a:focus-visible span { opacity: .8; transform: none; }
.rail a[aria-current] { color: var(--paper); } .rail a[aria-current] span { opacity: 1; transform: none; }
.rail a[aria-current]::after { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 10px var(--lime); transform: scale(1.25); }
.rail a.past::after { background: rgb(242 242 240 / .55); border-color: transparent; }
.rail a:hover { color: var(--paper); }
#autoBtn { --p: 0; position: relative; overflow: hidden; }
#autoBtn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--lime); }
#autoBtn[aria-pressed="true"] { color: var(--paper); background: rgb(12 12 15 / .7); border-color: rgb(210 238 82 / .6); }
#autoBtn[aria-pressed="true"] .play { width: 8px; height: 8px; border: 0; background: var(--lime); border-radius: 1px; }
.loadbar { position: fixed; left: clamp(28px, 6vw, 112px); bottom: 28px; z-index: 40; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
html[data-s="site"] .loadbar { left: 50%; translate: -50% 0; }        /* Seite: unten mittig — rechts unten sitzt der DJ Manager */
.loadbar i { width: 160px; height: 1px; background: var(--line2); position: relative; overflow: hidden; }
.loadbar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: var(--lime); transition: width .3s; }

/* Sonnenfinsternis aus CSS: schwarze Scheibe, brennender Lime-Halo mit kurzem Spektralsaum — ohne three.js im ersten Bild */
.eclipse { position: absolute; left: 71%; top: 44%; width: min(58vmin, 660px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.eclipse i { position: absolute; inset: -9%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(210 238 82 / .0), rgb(210 238 82 / .75) 8%, rgb(210 238 82 / .2) 18%, rgb(232 255 120 / .95) 31%, rgb(210 238 82 / .15) 44%, rgb(210 238 82 / .7) 58%, rgb(210 238 82 / .05) 70%, rgb(240 255 160 / .9) 84%, rgb(210 238 82 / 0));
  -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 84.5%, #000 86%, transparent 100%); mask: radial-gradient(closest-side, transparent 80%, #000 84.5%, #000 86%, transparent 100%);
  filter: blur(14px); animation: eclipseSpin 46s linear infinite; }
.eclipse b { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, #020203 96%, rgb(2 2 3 / 0) 100%);
  box-shadow: 0 0 0 1.5px rgb(242 255 190 / .9), -2px 0 6px 1px rgb(255 90 120 / .35), 2px 0 6px 1px rgb(90 160 255 / .35), 0 0 60px 14px rgb(210 238 82 / .28), 0 0 220px 60px rgb(210 238 82 / .12);
  animation: eclipsePulse 1.97s var(--ease) infinite; }
@keyframes eclipseSpin { to { transform: rotate(360deg); } }
@keyframes eclipsePulse { 0% { box-shadow: 0 0 0 1.5px rgb(242 255 190 / .95), -2px 0 6px 1px rgb(255 90 120 / .4), 2px 0 6px 1px rgb(90 160 255 / .4), 0 0 72px 18px rgb(210 238 82 / .34), 0 0 240px 70px rgb(210 238 82 / .15); } 40%, 100% { box-shadow: 0 0 0 1.5px rgb(242 255 190 / .8), -2px 0 6px 1px rgb(255 90 120 / .28), 2px 0 6px 1px rgb(90 160 255 / .28), 0 0 56px 12px rgb(210 238 82 / .24), 0 0 200px 52px rgb(210 238 82 / .1); } }
.gate { position: fixed; inset: 0; z-index: 27; display: grid; place-content: center; background: radial-gradient(closest-side, rgb(6 6 7 / .1), rgb(6 6 7 / .6)); }

/* ---------- Pult ---------- */
.deckui { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.deckui > * { pointer-events: auto; }
.waves { position: absolute; left: var(--pad); right: var(--pad); top: 70px; display: grid; grid-template-rows: 60px 12px 60px; gap: 4px; transition: opacity .4s, transform .5s var(--ease); }
.wv { position: relative; border-radius: 10px; overflow: hidden; background: linear-gradient(rgb(12 12 15 / .55), rgb(12 12 15 / .35)); border: 1px solid var(--line); cursor: ew-resize; }
.wv.air { border-color: rgb(210 238 82 / .25); }
.wv.drop, .dk.drop { outline: 2px dashed var(--lime); outline-offset: -2px; }
.wc { width: 100%; height: 100%; display: block; }
.wl, .wr { position: absolute; top: 6px; font-size: 10px; letter-spacing: .08em; color: var(--fog); pointer-events: none; text-shadow: 0 0 6px #000; }
.wl { left: 10px; } .wr { right: 10px; } .wl b { color: var(--paper); margin-right: 4px; }
.wbpm.match { color: var(--lime); }
.phase { position: relative; height: 12px; display: flex; align-items: center; justify-content: center; }
.phase::before { content: ""; position: absolute; left: 50%; width: 1px; height: 12px; background: var(--line2); }
.phase i { position: absolute; left: calc(50% + var(--p, 0) * 30%); width: 34px; height: 4px; translate: -50% 0; border-radius: 4px; background: var(--smoke); opacity: 0; transition: background .2s; }
.phase.live i { opacity: 1; } .phase.ok i { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.phase span { position: absolute; left: calc(50% + 40px); font-size: 9px; color: var(--smoke); letter-spacing: .08em; }

.console { position: absolute; left: var(--pad); right: var(--djm); bottom: 16px; height: 248px; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(450px, 490px) minmax(320px, 1fr); gap: 10px;
  transition: transform .5s var(--ease), opacity .4s; }
.console > section { background: rgb(10 10 13 / .74); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
html.cine .console, html.cine .waves, html.cine .dock, html.cine .tut, html.cine .crate { opacity: 0; pointer-events: none; transform: translateY(16px); }
.dk { display: grid; grid-template-rows: 24px 24px minmax(0, 1fr) 20px; gap: 6px; }
.dk.sel { border-color: rgb(242 242 240 / .28); }
.dk-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dk-id { font: 700 12px/1 var(--mono); width: 22px; height: 22px; display: grid; place-content: center; border-radius: 6px; background: var(--steel); align-self: center; }
.dk.sel .dk-id { background: var(--paper); color: var(--ink); }
.dk-title { flex: 1; font: 600 13px/1.2 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fog); }
.dk-key { font-size: 10px; color: var(--smoke); }
.dk-bpm b { font: 700 18px/1 var(--disp); color: var(--paper); } .dk-bpm i { font-style: normal; font-size: 9px; color: var(--smoke); margin-left: 3px; }
.dk-head.match .dk-bpm b { color: var(--lime); }
.dk-pitch { font-size: 10px; color: var(--smoke); min-width: 52px; text-align: right; }
.dk-over { width: 100%; height: 24px; display: block; border-radius: 5px; background: rgb(242 242 240 / .03); cursor: pointer; }
.dk-body { display: grid; grid-template-columns: 96px 54px 1fr 50px; gap: 9px; align-items: center; min-height: 0; }
.dk[data-d="B"] .dk-body { grid-template-columns: 50px 1fr 54px 96px; }
.dk-foot { display: flex; gap: 6px; align-items: center; }
.dk[data-d="B"] .dk-foot { justify-content: flex-end; }
.dk.loading .dk-title::after { content: " …"; }

.jog { width: 96px; height: 96px; border-radius: 50%; position: relative; cursor: grab; touch-action: none;
  background: radial-gradient(circle, #1a1b1f 0 30%, transparent 30.5%), repeating-radial-gradient(circle, #0d0d10 0 1.5px, #18191d 1.5px 3px), #111;
  box-shadow: inset 0 0 0 2px #2a2b31, inset 0 0 0 7px #0b0b0d, inset 0 0 0 8px rgb(242 242 240 / .12), 0 6px 18px rgb(0 0 0 / .6); }
.jog-m { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--jr, 0deg)); }
.jog-m::before { content: ""; position: absolute; left: 50%; top: 9px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); box-shadow: 0 0 6px rgb(242 242 240 / .6); }
.jog-c { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-content: center; font: 700 13px/1 var(--mono); color: var(--smoke); background: radial-gradient(#202126, #121316); box-shadow: inset 0 0 0 1px var(--line2); }
.dk.loaded .jog-c { color: var(--lime); }
.jog.drag { cursor: grabbing; } .jog.scratch { box-shadow: inset 0 0 0 2px var(--lime), inset 0 0 0 7px #0b0b0d, 0 6px 18px rgb(0 0 0 / .6); }
.tr { display: grid; gap: 8px; }
.pb { font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--fog); background: linear-gradient(#1d1e23, #141518); border: 1px solid #2c2d33; border-radius: 9px; cursor: pointer; padding: 0;
  transition: background .12s, color .12s, box-shadow .12s, transform .06s; user-select: none; -webkit-user-select: none; }
.pb.down { transform: translateY(1px); }
.pb:hover { border-color: #45474f; }
.pb.play, .pb.cue { width: 54px; height: 44px; border-radius: 50%; }
.pb.play { display: grid; place-content: center; grid-auto-flow: column; gap: 4px; }
.pb.play .tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pb.play .bars { width: 8px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pb.play.on, .pb.play.blink { color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime), 0 0 16px -2px rgb(210 238 82 / .7); }
.pb.cue.on { color: #ffb347; box-shadow: inset 0 0 0 2px #ffb347, 0 0 14px -2px rgb(255 179 71 / .6); }
.pc { display: grid; gap: 6px; min-width: 0; }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pad { height: 32px; border-radius: 7px; }
.pad.hot.on { color: var(--ink); background: linear-gradient(#e2f77a, var(--lime)); border-color: var(--lime); }
.pad.lp { color: var(--smoke); }
.pad.lp.on { color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
.lprow { display: flex; gap: 5px; }
.sm { height: 22px; padding: 0 9px; border-radius: 6px; font-size: 9.5px; }
.sm.on { color: var(--lime); border-color: rgb(210 238 82 / .5); }
.lprow .pb { flex: 1; }
.tp { display: grid; justify-items: center; gap: 4px; align-content: center; }
.pb.sync { width: 50px; }
.pb.sync.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.range { width: 50px; }
.console:focus { outline: none; }

/* Fader / Regler */
.fd { position: relative; touch-action: none; cursor: grab; }
.fd.vt { width: 30px; height: 104px; }
.fd.vt > i { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; background: #050506; border-radius: 3px; box-shadow: inset 0 0 0 1px #2a2b30; }
.fd.vt::after { content: ""; position: absolute; left: 1px; right: 1px; height: 18px; bottom: calc(var(--k, .5) * (100% - 18px)); border-radius: 4px;
  background: linear-gradient(#3a3b42, #22232a 45%, #2e2f36 55%, #1a1b20); box-shadow: 0 2px 6px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .12); }
.fd.vt::before { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; bottom: calc(var(--k, .5) * (100% - 18px) + 8px); background: var(--paper); z-index: 1; border-radius: 1px; }
.fd.tempo { height: 70px; }
.fd.tempo > i { background: linear-gradient(transparent calc(50% - 1px), var(--smoke) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), #050506; }
.fd.hz { height: 30px; flex: 1; }
.fd.hz > i { position: absolute; top: 50%; left: 8px; right: 8px; height: 3px; margin-top: -1.5px; background: #050506; border-radius: 3px; box-shadow: inset 0 0 0 1px #2a2b30; }
.fd.hz::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 22px; left: calc(var(--k, .5) * (100% - 22px)); border-radius: 4px; background: linear-gradient(90deg, #3a3b42, #22232a 45%, #2e2f36 55%, #1a1b20); box-shadow: 0 2px 6px rgb(0 0 0 / .7); }
.fd.hz::before { content: ""; position: absolute; top: 6px; bottom: 6px; width: 2px; left: calc(var(--k, .5) * (100% - 22px) + 10px); background: var(--paper); z-index: 1; }
.fd.drag, .kn.drag { cursor: grabbing; }
.kn { width: 34px; height: 34px; border-radius: 50%; position: relative; cursor: ns-resize; touch-action: none;
  background: radial-gradient(circle at 50% 38%, #3a3b42, #1b1c21 62%); box-shadow: 0 3px 8px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 4px #0c0c0e, 0 0 0 5px #24252b; }
.kn > i { position: absolute; inset: 0; transform: rotate(var(--a, 0deg)); }
.kn > i::before { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--paper); }
.kn > b { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from -135deg, var(--lime) 0 calc(var(--k, .5) * 270deg), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%); mask: radial-gradient(closest-side, transparent 86%, #000 88%); opacity: 0; transition: opacity .2s; }
.kn.off > b { opacity: .85; }
.knw { display: grid; justify-items: center; gap: 4px; }
.kl { font-size: 8.5px; letter-spacing: .1em; color: var(--smoke); }

/* Mischpult */
.mx { display: grid; grid-template-columns: 1fr 186px 1fr; grid-template-rows: 1fr 34px; gap: 6px 10px; }
.mx-ch { display: grid; grid-template-columns: 1fr 8px 30px; gap: 8px; align-items: center; }
.mx-ch[data-d="B"] { grid-template-columns: 30px 8px 1fr; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 6px; justify-items: center; }
.kgrid .knw:last-child { grid-column: span 2; }
.vu { display: flex; flex-direction: column-reverse; gap: 2px; height: 112px; }
.vu i { flex: 1; border-radius: 1px; background: #1a1b1f; }
.vu i.on { background: var(--lime); } .vu i.on:nth-child(n+12) { background: #f6d34a; } .vu i.on:nth-child(n+14) { background: #ff5a4f; }
.vu i.pk { background: rgb(242 242 240 / .55); }
.mx-c { display: grid; grid-template-rows: auto 1fr; gap: 6px; }
.mrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mvu { height: 46px; width: 6px; }
.fx { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "h h" "t b" "l o"; gap: 5px 8px; align-content: start; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgb(242 242 240 / .03); border: 1px solid var(--line); }
.fx > .fxh { grid-area: h; } .fx > .fxt { grid-area: t; } .fx > .fxbeat { grid-area: b; } .fx > .knw { grid-area: l; } .fx > .fxr { grid-area: o; display: grid; gap: 5px; }
.fxh { font-size: 8.5px; letter-spacing: .16em; color: var(--smoke); text-align: center; }
.fxt { height: 24px; font-size: 10px; }
.fxbeat { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; text-align: center; }
.fxb { font-size: 13px; color: var(--paper); }
.fxbeat .sm { padding: 0; }
.fxrow { display: flex; align-items: center; justify-content: space-around; }
.fxon { width: 100%; height: 24px; border-radius: 7px; font-size: 10px; }
.fxon.on, .fxon.blink { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.seg3 .sm { padding: 0; }
.seg3 .sm.on { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.xrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 22%; }

/* Hervorheben */
.hl { animation: hl 1.1s var(--ease) infinite; position: relative; z-index: 2; }
@keyframes hl { 0%, 100% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 6px rgb(210 238 82 / .0); } 50% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 10px rgb(210 238 82 / .22); } }
.kn.hl, .jog.hl { border-radius: 50%; }
.hov { box-shadow: 0 0 0 2px rgb(242 242 240 / .7) !important; }

/* Lernpfad */
.tut { position: absolute; left: var(--pad); top: 236px; width: 330px; padding: 20px 20px 16px; border-radius: 16px; background: rgb(10 10 13 / .82); backdrop-filter: blur(14px); border: 1px solid var(--line2); }
.tut-n { font-size: 10.5px; letter-spacing: .18em; color: var(--lime); text-transform: uppercase; margin-bottom: 10px; }
.tut-t { font: 700 22px/1.15 var(--disp); margin-bottom: 10px; }
.tut-x { font-size: 15px; line-height: 22px; color: var(--paper); margin-bottom: 10px; }
.tut-w { font-size: 13px; line-height: 19px; color: var(--smoke); margin-bottom: 10px; }
.tut-w b { color: var(--fog); font-weight: 500; }
.tut-keys { font-size: 10.5px; color: var(--fog); letter-spacing: .06em; margin-bottom: 14px; }
.tut .row { gap: 6px; } .tut .tb { padding: 7px 10px; font-size: 9.5px; }
.tut-p { display: flex; gap: 4px; list-style: none; padding: 0; margin-top: 14px; }
.tut-p li { flex: 1; height: 3px; border-radius: 2px; background: var(--line2); }
.tut-p li.done { background: var(--lime); } .tut-p li.cur { background: var(--paper); }
.tut.ok { animation: ok .7s var(--ease); }
@keyframes ok { 0% { box-shadow: 0 0 0 0 rgb(210 238 82 / .7); } 100% { box-shadow: 0 0 0 26px rgb(210 238 82 / 0); } }
.stamp { position: fixed; left: 50%; top: 32%; z-index: 60; translate: -50% 0; font: 700 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 12px 18px; border-radius: 999px; pointer-events: none;
  animation: stamp 1.8s var(--ease) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.3) rotate(-3deg); } 15% { opacity: 1; transform: scale(1) rotate(-3deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px) rotate(-3deg); } }

/* Plattenkiste: Huellen stehen im Kasten, kippen beim Durchblaettern (CSS 3D) */
.crate { position: absolute; right: var(--pad); top: 236px; bottom: 284px; width: 380px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 14px; border-radius: 16px;
  background: rgb(10 10 13 / .86); backdrop-filter: blur(16px); border: 1px solid var(--line2); transform: translateX(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .55s var(--ease), opacity .4s, visibility .55s; }
.crate.open { transform: none; opacity: 1; visibility: visible; }
.crate header { display: flex; align-items: center; gap: 8px; }
.crate h3 { font: 700 15px/1 var(--disp); flex: 1; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--fog); font-size: 18px; line-height: 1; cursor: pointer; }
.x:hover { color: var(--paper); border-color: var(--paper); }
.sleeves { overflow-y: auto; perspective: 900px; display: grid; gap: 8px; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; }
.sl { position: relative; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: rgb(242 242 240 / .03); border: 1px solid var(--line);
  cursor: pointer; transform-origin: 50% 100%; transform: rotateX(8deg); transition: transform .35s var(--ease), background .2s, border-color .2s; }
.sl:hover, .sl:focus-visible { transform: rotateX(0) translateY(-3px) translateZ(14px); background: rgb(242 242 240 / .07); border-color: var(--line2); }
.sl.lift { opacity: .5; }
.sl img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; box-shadow: 0 6px 14px rgb(0 0 0 / .6); background: var(--ink3); }
.slt { font: 600 14px/1.2 var(--text); } .sls { font-size: 10px; color: var(--fog); margin-top: 4px; } .slf { font-size: 8.5px; color: var(--smoke); margin-top: 6px; letter-spacing: .04em; }
.slb { display: grid; gap: 4px; } .slb .tb { padding: 6px 10px; }
.sl .dot { position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); opacity: 0; transition: opacity .3s; }
.sl.fit .dot { opacity: 1; }
.sl.onA, .sl.onB { border-color: rgb(210 238 82 / .35); }
.crate-n { font-size: 9.5px; color: var(--smoke); line-height: 15px; }

.dock { position: absolute; right: var(--djm); bottom: 274px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 70vw; }
html:not(.nogl) .deckui:has(.crate.open) .dock { right: calc(var(--pad) + 392px); }   /* offene Plattenkiste: Leiste links daneben, nicht darueber */
.dock .btn.small { padding: 10px 16px; font-size: 13px; }

/* ---------- Karten ---------- */
.card { position: fixed; z-index: 50; left: clamp(28px, 4vw, 64px); top: 50%; translate: 0 -50%; width: min(560px, calc(100vw - 56px)); max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 30px 30px 26px; border-radius: 22px; background: rgb(10 10 13 / .9); backdrop-filter: blur(18px) saturate(1.1); border: 1px solid var(--line2);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / .9); animation: cardIn .5s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card > .x { position: absolute; right: 16px; top: 16px; }
.cap-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 14px; }
.card h2 { font: 700 28px/1.12 var(--disp); margin-bottom: 18px; padding-right: 40px; }
.disc { font-size: 13px; color: var(--lime); margin-top: 10px; }
.end .badge { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.end .badge b { font: 800 52px/1 var(--disp); color: var(--lime); }
.end .badge span { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-bottom: 20px; }
.stats dt { color: var(--smoke); } .stats dd { color: var(--paper); }
.end .alt { display: block; margin-top: 14px; font-size: 14px; color: var(--fog); }
.end .row { margin-top: 18px; }
.gen { left: auto; right: var(--djm); width: min(460px, calc(100vw - 160px)); }
.gf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.gf > fieldset:first-child, .gf > label:has(#gSeed), .gf > button { grid-column: 1 / -1; }
.gen h2 { font-size: 24px; margin-bottom: 10px; }
.gen .micro { margin-top: 0; }
.gf fieldset { border: 0; padding: 0; }
.gf legend, .gf label > span:first-child { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); margin-bottom: 8px; display: inline-block; }
.gf label { display: grid; }
.gf output { font-size: 12px; color: var(--paper); justify-self: end; margin-top: -22px; }
.gf input[type=range] { accent-color: var(--lime); width: 100%; }
.gf select, .gf input[type=number] { background: var(--ink3); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 11px/1 var(--mono); padding: 9px 11px; border-radius: 999px; border: 1px solid var(--line2); background: none; cursor: pointer; color: var(--fog); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seedrow { display: flex; gap: 8px; } .seedrow input { flex: 1; min-width: 0; }
.gprog { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--fog); margin-top: 14px; }
.gprog i { flex: 1; height: 2px; background: var(--line2); position: relative; } .gprog i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: var(--lime); }
.gres { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgb(210 238 82 / .35); }
.gres img { border-radius: 8px; }
.gname { font: 700 18px/1.2 var(--disp); } .gres .mono { font-size: 11px; color: var(--fog); margin: 4px 0 10px; }
.help { width: min(520px, calc(100vw - 56px)); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 12px; }
.keys dt { color: var(--lime); } .keys dd { color: var(--fog); font-family: var(--text); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 290px; translate: -50% 0; z-index: 70; padding: 12px 18px; border-radius: 999px; background: rgb(18 18 22 / .94); border: 1px solid var(--line2);
  font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; max-width: min(640px, 80vw); text-align: center; }
.toast.on { opacity: 1; transform: none; }
html[data-s="site"] .toast { bottom: 120px; }

/* KI-Chat «DJ Manager» (site/manager/djm.js): fest unten rechts, ueber Kopf/Leisten, unter Dialogen. Waechst nach links;
   am Pult nur die Platte (56 px) im freien Streifen rechts (--djm), Name erst bei Hover/Fokus */
.djm-slot { position: fixed; right: 24px; bottom: 24px; z-index: 45; min-width: 72px; min-height: 72px; display: flex; align-items: flex-end; justify-content: flex-end; }
.djm-slot:empty { pointer-events: none; width: 72px; height: 72px; }
html[data-s="deck"] .djm-slot .djm-launch { padding: 6px; }
html[data-s="deck"] .djm-slot .djm-launch:is(:hover, :focus-visible) { padding-right: 1.1rem; }
html[data-s="deck"] .djm-slot .djm-launch:not(:hover):not(:focus-visible) .djm-lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nos { position: fixed; inset: auto 16px 40px; z-index: 99; text-align: center; }

/* ---------- ohne WebGL: Pult in 2D, Praesentation als Standbilder ---------- */
html.nogl #gl { display: none; }
html.nogl .deckui { background: radial-gradient(70% 60% at 50% 40%, #121317, var(--ink)); }
html.nogl .console { top: 222px; height: 256px; bottom: auto; }
html.nogl .dock { top: 494px; bottom: auto; left: var(--pad); right: var(--djm); justify-content: flex-start; max-width: none; }
html.nogl .tut { top: 548px; }
html.nogl .crate { top: 548px; bottom: 24px; right: var(--djm); }   /* rechts unten sitzt der DJ Manager */

/* ---------- 1100–1419 px (13–14"-Laptops, 1366/1280): Konsole + Leiste maßstabsgetreu kleiner statt Bedienteile uebereinander
   (Konsole braucht 1292 px; Abstaende skalieren mit, Plattenkiste und Wellen bleiben) ---------- */
@media (min-width: 1100px) and (max-width: 1419px) { .console, .dock { zoom: .9; } }
@media (min-width: 1100px) and (max-width: 1299px) { .console, .dock { zoom: .8; } }
@media (min-width: 1100px) and (max-width: 1179px) { .console, .dock { zoom: .74; } }

/* ---------- kleine Desktop-Fenster (Albert 18.10.: Chrome ~756×556): Kopf einzeilig und deckend, Startknoepfe brechen um statt
   abgeschnitten zu werden, Schrift eine Stufe kleiner, Leiste nur Punkte, DJ Manager nur die Platte (Name bei Hover/Fokus) ---------- */
@media (max-width: 1099px) {
  .top { height: 56px; gap: 8px; padding: 0 16px; background: rgb(6 6 7 / .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .chap { visibility: hidden; margin-left: 0; }
  .top .tb { padding: 8px 11px; letter-spacing: .08em; }
  .langs { padding: 0 4px; } .langs a { padding: 8px 5px; }
  #autoBtn { padding: 8px 12px; }
  #autoBtn > [data-i] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* nur ▶ / ■, Name bleibt fuer Vorleser */
  .sc { padding: 92px 60px 72px clamp(20px, 4vw, 40px); }
  .hero { padding-bottom: 76px; }
  .hero h1 { font-size: clamp(26px, 4.1vw, 40px); margin-bottom: 18px; }
  .sub { font-size: 16px; line-height: 25px; margin-bottom: 24px; }
  .hero .row { flex-wrap: wrap; }
  .hero .btn { padding: 13px 18px; font-size: 14px; }
  .sc h2 { font-size: clamp(24px, 3.3vw, 32px); }
  .sc .lead { font-size: 16px; line-height: 25px; }
  .kick { margin-bottom: 16px; }
  .rail { right: 10px; } .rail span { display: none; } .rail a { height: 22px; }
  .hint { left: clamp(20px, 4vw, 40px); bottom: 22px; }
  html[data-s="site"] .djm-slot { right: 16px; bottom: 16px; }
}
@media (max-width: 1099px), (max-height: 640px) {
  html[data-s="site"] .djm-slot .djm-launch { padding: 6px; }
  html[data-s="site"] .djm-slot .djm-launch:is(:hover, :focus-visible) { padding-right: 1.1rem; }
  html[data-s="site"] .djm-slot .djm-launch:not(:hover):not(:focus-visible) .djm-lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* niedrige Fenster: weniger Luft oben/unten, Leiste enger */
@media (max-height: 720px) {
  .sc { padding-top: 88px; padding-bottom: 64px; }
  .hero { padding-bottom: 70px; }
  .hero h1 { margin-bottom: 16px; }
  .sub { margin-bottom: 22px; }
  .hint { bottom: 18px; }
  .rail a { height: 20px; }
  #mentors .sc-c { top: 76px; }
}

/* ---------- schmale Fenster (Desktop-Maus unter 1100 px): stapeln statt quetschen ---------- */
@media (max-width: 1099px) {
  html[data-s="deck"] { overflow: auto; }
  #scrim { background: rgb(6 6 7 / .6); }
  .tiles, .courses, .facts { grid-template-columns: 1fr; }
  .deckui { position: absolute; min-height: 100%; }
  .console { position: relative; left: auto; right: auto; bottom: auto; margin: 260px 16px 110px; height: auto; grid-template-columns: 1fr 1fr; }
  .console .mx { grid-column: 1 / -1; grid-row: 2; }
  .crate, .tut { width: min(380px, calc(100vw - 32px)); }
  .dock { bottom: auto; top: 210px; right: 16px; left: 16px; justify-content: flex-start; }
}

/* ---------- Ruhe ---------- */
html.calm .auto-only { display: none !important; }                    /* reduzierte Bewegung: kein Autoplay, Poster je Abschnitt */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* Text im Raum (scroll.js depth): Abschnitte, deren Text ins Bild passt, werden laenger, der Text steht (sticky, top aus JS) und taucht
   aus der Tiefe auf; Tastatur-Fokus macht ihn immer sichtbar */
html.dtext .sc.fit { justify-content: flex-start; min-height: calc(var(--vh, 100) * 1.6vh); }
html.dtext .sc.fit > .sc-c { position: sticky; }
html.dtext .sc > .sc-c { transform-origin: 30% 50%; will-change: opacity, transform; }
html.dtext .sc > .sc-c:focus-within { opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto !important; }

/* Rundflug = kleiner Play-Knopf unten neben «Листайте» (Albert 18.10.: separate Funktion, nicht Hauptfunktion) */
.hint-play { position: absolute; left: calc(clamp(28px, 6vw, 112px) + 230px); bottom: 21px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px;
  border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; background: rgb(0 0 0 / .35); color: var(--smoke); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s, color .2s; }
.hint-play:hover, .hint-play:focus-visible { border-color: var(--lime); color: var(--fog); }
@media (max-width: 1099px), (max-height: 640px) { .hint-play { left: calc(clamp(20px, 4vw, 40px) + 210px); bottom: 13px; } }

/* Kino-Modus (app.js cineFrame): Text, Leiste und Hinweise blenden aus, der Raum dunkelt am Rand ab (unter dem Video #ytl, z 6) */
html.ytcine .site .sc-c, html.ytcine #rail, html.ytcine .hint, html.ytcine .hint-play { opacity: 0 !important; pointer-events: none !important; transition: opacity .6s var(--ease); }
html::after { content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease);
  background: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 55%, rgb(0 0 0 / .72)); }
html.ytcine::after { opacity: 1; }

/* Playlist in der Leiste (Kino-Modus) */
html.ytcine .ytbar { max-width: min(1060px, calc(100vw - 24px)); }
.ytbl { display: flex; gap: 6px; flex: none; }
.ytbl:empty { display: none; }
.ytc { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--smoke); font-size: 10px; letter-spacing: .08em; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s; }
.ytc:hover, .ytc:focus-visible { color: var(--fog); border-color: var(--fog); }
.ytc[aria-current] { border-color: var(--lime); color: var(--fog); }
