/* styles.css - Liraeth Homepage: "Live Signal / Tuning In".
   Scroll-getriebene Frequenz-Erzaehlung statt klassischer Hero+Karten+Stats-Vorlage.
   Alles abstrakt/animationsgetrieben, keine Fotos/Illustrationen. */

:root {
  --bg: #050510;
  --bg-2: #0c0a1c;
  --violet: #1a1030;
  --panel: rgba(22, 18, 42, 0.55);
  --panel-strong: rgba(26, 21, 48, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f2ff;
  --muted: #a79fc4;
  --cyan: #63f0ff;
  --pink: #ff6fd8;
  --gold: #ffd166;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --topbar-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sanftes Einrasten auf jeden Kanal beim Scrollen ("durch die Sender tunen").
     Bewusst "proximity" statt "mandatory": es rastet nur ein, wenn man in der
     Naehe stoppt -- schnelles Durchscrollen/Ueberfliegen bleibt frei moeglich.
     Auf Touch/Handy und bei reduzierter Bewegung wird es abgeschaltet. */
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--topbar-height);
}

.signal-intro {
  scroll-snap-align: start;
}

.frequency-stop {
  scroll-snap-align: center;
}

/* Auf Touch/Handy aus (fuehlt sich sonst zaeh an, kaempft gegen Momentum). */
@media (hover: none), (max-width: 720px) {
  html {
    scroll-snap-type: none;
  }
}

/* In der Lite-Stufe kein Snap (minimalistisch/zugaenglich). */
html[data-perf="lite"] {
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(99, 240, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(255, 111, 216, 0.08), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 68% 8%, #fff, transparent),
    radial-gradient(1px 1px at 82% 42%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 34% 64%, #fff, transparent),
    radial-gradient(1px 1px at 54% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 92% 88%, #fff, transparent),
    radial-gradient(1px 1px at 6% 92%, #fff, transparent);
  background-size: 100% 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================================
   Barrierefreiheit (Fokus, Skip-Link, Screenreader-Text)
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Programmatischer Fokus auf <main> (per Skip-Link) soll keinen Rahmen zeigen. */
#main-content:focus {
  outline: none;
}

/* FAQ-Zeilen haben overflow:hidden -> Fokus-Rahmen nach innen, sonst abgeschnitten. */
.faq-item summary:focus-visible {
  outline-offset: -3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #061018;
  font-weight: 800;
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-shell {
  min-height: 100vh;
}

/* ============================================================
   Intro-Ladescreen ("Einwaehl"-Moment, nur beim ersten Besuch)
   Standardmaessig aus -> ohne JS/ohne intro-pending bleibt die Seite frei.
   ============================================================ */

.intro-screen {
  display: none;
}

html.intro-pending .intro-screen {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  opacity: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 240, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  transition: opacity 650ms ease;
}

.intro-screen.intro-done {
  opacity: 0;
  pointer-events: none;
}

.intro-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.intro-mark svg {
  width: 54px;
  height: 54px;
}

.intro-mark-ring {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.4;
}

.intro-mark-bars {
  stroke: var(--cyan);
  transform-origin: center;
  animation: barPulse 1.4s ease-in-out infinite;
}

.intro-freq {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(99, 240, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.intro-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid rgba(126, 242, 199, 0.28);
  border-radius: 999px;
  background: rgba(126, 242, 199, 0.08);
  color: #a8f8dd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.intro-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef2c7;
  box-shadow: 0 0 10px rgba(126, 242, 199, 0.8);
}

.intro-screen.intro-locked .intro-status {
  opacity: 1;
  transform: none;
}

.intro-scan {
  width: min(280px, 60vw);
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  background-size: 200% 100%;
  animation: introScan 1.1s ease-in-out infinite;
}

@keyframes introScan {
  0% { background-position: 100% 0; opacity: 0.4; }
  50% { opacity: 1; }
  100% { background-position: -100% 0; opacity: 0.4; }
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  /* Kein backdrop-filter in der Basis: das rechnet bei JEDEM Scroll alles dahinter
     neu (teuer, v.a. ohne GPU). Stattdessen etwas opakerer Hintergrund. Der Glas-
     Blur kommt nur auf "full" zurueck (siehe unten). */
  background: rgba(7, 7, 20, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glas-Blur nur auf leistungsfaehigen Geraeten (full). */
html[data-perf="full"] .topbar {
  background: rgba(5, 5, 16, 0.56);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Seitliche Kanal-Navigation: Frequenz-Punkte rechts, zeigen den aktiven Kanal
   und springen per Klick weich zur Kanal-Mitte. Ergaenzt das Snap-Scrolling. */
.channel-nav {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.2vw, 30px);
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.channel-nav-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.channel-nav-freq {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.channel-nav-dot::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  transition: border-color 250ms ease, background 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.channel-nav-dot:hover .channel-nav-freq,
.channel-nav-dot.active .channel-nav-freq {
  opacity: 1;
  transform: none;
}

.channel-nav-dot:hover::after {
  border-color: var(--cyan);
}

.channel-nav-dot.active {
  color: var(--text);
}

.channel-nav-dot.active::after {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(99, 240, 255, 0.7);
  transform: scale(1.18);
}

@media (max-width: 720px) {
  .channel-nav {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark-ring {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.4;
}

.brand-mark-bars {
  stroke: var(--cyan);
  animation: barPulse 2.6s ease-in-out infinite;
  transform-origin: center;
}

.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-name span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(126, 242, 199, 0.28);
  border-radius: 999px;
  background: rgba(126, 242, 199, 0.08);
  color: #a8f8dd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef2c7;
  box-shadow: 0 0 12px rgba(126, 242, 199, 0.75);
  animation: livePulse 1.7s ease-in-out infinite;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 240, 255, 0.4);
  background: rgba(99, 240, 255, 0.1);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #070613;
  box-shadow: 0 16px 40px rgba(255, 111, 216, 0.22);
}

.btn.primary.radio {
  background: linear-gradient(135deg, var(--pink), #b98cff);
  box-shadow: 0 16px 40px rgba(255, 111, 216, 0.28);
}

.btn.primary:hover {
  box-shadow: 0 20px 50px rgba(99, 240, 255, 0.3);
}

/* ============================================================
   Signal-Intro (Opening)
   ============================================================ */

.signal-intro {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--topbar-height) + 40px) clamp(20px, 6vw, 92px) 80px;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Glow-Blobs: KEIN filter:blur mehr (war der Haupt-Lag, v.a. ohne GPU/Software-
   Rendering). Der radiale Verlauf im Background ist von sich aus weich -- Blobs nur
   leicht vergroessert als Ausgleich fuer den fehlenden Blur-Spread. */
.glow-blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  opacity: 0.42;
  will-change: transform;
}

.blob-a {
  top: -10%;
  left: -6%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation: blobDriftA 16s ease-in-out infinite;
}

.blob-b {
  bottom: -14%;
  right: -8%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  animation: blobDriftB 19s ease-in-out infinite;
}

.blob-c {
  top: 32%;
  left: 40%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--gold), transparent 72%);
  opacity: 0.2;
  animation: blobDriftC 22s ease-in-out infinite;
}

.dial-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190%;
  height: 190%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.dial-halo circle {
  fill: none;
  stroke: rgba(99, 240, 255, 0.28);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: ringPulse 5.5s ease-out infinite;
}

.dial-halo circle:nth-child(2) { animation-delay: 1.1s; stroke: rgba(255, 111, 216, 0.24); }
.dial-halo circle:nth-child(3) { animation-delay: 2.2s; stroke: rgba(255, 111, 216, 0.18); }

.hero-waveform {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  width: 100%;
  height: 180px;
  opacity: 0.75;
}

.hero-waveform .wave {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.wave-1 { stroke: var(--cyan); opacity: 0.75; animation: waveFloat 6.5s ease-in-out infinite; }
.wave-2 { stroke: var(--pink); opacity: 0.55; animation: waveFloat 7.5s ease-in-out infinite reverse; }
.wave-3 { stroke: var(--gold); opacity: 0.35; animation: waveFloat 8.5s ease-in-out infinite; animation-delay: -2s; }

/* ============================================================
   Tuning-Dial (Hero-Blickfang)
   ============================================================ */

.tuner-dial {
  width: clamp(210px, 24vw, 320px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.dial-face {
  position: relative;
  width: 100%;
}

.tuner-dial svg:not(.dial-halo) {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.dial-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.4;
}

.dial-ring.outer {
  stroke: url(#dialRingGradient);
  opacity: 0.55;
  stroke-width: 1.6;
  transition: opacity 300ms ease;
}

.dial-ring.soft {
  stroke: rgba(255, 255, 255, 0.08);
}

.dial-ticks line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.3;
  stroke-linecap: round;
  transition: stroke 300ms ease, opacity 300ms ease;
}

.dial-ticks line.major {
  stroke: var(--cyan);
  stroke-width: 2;
  opacity: 0.85;
}

/* Interaktiver Dial: beim Drueberfahren leuchten Striche und Aussenring dezent
   auf. Nur Hover-Geraete (Maus), einmalige Zustandsaenderung -> guenstig. */
@media (hover: hover) {
  .dial-face {
    transition: filter 300ms ease;
  }
  .dial-face:hover {
    filter: drop-shadow(0 0 12px rgba(99, 240, 255, 0.18));
  }
  .dial-face:hover .dial-ticks line {
    stroke: rgba(255, 255, 255, 0.45);
  }
  .dial-face:hover .dial-ticks line.major {
    opacity: 1;
  }
  .dial-face:hover .dial-ring.outer {
    opacity: 0.9;
  }
}

.dial-progress-dot {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(99, 240, 255, 0.85));
}

/* Halbkreis-Pfeil in Kanal-Farbe auf dem blauen Hauptstrich des aktiven Kanals.
   Position laeuft bewusst NICHT ueber CSS transform, sondern per Pfad-Geometrie
   in script.js -- transform-Aenderungen hier loesten einen Chromium-Bug aus,
   der das weit entfernte .stop-card-banner-Bild an falscher Stelle einblendete. */
.dial-channel-marker {
  fill: var(--pink);
  filter: drop-shadow(0 0 8px rgba(255, 111, 216, 0.75));
}

/* Profilbild des aktiven Kanals: fuellt den inneren grossen Kreis bis zu den
   blauen Hauptstrichen (Radius 72 von 100 svg-Einheiten = 72% der Dial-Breite) */
.dial-avatar-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 111, 216, 0.35);
  pointer-events: none;
}

.dial-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(9, 9, 20, 0.9);
  background: #0c0a1c;
  color: var(--pink);
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}

.dial-avatar.active {
  opacity: 1;
}

.dial-avatar.placeholder svg {
  width: 55%;
  height: 55%;
}

.dial-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.dial-label:hover {
  border-color: rgba(99, 240, 255, 0.4);
  background: rgba(99, 240, 255, 0.08);
}

.dial-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(99, 240, 255, 0.75);
  animation: livePulse 1.7s ease-in-out infinite;
}

.intro-grid {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.intro-content {
  width: min(680px, 100%);
  text-align: left;
}

.freq-readout {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.signal-intro h1 {
  margin: 18px 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.signal-intro h1 .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: #d9d4ee;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.channel-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 240, 255, 0.36);
  background: rgba(99, 240, 255, 0.08);
}

.channel-chip strong {
  color: white;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.chip-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-status.live {
  color: #a8f8dd;
  background: rgba(126, 242, 199, 0.15);
}

.chip-status.soon {
  color: #cfc8e8;
  background: rgba(255, 255, 255, 0.09);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
}

/* ============================================================
   Frequency band (scroll-gekoppelter Sender-Anzeiger)
   ============================================================ */

.frequency-run {
  position: relative;
  /* Durchgehender, weicher Farbverlauf hinter allen vier Sender-Sektionen:
     morpht Violett -> Indigo -> Cozy-Purple -> Pink, damit die Uebergaenge
     zwischen den Sektionen fliessen und nicht hart an der Kante abreissen.
     Faded oben (aus dem Hero) und unten (in den Log) sanft aus. Die lokalen
     Radial-Glows der Sektionen bleiben als Akzent obendrauf. */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139, 92, 246, 0.10) 11%,
    rgba(116, 108, 255, 0.11) 34%,
    rgba(103, 68, 158, 0.13) 60%,
    rgba(236, 72, 153, 0.10) 86%,
    transparent 100%
  );
}

.frequency-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12) 8%, rgba(255, 255, 255, 0.12) 92%, transparent);
  z-index: 2;
}

.frequency-band-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, 0);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(99, 240, 255, 0.8);
  will-change: transform;
}

/* ============================================================
   Frequency stops (ein Bot pro "Sender")
   ============================================================ */

.frequency-stop {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: start;
  min-height: 80vh;
  padding: 60px clamp(6vw, 10vw, 140px);
  overflow: hidden;
}

.frequency-stop.radio {
  justify-items: end;
}

.frequency-stop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(99, 240, 255, 0.08), transparent 55%);
  /* Glow an Ober- und Unterkante der Section weich auf 0 ausblenden, damit er
     durch overflow:hidden nicht hart an der Section-Grenze abgeschnitten wird
     (sonst sichtbare horizontale Linie zwischen zwei Sektionen). */
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.frequency-stop.radio::before {
  background: radial-gradient(circle at 80% 30%, rgba(255, 111, 216, 0.09), transparent 55%);
}

.frequency-stop:not(.radio) .stop-card {
  right: clamp(4%, 8vw, 12%);
}

.frequency-stop.radio .stop-card {
  left: clamp(4%, 8vw, 12%);
}

/* -- Profil-Karte: Bot-Avatar + Name + Status, wie ein Discord-Bot-Profil-Popup -- */
.stop-card {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: clamp(280px, 26vw, 360px);
  transform: translateY(-50%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius, 18px);
  background: var(--panel-strong, rgba(26, 21, 48, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Jede Karte bekommt einen Farbton passend zu ihrem Banner (auch im Body klar sichtbar). */
[data-bot="liraeth"] .stop-card {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.34), rgba(76, 42, 140, 0.55));
  border-color: rgba(139, 92, 246, 0.45);
}
[data-bot="radio"] .stop-card {
  background: linear-gradient(180deg, rgba(79, 90, 229, 0.36), rgba(38, 44, 120, 0.58));
  border-color: rgba(99, 102, 241, 0.45);
}
[data-bot="cozy"] .stop-card {
  background: linear-gradient(180deg, rgba(72, 48, 100, 0.32), rgba(26, 19, 40, 0.6));
  border-color: rgba(120, 85, 165, 0.4);
}

/* Hintergrund-Glow der Section pro Bot (passend zum Banner). Cozy tief/gemuetlich. */
[data-bot="liraeth"].frequency-stop::before {
  background: radial-gradient(circle at 22% 34%, rgba(139, 92, 246, 0.20), transparent 62%);
}
[data-bot="radio"].frequency-stop::before {
  background: radial-gradient(circle at 80% 32%, rgba(116, 108, 255, 0.20), transparent 62%);
}
[data-bot="cozy"].frequency-stop::before {
  background: radial-gradient(circle at 24% 36%, rgba(103, 68, 158, 0.24), transparent 64%);
}
[data-bot="kpop"].frequency-stop::before {
  background: radial-gradient(circle at 80% 32%, rgba(236, 72, 153, 0.18), transparent 62%);
}
[data-bot="kpop"] .stop-card {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.32), rgba(120, 30, 80, 0.55));
  border-color: rgba(236, 72, 153, 0.42);
}

.stop-card-banner {
  position: relative;
  height: 104px;
  overflow: hidden;
  background: var(--bg-2);
  contain: strict;
  content-visibility: auto;
}

.stop-card-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.2);
}

.stop-card-avatar {
  display: block;
  /* ueber dem Banner halten -- das Banner ist durch contain:strict ein eigener
     Stacking-Context und wuerde den nicht positionierten Avatar sonst ueberdecken */
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 22px;
  border-radius: 50%;
  border: 5px solid var(--panel-strong, #1a1530);
  background: #0c0a1c;
  object-fit: cover;
}

.stop-card-avatar.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.stop-card-avatar.placeholder svg {
  width: 40%;
  height: 40%;
}

.stop-card-body {
  padding: 14px 22px 22px;
}

.stop-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.stop-card-name strong {
  font-size: 1.2rem;
  color: white;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #5865f2; /* Discord-Blurple, wie das echte APP-Tag */
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.5;
}

.app-badge::before {
  content: "✓";
  font-size: 0.9em;
  font-weight: 900;
  line-height: 1;
}

.stop-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #a8f8dd;
  font-size: 0.82rem;
  font-weight: 800;
}

.stop-card-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef2c7;
  box-shadow: 0 0 10px rgba(126, 242, 199, 0.75);
  animation: livePulse 1.7s ease-in-out infinite;
}

.stop-card-status.offline {
  color: var(--muted);
}

.stop-card-status.offline i {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

.stop-card-bio {
  margin: 0;
  color: #cfc8e8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.frequency-stop.muted .stop-card {
  opacity: 0.6;
}

/* ============================================================
   Stop-Visual: grosse, leuchtende Kanal-Akzente (eine pro Kanal)
   ============================================================ */

.visual-anchor {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: clamp(280px, 26vw, 360px);
  transform: translateY(-330px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.frequency-stop:not(.radio) .visual-anchor {
  right: clamp(4%, 8vw, 12%);
}

.frequency-stop.radio .visual-anchor {
  left: clamp(4%, 8vw, 12%);
}

.frequency-stop.muted .visual-anchor {
  opacity: 0.55;
}

.stop-visual {
  position: relative;
}

/* -- Liraeth: Icon-Cluster (Shield/Reaction/Slash - All-in-One-Features) -- */
.stop-visual.tags,
.stop-visual.notes {
  width: 140px;
  height: 140px;
}

.icon-dot {
  position: absolute;
  color: var(--cyan);
  filter: drop-shadow(0 0 14px rgba(99, 240, 255, 0.6));
  animation: starDrift 5s ease-in-out infinite;
}

.frequency-stop.radio .icon-dot {
  color: var(--pink);
  filter: drop-shadow(0 0 14px rgba(255, 111, 216, 0.6));
}

.icon-dot svg {
  width: 100%;
  height: 100%;
}

.icon-dot.big {
  width: 30px;
  height: 30px;
  top: 4px;
  left: 16px;
}

.icon-dot.mid {
  width: 22px;
  height: 22px;
  top: 58px;
  left: 90px;
  animation-delay: 1.2s;
}

.icon-dot.small {
  width: 16px;
  height: 16px;
  top: 100px;
  left: 36px;
  animation-delay: 2.4s;
}

/* -- Cozy: sanftes, driftendes Sternen-Cluster -- */
.stop-visual.stars {
  width: 140px;
  height: 140px;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(99, 240, 255, 0.65);
  animation: starDrift 5s ease-in-out infinite;
}

.star-dot.big {
  width: 20px;
  height: 20px;
  top: 8px;
  left: 20px;
}

.star-dot.mid {
  width: 13px;
  height: 13px;
  top: 60px;
  left: 92px;
  background: var(--pink);
  box-shadow: 0 0 20px rgba(255, 111, 216, 0.6);
  animation-delay: 1.2s;
}

.star-dot.small {
  width: 9px;
  height: 9px;
  top: 104px;
  left: 40px;
  animation-delay: 2.4s;
}

/* -- K-Pop: leuchtendes Sparkle-Cluster -- */
.stop-visual.sparkles {
  width: 150px;
  height: 150px;
}

.sparkle {
  position: absolute;
  color: var(--pink);
  filter: drop-shadow(0 0 16px rgba(255, 111, 216, 0.7));
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

.sparkle-a {
  width: 46px;
  height: 46px;
  top: 4px;
  left: 30px;
}

.sparkle-b {
  width: 26px;
  height: 26px;
  top: 78px;
  left: 2px;
  animation-delay: 1s;
}

.sparkle-c {
  width: 20px;
  height: 20px;
  top: 100px;
  left: 104px;
  animation-delay: 2s;
}

.frequency-stop::after {
  content: attr(data-freq);
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -4%;
  transform: translateY(-50%);
  font-size: clamp(9rem, 26vw, 22rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
}

.frequency-stop.radio::after {
  left: auto;
  right: -4%;
}

/* Scanline-Textur der muted-Sektionen auf den Section-Hintergrund legen (nicht ::after),
   damit ::after fuer die grosse Frequenz-Wasserzeichen-Zahl frei bleibt. */
.frequency-stop.muted {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
}

.frequency-stop.muted .freq-number {
  color: #c7b8ef;
}

.frequency-stop.muted h2 {
  color: #d6d0ec;
}

.frequency-stop.muted .stop-facts li::before {
  background: var(--muted);
  box-shadow: none;
}

.static-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 7px 13px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.static-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.frequency-stop-inner {
  width: min(460px, 34vw, 100%);
}

.frequency-stop.radio .frequency-stop-inner {
  text-align: right;
}

.frequency-stop.radio .stop-facts li {
  padding-left: 0;
  padding-right: 20px;
}

.frequency-stop.radio .stop-facts li::before {
  left: auto;
  right: 0;
}

.freq-number {
  display: block;
  margin-bottom: 8px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
  /* Immer gut lesbar, auch vor dem farbigen Hintergrund-Glow. */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Frequenznummer NICHT vom Reveal-Fade ausblenden lassen — immer sichtbar. */
.frequency-stop-inner.reveal > .freq-number,
.frequency-stop-inner.reveal.visible > .freq-number {
  opacity: 1;
  transform: none;
}

.frequency-stop.radio .freq-number {
  color: var(--pink);
}

.frequency-stop h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 0.98;
}

.stop-copy {
  max-width: 580px;
  margin: 0 0 26px;
  color: #d9d4ee;
  line-height: 1.7;
}

.frequency-stop.radio .stop-copy {
  margin-left: auto;
}

.stop-facts {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.stop-facts li {
  position: relative;
  padding-left: 20px;
  color: #e4defa;
  line-height: 1.6;
  max-width: 560px;
}

.frequency-stop.radio .stop-facts li {
  margin-left: auto;
}

.stop-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(99, 240, 255, 0.5);
}

.frequency-stop.radio .stop-facts li::before {
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 111, 216, 0.5);
}

/* ============================================================
   Transmission log
   ============================================================ */

.transmission-log {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 6vw, 92px) clamp(80px, 9vw, 130px);
  max-width: 760px;
  margin: 0 auto;
}

.log-lines {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.log-lines li {
  color: #cfc8e8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.log-lines li i {
  margin-right: 10px;
  color: var(--cyan);
  font-style: normal;
}

/* ============================================================
   Funktionen-Ueberblick (Nutzen-Ebene, keine konkreten Befehle)
   ============================================================ */

.features,
.faq {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 100px) clamp(20px, 6vw, 92px);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
}

.section-head p {
  margin: 0;
  color: #cfc8e8;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.feature-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 18px);
  background: var(--panel, rgba(22, 18, 42, 0.55));
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 240, 255, 0.34);
  background: rgba(99, 240, 255, 0.06);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(99, 240, 255, 0.1);
  border: 1px solid rgba(99, 240, 255, 0.22);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card:nth-child(3n) .feature-icon {
  color: var(--pink);
  background: rgba(255, 111, 216, 0.1);
  border-color: rgba(255, 111, 216, 0.22);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   FAQ (native <details>-Akkordeon, barrierefrei)
   ============================================================ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 12px);
  background: var(--panel, rgba(22, 18, 42, 0.55));
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 240ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--cyan);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: #cfc8e8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   Reveal-Utility
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.visible {
  transition: opacity 700ms ease, transform 700ms ease;
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-Choreografie: in den Sender-Sektionen steigt der Inhalt gestaffelt auf
   (Zahl -> Titel -> Text -> Fakten -> Button), statt als ein Block. Der Block
   selbst faded nicht mehr, nur seine Kinder -- dezent, einmalig beim Reinscrollen. */
.frequency-stop-inner.reveal {
  opacity: 1;
  transform: none;
}
.frequency-stop-inner.reveal > * {
  opacity: 0;
  transform: translateY(20px);
}
.frequency-stop-inner.reveal.visible > * {
  transition: opacity 600ms ease, transform 600ms ease;
  opacity: 1;
  transform: none;
}
.frequency-stop-inner.reveal.visible > *:nth-child(1) { transition-delay: 0.02s; }
.frequency-stop-inner.reveal.visible > *:nth-child(2) { transition-delay: 0.10s; }
.frequency-stop-inner.reveal.visible > *:nth-child(3) { transition-delay: 0.18s; }
.frequency-stop-inner.reveal.visible > *:nth-child(4) { transition-delay: 0.26s; }
.frequency-stop-inner.reveal.visible > *:nth-child(5) { transition-delay: 0.34s; }
.frequency-stop-inner.reveal.visible > *:nth-child(6) { transition-delay: 0.42s; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  display: grid;
  gap: 12px;
  padding: 34px clamp(20px, 6vw, 92px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 4px;
}

.footer-links a {
  color: #cfc8e8;
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-note {
  color: var(--muted);
}

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz / Nutzungsbedingungen)
   ============================================================ */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 54px) clamp(20px, 6vw, 40px) 90px;
}

.legal .eyebrow {
  margin-bottom: 10px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.legal-updated {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: #d9d4ee;
  line-height: 1.75;
  font-size: 1rem;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 12px);
  background: var(--panel, rgba(22, 18, 42, 0.55));
  color: var(--muted);
  font-size: 0.9rem;
}

.legal address {
  font-style: normal;
  line-height: 1.75;
  color: #d9d4ee;
}

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.6); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes blobDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes blobDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -35px) scale(1.08); }
}

@keyframes blobDriftC {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.15); }
}

@keyframes ringPulse {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes starDrift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.05) rotate(8deg); opacity: 1; }
}

/* ============================================================
   Zusaetzliche Effekte (alle abgestuft ueber data-perf)
   ============================================================ */

/* Aurora-Schleier im Hero: wandernder Farbverlauf, nur ueber background-position
   animiert (bewusst KEIN transform -> kann den Banner-Compositing-Bug nicht
   ausloesen) und dadurch sehr guenstig. Nur in der Stufe "full". */
.hero-aurora {
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  /* bewusst KEIN mix-blend-mode: screen -- das ist im Software-Rendering
     (Grafikbeschleunigung aus) sehr teuer. Stattdessen etwas kraeftigere,
     halbtransparente Farben, die auch mit normalem Blending gut ueber dem
     dunklen Grund wirken. */
  background:
    linear-gradient(115deg,
      transparent 16%,
      rgba(99, 240, 255, 0.16) 34%,
      rgba(255, 111, 216, 0.20) 50%,
      rgba(255, 209, 102, 0.10) 64%,
      transparent 84%);
  background-size: 240% 240%;
  animation: auroraSweep 20s ease-in-out infinite;
}

/* Licht-Aura, die im Hero der Maus folgt. Bewegt wird NUR die Gradient-Mitte
   (--mx/--my) -> reines Neuzeichnen, kein transform, kein Compositing-Bug.
   Wird per JS nur in Stufe "full" mit echter Maus und aktiver GPU eingeschaltet. */
.cursor-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px; /* Mittelpunkt liegt auf dem Ursprung -> translate3d zentriert */
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 450ms ease;
  background: radial-gradient(circle,
    rgba(99, 240, 255, 0.18), rgba(255, 111, 216, 0.09) 42%, transparent 68%);
  will-change: transform;
}
.cursor-aura.is-on {
  opacity: 1;
}

/* Dezentes Signal-Partikelfeld im Hero: wenige kleine Licht-Motes, die langsam
   nach oben treiben und dabei aus- und einblenden. Rein CSS (transform/opacity),
   kein Canvas, kein per-frame JS -> guenstig und leicht abzuschalten. */
.signal-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.signal-particles span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  box-shadow: 0 0 8px rgba(99, 240, 255, 0.7);
  animation: particleFloat 16s linear infinite;
}

.signal-particles span:nth-child(3n) { background: var(--pink); box-shadow: 0 0 8px rgba(255, 111, 216, 0.7); }
.signal-particles span:nth-child(5n) { background: var(--gold); box-shadow: 0 0 8px rgba(255, 209, 102, 0.6); }

.signal-particles span:nth-child(1)  { left: 8%;  animation-duration: 17s; animation-delay: -2s;  --s: 0.8; }
.signal-particles span:nth-child(2)  { left: 18%; animation-duration: 21s; animation-delay: -9s;  --s: 1.1; }
.signal-particles span:nth-child(3)  { left: 27%; animation-duration: 15s; animation-delay: -5s;  --s: 0.7; }
.signal-particles span:nth-child(4)  { left: 36%; animation-duration: 23s; animation-delay: -13s; --s: 1; }
.signal-particles span:nth-child(5)  { left: 45%; animation-duration: 18s; animation-delay: -1s;  --s: 0.9; }
.signal-particles span:nth-child(6)  { left: 54%; animation-duration: 20s; animation-delay: -7s;  --s: 0.75; }
.signal-particles span:nth-child(7)  { left: 63%; animation-duration: 16s; animation-delay: -11s; --s: 1.05; }
.signal-particles span:nth-child(8)  { left: 71%; animation-duration: 24s; animation-delay: -4s;  --s: 0.85; }
.signal-particles span:nth-child(9)  { left: 80%; animation-duration: 19s; animation-delay: -15s; --s: 0.7; }
.signal-particles span:nth-child(10) { left: 88%; animation-duration: 22s; animation-delay: -3s;  --s: 1; }
.signal-particles span:nth-child(11) { left: 94%; animation-duration: 17s; animation-delay: -8s;  --s: 0.8; }
.signal-particles span:nth-child(12) { left: 13%; animation-duration: 25s; animation-delay: -18s; --s: 0.9; }

/* Zweite, sanft pulsierende Sternschicht ueber dem Grund-Sternfeld. */
.sky-twinkle {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 32%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 74% 16%, rgba(160, 230, 255, 0.95), transparent),
    radial-gradient(1.3px 1.3px at 58% 60%, rgba(255, 200, 240, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 12% 74%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.4px 1.4px at 88% 66%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 40% 88%, rgba(160, 230, 255, 0.95), transparent);
  animation: twinkle 5s ease-in-out infinite;
}

/* Neon-Shimmer auf den Frequenz-Zahlen. currentColor haelt die Kanal-Farbe,
   ein heller Streifen wandert durch. Kein SplitText hier -> unbedenklich. */
.freq-readout,
.freq-number {
  background-image: linear-gradient(100deg,
    currentColor 0%, currentColor 42%, #ffffff 50%, currentColor 58%, currentColor 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: numShimmer 6.5s linear infinite;
}

/* Sanftes Farbleben auf den Dial-Halo-Ringen (nur Stufe "full"). */
.dial-halo {
  animation: dialHue 16s linear infinite;
}

/* Glanz-Sweep ueber Chips und Buttons beim Hover (guenstig, nur bei Hover). */
.channel-chip,
.btn {
  position: relative;
  overflow: hidden;
}

.channel-chip::after,
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform 750ms ease;
  pointer-events: none;
}

.channel-chip:hover::after,
.btn:hover::after {
  transform: translateX(320%) skewX(-18deg);
}

@keyframes auroraSweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.7; }
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(var(--s, 1)); }
  12%  { opacity: 0.75; }
  50%  { transform: translate(14px, -46vh) scale(var(--s, 1)); }
  88%  { opacity: 0.75; }
  100% { opacity: 0; transform: translate(-6px, -92vh) scale(var(--s, 1)); }
}

@keyframes numShimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}

@keyframes dialHue {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(30deg); }
}

/* ============================================================
   Performance-Stufen: schrittweises Abschalten teurer Effekte.
   data-perf wird per JS gesetzt (Hardware-Schaetzung + Live-FPS).
   ============================================================ */

/* balanced: die teuersten Dauer-Effekte weg, Ambiente (inkl. Aurora-Farbwechsel
   und Cursor-Aura) bleibt bewusst erhalten -- der Owner will die auch ohne GPU. */
html[data-perf="balanced"] .dial-halo {
  animation: none;
}
/* balanced: Blobs blasser statt teurem Blur (Groesse via width/height, weil
   transform von den blobDrift-Animationen ueberschrieben wuerde). */
html[data-perf="balanced"] .glow-blob {
  opacity: 0.32;
  width: 480px;
  height: 480px;
}

/* lite: praktisch alle Deko-Animationen aus (wie reduced-motion), Inhalt bleibt
   voll sichtbar. Fuer schwache Geraete oder wenn der FPS-Waechter herunterstuft. */
html[data-perf="lite"] .brand-mark-bars,
html[data-perf="lite"] .live-dot,
html[data-perf="lite"] .glow-blob,
html[data-perf="lite"] .hero-aurora,
html[data-perf="lite"] .sky-twinkle,
html[data-perf="lite"] .dial-halo,
html[data-perf="lite"] .dial-halo circle,
html[data-perf="lite"] .wave-1,
html[data-perf="lite"] .wave-2,
html[data-perf="lite"] .wave-3,
html[data-perf="lite"] .dial-label i,
html[data-perf="lite"] .stop-card,
html[data-perf="lite"] .stop-card-status i,
html[data-perf="lite"] .star-dot,
html[data-perf="lite"] .icon-dot,
html[data-perf="lite"] .sparkle,
html[data-perf="lite"] .signal-particles span,
html[data-perf="lite"] .freq-readout,
html[data-perf="lite"] .freq-number,
html[data-perf="lite"] .scroll-cue span {
  animation: none !important;
}
html[data-perf="lite"] .hero-aurora,
html[data-perf="lite"] .sky-twinkle,
html[data-perf="lite"] .signal-particles {
  opacity: 0;
}
html[data-perf="lite"] .freq-readout,
html[data-perf="lite"] .freq-number {
  -webkit-text-fill-color: currentColor;
}
html[data-perf="lite"] .dial-avatar,
html[data-perf="lite"] .dial-avatar-slot {
  transition: none !important;
}
html[data-perf="lite"] .reveal {
  opacity: 1;
  transform: none;
}
html[data-perf="lite"] .frequency-stop-inner.reveal > * {
  opacity: 1;
  transform: none;
  transition: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .tuner-dial {
    display: none;
  }
}

@media (max-width: 720px) {
  .frequency-band {
    display: none;
  }
  .stop-card,
  .visual-anchor {
    display: none;
  }
  .frequency-stop-inner {
    width: 100%;
  }
  .frequency-stop.radio .frequency-stop-inner {
    margin-left: 0;
    text-align: left;
  }
  .frequency-stop.radio .stop-copy,
  .frequency-stop.radio .stop-facts li {
    margin-left: 0;
  }
  .frequency-stop.radio .stop-facts li {
    padding-left: 20px;
    padding-right: 0;
  }
  .frequency-stop.radio .stop-facts li::before {
    left: 0;
    right: auto;
  }
  .glow-blob {
    width: 380px;
    height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  .brand-mark-bars,
  .live-dot,
  .glow-blob,
  .hero-aurora,
  .sky-twinkle,
  .dial-halo,
  .dial-halo circle,
  .wave-1, .wave-2, .wave-3,
  .dial-label i,
  .stop-card,
  .stop-card-status i,
  .star-dot,
  .icon-dot,
  .sparkle,
  .signal-particles span,
  .freq-readout,
  .freq-number,
  .scroll-cue span {
    animation: none !important;
  }
  .hero-aurora,
  .sky-twinkle,
  .signal-particles {
    opacity: 0;
  }
  .freq-readout,
  .freq-number {
    -webkit-text-fill-color: currentColor;
  }
  .dial-avatar,
  .dial-avatar-slot {
    transition: none !important;
  }
  .frequency-stop.muted .stop-card {
    opacity: 0.5;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .frequency-stop-inner.reveal > * {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}
