@font-face {
  font-family: 'SquareDotMatrix';
  src: url('../assets/fonts/Square-Dot-Matrix.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: block;
}

/* ============================================================
LANVERMANN.COM — NIGHT CITY BUILD
   Reines CSS, kein Framework. Neon auf Dark.
   ============================================================ */

:root {
  --bg: #07070f;
  --panel: rgba(10, 15, 26, 0.88);
  --cyan: #00e5ff;
  --magenta: #ff2a6d;
  --violet: #9d00ff;
  --yellow: #ffd600;
  --text: #c9d7e6;
  --muted: #5d7285;
  --font-display: "Orbitron", "Arial Narrow", Arial, sans-serif;
  --font-mono: "Share Tech Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 15% -10%, rgba(0, 229, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255, 42, 109, 0.06), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(157, 0, 255, 0.08), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--magenta); color: #fff; }

a { color: var(--cyan); }

/* ---------- ambient layers ---------- */

.grid-floor {
  position: fixed;
  left: -50%;
  right: -50%;
  bottom: -12vh;
  height: 55vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 109, 0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: top center;
  mask-image: linear-gradient(transparent, #000 40%);
  animation: grid-run 3.2s linear infinite;
  opacity: 0.5;
}
@keyframes grid-run { from { background-position: 0 0; } to { background-position: 0 60px; } }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 3px);
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 5, 0.55) 100%);
}

/* ---------- page skeleton ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero { text-align: center; padding: 26px 0 34px; }

.tagline {
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ---------- neon title + glitch ---------- */

.glitch {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  color: #f2f7ff;
  text-shadow:
    0 0 6px rgba(0, 229, 255, 0.9),
    0 0 24px rgba(0, 229, 255, 0.55),
    0 0 60px rgba(0, 229, 255, 0.35);
  animation: flicker 6s infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  text-shadow: 2px 0 var(--cyan);
  animation: glitch-a 3.4s infinite steps(2, jump-none);
}
.glitch::after {
  color: var(--magenta);
  text-shadow: -2px 0 var(--magenta);
  animation: glitch-b 3.4s infinite steps(2, jump-none);
}
@keyframes glitch-a {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: none; }
  87% { opacity: 0.85; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  90% { opacity: 0.85; transform: translate(3px, -1px);  clip-path: inset(60% 0 8% 0); }
  93% { opacity: 0.85; transform: translate(-2px, 0);    clip-path: inset(35% 0 40% 0); }
  96% { opacity: 0.85; transform: translate(2px, 1px);   clip-path: inset(70% 0 2% 0); }
}
@keyframes glitch-b {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: none; }
  88% { opacity: 0.8;  transform: translate(3px, -2px); clip-path: inset(48% 0 22% 0); }
  91% { opacity: 0.8;  transform: translate(-3px, 1px); clip-path: inset(5% 0 80% 0); }
  94% { opacity: 0.8;  transform: translate(2px, 0);    clip-path: inset(75% 0 6% 0); }
  97% { opacity: 0.8;  transform: translate(-2px, -1px);clip-path: inset(25% 0 50% 0); }
}
@keyframes flicker {
  0%, 100% { text-shadow: 0 0 6px rgba(0,229,255,.9), 0 0 24px rgba(0,229,255,.55), 0 0 60px rgba(0,229,255,.35); }
  7%  { text-shadow: 0 0 3px rgba(0,229,255,.5), 0 0 12px rgba(0,229,255,.3), 0 0 30px rgba(0,229,255,.15); }
  8%  { text-shadow: 0 0 8px rgba(0,229,255,1), 0 0 30px rgba(0,229,255,.7), 0 0 80px rgba(0,229,255,.45); }
  49% { opacity: 0.96; }
  50% { opacity: 1; }
}

.codename {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  letter-spacing: 0.45em;
  color: var(--muted);
}
.codename span {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 42, 109, 0.9), 0 0 30px rgba(255, 42, 109, 0.5);
}

/* ---------- cards ---------- */

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(0, 229, 255, 0.35);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 26px 24px;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.14));
  animation: card-in 0.7s ease-out both;
}
.dj-card { animation-delay: 0.15s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.card-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.card-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 8px;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--magenta), transparent);
  vertical-align: middle;
}

/* ---------- id card ---------- */

.portrait {
  position: relative;
  width: 210px;
  margin: 0 auto 20px;
}
.portrait img {
  display: block;
  width: 100%;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  filter: grayscale(0.35) contrast(1.08) brightness(0.95)
          drop-shadow(0 0 16px rgba(0, 229, 255, 0.35));
  transition: filter 0.25s ease;
}
.portrait:hover img {
  filter: grayscale(0.1) contrast(1.15) brightness(1.05)
          drop-shadow(0 0 10px var(--cyan))
          drop-shadow(3px 0 0 rgba(255, 42, 109, 0.55))
          drop-shadow(-3px 0 0 rgba(0, 229, 255, 0.55));
}
.portrait-frame {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  pointer-events: none;
  /* CRT-Textur: permanente feine Scanlines */
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.11) 0 1px, transparent 1px 3px);
}
/* Scanner-Balken: helle Segmentlinie unten, Phosphor-Trail darueber, seitliche Winkel, RGB-Versatz */
.pscan {
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 15%;
  min-height: 20px;
  background:
    linear-gradient(90deg,
      rgba(190, 245, 255, 0.95) 0 17%, transparent 17% 20%,
      rgba(190, 245, 255, 0.95) 20% 61%, transparent 61% 64%,
      rgba(190, 245, 255, 0.95) 64% 100%) bottom / 100% 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.05) 45%, rgba(0, 229, 255, 0.17) 88%, transparent 100%);
  box-shadow: 0 2px 14px rgba(0, 229, 255, 0.4), 2px 0 0 rgba(255, 42, 109, 0.28), -2px 0 0 rgba(0, 229, 255, 0.34);
  opacity: 0;
  animation: pscan 6.5s infinite;
}
.pscan::before, .pscan::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px; height: 6px;
  border-bottom: 2px solid #bff4ff;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.8);
}
.pscan::before { left: 2px; }
.pscan::after  { right: 2px; }
@keyframes pscan {
  0%, 8%   { top: -16px; opacity: 0; }
  11%      { opacity: 1; }
  24%      { top: 26%; }
  26%      { top: 29%; }   /* ruckhafter Scanner-Schritt */
  40%      { top: 52%; }
  42%      { top: 54%; }
  55%      { top: 82%; }
  57%      { top: 84%; }
  64%, 66% { top: 100%; opacity: 1; }
  70%      { opacity: 0; }
  100%     { top: -16px; opacity: 0; }
}
/* Lock-on: Eckklammern blinken auf, wenn der Scan die Unterkante erreicht */
.portrait-frame::before { animation: bracket-breathe 3.2s ease-in-out infinite alternate, bracket-lock 6.5s infinite 0.9s; }
.portrait-frame::after  { animation: bracket-breathe 3.2s ease-in-out infinite alternate 1.6s, bracket-lock 6.5s infinite 0.9s; }
@keyframes bracket-lock {
  0%, 63% { filter: none; }
  66%     { filter: brightness(2.4) drop-shadow(0 0 9px var(--magenta)); }
  72%     { filter: none; }
  100%    { filter: none; }
}
@keyframes bracket-breathe {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
.portrait-frame::before { animation: bracket-breathe 3.2s ease-in-out infinite alternate; }
.portrait-frame::after  { animation: bracket-breathe 3.2s ease-in-out infinite alternate 1.6s; }
.portrait-frame::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 34px; height: 34px;
  border-top: 2px solid var(--magenta);
  border-right: 2px solid var(--magenta);
  box-shadow: 2px -2px 10px rgba(255, 42, 109, 0.6);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  bottom: -1px; left: -1px;
  width: 34px; height: 34px;
  border-bottom: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  box-shadow: -2px 2px 10px rgba(0, 229, 255, 0.6);
}

.bio {
  list-style: none;
  font-size: 1.02rem;
  line-height: 2;
  letter-spacing: 0.04em;
}
.bio .prompt { color: var(--magenta); margin-right: 8px; }
.cursor { color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.socials {
  display: flex;
  gap: 10px;
  margin: 22px 0 18px;
}
.socials a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  text-decoration: none;
  border: 1px solid rgba(93, 114, 133, 0.45);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(0, 229, 255, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.socials img { width: 22px; height: 22px; }
.socials span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.2s;
}
.socials a:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35), inset 0 0 10px rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}
.socials a:hover span { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.8); }

.emoji { display: block; margin: 0 auto; height: 52px; opacity: 0.92; }

/* ---------- dj card ---------- */

.dj-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.dj-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}
.dj-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--text);
}
.dj-head h2 span {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 214, 0, 0.8), 0 0 26px rgba(255, 214, 0, 0.4);
}
.dj-note { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ---------- autoradio unit ---------- */

.stereo {
  position: relative;
  background:
    linear-gradient(180deg, #171b21 0%, #10141a 40%, #0b0e13 100%),
    #0b0e13;
  border: 1px solid #2a323d;
  border-radius: 10px;
  padding: 12px 16px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(0, 229, 255, 0.05);
}
.stereo::before {
  content: "";
  position: absolute;
  top: 1px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.stereo-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #8b98a6;
}
.model { color: #e8edf2; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8); }
.model b {
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  padding: 2px 7px;
  border: 1px solid #4a3038;
  border-radius: 3px;
  color: #ff5a7a;
  background: rgba(255, 42, 109, 0.08);
}
.model b.mp3 {
  border-color: #1e3d44;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}
.ind { display: inline-flex; align-items: center; gap: 6px; }
.brands {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: #55677c;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16212e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
  transition: background 0.2s, box-shadow 0.2s;
}
.led.red {
  background: #ff2a6d;
  box-shadow: 0 0 8px rgba(255, 42, 109, 0.9), 0 0 18px rgba(255, 42, 109, 0.45);
  animation: led-pulse 3s ease-in-out infinite;
}
.led.amber {
  background: #ffd600;
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.85), 0 0 16px rgba(255, 214, 0, 0.4);
}
.led.on {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.95), 0 0 20px rgba(0, 229, 255, 0.5);
}
@keyframes led-pulse { 50% { opacity: 0.75; } }

.display {
  position: relative;
  background: radial-gradient(130% 130% at 50% 0%, #101318 0%, #06080b 70%);
  border: 1px solid #303a46;
  border-radius: 8px;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.95), inset 0 0 60px rgba(0, 229, 255, 0.04);
  overflow: hidden;
}
.display::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 26%);
  pointer-events: none;
}
#matrix { display: block; width: 100%; height: 86px; }

/* Display-Verbund: Matrix links, EQ als eigenes Modul rechts */
.disp-row { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; }
.eqmod {
  flex: 0 0 168px;
  height: 88px; /* gleiche Aussenhoehe wie Skala/Frequenzfenster */
  display: flex;
  flex-direction: column;
  padding: 6px 6px 3px;
  background: linear-gradient(180deg, #0b0d11 0%, #06080b 100%);
  border: 1px solid #303a46;
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.eq-label {
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  color: #55677c;
  text-align: center;
  padding-top: 2px;
}
.display-row { display: none; }

/* Frontglas-Verbund: Skala, Display, Fenster und EQ teilen sich eine Fassung */
.fm-row, .display, .tape .tscale, .stereo-eq {
  border-color: #303a46;
}
.display {
  border-width: 1px;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.95), inset 0 0 60px rgba(0, 229, 255, 0.03), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* UKW-Skala + Frequenzfenster nebeneinander */
.fm-row { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; }
.fm { flex: 1 1 auto; min-width: 0; }
.freqw { flex: 0 0 170px; }

/* UKW-Senderskala */
.fm {
  position: relative;
  touch-action: none; /* tippen + ziehen ohne Scroll-Konkurrenz */
  height: 88px;
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(0, 229, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #05070a 55%, #070b11 100%);
  border: 1px solid #2a3542;
  border-radius: 8px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
/* HUD-Winkel an den Ecken */
.fm::before {
  content: "";
  position: absolute; inset: 4px; pointer-events: none; opacity: 0.55;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 14px 1px,
    linear-gradient(var(--cyan), var(--cyan)) top left / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) top right / 14px 1px,
    linear-gradient(var(--cyan), var(--cyan)) top right / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 14px 1px,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 1px 14px,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 14px 1px,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 1px 14px;
  background-repeat: no-repeat;
}
/* Grundlinie, auf der die Ticks stehen */
.fm::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 15px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5) 10%,
              rgba(0, 229, 255, 0.5) 90%, transparent);
  pointer-events: none;
}
.fm:focus-visible { outline: 1px solid var(--yellow); }
/* innere Zone: Skalen-Grafik laeuft nicht bis ans Gehaeuse */
.fm-in {
  position: absolute;
  top: 0; bottom: 0; left: 14px; right: 14px;
}
.fm-ticks i {
  position: absolute;
  bottom: 16px;
  width: 1px;
  height: 4px;
  background: linear-gradient(to top, rgba(0, 229, 255, 0.4), rgba(0, 229, 255, 0.06));
}
.fm-ticks i.half { height: 8px; background: linear-gradient(to top, rgba(0, 229, 255, 0.6), rgba(0, 229, 255, 0.1)); }
.fm-ticks i.big {
  height: 12px;
  background: linear-gradient(to top, rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.18));
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}
.fm-nums span {
  position: absolute;
  top: 13px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #8fc6da;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.55), 0 0 14px rgba(0, 229, 255, 0.25);
}
.fm-st .pip {
  position: absolute;
  top: 32px;
  transform: translateX(-50%);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
  background: rgba(5, 10, 16, 0.6);
}
/* kleiner Abzeige-Pfeil unter jedem Stations-Pip */
.fm-st .pip::after {
  content: "";
  position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
}
.fm-needle {
  position: absolute;
  top: 26px; bottom: 15px; /* Pfeil grenzt oben an die Zahlen, unten Grundlinie */
  left: 0%;
  width: 2px;
  background: linear-gradient(180deg, #ffffff, var(--yellow));
  box-shadow: 0 0 10px var(--yellow), 0 0 22px rgba(255, 214, 0, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.14s ease-out;
}
/* Zeiger-Kappe als kleiner Keil oben */
.fm-needle::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 5px solid transparent;
  border-top: 6px solid var(--yellow);
  filter: drop-shadow(0 0 4px rgba(255, 214, 0, 0.8));
}

.display { flex: 1 1 auto; min-width: 0; }
.freqw {
  flex: 0 0 168px;
  height: 88px; /* exakt so hoch wie die UKW-Skala (.fm) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  overflow: hidden;
  background: radial-gradient(130% 130% at 50% 0%, #14110a 0%, #08090c 70%);
  border: 1px solid #3a3524;
  border-radius: 8px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.9), inset 0 0 50px rgba(255, 214, 0, 0.04);
}
#freqCv { display: block; width: 150px; height: 50px; }
.freq-foot { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.freq-unit {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 214, 0, 0.7);
}
.freq-band { font-size: 0.52rem; letter-spacing: 0.25em; color: #6b5a33; }

/* Tape-Fortschrittsbalken (Playlist-Wiedergabe) */
.tape { margin-top: 12px; }
.tscale {
  position: relative;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.22) 0 1px, transparent 1px 34px),
    #06080b;
  border: 1px solid #303a46;
  border-radius: 4px;
  cursor: pointer;
}
.tneedle {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 0%;
  width: 3px;
  background: linear-gradient(180deg, #ffffff, var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
  pointer-events: none;
}
.tfill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.5), rgba(0, 229, 255, 0.22));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 24px rgba(0, 229, 255, 0.22);
  border-radius: 3px 0 0 3px;
  overflow: hidden;
  pointer-events: none;
}
.tclip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
  pointer-events: none;
}
.tshine {
  position: absolute;
  top: 0; bottom: 0;
  left: -22%;
  width: 20%; /* konstant relativ zum Balken, nicht zur Fuellung */
  background: linear-gradient(90deg, transparent, rgba(235, 250, 255, 0.85), transparent);
  animation: tshine 2.8s linear infinite;
}
@keyframes tshine {
  0% { left: -22%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tshine { animation: none; opacity: 0; }
}

.tape-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.stereo-eq {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
  border: 0;
  border-top: 1px solid rgba(160, 180, 200, 0.18);
  border-radius: 0;
  box-shadow: none;
}

.panel-row > * { flex-shrink: 0; } /* niemals quetschen: entweder Reihe oder Grid */
.panel-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap; /* eine Reihe ab ~661px, darunter Grid (s.u.) */
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
}
.transport { margin-left: 4px; }
.presetbox { margin-left: 4px; }
/* MEM + Presets 3–6: Logik bleibt, Knöpfe aktuell ausgeblendet */
.membt { display: none; }
#presets .bt.num:nth-child(n+3) { display: none; }
.plbt { width: 54px; height: 38px; font-size: 0.78rem; letter-spacing: 0.12em; }
.presetbox { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.presets { display: flex; gap: 7px; flex-wrap: wrap; }

/* physische Tasten: flache Pioneer-Gummitefinger mit Silkscreen */
.bt {
  font-family: var(--font-display);
  font-weight: 700;
  color: #cfd8e2;
  background: linear-gradient(180deg, #1c222a 0%, #13181f 60%, #0e1218 100%);
  border: 1px solid #303a46;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.bt:hover { color: #ffffff; border-color: #47566a; }
.bt:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65); }

.presets .bt { width: 44px; height: 38px; font-size: 0.95rem; letter-spacing: 0.05em; }
.presets .bt.empty { color: #3d4f60; }
.presets .bt.active {
  color: #ffffff;
  border-color: #47566a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 0 var(--cyan),
    0 0 12px rgba(0, 229, 255, 0.35);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.9);
}
.presets .bt.ai {
  color: #ffffff;
  border-color: #47566a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 0 var(--violet),
    0 0 12px rgba(157, 0, 255, 0.4);
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.95);
}
.membt {
  width: 54px; height: 38px; font-size: 0.78rem; letter-spacing: 0.12em;
  color: #ff5a7a;
  border-color: #4a3038;
}
.membt:hover { color: #ff87a0; border-color: #6a4150; }
.membt.on {
  color: #ffd0da;
  border-color: rgba(255, 42, 109, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 0 var(--magenta), 0 0 14px rgba(255, 42, 109, 0.5);
  text-shadow: 0 0 9px rgba(255, 42, 109, 0.95);
}

.transport { display: flex; gap: 8px; }
.tr { width: 54px; height: 42px; font-size: 1.05rem; }
.tr.play { color: var(--magenta); }
.tr.play:hover { border-color: rgba(255, 42, 109, 0.6); }
.tr.play.on {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.8);
  border-color: rgba(255, 214, 0, 0.5);
}

.knobwrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.knob {
  /* Touch: Geste dem Browser-Scrolling entziehen, sonst fangen Scroll-Events
     jeden Drag ab und pointercancel beendet die Knopf-Bedienung. */
  touch-action: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 4px;
  cursor: ns-resize;
  background: radial-gradient(circle at 50% 45%, #1d2a3b, #0b121c 75%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.16), rgba(5, 10, 16, 0.55) 75%),
    repeating-conic-gradient(from 0deg, #223142 0deg 6deg, #0e1723 6deg 12deg);
  border: 1px solid #3a4f68;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12);
  transition: transform 0.06s linear;
}
.dial::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%;
  width: 3px; height: 16px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0, 229, 255, 0.6);
}
.knob.tune { cursor: ew-resize; } /* gleiche Groesse wie VOL */
.knob.tune .dial::before { height: 24px; }
.dial.amber::before {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow), 0 0 16px rgba(255, 214, 0, 0.6);
}
.knobs { display: flex; gap: 18px; align-items: center; }
.knob-label { font-size: 0.62rem; letter-spacing: 0.3em; color: var(--muted); }

/* playlist */

/* Playliste standardmaessig versteckt; LIST-Taste blendet sie ein */
.player.pl-open .pl-head { display: flex; }
.player.pl-open .playlist { display: block; }
.plbt[aria-pressed="true"] {
  color: var(--cyan); border-color: rgba(0, 229, 255, 0.55);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.pl-head {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.pl-head .cnt { color: var(--muted); text-shadow: none; letter-spacing: 0.14em; font-weight: 400; }
.pl-head.ai { color: #c98fff; text-shadow: 0 0 10px rgba(157, 0, 255, 0.7); }
.playlist {
  display: none;
  list-style: none;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) #0a0a14;
}
.playlist::-webkit-scrollbar { width: 8px; }
.playlist::-webkit-scrollbar-track { background: #0a0a14; }
.playlist::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--magenta));
  border-radius: 4px;
}
.playlist li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.playlist .pl-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 50%;
  font-size: 0.7rem;
  color: var(--cyan);
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, 0.12), transparent 70%);
}
.playlist.ai .pl-num {
  border-color: rgba(157, 0, 255, 0.5);
  color: #c98fff;
  background: radial-gradient(circle at 35% 30%, rgba(157, 0, 255, 0.15), transparent 70%);
}
.playlist.ai li.active {
  border-left-color: var(--violet);
  background: rgba(157, 0, 255, 0.10);
}
.playlist li img { width: 34px; height: 34px; border: 1px solid rgba(0, 229, 255, 0.3); }
.playlist li .pl-title { color: var(--text); letter-spacing: 0.05em; }
.playlist li .pl-time { font-size: 0.75rem; color: var(--muted); }
.playlist li:hover { background: rgba(0, 229, 255, 0.07); }
.playlist li.active {
  border-left-color: var(--magenta);
  background: rgba(255, 42, 109, 0.08);
}
.playlist li.active .pl-title {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}
.playlist li.active .pl-time { color: var(--magenta); }

/* ---------- footer ---------- */

.footer {
  margin-top: 34px;
  padding: 18px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
}
.sysline { font-size: 0.7rem; letter-spacing: 0.22em; color: var(--muted); }
.imprint a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.imprint a:hover { text-shadow: 0 0 10px rgba(0, 229, 255, 0.9); }

/* ---------- imprint page ---------- */

.imprint-page { max-width: 780px; }
.imprint-page .card { padding: 34px 30px; }
.imprint-page h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.4);
  margin-bottom: 24px;
}
.imprint-page h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--magenta);
  margin: 26px 0 10px;
}
.imprint-page p { line-height: 1.7; color: var(--text); font-size: 0.92rem; }
.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.15em;
}
.back-link:hover { text-shadow: 0 0 10px rgba(0, 229, 255, 0.9); }

/* ---------- responsive ---------- */

@media (max-width: 840px) {
  .layout { grid-template-columns: 1fr; }
  .panel-row { justify-content: center; gap: 12px; }
  .presets .bt { width: 36px; height: 32px; font-size: 0.85rem; }
  .plbt { width: 46px; height: 32px; font-size: 0.7rem; letter-spacing: 0.08em; }
  .presetbox, .presets { gap: 6px; }
  .knob-label { font-size: 0.55rem; letter-spacing: 0.18em; }
}
/* Zu schmal fuer eine Reihe: Knöpfe bleiben links/rechts, Tasten stapeln sich
   in zwei Reihen — oben Wiedergabe, unten Sender 1/2 + LIST.
   Gilt fuer schmale Viewports (<=660) UND fuer den Desktopbereich 841-1119,
   in dem die Zweispaltigkeit die Player-Spalte schmaler als die Reihe macht. */
@media (max-width: 660px), (min-width: 841px) and (max-width: 1119px) {
  .panel-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
  }
  .panel-row > .knobwrap:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .panel-row > .transport { grid-column: 2; grid-row: 1; }
  .panel-row > .presetbox { grid-column: 2; grid-row: 2; }
  .panel-row > .knobwrap:last-child { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 520px) {
  .socials { flex-wrap: wrap; }
  .stereo-top { flex-wrap: wrap; gap: 6px 12px; }
  .freq-band { display: none; }
  .transport .bt { width: 38px; height: 32px; }
  .knob { width: 58px; height: 58px; }
  #matrix { height: 58px; }
  /* Layout bleibt erhalten (eine Zeile), alles wird nur kleiner:
     Frequenzfenster und UKW-Skala nebeneinander. */
  .fm-row { flex-direction: row; gap: 8px; }
  .freqw { flex: 0 0 auto; width: 96px; padding: 4px 5px; height: 56px; gap: 2px; }
  #freqCv { width: 84px; height: 34px; }
  .freq-foot { flex-direction: row; gap: 6px; align-items: baseline; }
  .freq-unit { font-size: 0.5rem; letter-spacing: 0.2em; }
  .fm { height: 56px; }
  .fm-nums span { top: 7px; font-size: 0.52rem; letter-spacing: 0.02em; }
  .fm::after { bottom: 10px; }
  .fm-ticks i { bottom: 11px; height: 3px; }
  .fm-ticks i.half { height: 5px; }
  .fm-ticks i.big { height: 8px; }
  .fm-st .pip { top: 20px; font-size: 0.48rem; padding: 1px 3px; }
  .fm-st .pip::after { display: none; }
  .fm-needle { top: 20px; bottom: 10px; }
  /* Dot-Matrix und EQ bleiben nebeneinander, nur schmaler/hoeher proportional. */
  .disp-row { flex-direction: row; gap: 8px; }
  .eqmod { flex: 0 0 74px; height: 56px; padding: 5px 5px 3px; }
  .eqmod .eq-label { display: none; }
  .stereo { padding: 10px 10px 14px; }
  .stereo-top { gap: 10px; letter-spacing: 0.12em; }
  .panel-row { gap: 10px; }
}
@media (max-width: 400px) {
  /* Skala wird hier echt knapp: Fenster schrumpft, Zahlen kleiner. */
  .freqw { width: 84px; }
  #freqCv { width: 74px; height: 30px; }
  .fm-nums span { font-size: 0.46rem; letter-spacing: 0; }
  .panel-row { gap: 6px; }
  .transport { gap: 4px; }
  .transport .bt { width: 30px; height: 27px; font-size: 0.85rem; }
  .knob { width: 44px; height: 44px; }
  .presets .bt { width: 30px; height: 27px; font-size: 0.75rem; }
  .plbt { width: 36px; height: 27px; font-size: 0.58rem; letter-spacing: 0.04em; }
  .knob-label { font-size: 0.5rem; letter-spacing: 0.12em; }
}

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .grid-floor, .glitch, .glitch::before, .glitch::after,
  .led.red, .cursor { animation: none !important; }
  .pscan { display: none; }
  .portrait-frame::before, .portrait-frame::after { animation: none !important; }
  .card { animation: none; }
}

button:focus-visible, a:focus-visible, .playlist li:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
