/* ============================================================
 * Diamant-Funkeln — kleine animierte Lichtpunkte für Akte + Ticket
 * ============================================================
 * Jeder Funkel ist ein 6px-kleines weißes Lichtpunkt mit Halo,
 * der per JS an einer zufälligen Position eingehängt wird und
 * eine ~1.6s-Animation durchläuft (fade in + scale up + fade out).
 * Nach Ende wird er entfernt und woanders neu erzeugt — so wirken
 * die Funkel verstreut und nie an derselben Stelle.
 *
 * Pointer-events: none, damit Klicks nicht abgefangen werden. */
.diamant-sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
  border-radius: inherit;
}
.diamant-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.3);
  animation: diamant-twinkle 1600ms ease-out forwards;
}
.diamant-sparkle::before,
.diamant-sparkle::after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.85);
}
/* Vertikaler Strahl */
.diamant-sparkle::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}
/* Horizontaler Strahl */
.diamant-sparkle::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
@keyframes diamant-twinkle {
  0%   { opacity: 0;   transform: scale(0.2) rotate(0deg); }
  35%  { opacity: 0.95; transform: scale(1.0) rotate(45deg); }
  60%  { opacity: 0.85; transform: scale(1.1) rotate(72deg); }
  100% { opacity: 0;   transform: scale(0.5) rotate(90deg); }
}

/* ============================================================
 * Radio-Widget — fix unten links, scrollt mit der Seite mit.
 * Stilrichtung: Retro Holzradio. Identisches Pattern zum Radio
 * auf inside.html (CSS dort inline, hier shared via styles.css).
 * ============================================================ */
.radio-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 280px;
  background: linear-gradient(180deg, #6b4424 0%, #4a2d18 100%);
  background-image:
    repeating-linear-gradient(
      92deg,
      rgba(0,0,0,0.05) 0px,
      rgba(0,0,0,0.05) 1px,
      transparent 1px,
      transparent 4px,
      rgba(255,210,150,0.04) 4px,
      rgba(255,210,150,0.04) 6px
    ),
    linear-gradient(180deg, #6b4424 0%, #4a2d18 100%);
  border: 2px solid #2a180a;
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow:
    0 16px 36px rgba(20, 12, 6, 0.45),
    inset 0 2px 4px rgba(255, 200, 150, 0.18),
    inset 0 -3px 8px rgba(0, 0, 0, 0.4);
}
.radio-widget::before {
  content: "";
  position: absolute;
  top: 5px; left: 5px; right: 5px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,220,180,0.35), transparent);
  pointer-events: none;
}
.radio-display {
  background: #2a1810;
  border: 1px solid #1a0a04;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.radio-display::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255,220,150,0.07), transparent);
  pointer-events: none;
}
.radio-freq {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f4b860;
  text-shadow: 0 0 6px rgba(244, 184, 96, 0.6);
  letter-spacing: 0.04em;
  margin: 0 0 0.15rem;
}
.radio-station {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 184, 96, 0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.radio-btn-side {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b8895a 0%, #6b4424 70%, #3a2010 100%);
  border: 1.5px solid #2a180a;
  box-shadow:
    0 3px 6px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,200,150,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s;
}
.radio-btn-side:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.6), inset 0 -1px 2px rgba(0,0,0,0.4);
}
.radio-btn-side svg {
  width: 14px; height: 14px;
  fill: #f4d4a0;
  opacity: 0.85;
}
.radio-btn-power {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d4a574 0%, #8a5a30 60%, #4a2810 100%);
  border: 2px solid #2a180a;
  box-shadow:
    0 5px 12px rgba(0,0,0,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.45),
    inset 0 2px 4px rgba(255,210,160,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s;
}
.radio-btn-power:active { transform: translateY(1px); }
.radio-power-led {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5a2e1e, #2a0e08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  transition: background 0.18s, box-shadow 0.18s;
}
.radio-btn-power[aria-pressed="true"] .radio-power-led {
  background: radial-gradient(circle at 35% 35%, #ff6a3a, #c43018);
  box-shadow:
    0 0 10px rgba(255, 100, 50, 0.75),
    inset 0 1px 2px rgba(255,200,150,0.5);
}
.radio-speaker {
  margin-top: 14px;
  height: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.6) 0px,
    rgba(0,0,0,0.6) 2px,
    rgba(255,200,150,0.05) 2px,
    rgba(255,200,150,0.05) 4px
  );
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}
@media (max-width: 1024px) {
  /* Radio auf Mobile UND Tablet komplett ausblenden — nimmt zu viel
     Platz weg (auf Mobile v.a. mit virtueller Tastatur) und die
     Hintergrundmusik soll nur auf dem Desktop laufen. Der passende
     JS-Guard sitzt in sounds.js wireRadio (gleicher 1024px-Wert):
     ohne ihn würde der Auto-Start die Musik trotz unsichtbarem
     Widget abspielen — unstoppbar, weil der Power-Knopf weg ist. */
  .radio-widget { display: none; }
}

