/* Was das Programm ausblendet (hidden), bleibt immer aus – egal, was eine Karte sonst für eine Anzeige hat */
[hidden] { display: none !important; }

/* Kickdrum Chronicles – Design
   Ein dunkler Club-Look. Jedes Jahrzehnt hat seine eigenen zwei Farben (--acc, --acc2),
   die beim Wechseln weich ineinander übergehen. Schrift: Montserrat (eigener Server), sonst Systemschrift. */

@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

@property --acc { syntax: "<color>"; inherits: true; initial-value: #ff7a1a; }
@property --acc2 { syntax: "<color>"; inherits: true; initial-value: #3ee6d0; }

:root {
  --bg: #07090c;
  --bg-2: #0b1015;
  --panel: #0f161d;
  --panel-2: #152029;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eaf0f2;
  --soft: #c9d6da;
  --muted: #8fa3aa;
  --acc: #ff7a1a;
  --acc2: #3ee6d0;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 16px;
  --maxw: 1120px;
  color-scheme: dark;
  transition: --acc 0.8s ease, --acc2 0.8s ease;
}
/* Farben je Jahrzehnt:
   70er Disco: Gold wie Messing und Spiegelkugel, dazu Pink
   80er Chicago und Acid: Smiley-Gelb und Warnorange
   90er Rave: Schwarzlicht-Violett und Laser-Türkis
   2000er Minimal: Beton-Weiß und ein einziges Signalrot */
:root[data-zeit="70er"] { --acc: #f6b73c; --acc2: #ff5fa2; }
:root[data-zeit="80er"] { --acc: #ffd60a; --acc2: #ff5a1f; }
:root[data-zeit="90er"] { --acc: #b388ff; --acc2: #3df5ff; }
:root[data-zeit="2000er"] { --acc: #e6ebee; --acc2: #ff3b30; }
/* 2010er: LED-Blau der Pad-Controller und Festival-Orange; 2020er: Bildschirm-Limette und Stream-Magenta */
:root[data-zeit="2010er"] { --acc: #47b8ff; --acc2: #ff8a3d; }
:root[data-zeit="2020er"] { --acc: #c6ff3d; --acc2: #ff4fd8; }
:root[data-zeit="stile"] { --acc: #7ee08a; --acc2: #f6b73c; }

/* Dazu je Jahrzehnt ein ganz leises Muster im Hintergrund */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.8s; }
:root[data-zeit="70er"] body::after { opacity: 1; background: radial-gradient(circle, rgba(255, 230, 170, 0.18) 0 1px, transparent 1.6px) 0 0 / 46px 46px, radial-gradient(circle, rgba(255, 140, 200, 0.12) 0 1px, transparent 1.6px) 23px 23px / 46px 46px; }
:root[data-zeit="80er"] body::after { opacity: 1; background: repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 90, 31, 0.05) 62px 64px), repeating-linear-gradient(0deg, transparent 0 62px, rgba(255, 214, 10, 0.035) 62px 64px); }
:root[data-zeit="90er"] body::after { opacity: 1; background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(61, 245, 255, 0.05) 140px 141px, transparent 141px 300px), repeating-linear-gradient(65deg, transparent 0 220px, rgba(179, 136, 255, 0.06) 220px 221px); }
:root[data-zeit="2010er"] body::after { opacity: 1; background: radial-gradient(circle, rgba(71, 184, 255, 0.09) 0 2.5px, transparent 3px) 0 0 / 30px 30px, radial-gradient(circle, rgba(255, 138, 61, 0.06) 0 2px, transparent 2.5px) 15px 15px / 30px 30px; }
:root[data-zeit="2020er"] body::after { opacity: 1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px), radial-gradient(60vw 50vw at 50% 110%, rgba(255, 79, 216, 0.08), transparent 70%); }
:root[data-zeit="2000er"] body::after { opacity: 1; background: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 100%; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16.5px/1.65 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at -10% 30%, color-mix(in srgb, var(--acc2) 10%, transparent), transparent 70%);
}
a { color: var(--acc2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  /* klebt ganz oben; die Statusleiste (iPhone-Web-App) liegt im Innenabstand, so zählt sie zur Höhe (--top-h) und nichts scheint darüber durch */
  position: sticky; top: 0; z-index: 20;
  margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo nav lang"; align-items: center; gap: 10px 14px; }
.topbar .logo { grid-area: logo; }
.topbar .nav { grid-area: nav; justify-content: flex-end; }
.topbar .langsw { grid-area: lang; }
.topbar .hdr-r { grid-area: lang; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 15px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.logo b { color: var(--acc); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 100%; background: var(--acc); border-radius: 2px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.4s; background: var(--acc2); }
.eq i:nth-child(3) { animation-delay: -0.8s; }
.eq i:nth-child(4) { animation-delay: -0.2s; background: var(--acc2); }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
/* Signet im Kopf: Trommelfell mit Equalizer, Ring und Balken in der Farbe des Jahrzehnts */
.kc-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.kc-mark .kc-hoop { fill: none; stroke: var(--text); stroke-width: 8; }
.kc-mark .kc-head { fill: none; stroke: var(--acc); stroke-width: 4; }
.kc-mark rect { fill: var(--acc); transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; }
.kc-mark rect:nth-of-type(2) { animation-delay: -0.4s; } .kc-mark rect:nth-of-type(3) { animation-delay: -0.8s; } .kc-mark rect:nth-of-type(4) { animation-delay: -0.2s; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--soft); text-decoration: none; font: 700 14px var(--font-display); white-space: nowrap;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: var(--text); border-color: var(--acc); }
.nav a[aria-current="page"] { color: #111; background: var(--acc); border-color: var(--acc); }

/* ---------- Allgemeine Bausteine ---------- */
.section { padding-block: 44px; border-top: 1px solid var(--line); }
.eyebrow { font: 600 12.5px var(--font-data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc2); margin-bottom: 10px; }
.h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.lead { color: var(--soft); max-width: 64ch; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 800 15px var(--font-display); color: #111; background: var(--acc);
  border: 0; border-radius: 999px; padding: 13px 22px;
  box-shadow: 0 10px 30px -10px var(--acc); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--acc); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--acc2); }
.chip {
  font: 600 13px var(--font-data); color: var(--soft); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.chip[aria-pressed="true"] { color: #111; background: var(--acc2); border-color: var(--acc2); }
.reveal { transform: translateY(14px); transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transform: none; }

/* ---------- Geräte oben, je Jahrzehnt eins (stages.js) ---------- */
.hub-hero, .d-hero { position: relative; isolation: isolate; }
.hero-text { position: relative; z-index: 1; min-width: 0; }
.stage-col { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.stage { width: 100%; display: grid; place-items: center; min-height: 300px; animation: stage-in 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes stage-in { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.stage-play { font-size: 14px; padding: 10px 18px; }
.stage-col .deck-note { max-width: 38ch; }
/* Lichtpunkte der Discokugel: über die ganze Breite, hinter dem Text */
.spots { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); z-index: 0; pointer-events: none; }

/* 70er: Discokugel */
.ball { display: grid; justify-items: center; }
.ball-wire { width: 2px; height: 44px; background: linear-gradient(rgba(255,255,255,0), #8a8a8a); }
.ball-c { width: min(300px, 68vw); aspect-ratio: 1; display: block; touch-action: pan-y; cursor: grab; filter: drop-shadow(0 24px 50px color-mix(in srgb, var(--acc) 35%, transparent)); }

/* 80er: Drumcomputer (eigene Gestaltung, angelehnt an die Kisten der Zeit) */
.dm {
  width: min(400px, 100%); padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #2b2c2f, #17181a);
  box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--acc2) 50%, transparent), inset 0 1px 0 rgba(255,255,255,0.08);
}
.dm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dm-brand { font: 800 12.5px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #d9d4c7; }
.dm-brand b { color: var(--acc2); }
.dm-lcd { font: 700 12px var(--font-data); color: #ffb37a; background: #1a0d05; border: 1px solid #3a2414; border-radius: 6px; padding: 4px 8px; text-shadow: 0 0 8px rgba(255,140,60,0.7); }
.dm-lcd b { font-size: 15px; }
.dm-grid { display: grid; grid-template-columns: 50px repeat(16, minmax(0, 1fr)); gap: 5px 3px; align-items: center; }
.dm-lab { font: 700 9.5px var(--font-data); color: #a9a397; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.dm-step {
  --c: #2ec4b6; aspect-ratio: 0.72; border: 0; border-radius: 3px; padding: 0; cursor: pointer; position: relative;
  background: var(--c); opacity: 0.5; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.28); transition: opacity 0.1s, transform 0.08s;
}
/* eigene Farbfolge, bewusst nicht die eines bekannten Geräts */
.dm-step.g1 { --c: #4f8ff7; } .dm-step.g2 { --c: #a274f2; } .dm-step.g3 { --c: #ff6fae; }
.dm-step::after { content: ""; position: absolute; left: 50%; top: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0,0,0,0.45); }
.dm-step[aria-pressed="true"] { opacity: 1; }
.dm-step[aria-pressed="true"]::after { background: #fff6b0; box-shadow: 0 0 6px #ffe97a; }
.dm-step.now { transform: translateY(1px); box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255,255,255,0.6); opacity: 1; }
.dm-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dm-run { font: 800 13px var(--font-display); border: 0; border-radius: 8px; padding: 9px 16px; background: var(--acc2); color: #111; cursor: pointer; letter-spacing: 0.05em; }
.dm-run[aria-pressed="true"] { background: var(--acc); }
.dm-tempo { display: flex; align-items: center; gap: 8px; font: 700 11px var(--font-data); color: #a9a397; text-transform: uppercase; }
.dm-tempo input { width: 110px; accent-color: var(--acc2); }

/* 90er: Plattenspieler, von oben gesehen. Alle Maße in cqw = Prozent der Gerätebreite */
.tt {
  width: min(380px, 86vw); aspect-ratio: 100 / 84; position: relative; container-type: inline-size; border-radius: 16px;
  background: linear-gradient(145deg, #3a3c40, #1d1e21 55%, #121315);
  box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--acc) 55%, transparent), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.tt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px); }
.tt-platter {
  position: absolute; left: 4cqw; top: 4cqw; width: 68cqw; aspect-ratio: 1; border-radius: 50%; padding: 2.4cqw; touch-action: none; cursor: grab;
  background: repeating-conic-gradient(#86868c 0 2deg, #2b2b2e 2deg 7.5deg); box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.tt-platter.dragging { cursor: grabbing; }
.tt-rec {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: radial-gradient(circle, transparent 0 17%, rgba(255,255,255,0.05) 17.4% 18%, transparent 18.5%), repeating-radial-gradient(circle, #0d0d0f 0 2px, #17171b 2px 3.2px);
}
.tt-rec .label {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle, #111 0 5%, var(--acc) 5.5%); color: #111; font: 800 4.6cqw/1.1 var(--font-display);
}
.tt-rec .label small { display: block; font: 600 1.9cqw var(--font-data); letter-spacing: 0.08em; }
.tt-sheen { position: absolute; left: 6.4cqw; top: 6.4cqw; width: 63.2cqw; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,0.09) 25%, transparent 32% 70%, rgba(255,255,255,0.06) 75%, transparent 82%); }
.tt-base { position: absolute; left: 79cqw; top: 7cqw; width: 14cqw; height: 14cqw; border-radius: 50%; z-index: 1; background: radial-gradient(circle at 40% 35%, #9a9ca1, #3d3f44 60%, #222); box-shadow: 0 4px 12px rgba(0,0,0,0.6); }
.tt-arm { position: absolute; left: 86cqw; top: 14cqw; width: 0; height: 0; z-index: 2; transform: rotate(var(--arm, 0deg)); transition: transform 0.6s cubic-bezier(.4,.1,.2,1); pointer-events: none; }
.tt-arm i { position: absolute; display: block; }
.tt-weight { left: -2.6cqw; top: -10cqw; width: 5.2cqw; height: 7cqw; border-radius: 1cqw; background: linear-gradient(90deg, #555, #c4c4c4 45%, #555); }
.tt-tube { left: -0.8cqw; top: -2cqw; width: 1.6cqw; height: 45cqw; border-radius: 1cqw; background: linear-gradient(90deg, #8d9096, #e3e5e8 45%, #8d9096); box-shadow: 2px 3px 6px rgba(0,0,0,0.5); }
.tt-head { left: -2.6cqw; top: 42cqw; width: 5.2cqw; height: 9cqw; border-radius: 1cqw 1cqw 1.6cqw 1.6cqw; background: linear-gradient(#2a2a2d, #111); border: 1px solid rgba(255,255,255,0.18); transform: rotate(16deg); transform-origin: 50% 0; }
.tt-start {
  position: absolute; left: 3cqw; bottom: 2.5cqw; width: 17cqw; height: 8cqw; border-radius: 1.2cqw; border: 0; cursor: pointer;
  background: linear-gradient(#4a4c50, #26272a); color: #cfd2d6; font: 700 2.7cqw var(--font-data); letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 3px 0 #0b0b0c, inset 0 1px 0 rgba(255,255,255,0.15);
}
.tt-start[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #0b0b0c; color: var(--acc2); }
.tt-led { position: absolute; left: 22cqw; bottom: 5.5cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #3a0d0d; }
.tt.on .tt-led { background: #ff3030; box-shadow: 0 0 8px #ff3030; }
/* Pitch-Regler: ein waagrechter Schieberegler, um 90° gedreht, damit −8 oben und +8 unten liegt; die Tastatur geht wie bei jedem Regler */
.tt-pitch { position: absolute; right: 4cqw; top: 38cqw; width: 4cqw; height: 34cqw; border-radius: 1cqw; background: #0c0c0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.tt-pitch::before { content: ""; position: absolute; left: -1.4cqw; right: -1.4cqw; top: 50%; height: 1px; background: rgba(255,255,255,0.28); }
.tt-pitch input {
  position: absolute; left: 50%; top: 50%; width: 34cqw; height: 10cqw; margin: 0; padding: 0; transform: translate(-50%, -50%) rotate(90deg);
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ns-resize; touch-action: none;
}
.tt-pitch input::-webkit-slider-runnable-track { height: 10cqw; background: transparent; border: 0; }
.tt-pitch input::-moz-range-track { height: 10cqw; background: transparent; border: 0; }
.tt-pitch input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 3.6cqw; height: 7.4cqw; margin-top: 1.3cqw; border: 0; border-radius: 0.8cqw; background: linear-gradient(90deg, #e3e5e8, #7d8086); box-shadow: 2px 0 5px rgba(0,0,0,0.55); }
.tt-pitch input::-moz-range-thumb { width: 3.6cqw; height: 7.4cqw; border: 0; border-radius: 0.8cqw; background: linear-gradient(90deg, #e3e5e8, #7d8086); box-shadow: 2px 0 5px rgba(0,0,0,0.55); }
.tt-pitch input:focus { outline: none; }
.tt-pitch input:focus-visible { outline: 2px solid var(--acc2); outline-offset: 1px; border-radius: 1cqw; }
.tt-pm { position: absolute; right: 4cqw; width: 4cqw; text-align: center; font: 700 3.4cqw/1 var(--font-data); font-style: normal; color: #8d9096; pointer-events: none; }
.tt-minus { top: 33.5cqw; }
.tt-plus { top: 73cqw; }
.tt-pval { position: absolute; right: 13cqw; bottom: 3cqw; min-width: 15cqw; text-align: right; font: 700 3.4cqw/1 var(--font-data); color: #8d9096; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.tt.pitched .tt-pval { color: var(--acc); }
.tt-p0 {
  position: absolute; right: 2.5cqw; bottom: 1.6cqw; width: 8cqw; height: 6.4cqw; border: 0; border-radius: 1.2cqw; cursor: pointer; padding: 0;
  background: linear-gradient(#4a4c50, #26272a); color: #cfd2d6; font: 700 3.2cqw/1 var(--font-data); box-shadow: 0 2px 0 #0b0b0c, inset 0 1px 0 rgba(255,255,255,0.15);
}
.tt-p0:active { transform: translateY(1px); box-shadow: 0 1px 0 #0b0b0c; }
.tt-platter.nudge { animation: tt-nudge 0.25s ease-out; }
@keyframes tt-nudge { from { box-shadow: 0 0 0 0.8cqw color-mix(in srgb, var(--acc) 70%, transparent), 0 6px 18px rgba(0,0,0,0.6); } to { box-shadow: 0 6px 18px rgba(0,0,0,0.6); } }

/* 2000er: CD-Deck mit Jogwheel */
.cdj {
  width: min(360px, 86vw); padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(160deg, #2c2e31, #141517);
  box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--acc2) 45%, transparent);
}
.cdj-screen { background: #05070a; border-radius: 10px; border: 1px solid #23272d; padding: 8px 10px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.cdj-wave { display: block; width: 100%; height: 64px; }
.cdj-info { display: flex; justify-content: space-between; gap: 10px; font: 600 11px var(--font-data); color: #9fd8ff; margin-top: 6px; }
.cdj-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cdj-time { flex: none; }
.cdj-deck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px; }
.cdj-jog { position: relative; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; background: radial-gradient(circle, #3a3d42 0 60%, #1b1c1f 61%); box-shadow: inset 0 2px 6px rgba(255,255,255,0.08), 0 10px 26px rgba(0,0,0,0.6); }
.cdj-ring {
  position: absolute; inset: 2.5%; border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), var(--acc2) 0 5deg, transparent 5deg 360deg), repeating-conic-gradient(rgba(255,255,255,0.14) 0 1deg, transparent 1deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 0 86%, #000 87%); mask: radial-gradient(circle, transparent 0 86%, #000 87%);
}
.cdj-plate { position: absolute; inset: 14%; border-radius: 50%; background: repeating-radial-gradient(circle, #2a2c30 0 1px, #232528 1px 3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.cdj-mark { position: absolute; left: 50%; top: 6%; width: 3%; height: 16%; margin-left: -1.5%; border-radius: 2px; background: var(--acc2); box-shadow: 0 0 8px var(--acc2); }
.cdj-hub { position: absolute; inset: 37%; border-radius: 50%; display: grid; place-items: center; background: #0d0e10; color: var(--acc); font: 800 13px var(--font-display); box-shadow: 0 0 0 2px rgba(255,255,255,0.06); pointer-events: none; }
.cdj-side { display: grid; gap: 12px; }
.cdj-side button { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #3b3e43; background: #17181b; color: #ddd; font: 800 12px var(--font-display); cursor: pointer; text-transform: uppercase; }
.cdj-cue { color: #ffb84d !important; }
.cdj-nudge { display: flex; justify-content: space-between; gap: 4px; }
.cdj-side .cdj-nudge button { width: 30px; height: 30px; border-radius: 8px; font-size: 9px; letter-spacing: -0.1em; }

/* 2010er: Pad-Controller */
.pc {
  width: min(360px, 86vw); padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, #1e2126, #0f1114);
  box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--acc) 50%, transparent);
}
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-brand { font: 800 12.5px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #cfd6de; }
.pc-brand b { color: var(--acc); }
.pc-loop { font: 800 12px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--acc2); color: var(--acc2); background: none; border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.pc-loop[aria-pressed="true"] { background: var(--acc2); color: #111; }
.pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc-pad {
  --c: var(--acc); aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; touch-action: manipulation;
  background: color-mix(in srgb, var(--c) 16%, #15181c); color: color-mix(in srgb, var(--c) 70%, #fff);
  font: 700 12px var(--font-data); display: grid; place-items: end start; padding: 8px; text-align: left;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); transition: transform 0.06s;
}
.pc-pad.pc-bs { --c: var(--acc2); }
.pc-pad.pc-dr { --c: #e9eef3; }
.pc-pad:active { transform: scale(0.96); }
.pc-pad.hit { animation: padhit 0.45s ease-out; }
@keyframes padhit {
  0% { background: var(--c); color: #111; box-shadow: 0 0 22px color-mix(in srgb, var(--c) 80%, transparent); }
  100% { background: color-mix(in srgb, var(--c) 16%, #15181c); }
}

/* 2020er: Livestream mit Visualizer */
.ls {
  width: min(260px, 72vw); aspect-ratio: 9 / 15; border-radius: 28px; padding: 14px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--acc2) 22%, #0b0b10), #07070b 70%);
  border: 6px solid #1b1c22; box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--acc) 45%, transparent), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.ls-top { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--font-data); color: #e9eef3; }
.ls-live { background: #3a3a44; color: #fff; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.08em; }
.ls.on .ls-live { background: #ff2d55; box-shadow: 0 0 12px rgba(255, 45, 85, 0.7); }
.ls-c { width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; cursor: pointer; }
/* bei Bildschirm-Skalierung (125 %, 150 %) darf die Zeichenfläche den Handy-Rahmen nicht aufweiten */
.ls > * { min-width: 0; }
.ls-info { min-height: 20px; }
.ls-title { display: block; font: 700 13px var(--font-display); color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-bar { display: flex; justify-content: space-between; align-items: center; }
.ls-play { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--acc); }
.ls-play span::before { content: ""; display: block; border-left: 15px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.ls.on .ls-play span::before { width: 14px; height: 16px; border: 0; margin: 0; background: linear-gradient(90deg, #111 0 35%, transparent 35% 65%, #111 65%); }
.ls-heart { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--acc2); font-size: 20px; cursor: pointer; }
.ls-heart:active { transform: scale(0.92); }
.cdj.on .cdj-play { border-color: var(--acc2); color: var(--acc2); box-shadow: 0 0 16px color-mix(in srgb, var(--acc2) 60%, transparent); }

/* ---------- Startseite ---------- */
.hub-hero { display: grid; gap: 34px; align-items: center; padding-block: 48px 36px; }
@media (min-width: 900px) { .hub-hero { grid-template-columns: 1.1fr 0.9fr; } }
.hub-hero h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -0.01em; }
.hub-hero h1 em { font-style: normal; color: var(--acc); }
.hub-hero .lead { margin-top: 16px; font-size: 18px; }
.hero-btns { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
/* "Gerade beliebt" unter den Knöpfen: eine ruhige Zeile, keine Zahlen */
.trend { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 13px var(--font-data); color: var(--muted); }
.trend span { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; }
.trend a { color: var(--soft); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); padding: 6px 0; }
.trend a:hover { color: var(--text); border-bottom-color: var(--acc); }
.deck { display: grid; place-items: center; gap: 18px; position: relative; z-index: 1; min-width: 0; }
.deck .stage { min-height: 340px; }
.fader { width: min(420px, 86vw); }
.fader input { width: 100%; accent-color: var(--acc); }
.fader .ticks { display: flex; justify-content: space-between; font: 600 13px var(--font-data); color: var(--muted); margin-top: 4px; }
.fader .ticks button { background: none; border: 0; cursor: pointer; color: inherit; padding: 4px; }
.fader .ticks button[aria-pressed="true"] { color: var(--acc); }
.deck-note { color: var(--muted); font-size: 13px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 560px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font: 800 30px var(--font-display); color: var(--acc); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

.decades { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dcard {
  position: relative; overflow: hidden; display: grid; gap: 10px; padding: 22px; min-height: 230px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none;
  transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.2s, border-color 0.2s;
}
.dcard:hover { border-color: var(--c1); }
.dcard::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #0d0d0f 0 2px, #1a1a1f 2px 3px); opacity: 0.9;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 0 60px -10px var(--c1);
}
.dcard::after { content: ""; position: absolute; right: 10px; top: 10px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, #111 0 10%, var(--c1) 11%); }
.dcard h3 { font-size: 34px; color: var(--c1); position: relative; }
.dcard p { color: var(--soft); font-size: 15px; position: relative; }
.dcard .spark { position: relative; height: 38px; display: flex; align-items: flex-end; gap: 3px; margin-top: auto; }
.dcard .spark i { flex: 1; background: var(--c2); border-radius: 2px 2px 0 0; min-height: 3px; opacity: 0.85; }
.dcard .go { position: relative; font: 700 14px var(--font-display); color: var(--c1); }

.story-box { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 760px; }
.story-box h3 { font-size: 22px; }
.story-box p { color: var(--soft); }
.story-box .meta { font: 600 12px var(--font-data); color: var(--muted); }

/* ---------- Jahrzehnt: Kopf ---------- */
.d-hero { display: grid; gap: 28px; padding-block: 44px 30px; align-items: center; }
.d-hero h1 { font-size: clamp(34px, 6vw, 64px); }
.d-hero .lead { margin-top: 14px; font-size: 18px; }
@media (min-width: 900px) { .d-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

/* ---------- Plattenkiste ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 18px 0; }
.tools .group { display: flex; flex-wrap: wrap; gap: 6px; }
.tools select {
  font: 600 13px var(--font-data); color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px;
}
.count { font: 600 13px var(--font-data); color: var(--muted); }

.crate { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 14px; overflow-x: auto; padding: 10px 4px 22px; scroll-snap-type: x mandatory; }
.crate::-webkit-scrollbar { height: 8px; }
.crate::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 4px; }
.sleeve {
  scroll-snap-align: start; text-align: left; cursor: pointer; border: 0; padding: 0; background: none; width: 100%;
  display: grid; gap: 10px; transition: transform 0.25s;
}
.sleeve:hover, .sleeve:focus-visible { transform: translateY(-8px) rotate(-1deg); }
.sleeve .art {
  aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--art); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.sleeve .art::after {
  content: ""; position: absolute; top: 8%; right: -38%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #0c0c0e 0 2px, #19191d 2px 3px); transition: right 0.35s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.sleeve:hover .art::after, .sleeve:focus-visible .art::after { right: -20%; }
.sleeve .rank { position: absolute; left: 12px; bottom: 6px; font: 800 64px/1 var(--font-display); color: rgba(255,255,255,0.92); text-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 1; }
.sleeve .num1 { position: absolute; left: 12px; top: 12px; z-index: 1; font: 700 11px var(--font-data); background: #111; color: var(--acc); padding: 3px 7px; border-radius: 6px; }
.sleeve b { font: 800 16px/1.25 var(--font-display); color: var(--text); }
.sleeve span { font-size: 14px; color: var(--muted); display: block; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; text-align: left; width: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.row:hover { border-color: var(--acc2); transform: translateX(4px); }
.row .mini { width: 56px; height: 56px; border-radius: 8px; background: var(--art); display: grid; place-items: center; font: 800 20px var(--font-display); }
.row b { font: 800 16px var(--font-display); display: block; }
.row span { color: var(--muted); font-size: 14px; }
.row .best { font: 700 13px var(--font-data); color: var(--acc); white-space: nowrap; }
@media (max-width: 560px) { .row { grid-template-columns: 48px minmax(0, 1fr); } .row .best { display: none; } .row .mini { width: 48px; height: 48px; } }

/* ---------- Detail-Fenster ---------- */
dialog.detail {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-2); color: var(--text); padding: 0; overflow: auto;
}
dialog.detail::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
dialog.detail[open] { animation: pop 0.3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(20px) scale(0.98); } to { transform: none; } }
.detail .top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 22px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 20%, transparent), transparent 60%); }
.detail .top .art { width: 120px; aspect-ratio: 1; border-radius: 12px; background: var(--art); display: grid; place-items: center; font: 800 44px var(--font-display); }
.detail h3 { font-size: 26px; }
.detail .who { color: var(--soft); margin-top: 4px; }
.detail .meta { font: 600 12.5px var(--font-data); color: var(--muted); margin-top: 8px; }
.detail .body { padding: 6px 22px 22px; display: grid; gap: 18px; }
.detail h4 { margin: 0 0 6px; font: 700 14px var(--font-display); color: var(--acc2); letter-spacing: 0.04em; text-transform: uppercase; }
.detail p { color: var(--soft); }
.detail .close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 18px; }
.peaks { display: grid; gap: 8px; }
.peak { display: grid; grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font: 600 13px var(--font-data); }
.peak > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.peak .track { position: relative; height: 10px; border-radius: 5px; background: var(--panel-2); }
.peak .track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--acc); box-shadow: 0 0 14px var(--acc); }
.peak .track::before { content: "1"; position: absolute; left: 0; top: 13px; font-size: 10px; color: var(--muted); }
.peak .track::after { content: "100"; position: absolute; right: 0; top: 13px; font-size: 10px; color: var(--muted); }
.peak b { color: var(--acc); text-align: right; }
.nochart { color: var(--muted); font-size: 14px; }
.sources { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.sources a { color: var(--muted); word-break: break-all; }
.listen { display: flex; flex-wrap: wrap; gap: 10px; }
.listen a { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- Jahr für Jahr ---------- */
.years { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.years .play { margin-left: 8px; }
.yearbar { height: 3px; background: var(--panel-2); border-radius: 2px; margin: 14px 0 18px; overflow: hidden; }
.yearbar i { display: block; height: 100%; width: 0; background: var(--acc); }
.yearbig { font: 800 clamp(64px, 14vw, 150px)/0.9 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--acc); letter-spacing: -0.02em; }
.yeargrid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 860px) { .yeargrid { grid-template-columns: 0.8fr 1.2fr; } }
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.picks > li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc2); border-radius: 12px; padding: 12px 14px; animation: slide 0.5s both; }
.picks > li:nth-child(2) { animation-delay: 0.06s; } .picks > li:nth-child(3) { animation-delay: 0.12s; } .picks > li:nth-child(4) { animation-delay: 0.18s; } .picks > li:nth-child(5) { animation-delay: 0.24s; }
@keyframes slide { from { transform: translateX(18px); } to { transform: none; } }
.picks b { font-family: var(--font-display); }
.picks span { color: var(--muted); }
.picks p { color: var(--soft); font-size: 15px; margin-top: 3px; }
.picks .src { font-size: 12px; color: var(--muted); }

/* ---------- Karte ---------- */
.mapwrap { display: grid; gap: 22px; }
@media (min-width: 900px) { .mapwrap { grid-template-columns: 1.4fr 0.6fr; align-items: start; } }
.map { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at center, var(--panel) 0%, var(--bg) 75%); border: 1px solid var(--line); border-radius: var(--radius); }
.map .grid line { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.map .region { fill: rgba(255,255,255,0.18); font: 700 13px var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; }
.map .route { fill: none; stroke: var(--acc2); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: 0.7; }
.map .dot { fill: var(--acc); }
.map .halo { fill: var(--acc); opacity: 0.18; animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.25; } 50% { transform: scale(1.5); opacity: 0.05; } }
.map .lbl { fill: var(--text); font: 600 12px var(--font-body); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cities li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.cities .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.cities .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 3px; }
.cities b { font-variant-numeric: tabular-nums; color: var(--acc); }

/* ---------- Zeitstrahl ---------- */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 16px; overflow-x: auto; padding: 30px 4px 18px; position: relative; scroll-snap-type: x proximity; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, var(--acc), var(--acc2)); min-width: 100%; }
.tl { scroll-snap-align: start; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tl::before { content: ""; position: absolute; top: -22px; left: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--acc); }
.tl time { font: 700 13px var(--font-data); color: var(--acc); }
.tl p { color: var(--soft); font-size: 15px; margin-top: 6px; }
.tl a { font-size: 12px; color: var(--muted); }

/* ---------- Köpfe & Orte ---------- */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.card .who { display: flex; gap: 12px; align-items: center; }
.mono { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 16px var(--font-display); color: #111; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.card b { font-family: var(--font-display); }
.card small { display: block; color: var(--muted); font: 600 12px var(--font-data); }
.card p { color: var(--soft); font-size: 15px; }
.card a.src { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }

/* ---------- Geschichten ---------- */
.stories { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.story { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; }
.story::before { content: "?"; position: absolute; right: 14px; top: -14px; font: 800 110px/1 var(--font-display); color: color-mix(in srgb, var(--acc2) 12%, transparent); }
.story h3 { font-size: 19px; position: relative; padding-right: 40px; }
.story p { color: var(--soft); font-size: 15px; position: relative; }
.story.short p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story > button { justify-self: start; background: none; border: 0; color: var(--acc2); cursor: pointer; padding: 0; font-weight: 700; }
.story .src { font-size: 12px; color: var(--muted); }

/* ---------- Stile & Maschinen ---------- */
.styles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.style { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.style b { font-family: var(--font-display); color: var(--acc); }
.style p { color: var(--soft); font-size: 14.5px; margin-top: 4px; }

/* ---------- Stile-Seite: Stammbaum ---------- */
.tree-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.tree { display: block; min-width: 900px; width: 100%; height: auto; }
.tree .axis text { fill: var(--muted); font: 600 11px var(--font-data); }
.tree .axis line { stroke: rgba(255,255,255,0.06); }
.tree .edge { fill: none; stroke: color-mix(in srgb, var(--acc2) 55%, transparent); stroke-width: 1.6; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tree .edge.infl { stroke-dasharray: 5 6; stroke-dashoffset: 0; animation: edgefade 1.6s ease both; }
@keyframes edgefade { from { opacity: 0; } to { opacity: 1; } }
.tree-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.tree-key li { display: inline-flex; align-items: center; gap: 8px; }
.tree-key svg { width: 34px; height: 8px; flex: none; }
.tree-key line { stroke: color-mix(in srgb, var(--acc2) 70%, transparent); stroke-width: 2; }
.tree .node { cursor: pointer; }
.tree .node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1; rx: 10; transition: fill 0.2s, stroke 0.2s; }
.tree .node text { fill: var(--text); font: 700 12.5px var(--font-display); }
.tree .node:hover rect, .tree .node.on rect { fill: color-mix(in srgb, var(--acc) 22%, var(--panel)); stroke: var(--acc); }
.tree .node:focus-visible rect { stroke: var(--acc2); stroke-width: 2; }
/* Stammbaum: gewählter Stil mit seinen direkten Verbindungen, der Rest abgeblendet */
.tree .node, .tree .eg { transition: opacity 0.25s; }
.tree.focus .node:not(.on):not(.near), .tree.focus .eg:not(.near) { opacity: 0.15; }
.tree.focus .node.near rect { stroke: var(--acc2); }
.tree.focus .eg.near .edge { stroke: var(--acc2); stroke-width: 2.4; }
.tree-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-height: 34px; margin: 12px 0 8px; }
.tree-reset[hidden], .tree-toggle { display: none; }
.tree-cards { display: none; list-style: none; margin: 0; padding: 0; gap: 10px; }
.tl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.tl-card.on { border-color: var(--acc); }
.tl-card.near { border-color: color-mix(in srgb, var(--acc2) 55%, var(--line)); }
.tl-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.tl-name b { font-family: var(--font-display); color: var(--acc); }
.tl-name span { font: 600 12px var(--font-data); color: var(--muted); text-align: right; }
.tl-card .rel-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-card .rel-g h4 { margin: 0 4px 0 0; }
.rels { display: grid; gap: 12px; }
.rel-g h4 { margin: 0 0 6px; font: 700 11.5px var(--font-data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.style-detail .rel-list, .rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rel-list li { display: inline-flex; align-items: center; gap: 6px; }
.rel-list small { font-size: 12px; color: var(--muted); }
.rel-list small a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.rel-list small a:hover { color: var(--acc2); }
.rel-chip.infl { border-style: dashed; }
@media (max-width: 699px) {
  .tree-box:not(.svg) .tree-wrap, .tree-box:not(.svg) .tree-reset { display: none; }
  .tree-box:not(.svg) .tree-cards { display: grid; }
  .tree-toggle { display: inline-flex; }
}
/* Playlist zum Stil */
.style-pl { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.style-pl h4 { margin: 0; color: var(--acc2); }
.style-detail .spl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.spl li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spl .spl-open { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spl .spl-open span { color: var(--soft); }
.spl-meta { flex: none; font: 600 11.5px var(--font-data); color: var(--muted); }
.spl-gap { flex: none; width: 32px; }
.spl-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.spl-k { font-size: 14px; color: var(--acc2); }
.style-detail { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.style-detail h3 { font-size: 28px; color: var(--acc); }
.style-detail .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.style-detail .facts span { font: 600 12.5px var(--font-data); background: var(--panel-2); border-radius: 8px; padding: 5px 9px; color: var(--soft); }
.style-detail ul { margin: 0; padding-left: 18px; color: var(--soft); }
.bpm { display: grid; gap: 8px; }
.bpm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 14px; }
.bpm-row .lane { position: relative; height: 12px; background: var(--panel-2); border-radius: 6px; }
.bpm-row .lane i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.bpm-row span { font: 600 12px var(--font-data); color: var(--muted); text-align: right; }
.bpm-scale { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 10px; font: 600 11px var(--font-data); color: var(--muted); }
.bpm-scale div { display: flex; justify-content: space-between; }
@media (max-width: 560px) { .bpm-row, .bpm-scale { grid-template-columns: 96px minmax(0, 1fr) 54px; } }

/* ---------- Fotos: kleiner Filmstreifen, groß erst nach Klick ---------- */
.film {
  display: flex; gap: 12px; overflow-x: auto; padding: 18px 12px; margin-top: 10px; border-radius: 8px; scroll-snap-type: x proximity;
  background:
    repeating-linear-gradient(90deg, rgba(232, 226, 212, 0.75) 0 9px, transparent 9px 20px) 0 5px / 100% 6px repeat-x local,
    repeating-linear-gradient(90deg, rgba(232, 226, 212, 0.75) 0 9px, transparent 9px 20px) 0 calc(100% - 5px) / 100% 6px repeat-x local,
    #0a0a0a;
}
.frame { flex: 0 0 auto; width: 210px; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; scroll-snap-align: start; }
.frame-img { display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #151515; cursor: zoom-in; }
.frame-img img { display: block; width: 100%; height: 140px; object-fit: cover; filter: sepia(0.2) saturate(0.85) contrast(1.05); transition: filter 0.3s, transform 0.4s; }
.frame-img:hover img, .frame-img:focus-visible img { filter: none; transform: scale(1.05); }
.frame figcaption { font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.frame figcaption b { display: block; font: 700 12px/1.3 var(--font-display); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame figcaption a, .credit a { color: var(--muted); }
.credit { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); }
dialog.detail.wide { width: min(980px, calc(100vw - 24px)); }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #000; }
.photo figcaption { padding: 14px 20px 18px; display: grid; gap: 4px; }
.photo figcaption span { font-size: 12.5px; color: var(--muted); }
.photo figcaption a { color: var(--muted); }
img.mono { object-fit: cover; background: var(--panel-2); }
.machine img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; display: block; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.credits li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.credits img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.credits p { color: var(--soft); font-size: 14px; }

/* ---------- Alles, was man anklicken kann ---------- */
button.stat, a.stat { position: relative; display: block; text-align: left; cursor: pointer; color: inherit; text-decoration: none; font: inherit; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.stat .go { position: absolute; right: 12px; top: 12px; font-style: normal; color: var(--muted); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
button.stat:hover, a.stat:hover, button.stat:focus-visible, a.stat:focus-visible { border-color: var(--acc); transform: translateY(-2px); background: color-mix(in srgb, var(--acc) 8%, var(--panel)); }
button.stat:hover .go, a.stat:hover .go { opacity: 1; transform: translateX(2px); }
.stage-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.info-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--soft); cursor: pointer; font: 600 13px var(--font-body); padding: 8px 6px; }
.info-btn span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font: 700 12px/1 var(--font-display); font-style: italic; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--acc2); }
.stage-info { max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc2); border-radius: 12px; padding: 12px 14px; animation: slide 0.35s both; }
.stage-info p { color: var(--soft); font-size: 14.5px; }
.subnav { position: sticky; top: var(--top-h, 64px); z-index: 15; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 4px; background: linear-gradient(var(--bg) 70%, transparent); }
.subnav::-webkit-scrollbar { display: none; }
.subnav .chip { flex: none; }
.subnav .chip:hover { border-color: var(--acc2); color: var(--text); }
.chip.reset { background: none; border-style: dashed; }
.chip.sm { padding: 4px 9px; font-size: 11.5px; min-height: 28px; display: inline-flex; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; display: inline; }
.link-btn b { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc2) 50%, transparent); text-underline-offset: 3px; }
.link-btn:hover b { color: var(--acc2); }
.tag { font: 700 11px var(--font-data); color: var(--acc); }
a.style { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.style:hover { border-color: var(--acc); transform: translateY(-2px); }
.style .more { display: block; margin-top: 8px; font: 700 12.5px var(--font-display); color: var(--acc2); }
.card .recs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card .recs small { color: var(--muted); font: 600 11px var(--font-data); }

/* Fenster hinter den Zahlen */
.sp-head { padding: 22px 60px 6px 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 20%, transparent), transparent 60%); }
.sp-head h3 { font-size: 26px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sp-list li:not(:has(.pl)) { grid-template-columns: minmax(0, 1fr) auto; }
.sp-list .link-btn span { display: block; color: var(--muted); font-size: 13px; }
.sp-list li.playing .link-btn b { color: var(--acc); }
.sp-cities, .sp-stories { display: grid; gap: 8px; }
.sp-cities details, .sp-stories details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.sp-cities details[open], .sp-stories details[open] { padding-bottom: 12px; border-color: color-mix(in srgb, var(--acc2) 40%, var(--line)); }
.sp-cities summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.sp-cities summary::-webkit-details-marker, .sp-stories summary::-webkit-details-marker { display: none; }
.sp-cities summary b { color: var(--acc); }
.sp-cities summary .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.sp-cities summary .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.sp-stories summary { padding: 10px 0; cursor: pointer; list-style: none; font: 700 16px/1.3 var(--font-display); }
.sp-stories summary::after, .sp-cities summary span:first-child::after { content: " +"; color: var(--acc2); }
.sp-stories details[open] summary::after, .sp-cities details[open] summary span:first-child::after { content: " −"; }
.sp-stories p { color: var(--soft); margin-bottom: 8px; }
.sp-foot { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* Erwähnte Songs und Namen in Texten: anklickbar */
.mention {
  display: inline; font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  text-decoration: underline dotted color-mix(in srgb, var(--acc2) 75%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.mention:hover, .mention:focus-visible { color: var(--acc2); text-decoration-style: solid; }
.mention.song::after { content: "\00a0♪"; font-size: 0.85em; color: var(--acc2); }
.mention.term { cursor: help; text-decoration-style: dotted; }
.detail .who .mention { color: var(--soft); }

/* Kurios, witzig, Hintergrund: ein großer Kasten, der von selbst weiterblättert */
.kur { margin: 16px 0 30px; display: grid; gap: 12px; max-width: 860px; }
.kur-card {
  position: relative; overflow: hidden; display: grid; gap: 12px; min-height: 190px; align-content: start;
  padding: 26px 28px 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line));
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--acc) 16%, var(--panel)), var(--panel) 60%);
}
.kur-card::after { content: "?!"; position: absolute; right: 18px; bottom: -26px; font: 800 150px/1 var(--font-display); color: color-mix(in srgb, var(--acc2) 12%, transparent); pointer-events: none; }
.kur-card.in { animation: kurin 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes kurin { from { transform: translateY(10px); opacity: 0.2; } to { transform: none; opacity: 1; } }
.kur-tag { font: 700 12px var(--font-data); letter-spacing: 0.12em; text-transform: uppercase; justify-self: start; padding: 4px 10px; border-radius: 999px; color: #111; background: var(--acc); }
.kur-tag.kur-witzig { background: var(--acc2); }
.kur-tag.kur-hintergrund { background: var(--soft); }
.kur-text { font: 600 clamp(18px, 2.3vw, 23px)/1.45 var(--font-body); color: var(--text); position: relative; max-width: 60ch; }
.kur-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; position: relative; }
.kur-foot .link-btn span { display: block; color: var(--muted); font-size: 13px; }
.kur-src { font-size: 12.5px; color: var(--muted); margin-left: auto; padding: 4px 0; }
.kur-ctl { display: flex; align-items: center; gap: 10px; }
.kur-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.kur-nav:hover { border-color: var(--acc); }
.kur-pause { border: 1px solid var(--line); background: none; color: var(--soft); border-radius: 999px; padding: 7px 12px; cursor: pointer; font: 600 12.5px var(--font-data); }
.kur-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.kur-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transform-origin: left; animation: kurbar 10s linear forwards; }
.kur.paused .kur-prog i, .kur.held .kur-prog i { animation-play-state: paused; }
@keyframes kurbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kur-count { font: 600 12px var(--font-data); color: var(--muted); font-variant-numeric: tabular-nums; }
.h3 { font: 800 22px var(--font-display); margin: 6px 0 4px; }

/* Wissenswertes: Karten zum Durchblättern */
.facts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 330px); gap: 14px; overflow-x: auto; padding: 14px 2px 16px; scroll-snap-type: x proximity; }
.fact { scroll-snap-align: start; display: grid; gap: 10px; align-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.fact::before { content: "!"; position: absolute; right: 14px; top: -18px; font: 800 96px/1 var(--font-display); color: color-mix(in srgb, var(--acc) 14%, transparent); }
.fact .eyebrow { margin: 0; }
.fact > p.lx { color: var(--text); font-size: 15.5px; position: relative; }
.fact footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.fact .link-btn span { display: block; color: var(--muted); font-size: 13px; }
.fact.playing { border-color: var(--acc); }

/* Studio & Technik: Karten, Farbe je Art */
.art-drumcomputer { --ac: #ff6b35; } .art-synthesizer { --ac: #b388ff; } .art-sampler { --ac: #3df5ff; } .art-dj { --ac: #ffd60a; }
.art-software { --ac: #7ee08a; } .art-effekt { --ac: #ff5fa2; } .art-soundsystem { --ac: #e6ebee; } .art-produktion { --ac: #ff9f1c; }
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 8px; }
.tcard { display: grid; gap: 8px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ac, var(--acc)); border-radius: var(--radius); padding: 16px; }
.tcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.tcard h3 { font-size: 21px; }
.tcard .tc-maker { font: 600 12px var(--font-data); color: var(--muted); margin-top: -4px; }
.tc-tag { display: flex; align-items: center; gap: 8px; font: 700 11.5px var(--font-data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.tc-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ac, var(--acc)); }
.tcard > p.lx { color: var(--soft); font-size: 15px; }
.tc-klang { font-size: 14px; color: var(--soft); border-left: 2px solid var(--ac, var(--acc)); padding-left: 10px; }
.tc-klang b { color: var(--text); }
.tc-tracks small { display: block; font: 600 11px var(--font-data); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.tc-tracks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-tracks li { display: flex; gap: 10px; align-items: center; }
.tc-tracks .link-btn span { display: block; color: var(--muted); font-size: 12.5px; }
.tcard .src { font-size: 12px; color: var(--muted); }
.tcard.flash { animation: tcflash 1.4s ease-out; }
@keyframes tcflash { 0% { box-shadow: 0 0 0 3px var(--ac, var(--acc)); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Zeitband 1970 bis heute */
.tband { position: relative; margin: 18px 0 30px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.tb-dot { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--ac, var(--acc)); box-shadow: 0 0 0 2px var(--bg-2); transition: transform 0.15s; }
.tb-dot:hover, .tb-dot:focus-visible { transform: scale(1.6); z-index: 2; }
.tband-axis { position: absolute; left: 0; right: 0; bottom: -22px; height: 18px; font: 600 11px var(--font-data); color: var(--muted); }
.tband-axis span { position: absolute; transform: translateX(-50%); }
:root[data-zeit="technik"] { --acc: #ff9f1c; --acc2: #2ec4b6; }
:root[data-zeit="technik"] body::after { opacity: 1; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 159, 28, 0.05) 79px 80px); }

/* Quellen-Seite */
.src-q { width: min(560px, 100%); margin: 6px 0 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.src-groups { display: grid; gap: 10px; }
.src-group { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.src-group summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; cursor: pointer; font-family: var(--font-display); }
.src-group summary span { font: 600 12.5px var(--font-data); color: var(--muted); }
.src-group ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.src-group li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; font-size: 13.5px; align-items: baseline; }
.src-what { font: 600 11.5px var(--font-data); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.src-label { color: var(--soft); min-width: 0; overflow-wrap: anywhere; }
.src-group li a { color: var(--acc2); white-space: nowrap; }
@media (max-width: 560px) { .src-group li { grid-template-columns: minmax(0, 1fr) auto; } .src-what { grid-column: 1 / -1; } }

/* Platten pro Jahr */
.yearhist { margin: 16px 0 4px; }
.yh-label { font: 600 11.5px var(--font-data); color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; }
.yh-bars { display: flex; gap: 4px; align-items: stretch; height: 92px; max-width: 760px; }
.yh-bars button { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 10.5px var(--font-data); }
.yh-bars button i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--acc2) 45%, var(--panel-2)); transition: background 0.2s, transform 0.2s; transform-origin: bottom; }
.yh-bars button b { font: 700 10.5px var(--font-data); color: var(--soft); opacity: 0; transition: opacity 0.2s; }
.yh-bars button:hover i { background: var(--acc2); }
.yh-bars button:hover b, .yh-bars button[aria-pressed="true"] b { opacity: 1; }
.yh-bars button[aria-pressed="true"] i { background: var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 60%, transparent); }
.yh-bars button[aria-pressed="true"] span { color: var(--acc); }
.yh-bars button:disabled { cursor: default; opacity: 0.4; }

/* Karte: Städte anklickbar */
.map .city { cursor: pointer; outline: none; }
.map .city .hit { fill: transparent; }
.map .city:hover .dot, .map .city:focus-visible .dot, .map .city.on .dot { fill: var(--acc2); }
.map .city.on .lbl, .map .city:hover .lbl { fill: var(--acc2); font-weight: 800; }
.map .city:focus-visible .hit { stroke: var(--acc2); stroke-width: 2; }
.cities .city-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; background: none; border: 0; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cities .city-row:hover { background: var(--panel); }
.cities .city-row small { color: var(--muted); }
.cities .nocity { color: var(--muted); padding: 0 0 0 0; }
.city-panel { display: grid; gap: 10px; justify-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; animation: slide 0.35s both; }
.city-panel h3 { font-size: 28px; color: var(--acc); }
.city-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.city-recs li { display: flex; gap: 10px; align-items: center; }
.city-recs .link-btn span { display: block; color: var(--muted); font-size: 13px; }
.city-recs li.playing .link-btn b { color: var(--acc); }

/* ---------- Hörproben: Knöpfe, Leiste unten, Hinweis ---------- */
.pl {
  width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; background: var(--acc); color: #111;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.9), 0 0 0 3px rgba(0,0,0,0.25); transition: transform 0.15s;
}
.pl:hover { transform: scale(1.08); }
.pl span::before, .pl-big .ic { content: ""; display: block; width: 0; height: 0; border-left: 12px solid #111; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.pl[aria-pressed="true"] span::before, .pl-big.playing .ic { width: 12px; height: 13px; border: 0; margin: 0; background: linear-gradient(90deg, #111 0 35%, transparent 35% 65%, #111 65%); }
.pl.sm { width: 32px; height: 32px; }
.pl.sm span::before { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px; }
.pl.sm[aria-pressed="true"] span::before { width: 9px; height: 10px; border: 0; margin: 0; }
.pl-big { gap: 10px; }
.pl-big .ic { margin-left: 0; border-left-color: #111; }

.sleeve-w { position: relative; scroll-snap-align: start; }
.sleeve-w .pl { position: absolute; right: 10px; top: 10px; z-index: 2; }
.sleeve-w.playing .art::after { right: -20%; animation: spin 1.8s linear infinite; }
.sleeve-w.playing .art { box-shadow: 0 0 0 2px var(--acc), 0 18px 40px -18px rgba(0,0,0,0.9); }
@keyframes spin { to { transform: rotate(360deg); } }
.row-w { position: relative; }
.row-w .row { padding-right: 66px; }
.row-w .pl { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
.row-w .pl:hover { transform: translateY(-50%) scale(1.08); }
.row-w.playing .row { border-color: var(--acc); }
.picks > li { display: flex; gap: 12px; align-items: flex-start; }
.picks > li.playing { border-left-color: var(--acc); }
.style-detail .tracks { list-style: none; padding: 0; display: grid; gap: 6px; }
.style-detail .tracks li { display: flex; gap: 10px; align-items: center; }
.hear { display: grid; gap: 10px; justify-items: start; }
.spot { width: 100%; display: grid; gap: 6px; justify-items: start; }
.spot iframe { display: block; }

.pbar {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: min(720px, calc(100vw - 24px)); transform: translate(-50%, 160%); visibility: hidden;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 90%, transparent); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.85); transition: transform 0.4s cubic-bezier(.2,.8,.2,1), visibility 0.4s;
}
.pbar.show { transform: translate(-50%, 0); visibility: visible; }
body.has-bar { padding-bottom: 100px; }
.pb-toggle { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--acc); }
.pb-toggle span[aria-hidden]::before { content: ""; display: block; border-left: 14px solid #111; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.pbar.on .pb-toggle span[aria-hidden]::before { width: 13px; height: 15px; border: 0; margin: 0; background: linear-gradient(90deg, #111 0 35%, transparent 35% 65%, #111 65%); }
.pb-art { width: 46px; height: 46px; border-radius: 8px; background: var(--art); position: relative; overflow: hidden; }
.pb-art i { position: absolute; right: -40%; top: 10%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #0c0c0e 0 1px, #1a1a1d 1px 2px); }
.pbar.on .pb-art i { animation: spin 1.8s linear infinite; }
.pb-meta { min-width: 0; display: grid; }
.pb-meta b { font: 800 14px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta small { font: 600 10px var(--font-data); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.pb-prog { height: 3px; background: var(--panel-2); border-radius: 2px; margin: 5px 0 3px; overflow: hidden; }
.pb-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width 0.25s linear; }
.pb-apple { display: block; line-height: 0; }
.pb-apple img { display: block; height: 40px; width: auto; }
.pb-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
@media (max-width: 560px) {
  .pbar { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; }
  .pb-art, .pb-meta small { display: none; }
}

dialog.consent { width: min(460px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); padding: 22px; }
dialog.consent[open] { display: grid; gap: 12px; animation: pop 0.3s cubic-bezier(.2,.8,.2,1); }
dialog.consent::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.consent h3 { font-size: 22px; }
.consent p { color: var(--soft); }
.consent .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 112px; z-index: 45; width: max-content; max-width: calc(100vw - 24px);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.toast a { margin-left: 10px; font-weight: 700; white-space: nowrap; }

/* ---------- Sprache umschalten ---------- */
.langsw { display: inline-flex; flex: none; border: 1px solid color-mix(in srgb, var(--acc2) 55%, var(--line)); border-radius: 999px; overflow: hidden; align-self: center; background: var(--panel); }
.langsw button { border: 0; background: none; color: var(--soft); font: 800 13px var(--font-data); padding: 8px 12px; min-width: 42px; cursor: pointer; }
.langsw button:hover { color: var(--text); }
.langsw button[aria-pressed="true"] { background: var(--acc2); color: #111; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 1100px) {
  /* Tablet und kleinere Bildschirme: oben Logo und Sprache, darunter die Menüknöpfe */
  .topbar .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo lang" "nav nav"; gap: 10px; }
  .topbar .wrap > * { min-width: 0; }
  /* alle Menüpunkte sichtbar, ohne Wischen; durchsichtige Pillen, die gewählte farbig */
  .topbar .nav { justify-content: flex-start; flex-wrap: wrap; gap: 5px; overflow: visible; margin: 0; padding: 0; }
  .topbar .nav a { flex: none; padding: 7px 12px; font-size: 13.5px; background: transparent; border-color: rgba(255,255,255,0.22); }
  .topbar .nav a[aria-current="page"] { background: var(--acc); border-color: var(--acc); color: #111; }
}
/* Wenn das Menü nicht in eine Zeile passt: oben Übersicht, Stile, Technik, Spielen, darunter die Jahrzehnte
   (sonst rutscht nur "2020er" allein zu den Rubriken in die zweite Zeile) */
@media (min-width: 1101px), (min-width: 721px) and (max-width: 879px) {
  .topbar .nav a { order: 1; }
  .topbar .nav a.nav-dec { order: 3; }
  .topbar .nav::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
}
@media (max-width: 720px) {
  .logo { font-size: 13px; letter-spacing: 0.1em; gap: 8px; }
  /* alle Menüpunkte auf einen Blick, ohne Wischen: oben Übersicht, Stile, Technik, Spielen, darunter die sechs Jahrzehnte.
     Die Pillen sind durchsichtig, die gewählte ist farbig. */
  .topbar .nav { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; overflow: visible; margin: 0; padding: 0; }
  .topbar .nav a { grid-column: span 3; order: 1; padding: 8px 0; text-align: center; font-size: 12.5px; letter-spacing: -0.01em; background: transparent; border-color: rgba(255,255,255,0.22); color: var(--soft); }
  .topbar .nav a.nav-dec { grid-column: span 2; order: 2; }
  .topbar .nav a:first-child { order: 0; }
  .topbar .nav a[aria-current="page"] { background: var(--acc); border-color: var(--acc); color: #111; }
}

@media (max-width: 720px) {
  .section { padding-block: 34px; }
  .hub-hero, .d-hero { padding-block: 28px 20px; }
  .stage, .deck .stage { min-height: 0; }
  .frame { width: 172px; }
  .frame-img img { height: 116px; }
  .crate { grid-auto-columns: minmax(158px, 172px); }
  .sleeve .rank { font-size: 52px; }
  .timeline { grid-auto-columns: minmax(230px, 82vw); }
  .stories, .cards { grid-template-columns: minmax(0, 1fr); }
  .detail .top { grid-template-columns: 84px minmax(0, 1fr); padding: 18px; }
  .detail .top .art { width: 84px; font-size: 32px; }
  .detail h3 { font-size: 21px; padding-right: 36px; }
  .yearbig { font-size: 64px; }
}
/* Handy: 16 Schritte in zwei Reihen zu acht, damit jede Taste groß genug zum Tippen ist */
@media (max-width: 560px) {
  .dm-grid { grid-template-columns: 40px repeat(8, minmax(0, 1fr)); gap: 5px 4px; }
  .dm-lab { grid-row: span 2; align-self: center; }
  .dm-step { aspect-ratio: 1; min-height: 28px; }
}
@media (max-width: 400px) {
  .dm { padding: 10px; }
  .dm-lab { font-size: 8px; }
  .cdj-side button { width: 54px; height: 54px; }
}
@media (hover: none) {
  .sleeve:hover { transform: none; }
  .row:hover { transform: none; }
}

/* ---------- Passwort-Abfrage der Vorschau (WordPress) ---------- */
.lock { max-width: 560px; padding-block: 90px; display: grid; gap: 14px; }
.lock h1 { font-size: clamp(34px, 6vw, 56px); }
.lock form p { display: grid; gap: 12px; color: var(--soft); }
.lock label { display: grid; gap: 6px; font-weight: 700; }
.lock input[type="password"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.lock input[type="submit"] { justify-self: start; cursor: pointer; font: 800 15px var(--font-display); color: #111; background: var(--acc); border: 0; border-radius: 999px; padding: 13px 22px; }

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 60px; color: var(--muted); font-size: 14px; display: grid; gap: 14px; }
.maker { display: flex; }
.maker-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 15px var(--font-display); padding: 11px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--acc) 55%, var(--line)); background: var(--panel); transition: border-color 0.2s, transform 0.2s; }
.maker-btn span { color: var(--acc); font-size: 18px; }
.maker-btn:hover { border-color: var(--acc); transform: translateY(-2px); }
.foot-ai { font-size: 13px; color: var(--muted); }
.foot-ver { margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { color: var(--soft); font-size: 14px; }
.legal a:hover { color: var(--text); }
.empty { padding: 60px 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tree .edge { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Spiele ---------- */
:root[data-zeit="spielen"] { --acc: #39e991; --acc2: #ff4fd8; }
:root[data-zeit="spielen"] body::after { opacity: 1; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(57, 233, 145, 0.035) 3px 4px); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.game { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); text-decoration: none; transition: transform 0.15s; }
.game b { font: 800 19px var(--font-display); color: var(--text); }
.game p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.game-tag { font: 700 11px var(--font-data); text-transform: uppercase; letter-spacing: 0.12em; color: var(--acc); }
.game.ready { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--acc) 70%, transparent); }
.game.ready:hover { transform: translateY(-2px); }
.game-go { margin-top: auto; padding-top: 8px; font: 800 14px var(--font-display); color: var(--acc); }
.game.soon { opacity: 0.55; }

/* Kickdrum Runner: Spielfeld in Pixeln, Anzeigen und Menüs in HTML */
.rn { margin-top: 18px; }
.rn-hud { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 700 13px var(--font-data); color: var(--soft); margin-bottom: 8px; min-height: 32px; }
.rn-hearts i { font-style: normal; color: #4a4a52; margin-right: 2px; font-size: 17px; }
.rn-hearts i.on { color: var(--acc2); }
.rn-lvname { color: var(--acc); text-transform: uppercase; letter-spacing: 0.08em; }
.rn-score { margin-left: auto; }
.rn-pausebtn { font: 700 12px var(--font-data); background: var(--panel); color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 30px; cursor: pointer; }
.rn-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b0e; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.rn-stage:focus-visible { box-shadow: 0 0 0 3px var(--acc); }
.rn-stage canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.rn-stage.playing { cursor: pointer; }
@media (max-width: 700px) and (orientation: portrait) { .rn-stage { aspect-ratio: 1 / 1; } }
.rn-count { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font: 800 clamp(18px, 5vw, 34px) var(--font-display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); pointer-events: none; }
.rn-pop { position: absolute; left: 22%; top: 30%; font: 800 clamp(14px, 3.4vw, 22px) var(--font-data); color: #fff; opacity: 0; pointer-events: none; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); white-space: nowrap; }
.rn-pop.show { animation: rnpop 0.5s ease-out; }
.rn-pop.perfect { color: var(--acc); }
.rn-pop.ouch { color: #ff5b5b; }
.rn-pop.layer, .rn-pop.rec { color: var(--acc2); }
@keyframes rnpop { 0% { opacity: 1; transform: translateY(6px) scale(0.9); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { @keyframes rnpop { 0%, 70% { opacity: 1; } 100% { opacity: 0; } } }
/* Menüs über dem Spielfeld; die Rand-Abstände zentrieren, ohne oben abzuschneiden, wenn es eng wird */
.rn-panel { position: absolute; inset: 0; overflow: auto; padding: clamp(12px, 3vw, 28px); background: rgba(8, 8, 12, 0.8); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.rn-panel > :first-child { margin-top: auto; }
.rn-panel > :last-child { margin-bottom: auto; }
.rn-panel[hidden] { display: none; }
.rn-h { font: 800 clamp(20px, 4vw, 30px) var(--font-display); margin: 0; color: #fff; }
.rn-title { color: var(--acc); letter-spacing: 0.04em; text-transform: uppercase; }
.rn-intro { max-width: 560px; margin: 0; font-size: clamp(13px, 2.4vw, 15.5px); line-height: 1.5; color: var(--soft); }
.rn-levels { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rn-lv { display: grid; gap: 2px; text-align: left; min-width: 150px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--acc) 50%, var(--line)); background: var(--panel); color: var(--soft); cursor: pointer; font: inherit; }
.rn-lv b { font: 800 15px var(--font-display); color: #fff; }
.rn-lv span { font-size: 13px; }
.rn-lv small { font: 600 11.5px var(--font-data); color: var(--acc); }
.rn-lv:disabled { opacity: 0.5; cursor: not-allowed; }
.rn-lv:disabled small { color: var(--muted); }
.rn-easy { font-size: 13.5px; color: var(--soft); display: flex; gap: 8px; align-items: center; min-height: 28px; }
.rn-soon { font-size: 12.5px; color: var(--muted); margin: 0; }
.rn-big { font: 800 clamp(26px, 6vw, 44px) var(--font-display); color: var(--acc); margin: 0; }
.rn-stats, .rn-best { margin: 0; font-size: 14px; color: var(--soft); }
.rn-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.rn-layers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rn-layers span { font: 700 11.5px var(--font-data); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.rn-layers span.on { color: #111; background: var(--acc); border-color: var(--acc); }
.rn-how { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.rn-recs { margin-top: 18px; }
.rn-recs-h { font: 800 16px var(--font-display); margin: 0 0 10px; }
.rn-rec-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row-mini { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); cursor: pointer; font: inherit; }
.row-mini b { color: var(--text); font-size: 14.5px; }
.row-mini span { font-size: 12.5px; color: var(--muted); }

/* ---------- Meine Kiste ---------- */
:root[data-zeit="kiste"] { --acc: #f6b73c; --acc2: #ff5fa2; }
.kiste-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); text-decoration: none; font: 700 12.5px var(--font-data); }
.kiste-link b { color: var(--acc); }
.kiste-link:hover { border-color: var(--acc); color: var(--text); }
@media (max-width: 480px) { .kiste-link .lbl { display: none; } }
.kadd { font: 800 15px var(--font-display); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--soft); cursor: pointer; flex: none; }
.kadd[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #111; }
.kadd.big { width: auto; height: auto; min-height: 34px; padding: 5px 14px; border-radius: 999px; font: 700 13px var(--font-data); }
.kline { margin: 10px 0 0; }
.row-w .kadd { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); }
.row-w .row { padding-right: 104px; }
.row-w .kdel { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; }
.row-w .kdel:hover { color: #ff6b6b; border-color: #ff6b6b; }
.k-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.k-how { max-width: 760px; }
.k-dec { font: 800 18px var(--font-display); margin: 26px 0 10px; color: var(--acc); }
.ksp { font: 700 12px var(--font-data); color: var(--acc); text-decoration: none; }
.ksp:hover { text-decoration: underline; }
/* Handy: Logo, Kiste und Sprache passen in eine Zeile; Spielmenü kompakt */
@media (max-width: 480px) {
  .topbar .logo { font-size: 12.5px; letter-spacing: 0.05em; gap: 7px; }
  .topbar .logo .eq { display: none; }
  .topbar .logo .kc-mark { width: 24px; height: 24px; }
  .kiste-link { padding: 4px 9px; gap: 4px; }
}
@media (max-width: 700px) {
  .rn-intro, .rn-soon { display: none; }
  .rn-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .rn-lv { min-width: 0; padding: 7px 9px; }
  .rn-lv span { display: none; }
  .rn-lv b { font-size: 13px; }
  .rn-lv small { font-size: 10.5px; }
}

/* Musikdienste und Playlist-Weg */
.listen { align-items: baseline; }
.listen-l { font: 700 12px var(--font-data); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.toast .listen { display: inline-flex; gap: 8px; margin-left: 8px; }
.toast .listen-l { display: none; }
.k-pl { margin: 20px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); max-width: 860px; }
.k-pl-h { font: 800 19px var(--font-display); margin: 0 0 6px; }
.k-pl-lead { margin: 0 0 12px; color: var(--soft); }
.k-step { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.k-step > b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #111; font: 800 13px var(--font-display); flex: none; }
.k-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px 36px; }
.k-more { margin-top: 10px; }
.k-more summary { cursor: pointer; font-weight: 700; color: var(--soft); }
.k-box { width: 100%; margin-top: 8px; font: 13px/1.5 var(--font-data); background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
@media (max-width: 560px) { .k-pick { margin-left: 0; } }

/* Fertige Kisten */
.k-ready-h { font: 800 21px var(--font-display); margin: 34px 0 4px; }
.k-ready-lead { margin: 0 0 14px; color: var(--muted); }
.k-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.k-card { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.k-card h3 { margin: 0; font: 800 17px var(--font-display); }
.k-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.k-card.maker { border-color: color-mix(in srgb, var(--acc2) 60%, var(--line)); background: color-mix(in srgb, var(--acc2) 8%, var(--panel)); }
.k-card-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.k-card-b .btn { padding: 8px 14px; font-size: 13px; }

.kbadge { font: 700 10px var(--font-data); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; color: #111; background: var(--acc2); border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

.tb-dot { transition: opacity 0.2s; }
.tb-dot.dim { opacity: 0.12; }

/* Genre-Mix im Detail-Fenster: ein ruhiger Balken in der Farbe des Jahrzehnts, drei Abstufungen */
.gmix .gbar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; margin: 4px 0 10px; }
.gmix .gbar i, .gmix .glist i { display: block; background: var(--acc); }
.gmix .g1 { opacity: 0.6; }
.gmix .g2 { opacity: 0.32; }
.gmix .glist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.gmix .glist li { display: flex; align-items: center; gap: 6px; }
.gmix .glist i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.gmix .glist b { font-family: var(--font-data); font-weight: 700; }

/* Abstimmung zum Genre-Mix */
.gvote { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.gvote .gask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gvote .gq { font-weight: 600; margin-right: 4px; }
.gvote .gpick { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.gvote select { min-height: 40px; max-width: 100%; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: #11131a; color: inherit; font: inherit; }
.gvote .gdone { margin: 0; font-weight: 600; color: var(--acc2); }
.gvote .gres { margin: 6px 0 0; }

/* RebornBeat: rundes Logo oben rechts (Rückweg zur Hauptseite) und „Ein Projekt von RebornBeat“ in der Fußzeile */
.rb-home { flex: none; display: inline-flex; border-radius: 50%; }
.rb-home img { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 12px rgba(255, 122, 26, 0.3); transition: box-shadow 0.15s; }
.rb-home:hover img, .rb-home:focus-visible img { box-shadow: 0 0 0 2px #ff7a1a, 0 0 16px rgba(255, 122, 26, 0.45); }
.rb-home:focus-visible { outline: none; }
.maker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rb-foot { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; font-size: 14px; }
.rb-foot img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 14px rgba(255, 122, 26, 0.3); }
.rb-foot b { color: var(--text); font: 800 14px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.rb-foot:hover b { color: #ff7a1a; }
/* Handys bis 480 px (auch große wie 430 px): Kopfzeile etwas enger, damit „Kickdrum Chronicles“, Kiste, Sprache und das RebornBeat-Logo nebeneinander passen */
@media (max-width: 480px) {
  .topbar .logo { font-size: 12px; letter-spacing: 0.02em; gap: 4px; }
  .topbar .hdr-r { gap: 6px; }
  .langsw button { min-width: 32px; padding: 7px 7px; }
  .kiste-link { padding: 4px 7px; }
  .rb-home img { width: 28px; height: 28px; }
}
@media (max-width: 370px) { .topbar .logo { font-size: 11.5px; letter-spacing: 0; } }
/* Handy unter 480 px: Menü bleibt das Pillenraster von oben, nur etwas enger */
@media (max-width: 480px) {
  .topbar .nav { gap: 4px; }
  .topbar .nav a { padding: 8px 0; font-size: 12px; letter-spacing: 0; }
  .topbar .logo { min-width: 0; overflow: hidden; }
}
/* damit „Kickdrum · Chronicles“ neben Playlist, Sprache und RebornBeat-Logo ganz zu sehen ist */
@media (max-width: 420px) {
  .topbar .logo { font-size: 11px; letter-spacing: 0; gap: 4px; }
  .topbar .logo .kc-mark { width: 22px; height: 22px; }
  .langsw button { min-width: 30px; padding: 7px 5px; }
}
@media (max-width: 370px) { .topbar .logo { font-size: 10.5px; } .topbar .logo .kc-mark { width: 20px; height: 20px; } .topbar .hdr-r { gap: 4px; } }
/* sehr schmale Geräte: das RebornBeat-Logo bleibt unten in der Fußzeile */
@media (max-width: 340px) { .topbar .rb-home { display: none; } .topbar .wrap { column-gap: 6px; } }

/* ---------- Im Text erwähnte Songs: kleine Zeile unter einem Text (Kurios, Technik, Zeitstrahl, Personen, Orte, Geschichten, Stile …) ----------
   Gleiche Bausteine wie die Track-Listen (▶ von Apple, Titel als Link-Knopf); jede Tippfläche mindestens 40 px hoch */
.songs { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.songs > small { display: block; font: 600 11px var(--font-data); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.songs > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: 100%; }
.songs > ul > li { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--text); }
.songs > ul > li.playing { border-color: var(--acc); }
.songs .pl.sm { width: 40px; height: 40px; flex: none; box-shadow: none; }
.songs .link-btn { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; min-height: 40px; min-width: 0; padding: 9px 14px; font-size: 13.5px; line-height: 1.3; color: var(--text); text-align: left; border-radius: 999px; }
.songs .pl + .link-btn { padding-left: 4px; }
.songs .link-btn b { font: 700 13.5px var(--font-display); color: var(--text); }
.songs .link-btn span { color: var(--muted); font-size: 13px; margin: 0; }
.songs .link-btn:hover b, .songs > ul > li.playing .link-btn b { color: var(--acc2); }
.songs .link-btn:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }
.songs button.pl:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }
.kur-card .songs { margin-top: 2px; }
.d-hero .songs, .tl .songs, .story .songs, .story-box .songs { margin-top: 2px; }
/* Stil-Karte im Jahrzehnt mit Songs: Kasten statt Link, der Link sitzt oben im Kasten */
.style.has-songs { display: grid; gap: 10px; align-content: start; }
.style-a { display: block; color: inherit; text-decoration: none; }
.style-a:hover .more, .style-a:focus-visible .more { text-decoration: underline; }
.style.has-songs:hover { border-color: var(--acc); }

/* ---------- Weniger Scrollen: lange Listen gekürzt, Karten zugeklappt ---------- */
.clamped > .is-more { display: none !important; }
.more-btn { display: block; margin: 16px auto 0; }
.fold:not(.open) .lx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fold:not(.open) .songs, .fold:not(.open) .recs, .fold:not(.open) .src, .fold:not(.open) .credit,
.fold:not(.open) .tc-klang, .fold:not(.open) .tc-tracks { display: none; }
.fold:not(.open) { cursor: pointer; }
.fold-btn { justify-self: start; align-self: start; background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--acc2); font-weight: 700; cursor: pointer; }
.fold-btn:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }
#sec-styles .style p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Sprungziele nicht unter der festen Kopfzeile und der Sprungleiste verstecken */
section[id^="sec-"], .tcard, .style-detail { scroll-margin-top: calc(var(--top-h, 64px) + 60px); }
/* Pfeilspitzen im Stammbaum: vom älteren zum jüngeren Stil */
.tree .tree-arr { fill: color-mix(in srgb, var(--acc2) 75%, transparent); }
.tree .tree-arr.infl { fill: color-mix(in srgb, var(--acc2) 50%, transparent); }
.k-link { display: block; width: 100%; max-width: 520px; margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 13px var(--font-data); }
/* Rückweg zur Hauptseite: schmale Textzeile ganz oben im Kopf */
.rb-bar { border-bottom: 1px solid var(--line); font: 600 12.5px var(--font-display); }
.rb-bar .wrap { display: flex; align-items: center; min-height: 30px; }
.rb-back { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); text-decoration: none; }
/* kleine Schallplatte mit dem RebornBeat-Logo als Etikett, dreht sich langsam */
.rb-back .vinyl { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 20deg, rgba(255,255,255,0.18), transparent 18%, transparent 50%, rgba(255,255,255,0.12) 62%, transparent 75%), repeating-radial-gradient(circle, #0c0c0c 0 1.2px, #232323 1.2px 2px); animation: rbspin 2.2s linear infinite; }
.rb-back .vinyl img { width: 10px; height: 10px; border-radius: 50%; }
@keyframes rbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rb-back .vinyl { animation: none; } }
.rb-back:hover, .rb-back:focus-visible { color: var(--text); border-color: var(--acc); }
.stats-for { grid-column: 1 / -1; margin: 0 0 -4px; font: 600 12px var(--font-data); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Handy-Durchgang (iPhone): nichts ragt seitlich heraus, kompaktere Karten, weniger Scrollen ---------- */
/* Sicherheitsnetz gegen seitliches Scrollen: clip statt hidden, damit die klebende Kopfzeile und die Sprungleiste weiter funktionieren */
html, body { overflow-x: clip; }
/* Raster mit festen 240 px Mindestbreite dürfen nie breiter als ihr Kasten werden */
.styles, .games, .decades { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
/* Safaris Leiste unten soll den letzten Inhalt nicht verdecken */
.foot { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
/* Kurzer Leuchtrahmen für den Stil, zu dem gesprungen wurde */
.style-detail.flash { animation: tcflash 1.4s ease-out; }
@media (max-width: 699px) {
  /* iOS zoomt bei Eingabefeldern unter 16 px hinein und bleibt dann vergrößert stehen (Seite wirkt breiter als der Bildschirm) */
  input, select, textarea, .tools select, .k-box { font-size: 16px; }
  /* Sprungleiste im Jahrzehnt: voller Hintergrund, damit darunter liegende Pillen nicht durchscheinen */
  .subnav { background: var(--bg); box-shadow: 0 8px 12px -8px rgba(0, 0, 0, 0.8); }
  /* Stammbaum als Kartenliste: nur Name und Zeit, die Verbindungen stehen in der Beschreibung des gewählten Stils */
  .tl-card { padding: 0 14px; gap: 0; }
  .tl-card:not(.on) .rel-g { display: none; }
  .tl-card.on { padding-bottom: 12px; gap: 8px; }
  .tl-name { min-height: 44px; align-items: center; }
  .tree-cards { gap: 6px; }
  /* Alle Stile: zwei Zeilen Text je Karte */
  #style-cards .style p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #style-cards .style { padding: 10px 14px; }
  /* zugeklappte Karten (Technik, Jahrzehnt): zwei Zeilen statt drei */
  .fold:not(.open) .lx { -webkit-line-clamp: 2; }
  .fold-btn { min-height: 44px; }
  /* Übersicht: Jahrzehnte als kompakte Kacheln, zwei nebeneinander */
  .decades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dcard { min-height: 0; padding: 14px; gap: 6px; }
  .dcard::before { width: 120px; height: 120px; right: -50px; top: -50px; }
  .dcard::after { width: 34px; height: 34px; right: 8px; top: 8px; }
  .dcard h3 { font-size: 24px; }
  .dcard p { font-size: 13px; line-height: 1.35; }
  .dcard p b, .dcard p .intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dcard p br { display: none; }
  .dcard p .intro { margin-top: 4px; }
  .dcard .spark { height: 22px; gap: 2px; }
  .dcard .go { font-size: 13px; }
}

/* Handy: Kopfzeile klappt beim Runterscrollen weg (Klasse hdr-hide aus app.js), die Sprungleiste rückt nach oben */
@media (max-width: 720px) {
  .topbar { transition: transform 0.25s ease; will-change: transform; }
  body.hdr-hide .topbar { transform: translateY(-100%); }
  .subnav { transition: top 0.25s ease; }
  body.hdr-hide .subnav { top: env(safe-area-inset-top, 0px); }
}
@media (prefers-reduced-motion: reduce) { .topbar, .subnav { transition: none; } }

/* Finger statt Maus: zu kleine Tippflächen vergrößern, ohne das Bild zu ändern (unsichtbarer Rand) oder nur wenig */
@media (pointer: coarse) {
  .chip { min-height: 36px; }
  .chip.sm { min-height: 34px; }
  .fader .ticks button { padding: 12px 3px; }
  .tb-dot::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
  .rb-home { position: relative; }
  .rb-home::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .legal a { display: inline-block; padding-block: 10px; }
  .legal { gap: 0 18px; }
  .kur-src { padding-block: 10px; }
  .spl-k { display: inline-block; padding-block: 10px; }
  .trend a { padding-block: 11px; }
}
