/* Low Orbit Sound System – Farben aus Logo und Stream (Livestream\kanal-grafik\REZEPT.md)

   ===================================== GERÜST (seit 16.11.2026) =====================================
   Regeln für jeden neuen Block, damit Handy, Tablet und Desktop gleich funktionieren:
   1. Werte nur über die Tokens in :root (Farben, Rand, Abstände, Breiten, Ränder, Schatten). Keine neuen festen
      px-Werte für Abstände; Abstände nur --nah / --mittel / --block (8-px-Raster, Nähe-Regel).
   2. Stufen (max-width, Desktop zuerst) gibt es nur diese vier; keine anderen Zahlen in @media:
        600px  = Handy hoch          (Schrift und Zeichenabstand etwas enger)
        760px  = Handy quer / kleines Tablet (einspaltig, Bild in 1280)
        1300px = grosser Schirm      (min-width, nur Bildauflösung)
        2000px = sehr grosser Schirm (min-width, nur Bildauflösung)
      Grössen zwischen den Stufen fliessen mit clamp() / min() / cqw, statt neue Stufen zu setzen.
   3. Höhen nach dem Fenster immer mit svh (iPhone und Android gleich, kein Springen beim Scrollen); die vh-Zeile
      davor bleibt als Rückfall für alte Browser.
   4. Hover-Effekte nur in @media (hover: hover), damit auf Touch-Geräten nichts «hängen» bleibt. Jeder bedienbare
      Teil bekommt :focus-visible über --fokus.
   5. Bewegung (transition, transform-Animation) wird bei «Bewegung reduzieren» unten zentral abgeschaltet.
   6. Inhalt in einen Behälter mit width: min(<Breite-Token>, 100%) und seitlichem Rand --rand; nichts darf breiter
      als das Fenster werden (Prüfung: scrollWidth = Fensterbreite, von 320 px bis 2560 px).
   7. Bilder: img ist von Haus aus höchstens so breit wie sein Behälter; Ausnahmen (Deko) setzen max-width: none.
   ==================================================================================================== */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/lato-light.woff") format("woff"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/lato-regular.woff") format("woff"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/lato-bold.woff") format("woff"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/lato-black.woff") format("woff"); }
/* Titel wie im Kanalbanner: Montserrat (SIL OFL), Quelle schriften-quelle\ */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/montserrat-400.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/montserrat-500.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* Farben */
  --weiss: #F1F3FB;      /* Titelschrift Banner */
  --tuerkis: #39C7E8;    /* Logo-Türkis */
  --pink: #E75DC0;       /* Logo-Pink */
  --blau: #318FD6;
  --nacht: #070b1d;
  --nacht2: #0f1a3d;
  --leise: #9aa6c4;
  --text-leise: #d3d9ea;
  --glas: rgba(7, 11, 29, 0.55);             /* Hintergrund der schwebenden Schalter */
  --linie: rgba(57, 199, 232, 0.35);         /* feine Türkis-Kante */
  --linie-hell: rgba(57, 199, 232, 0.7);
  --linie-fuss: rgba(57, 199, 232, 0.15);
  /* Rand und Abstände (8-px-Raster, drei Stufen; Wunsch Dominik 16.11.2026: «Luft geben … nach optischen Regeln»):
     nah = innerhalb einer Gruppe, mittel = Titel zu Inhalt, block = zwischen Abschnitten (Nähe-Regel) */
  --rand: 16px;                              /* seitlicher Mindestabstand zum Fensterrand */
  --nah: 24px;
  --mittel: clamp(40px, 4vw, 56px);
  --block: clamp(80px, 9vw, 128px);
  /* Breiten */
  --breite-inhalt: 1100px;
  --breite-text: 720px;
  /* Form */
  --rund: 999px;
  --ecke: 12px;
  --fokus: 2px solid var(--pink);
  /* schwebende Schalter oben rechts: Sprachwahl, darunter Tag/Nacht */
  --schalter-hoehe: 36px;
  --schalter-abstand: 8px;
  /* Seite «Rack»: Stationen des Klangwegs und Signalarten (Linien) */
  --st-spielen: #E75DC0;
  --st-tonfolge: #a98bff;
  --st-quelle: #39C7E8;
  --st-farbe: #5fd3a0;
  --st-form: #f2c14e;
  --st-raum: #5b8ff9;
  --st-mischen: #ff8f66;
  --st-stream: #d9e1f5;
  --st-werkzeug: #8d97b3;
  --sig-takt: #ff5c74;
  --sig-cv: #4fa8ff;
  --sig-ton: #f1f3fb;
  --sig-midi: #39C7E8;
  --sig-strom: #f2c14e;                     /* µZeus versorgt alle Module (keine Linie) */
  --sig-messen: #a98bff;                    /* DATA misst an jedem Modul (keine Linie) */
  --flaeche: rgba(15, 26, 61, 0.72);         /* Karten und Stationen */
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--nacht);
  -webkit-text-size-adjust: 100%;            /* iPhone quer: Schrift nicht selbst vergrössern */
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--weiss);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.55;
  background: var(--nacht);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;                 /* lange Wörter brechen statt seitlich überzulaufen */
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: var(--fokus); outline-offset: 3px; }

/* ---------- Raumstation oben ---------- */
.station {
  --h: max(420px, min(56.25vw, 88vh));
  --h: max(420px, min(56.25vw, 88svh));
  position: relative;
  height: var(--h);
  background: #0a1022;
  overflow: hidden;
}
@media (max-width: 760px) {
  .station {
    --h: clamp(440px, 74vh, 640px);
    --h: clamp(440px, 74svh, 640px);
  }
}
/* Bühne = das ganze Bild in 16:9; Titel und Logo sitzen in Bildkoordinaten (Prozent der Bühne).
   Sie deckt die Kopfzeile ab wie «cover»; die Linie bei 62 % (zwischen Titel und Podest) bleibt fest. */
.buehne {
  position: absolute;
  left: 50%; top: 62%;
  width: max(100%, calc(var(--h) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -62%);
  container-type: inline-size;
  background: url("/assets/station-1920.webp?v=2") center / 100% 100% no-repeat;
  background-image: image-set(url("/assets/station-1280.webp?v=2") 1x, url("/assets/station-1920.webp?v=2") 2x);
}
@media (min-width: 1300px) {
  .buehne { background-image: image-set(url("/assets/station-1920.webp?v=2") 1x, url("/assets/station-2560.webp?v=2") 2x); }
}
@media (min-width: 2000px) {
  .buehne { background-image: url("/assets/station-2560.webp?v=2"); }
}
@media (max-width: 760px) {
  .buehne { background-image: url("/assets/station-1280.webp?v=2"); }
}
.station::after {               /* weicher Übergang in den Raum darunter */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 7%;
  background: linear-gradient(to bottom, rgba(7, 11, 29, 0), var(--nacht));
  pointer-events: none;
}
/* Titelblock wie im Kanalbanner (gemessen im Titelbild 2560x1440): Versalhöhe 40 px -> Titelgrösse F = 2.233 % der
   Bildbreite, Titel 36.4 % breit, Mitte der Versalien bei y 44.4 %, x 49.9 %. Auf schmalen Schirmen höchstens so
   gross, dass der Titel in die Breite passt. Versalmitte liegt 0.509 em unter der Oberkante der h1 (Montserrat). */
.fenster {
  position: absolute;
  left: 49.9%;
  top: calc(44.4% - 0.509em);
  transform: translateX(-50%);
  font-size: min(2.233cqw, 5.6vw);
  white-space: nowrap;
  text-align: center;
  z-index: 1;
}
.deko {
  position: absolute;
  left: 50%;
  top: calc(0.509em - 3.2em);
  width: 29em; height: 7.2em;
  transform: translateX(-50%);
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 0 0.12em rgba(120, 220, 255, 0.9)) drop-shadow(0 0 0.4em rgba(57, 199, 232, 0.55));
}
/* Logo steht mittig auf dem Podest: Podestmitte x 50.4 %, Oberfläche y 77–88 %, Mitte 82.5 % (gemessen) */
.logo {
  position: absolute;
  left: 50.4%; bottom: calc(100% - 83%);
  width: 15%; height: auto;
  max-width: none;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(0 0 1.6vw rgba(57, 199, 232, 0.45));
}
/* Schriftzug und Kantenstreifen auf dem Podest wie in «Eurorack Live» (podest_schrift.py), dezent, unter dem
   Logo-Schatten; der Übergang unten (.station::after) liegt unverändert darüber. */
.podest-schrift {
  position: absolute; inset: 0;
  background: url("/assets/podest-schrift.webp?v=2") center / 100% 100% no-repeat;
  opacity: 0.85;
  pointer-events: none;
}
/* Schatten auf dem Podest. Licht der Szene (gemessen am Bild): grosser Deckenring fast senkrecht über dem Podest,
   weich; Podestfläche vorne/hinten gleich hell, seitlich symmetrisch dunkler; Fenster dahinter als Gegenlicht.
   Darum kein seitlicher Schlagschatten, sondern ein kurzer weicher Schatten direkt unter der stehenden Scheibe:
   am Auflagepunkt am dunkelsten, entlang ihrer Breite auslaufend, leicht nach vorn (zum Betrachter) versetzt.
   Farbton kühl wie das Umgebungslicht. Perspektive des Podests: Tiefe/Breite = 112/736 = 0.15. */
.logo-schatten {
  position: absolute;
  left: 50.4%; top: 83%;
  width: 15.5%;
  aspect-ratio: 1 / 0.16;
  transform: translate(-50%, -42%);
  background:
    radial-gradient(ellipse 22% 42% at 50% 46%, rgba(18, 24, 42, 0.55), rgba(18, 24, 42, 0) 100%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(30, 40, 66, 0.30) 0%, rgba(30, 40, 66, 0.14) 45%, rgba(30, 40, 66, 0) 100%);
  filter: blur(0.25vw);
  z-index: 1;
  pointer-events: none;
}
/* Farben gemessen im Banner: Titel #D9EFF5, Untertitel #C3F3FE, beide mit türkisem Schein */
h1 {
  position: relative;
  margin: 0;
  font-family: "Montserrat", "Lato", sans-serif;
  font-weight: 500;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.083em;
  margin-right: -0.083em;
  color: #D9EFF5;
  text-shadow: 0 0 0.08em rgba(140, 225, 255, 0.9), 0 0 0.35em rgba(57, 199, 232, 0.6);
}
.untertitel {
  position: relative;
  margin: 0.16em 0 0;
  font-family: "Montserrat", "Lato", sans-serif;
  font-weight: 400;
  font-size: 0.82em;
  line-height: 1;
  letter-spacing: 0.13em;
  margin-right: -0.13em;
  color: #C3F3FE;
  text-shadow: 0 0 0.08em rgba(140, 225, 255, 0.85), 0 0 0.35em rgba(57, 199, 232, 0.55);
}

/* ---------- Schwebende Schalter oben rechts ---------- */
.sprache {
  position: absolute; top: var(--rand); right: var(--rand); z-index: 2;
  display: flex; gap: 2px; padding: 3px;
  background: var(--glas);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  backdrop-filter: blur(6px);
}
.sprache a {
  color: var(--leise); text-decoration: none;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 11px; border-radius: var(--rund);
}
.sprache a[aria-current="true"] { color: var(--nacht); background: var(--tuerkis); }

/* ---------- Nachtmodus wie die Kabinenstimmung im Stream (nacht_bauen.py) ---------- */
.buehne::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/station-nacht-1920.webp?v=1") center / 100% 100% no-repeat;
  background-image: image-set(url("/assets/station-nacht-1280.webp?v=1") 1x, url("/assets/station-nacht-1920.webp?v=1") 2x);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
@media (min-width: 1300px) {
  .buehne::before { background-image: image-set(url("/assets/station-nacht-1920.webp?v=1") 1x, url("/assets/station-nacht-2560.webp?v=1") 2x); }
}
@media (min-width: 2000px) {
  .buehne::before { background-image: url("/assets/station-nacht-2560.webp?v=1"); }
}
@media (max-width: 760px) {
  .buehne::before { background-image: url("/assets/station-nacht-1280.webp?v=1"); }
}
.nacht .buehne::before { opacity: 1; }

/* Schalter Sonne (links) / Mond (rechts), unter der Sprachwahl, gleich breit (Wunsch Dominik 16.11.2026);
   Abstand: Rand + Höhe der Sprachwahl + 8 px */
.tagnacht {
  position: absolute; top: calc(var(--rand) + var(--schalter-hoehe) + var(--schalter-abstand)); right: var(--rand); z-index: 2;
  display: flex; align-items: center; gap: 0;
  width: 94px; height: var(--schalter-hoehe); padding: 0 6px;
  background: var(--glas);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.tagnacht svg { position: relative; z-index: 1; width: 18px; height: 18px; margin: 0 5px; transition: color 0.3s; }
.tagnacht .sonne { fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; color: var(--nacht); }
.tagnacht .mond { fill: currentColor; color: var(--leise); margin-left: auto; }
.tagnacht .schieber {
  position: absolute; top: 3px; left: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tuerkis);
  box-shadow: 0 0 12px rgba(57, 199, 232, 0.6);
  transition: transform 0.35s ease, background-color 0.35s, box-shadow 0.35s;
}
.nacht .tagnacht .schieber { transform: translateX(56px); background: var(--pink); box-shadow: 0 0 12px rgba(231, 93, 192, 0.6); }
.nacht .tagnacht .sonne { color: var(--leise); }
.nacht .tagnacht .mond { color: var(--nacht); }

/* ---------- Raum darunter ---------- */
.raum {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 var(--rand) clamp(88px, 9vw, 128px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(49, 143, 214, 0.18), transparent 60%),
    radial-gradient(ellipse at 85% 90%, rgba(231, 93, 192, 0.10), transparent 55%),
    linear-gradient(to bottom, var(--nacht), var(--nacht2));
}
.kurz {                          /* «LOSS» fett in Türkis wie zuvor, nur grösser (Vorgabe Dominik 16.11.2026) */
  margin: clamp(48px, 5vw, 72px) 0 0;
  font-weight: 900;
  font-size: clamp(34px, 3.7vw, 64px);
  letter-spacing: 0.55em; padding-left: 0.55em;
  line-height: 1.2;
  color: var(--tuerkis);
}
.satz { max-width: 32em; margin: var(--nah) 0 0; font-size: 1.2rem; line-height: 1.65; color: var(--weiss); }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: var(--block); }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--rund);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
  text-decoration: none;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.knopf svg { width: 20px; height: 20px; fill: currentColor; }
.knopf-tuerkis { background: var(--tuerkis); color: var(--nacht); }
.knopf-pink { border: 1.5px solid var(--pink); color: var(--weiss); }
.adresse { margin: var(--nah) 0 0; font-size: 0.9rem; color: var(--leise); letter-spacing: 0.04em; }

/* ---------- Livestreams ---------- */
.streams { width: min(var(--breite-inhalt), 100%); margin-top: var(--block); }
.streams h2, .rack-block > h2 { /* Pink, 25 % kleiner als «LOSS» (Wunsch Dominik 16.11.2026); «Das Rack» gleich */
  margin: 0 0 var(--mittel);
  font-weight: 900; font-size: clamp(25.5px, 2.775vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.35em; padding-left: 0.35em;
  text-transform: uppercase;
  color: var(--pink);
}
/* Unterstrich: Lichtpunkt mit Streif wie auf der Schlusskarte des Streams */
.streams h2::after, .rack-block > h2::after {
  content: "";
  display: block;
  /* seit 16.11.2026 (Wunsch Dominik): Lautsprecher aus dem Logo statt Kugel, die pinke Kuppel so gross wie die
     frühere Kugel (Lautsprecher = 90 % der Höhe); Lichtstreif schärfer und länger (lichtstreif-2.svg); der pinke
     Kranz als runder Verlauf, Radius 0.45 bis 0.62 der Höhe */
  width: min(680px, 92%);
  height: clamp(64px, 17vw, 104px);
  margin: 16px auto 0;
  background:
    url("/assets/lautsprecher.webp?v=2") center / auto 90% no-repeat,
    radial-gradient(circle, rgba(231, 93, 192, 0.45) clamp(28px, 7.6vw, 46px), rgba(231, 93, 192, 0.12) clamp(33px, 8.9vw, 54px), rgba(231, 93, 192, 0) clamp(39px, 10.5vw, 64px)) center / 100% 100% no-repeat,
    url("/assets/lichtstreif-2.svg?v=1") center / 100% 100% no-repeat;
}
.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.stream { text-align: left; min-width: 0; }
.player, .stream iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--linie);
  border-radius: var(--ecke);
  overflow: hidden;
  background: #000;
}
.player { position: relative; padding: 0; cursor: pointer; }
.player img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; }
/* Abspielknopf Mitte bei 64 % (dreimal 15 px höher als 79 %, Wunsch Dominik 16.11.2026: weg von der Schrift
   oben, ohne ins Podest im Vorschaubild zu ragen), Ring Pink, Dreieck Türkis; auf schmalen Karten kleiner */
.abspielen {
  position: absolute; left: 50%; top: 64%;
  width: clamp(48px, 13%, 72px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glas);
  border: 2px solid var(--pink);
  box-shadow: 0 0 22px rgba(231, 93, 192, 0.55);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.abspielen svg { width: 47%; height: 47%; fill: var(--tuerkis); margin-left: 6%; }
.player:focus-visible img { transform: scale(1.03); filter: brightness(1.08); }
.player:focus-visible .abspielen { background: rgba(231, 93, 192, 0.28); box-shadow: 0 0 30px rgba(231, 93, 192, 0.85); }
.stream h3 { margin: 18px 2px 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--weiss); }
.stream .meta { margin: 8px 2px 0; font-size: 0.9rem; color: var(--leise); letter-spacing: 0.04em; }

/* ---------- Fusszeile ---------- */
.fuss {
  text-align: center; color: var(--leise);
  font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 18px var(--rand) 26px;
  background: var(--nacht2);
  border-top: 1px solid var(--linie-fuss);
}
.fuss a { color: var(--leise); text-decoration: none; border-bottom: 1px solid rgba(154, 166, 196, 0.4); }

/* ---------- Unterseite Datenschutz ---------- */
.unterseite {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: linear-gradient(to bottom, var(--nacht), var(--nacht2));
}
.kopfleiste { display: flex; align-items: center; justify-content: space-between; gap: var(--rand); padding: var(--rand); }
.kopfleiste .sprache { position: static; }
.heim { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.heim span { font-weight: 900; font-size: 1.15rem; letter-spacing: 0.4em; color: var(--tuerkis); }
.rechtstext { flex: 1; width: min(var(--breite-text), 100%); margin: 0 auto; padding: var(--rand) var(--rand) 64px; }
.rechtstext h1 { margin: 12px 0 4px; font-family: "Lato", sans-serif; line-height: 1.2; text-shadow: none; font-weight: 900; font-size: clamp(28px, 3vw, 40px); color: var(--tuerkis); letter-spacing: 0.04em; }
.rechtstext .stand { margin: 0 0 28px; color: var(--leise); font-size: 0.9rem; }
.rechtstext h2 { margin: 28px 0 6px; font-weight: 700; font-size: 1.1rem; color: var(--weiss); }
.rechtstext p { margin: 0; font-size: 1rem; color: var(--text-leise); }
.rechtstext a { color: var(--tuerkis); text-decoration: none; border-bottom: 1px solid rgba(57, 199, 232, 0.5); }

/* ---------- Unterseite Rack (rack.html, nicht verlinkt; Inhalt aus rack-daten.js, gezeichnet von rack.js) ---------- */
.rack { flex: 1; width: min(var(--breite-inhalt), 100%); margin: 0 auto; padding: var(--rand) var(--rand) var(--block); }
.rack-kopf { max-width: var(--breite-text); }
.rack h1 {
  margin: 12px 0 0; font-family: "Lato", sans-serif; font-weight: 900; line-height: 1.15;
  font-size: clamp(34px, 4.2vw, 56px); letter-spacing: 0.06em; color: var(--tuerkis); text-shadow: none;
}
.rack-lead { margin: var(--nah) 0 0; font-size: 1.15rem; line-height: 1.65; color: var(--text-leise); }
.rack h2, .rack-block .fluss-titel, .rack-block .gruppe-titel {
  margin: 0; font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink);
}
.fluss-block { margin-top: var(--block); }
/* Startseite: «Das Rack» als Abschnitt nach der Adresse (seit 16.11.2026, Wunsch Dominik: alles auf die Startseite) */
.rack-block { width: min(var(--breite-inhalt), 100%); margin-top: var(--block); text-align: left; scroll-margin-top: var(--nah); }
.rack-block > h2 { text-align: center; }
.rack-block > .rack-lead { max-width: var(--breite-text); margin: 0 auto; text-align: center; }
.rack-block .fluss-block { margin-top: var(--mittel); }
.fluss-hilfe { margin: 16px 0 0; max-width: var(--breite-text); color: var(--text-leise); }

/* Legende der Linien */
.legende { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: var(--nah) 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--leise); }
.art { display: inline-flex; align-items: center; gap: 8px; }
.legende .art i { display: inline-block; width: 28px; height: 0; border-top: 3px solid var(--farbe); border-radius: 2px; }
.legende .art-midi i { border-top-style: dashed; }
.art-takt { --farbe: var(--sig-takt); }
.art-cv { --farbe: var(--sig-cv); }
.art-ton { --farbe: var(--sig-ton); }
.art-midi { --farbe: var(--sig-midi); }

/* Suche */
.suchzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: var(--nah); }
.suchzeile input {
  flex: 1 1 280px; max-width: 480px; min-width: 0;
  padding: 12px 18px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--weiss);
  background: var(--glas); border: 1px solid var(--linie); border-radius: var(--rund);
}
.suchzeile input::placeholder { color: var(--leise); }
.suchzeile input:focus-visible { outline: var(--fokus); outline-offset: 2px; }
.treffer { margin: 0; font-size: 0.9rem; color: var(--leise); }

/* Signalfluss: Stationen nebeneinander, darüber die Wege als Linien (SVG, von rack.js gezeichnet) */
.fluss {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px clamp(8px, 2vw, 24px);
  margin-top: var(--mittel);
}
.wege { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.wege-oben { z-index: 2; }
.wege-oben .weg { filter: drop-shadow(0 0 3px var(--farbe)); }
.weg { fill: none; stroke: var(--farbe); stroke-width: 1.5; opacity: 0.4; transition: opacity 0.25s, stroke-width 0.25s; }
.weg-takt { --farbe: var(--sig-takt); }
.weg-cv { --farbe: var(--sig-cv); }
.weg-ton { --farbe: var(--sig-ton); }
.weg-midi { --farbe: var(--sig-midi); stroke-dasharray: 5 4; }
.fluss.fokus .weg { opacity: 0.07; }
.fluss.fokus .weg.an { opacity: 1; stroke-width: 2.5; }
.stufe {
  position: relative; z-index: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  --farbe: var(--leise);
}
.stufe-titel {
  margin: 0 0 4px; padding-bottom: 6px;
  font-weight: 700; font-size: 0.74rem; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase;
  hyphens: auto; -webkit-hyphens: auto;
  color: var(--farbe); border-bottom: 2px solid var(--farbe);
}
.stufe-chips { display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: block; width: 100%; padding: 7px clamp(6px, 0.8vw, 10px);
  font-weight: 700; font-size: clamp(0.7rem, 1.05vw, 0.8rem); line-height: 1.25; text-align: left;
  color: var(--weiss); background: var(--nacht);
  border: 1px solid var(--farbe); border-left-width: 4px; border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.fluss.fokus .chip { opacity: 0.35; }
.fluss.fokus .chip.partner, .fluss.fokus .chip.ist { opacity: 1; }
.chip.ist { background: var(--farbe); color: var(--nacht); box-shadow: 0 0 18px var(--farbe); }
.fluss.suche .chip { opacity: 0.25; }
.fluss.suche .chip.treffer { opacity: 1; box-shadow: 0 0 14px var(--farbe); }
.fluss.suche.fokus .chip.ist, .fluss.suche.fokus .chip.partner { opacity: 1; }
.chip:focus-visible { outline: var(--fokus); outline-offset: 2px; }
.stufe[data-stufe="spielen"], .gruppe[data-stufe="spielen"] { --farbe: var(--st-spielen); }
.stufe[data-stufe="tonfolge"], .gruppe[data-stufe="tonfolge"] { --farbe: var(--st-tonfolge); }
.stufe[data-stufe="quelle"], .gruppe[data-stufe="quelle"] { --farbe: var(--st-quelle); }
.stufe[data-stufe="farbe"], .gruppe[data-stufe="farbe"] { --farbe: var(--st-farbe); }
.stufe[data-stufe="form"], .gruppe[data-stufe="form"] { --farbe: var(--st-form); }
.stufe[data-stufe="raum"], .gruppe[data-stufe="raum"] { --farbe: var(--st-raum); }
.stufe[data-stufe="mischen"], .gruppe[data-stufe="mischen"] { --farbe: var(--st-mischen); }
.stufe[data-stufe="stream"], .gruppe[data-stufe="stream"] { --farbe: var(--st-stream); }
.stufe[data-stufe="werkzeug"], .gruppe[data-stufe="werkzeug"] { --farbe: var(--st-werkzeug); }

/* gewähltes Gerät unter dem Fluss */
.auswahl {
  margin-top: var(--nah); padding: 16px 20px; max-width: var(--breite-text);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--ecke);
}
.auswahl p { margin: 0; }
.auswahl-kopf strong { font-weight: 900; color: var(--weiss); }
.auswahl .hersteller { color: var(--leise); }
.auswahl-text { margin-top: 6px !important; color: var(--text-leise); }
.auswahl-link { display: inline-block; margin-top: 10px; color: var(--tuerkis); text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* Gerätekarten nach Station */
.geraete { margin-top: var(--block); }
.gruppe + .gruppe { margin-top: var(--mittel); }
.gruppe-titel {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(18px, 1.8vw, 24px) !important; color: var(--farbe) !important;
}
.gruppe-titel::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--farbe); box-shadow: 0 0 12px var(--farbe); flex: none; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: var(--nah); row-gap: 0; margin-top: var(--nah); }
/* Jede Karte hat acht Zeilen im gemeinsamen Raster (Subgrid): Foto, Titel, Hersteller, Text, «Bekommt von», «Spielt in»,
   Bezeichnung, Link. So stehen sie in einer Kartenreihe auf derselben Linie (Wunsch Dominik 16.11.2026). */
.karte {
  display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; min-width: 0;
  margin-bottom: var(--nah);
  background: var(--flaeche); border: 1px solid var(--linie-fuss); border-top: 3px solid var(--farbe, var(--linie));
  border-radius: var(--ecke); overflow: hidden;
  scroll-margin-top: var(--nah);
}
.gruppe .karte { border-top-color: var(--farbe); }
.karte:target { box-shadow: 0 0 0 2px var(--farbe), 0 0 28px var(--farbe); }
.foto {
  position: relative; display: grid; place-items: center;
  height: 292px; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(57, 199, 232, 0.10), transparent 70%), #050816;
}
.foto img { display: block; max-height: 100%; width: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)); }
.foto-flach img { max-width: 100%; height: auto; }
.bildquelle { position: absolute; right: 10px; bottom: 6px; font-size: 0.7rem; color: var(--leise); }
.foto-leer .platte {        /* noch ohne Foto: ruhige Platte statt Bild */
  width: 72px; height: 100%;
  border: 1px dashed rgba(154, 166, 196, 0.35); border-radius: 4px;
  background: repeating-linear-gradient(to bottom, rgba(154, 166, 196, 0.06) 0 22px, transparent 22px 44px);
}
.foto-keins { display: grid; place-items: center; }   /* Software ohne Bild: Name gross statt Foto */
.foto-keins span { font-weight: 900; font-size: 1.7rem; letter-spacing: 0.04em; color: var(--farbe); opacity: 0.85; }
.karte > .karte-titel, .karte > .hersteller, .karte > .beschreibung, .karte > .zeile { padding-left: 20px; padding-right: 20px; }
.karte > .karte-titel { padding-top: 18px; }
/* Klartext-Bezeichnung rechts (z. B. «Klaviatur») */
.zeile-typ { display: flex; justify-content: flex-end; align-items: flex-end; padding-bottom: 16px; }
.typ {
  flex: none; margin: 12px 0 0; padding: 3px 10px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-align: right;
  color: var(--nacht); background: var(--farbe); border-radius: var(--rund);
}
/* ganz unten, bündig am Rahmen: Link zum Produkt beim Hersteller */
.herstellerlink {
  display: block; align-self: end; padding: 10px 16px; white-space: nowrap; overflow: hidden;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; color: var(--tuerkis); text-decoration: none;
  background: rgba(57, 199, 232, 0.06); border-top: 1px solid var(--linie-fuss);
}
.herstellerlink:focus-visible { outline: var(--fokus); outline-offset: -2px; }
.karte h3 { margin: 0; font-weight: 900; font-size: 1.05rem; line-height: 1.3; color: var(--weiss); }
.karte .hersteller { margin: 2px 0 0; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--farbe); }
.beschreibung { margin: 12px 0 0; font-size: 0.98rem; line-height: 1.6; color: var(--text-leise); }
.wege-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.wege-titel { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); margin-right: 2px; }
.mini {
  padding: 2px 9px; font-size: 0.8rem; font-weight: 700; color: var(--weiss); text-decoration: none;
  border: 1px solid var(--farbe); border-radius: var(--rund);
}
.mini.art-midi { border-style: dashed; }
.mini-alle { font-weight: 700; }
.mini.alle-strom, .chip.alle-strom { --farbe-alle: var(--sig-strom); }
.mini.alle-messen, .chip.alle-messen { --farbe-alle: var(--sig-messen); }
.mini-alle { border-color: var(--farbe-alle); }
.fluss.fokus .chip.alle-strom, .fluss.fokus .chip.alle-messen { opacity: 1; box-shadow: 0 0 12px var(--farbe-alle); }
.link-keins { min-height: 0; }
/* ältere Browser ohne Subgrid: Karte als Spalte, Link unten */
@supports not (grid-template-rows: subgrid) {
  .karte { display: flex; flex-direction: column; }
  .zeile-typ { margin-top: auto; }
}

/* =========================================== STUFEN =========================================== */
/* Nur die vier Stufen aus dem Gerüst oben. 1300/2000 stehen bei den Bildern (nur Auflösung). */

/* Handy quer / kleines Tablet */
@media (max-width: 760px) {
  .raster { grid-template-columns: 1fr; row-gap: 56px; }
  /* Rack: Stationen untereinander, Geräte je Station nebeneinander */
  .fluss { grid-auto-flow: row; grid-template-columns: 1fr; gap: 20px; }
  .stufe-chips { flex-direction: row; flex-wrap: wrap; }
  .chip { width: auto; }
}
/* Handy hoch */
@media (max-width: 600px) {
  .satz { font-size: 1.05rem; }
  .streams h2 { letter-spacing: 0.16em; padding-left: 0.16em; }
  .rack-lead { font-size: 1.05rem; }
  .karten { grid-template-columns: 1fr; }
  .foto { height: 260px; }
}

/* ======================================== BEDIENUNG ========================================= */
/* Hover nur auf Geräten mit Maus/Trackpad: auf Touch bleibt nach dem Antippen nichts «leuchtend» hängen */
@media (hover: hover) {
  .sprache a:hover { color: var(--weiss); }
  .tagnacht:hover { border-color: var(--linie-hell); }
  .knopf-tuerkis:hover { box-shadow: 0 0 22px rgba(57, 199, 232, 0.6); }
  .knopf-pink:hover { background: rgba(231, 93, 192, 0.15); box-shadow: 0 0 22px rgba(231, 93, 192, 0.45); }
  .player:hover img { transform: scale(1.03); filter: brightness(1.08); }
  .player:hover .abspielen { background: rgba(231, 93, 192, 0.28); box-shadow: 0 0 30px rgba(231, 93, 192, 0.85); }
  .fuss a:hover { color: var(--tuerkis); border-bottom-color: var(--tuerkis); }
  .chip:hover { background: rgba(255, 255, 255, 0.06); }
  .chip.ist:hover { background: var(--farbe); }
  .mini:hover, .auswahl-link:hover { box-shadow: 0 0 12px var(--farbe, var(--tuerkis)); }
  .herstellerlink:hover { background: rgba(57, 199, 232, 0.14); color: var(--weiss); }
}
/* «Bewegung reduzieren» in Windows, macOS, iOS, Android: keine Übergänge, Zustände wechseln sofort */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
