/* ==========================================================================
   Live-Übertragung · Stylesheet
   Sämtliche Farben, Radien und Schriften kommen als CSS-Variablen aus der
   config.php und werden im <head> gesetzt. Hier steht kein fester Farbwert,
   der nicht aus einer Variable abgeleitet ist.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

/* Ambientes Licht hinter der Bühne: hebt den Rahmen vom Hintergrund ab,
   ohne dass ein Bild geladen werden muss. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh 0 auto 0;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%,
              color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 24px; top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, black);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.masthead__logo { display: block; max-height: 90px; width: auto; }
.masthead__logo--right { max-height: 52px; }

/* --------------------------------------------------------------------------
   Titelblock
   -------------------------------------------------------------------------- */
.intro { padding: 46px 0 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--standby);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--standby) 22%, transparent);
}
[data-state="live"] .eyebrow__dot {
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 26%, transparent);
}

.intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro__subtitle {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Bühne: hält vor der Sendung die Uhr, danach den Player.
   Die Ecken-Marken sind Bildfeldmarkierungen, wie im Kamerasucher.
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border-radius: 2px;
  background:
    linear-gradient(var(--line), var(--line)) left    top    / 22px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) left    top    / 1px 22px no-repeat,
    linear-gradient(var(--line), var(--line)) right   top    / 22px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right   top    / 1px 22px no-repeat,
    linear-gradient(var(--line), var(--line)) left    bottom / 22px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) left    bottom / 1px 22px no-repeat,
    linear-gradient(var(--line), var(--line)) right   bottom / 22px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right   bottom / 1px 22px no-repeat;
  opacity: 0.9;
  transition: opacity 0.4s ease;
  z-index: 3;
}
.stage[data-mode="player"]::after { opacity: 0; }

.stage__panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stage__panel[hidden] { display: none; }
.stage__panel.is-out {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

/* Signallampe */
.tally {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 10px;
  margin-bottom: 26px;
  border: 1px solid color-mix(in srgb, var(--standby) 40%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--standby) 10%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--standby) 72%, var(--text));
}
.tally__lamp {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--standby);
  animation: breathe 2.6s ease-in-out infinite;
}
.tally--live {
  border-color: color-mix(in srgb, var(--live) 55%, var(--line));
  background: color-mix(in srgb, var(--live) 14%, transparent);
  color: color-mix(in srgb, var(--live) 60%, var(--text));
}
.tally--live .tally__lamp { background: var(--live); animation-duration: 1.4s; }

@keyframes breathe {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 currentColor; }
  50%      { opacity: 0.45; box-shadow: 0 0 10px 1px currentColor; }
}

/* Zifferwerk */
.clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 16px);
}
.clock__unit { min-width: clamp(56px, 12vw, 108px); }
.clock__value {
  display: block;
  padding: clamp(6px, 1.4vw, 14px) clamp(4px, 1vw, 10px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.75rem, 6.4vw, 3.6rem);
  line-height: 1;
  color: var(--clock-color);
}
.clock__label {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.clock__sep {
  padding-top: clamp(8px, 1.6vw, 18px);
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  color: var(--line);
}

.stage__note {
  margin: 26px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.stage__note strong { color: var(--text); font-weight: 600; }

/* Fortschrittslinie am unteren Bühnenrand */
.stage__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--line);
  z-index: 4;
}
.stage__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 1s linear;
}
.stage[data-mode="player"] .stage__progress { display: none; }

/* Abschlussbildschirm */
.stage__headline {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Player
   -------------------------------------------------------------------------- */
.stage__player { position: absolute; inset: 0; z-index: 2; }
.stage__player[hidden] { display: none; }
.stage__player .video-js { width: 100%; height: 100%; background: black; }

.video-js .vjs-control-bar {
  background: linear-gradient(to top,
              color-mix(in srgb, var(--bg) 92%, black), transparent);
  height: 3.4em;
}
.video-js .vjs-play-progress,
.video-js .vjs-volume-level { background-color: var(--brand); }
.video-js .vjs-big-play-button {
  width: 84px; height: 84px;
  line-height: 82px;
  border: 2px solid color-mix(in srgb, var(--text) 70%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.video-js:hover .vjs-big-play-button { background: var(--brand); border-color: var(--brand); }
.video-js .vjs-live-display,
.video-js .vjs-seek-to-live-control { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Ton-einschalten-Hinweis über dem stumm gestarteten Player */
.unmute {
  position: absolute;
  left: 50%; bottom: 74px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, black 45%, transparent);
}
.unmute[hidden] { display: none; }
.unmute:hover { filter: brightness(1.1); }

/* --------------------------------------------------------------------------
   Textspalte und Sendedaten
   -------------------------------------------------------------------------- */
.content {
  display: block;
  padding: 44px 0 60px;
}

.content__body {
  width: 100%;
}

.content__body p {
  margin: 0 0 1.1em;
  max-width: none;
  width: 100%;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.facts {
  margin: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.facts__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts__row:first-of-type { border-top: 0; }
.facts__key { color: var(--muted); }
.facts__value { text-align: right; font-weight: 500; }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Schmale Bildschirme
   -------------------------------------------------------------------------- */
   
   
  
   
   
   
   
@media (max-width: 860px) {
  .content { grid-template-columns: 1fr; padding-top: 34px; }
  .intro { padding-top: 32px; }
  .masthead__inner { min-height: 62px; }
  .masthead__logo { max-height: 34px; }
  .masthead__logo--right { max-height: 40px; }
  .wrap { padding: 0 18px; }
  .clock__sep { display: none; }
  .clock { gap: 6px; }
  .unmute { bottom: 58px; font-size: 0.875rem; }
}

@media (max-width: 420px) {
  .clock__unit { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}



@media (max-width: 860px) {

  /* Allgemeines Seitenlayout */
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Kopfbereich */
  .masthead__inner {
    min-height: 72px;
    padding: 12px 18px;
  }

  .masthead__logo {
    max-height: 48px;
    max-width: 210px;
  }

  /* Titelbereich */
  .intro {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.15em;
  }

  .intro__title {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.02;
  }

  .intro__subtitle {
    font-size: 1rem;
  }


  /* ---------------------------------------------------------
     Countdown-Bühne
     --------------------------------------------------------- */

  /*
   * 16:9 funktioniert beim Video,
   * ist aber für den Countdown auf Mobilgeräten zu niedrig.
   */
  .stage[data-mode="clock"] {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .stage[data-mode="clock"] .stage__panel {
    position: relative;
    min-height: 420px;
    padding: 34px 18px 28px;
  }

  .stage[data-mode="clock"] .stage__panel > div {
    width: 100%;
  }


  /* Countdown */
  .clock {
    width: 100%;
    gap: 7px;
    align-items: flex-start;
  }

  .clock__unit {
    min-width: 0;
    flex: 1 1 0;
  }

  .clock__value {
    padding: 11px 3px;
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .clock__label {
    margin-top: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .clock__sep {
    display: none;
  }

  .tally {
    margin-bottom: 24px;
  }

  .stage__note {
    margin-top: 30px;
    font-size: 0.95rem;
    line-height: 1.55;
  }


  /* ---------------------------------------------------------
     Fließtext
     --------------------------------------------------------- */

  .content {
    display: block;
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .content__body {
    width: 100%;
    max-width: none;
  }

  .content__body p {
    width: 100%;
    max-width: none;
    margin: 0 0 1.25em;
    font-size: 1rem;
    line-height: 1.65;
  }


  /* Player bleibt echtes 16:9 */
  .stage[data-mode="player"] {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .unmute {
    bottom: 58px;
    font-size: 0.875rem;
  }
}




@media (max-width: 480px) {

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro {
    padding-top: 24px;
  }

  .intro__title {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .stage[data-mode="clock"],
  .stage[data-mode="clock"] .stage__panel {
    min-height: 410px;
  }

  .stage[data-mode="clock"] .stage__panel {
    padding: 30px 14px 24px;
  }

  .clock {
    gap: 5px;
  }

  .clock__value {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
    padding: 10px 2px;
  }

  .clock__label {
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  .stage__note {
    margin-top: 26px;
    font-size: 0.9rem;
  }

  .content {
    padding-top: 26px;
  }

  .content__body p {
    font-size: 1rem;
    line-height: 1.65;
  }
}

.stage[data-mode="clock"] {
  aspect-ratio: auto;
  min-height: 420px;
}

.stage[data-mode="player"] {
  aspect-ratio: 16 / 9;
}