/*
 * Design: dunkles Blaugrau, Orange als Akzent, schmale Überschriften.
 * Schriften werden lokal aus assets/fonts geladen (keine Google-Server, DSGVO).
 * Fehlen die Dateien, greifen die Ersatzschriften.
 */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #16202e;
  --muted: #5a6677;
  --line: #d9dfe7;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --accent-soft: #fde7da;
  --on-accent: #ffffff;
  --appbar: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcf3e3;
  --err: #b91c1c;
  --err-soft: #fde2e2;
  --blue: #1d4ed8;
  --purple: #7e22ce;
  --focus: #2563eb;
  --radius: 8px;
  --radius-sm: 6px;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e28;
    --surface-2: #1d2531;
    --text: #e6ebf2;
    --muted: #95a1b2;
    --line: #2a3442;
    --accent: #fb7a3c;
    --accent-hover: #ff9160;
    --accent-soft: #3a2116;
    --on-accent: #ffffff;
    --appbar: #171e28;
    --ok: #4ade80;
    --ok-soft: #173323;
    --err: #f87171;
    --err-soft: #3a1a1a;
    --blue: #7aa2ff;
    --purple: #c084fc;
    --focus: #7aa2ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--f-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; min-width: 0; }
a { color: var(--accent); }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0 0 .4em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
code { font-family: var(--f-mono); font-size: .92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 440px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- App-Leiste ---------- */
.topbar { background: var(--appbar); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-logo { display: block; height: 22px; width: auto; }
.logo-part { fill: var(--accent); }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .01em; line-height: 1; }
.topnav { display: flex; gap: 6px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.topnav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Kopfbereich ---------- */
.hero { padding: 40px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 10px; }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; margin-bottom: 6px; }
.summary { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.summary b { color: var(--text); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps strong { display: block; font-weight: 600; }
.steps span:not(.step-n) { color: var(--muted); font-size: 13.5px; }
.step-n { flex: none; font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 1px 6px; margin-top: 2px; }

/* ---------- Katalog ---------- */
.catalog { padding: 32px 0 64px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.catalog-head h2 { margin: 0; font-size: 28px; }
.count { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: middle; margin-left: 4px; }
.search { width: 300px; max-width: 100%; }
.note { color: var(--muted); font-size: 14px; max-width: 720px; margin: 6px 0 20px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

.shows { display: grid; gap: 14px; }
.show { display: grid; grid-template-columns: 1fr 270px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 72px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.show:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.show-main { padding: 16px 18px; min-width: 0; }
.show-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.show h3 { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.desc { font-size: 14px; color: var(--text); opacity: .9; }

/* Etiketten wie in der Vorlage: umrandet, Großbuchstaben */
.tag, .len {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.tag { text-transform: uppercase; letter-spacing: .04em; }
.len { font-family: var(--f-mono); }
.tag-accent { color: var(--accent); border-color: var(--accent); }
.tag-green { color: var(--ok); border-color: var(--ok); }
.tag-blue { color: var(--blue); border-color: var(--blue); }

.player { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; }
.player-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
audio { width: 100%; height: 36px; display: block; }

.show-side { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-left: 1px solid var(--line); background: var(--surface-2); }
.price { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.pay-hint { font-size: 12px; color: var(--muted); margin: -2px 0 4px; text-align: center; }
.show-side form { margin: 0; }

.unlock summary { list-style: none; width: 100%; }
.unlock summary::-webkit-details-marker { display: none; }
.unlock[open] summary { border-color: var(--accent); color: var(--accent); }
.unlock-form { margin-top: 10px; display: grid; gap: 8px; }
.unlock-form label { font-size: 13px; font-weight: 600; }
.code-input { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.form-error { color: var(--err); background: var(--err-soft); padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; margin: 0; }

/* ---------- Formulare & Buttons ---------- */
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=file] { padding: 6px; background: var(--surface-2); }
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
label small { font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px; line-height: 1.25;
  background: var(--surface); color: var(--text); transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { color: var(--err); border-color: var(--err); background: transparent; }
.btn-danger:hover { background: var(--err-soft); }
.btn-sm { padding: 5px 10px; font-size: 13px; font-weight: 500; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link.danger { color: var(--err); }

/* ---------- Unterseiten ---------- */
.page { padding: 40px 16px 64px; max-width: 760px; }
.thanks { max-width: 640px; }
.thanks-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; }
.thanks-code .code-big { font-size: clamp(18px, 5.5vw, 26px); white-space: nowrap; }
.thanks-dl { margin-bottom: 18px; }
.thanks-dl .btn { flex-direction: column; gap: 2px; padding: 10px 18px; }
.thanks-dl .small { font-weight: 400; opacity: .85; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Verwaltung ---------- */
.admin-login main { display: flex; align-items: center; padding: 56px 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card h2 { font-size: 22px; }
.login-card { width: 100%; }
.stack { display: grid; gap: 14px; }
.admin-main { padding-top: 28px; padding-bottom: 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-head h1 { margin: 0; }
.tabs { display: flex; gap: 4px; margin: 16px 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 8px 14px 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.flash-err { background: var(--err-soft); color: var(--err); }
.section-title { margin: 28px 0 12px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-filter select { width: auto; max-width: 100%; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.file-field span { display: flex; justify-content: space-between; gap: 8px; }
.file-field small { color: var(--muted); }
.upload-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.progress { flex: 1; min-width: 160px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress-text.err { color: var(--err); font-weight: 600; }

.admin-show-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.admin-show-head h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.admin-show audio { margin: 12px 0 4px; }
.edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.edit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.edit[open] summary { margin-bottom: 14px; }
.preview-replace { margin: 18px 0; display: grid; gap: 6px; max-width: 420px; }
.danger-zone { border-top: 1px dashed var(--line); padding-top: 14px; }
.warn { color: var(--err); }

.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); vertical-align: middle; }
.pill-on, .pill-aktiv { color: var(--ok); border-color: var(--ok); }
.pill-gesperrt, .pill-abgelaufen { color: var(--err); border-color: var(--err); }
.pill-test { color: var(--purple); border-color: var(--purple); }

.new-codes { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.new-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.code-big { font-family: var(--f-mono); font-size: 20px; font-weight: 500; letter-spacing: .06em; background: var(--accent-soft); color: var(--accent); padding: 6px 12px; border-radius: var(--radius-sm); }
.new-code .btn-row { margin-left: auto; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 600; }
td code { color: var(--text); }
tr:last-child td { border-bottom: 0; }
td.actions { display: flex; gap: 12px; }
td.actions form { margin: 0; }

/* ---------- Sendereihen (Kacheln) ---------- */
.series { padding: 28px 0 0; }
.series-head { font-size: 28px; margin-bottom: 14px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.series-tile {
  position: relative; display: block; height: 320px; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: #fff; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.series-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.series-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.series-tile.is-active { box-shadow: 0 0 0 3px var(--accent); }
.scene, .scene .fx { position: absolute; inset: 0; z-index: -2; }
.host {
  position: absolute; right: 0; bottom: 0; z-index: -1;
  height: 94%; width: 58%; object-position: 50% 100%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
  transition: transform .35s ease;
}
.host-tall {
  object-fit: contain; object-position: 85% 100%;
  /* weicher linker Rand, falls das Foto dort angeschnitten ist */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.host-wide { object-fit: cover; }
.series-tile:hover .host { transform: scale(1.03); transform-origin: 50% 100%; }

/* Text liegt links über einem weichen Verlauf, damit er immer lesbar bleibt */
.series-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; padding: 22px 45% 22px 22px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 70%, transparent 100%);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.series-kicker { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
.series-title { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: .95; letter-spacing: .005em; margin-top: 6px; }
.series-host { font-family: var(--f-display); font-weight: 600; font-size: 21px; opacity: .95; }
.series-tagline { font-size: 13.5px; line-height: 1.45; opacity: .9; margin-top: 4px; }
.series-cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 12px; padding: 7px 14px; border-radius: 6px; background: #fff; color: #16202e; font-weight: 600; font-size: 13.5px; text-shadow: none; transition: background .15s; }
.series-tile:hover .series-cta { background: var(--accent); color: #fff; }

/* Szene: Am Morgen – Sonnenaufgang über Hügeln */
.theme-morning .scene {
  background:
    radial-gradient(circle at 74% 78%, #fff6c9 0 9%, #ffd36e 13%, rgba(255, 170, 80, .55) 24%, transparent 46%),
    linear-gradient(180deg, #24325f 0%, #5b4f8f 26%, #c8668a 48%, #f39a5d 70%, #ffd48a 100%);
}
.theme-morning .fx-1 { /* Sonnenstrahlen */
  background: repeating-conic-gradient(from 0deg at 74% 78%, rgba(255, 240, 190, .16) 0 6deg, transparent 6deg 16deg);
  mask-image: radial-gradient(circle at 74% 78%, #000 10%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 74% 78%, #000 10%, transparent 62%);
  animation: spin 90s linear infinite; transform-origin: 74% 78%;
}
.theme-morning .fx-2 { /* Wolken */
  background:
    radial-gradient(ellipse 18% 6% at 22% 22%, rgba(255, 255, 255, .5), transparent 70%),
    radial-gradient(ellipse 12% 4% at 30% 19%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(ellipse 16% 5% at 62% 30%, rgba(255, 230, 220, .35), transparent 70%);
  filter: blur(2px); animation: drift 40s ease-in-out infinite alternate;
}
.theme-morning .fx-3 { /* Hügel */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q60 30 120 55 T240 50 T400 45 V100 H0Z' fill='%23704a6e' opacity='.75'/%3E%3Cpath d='M0 80 Q80 55 170 75 T330 70 T400 72 V100 H0Z' fill='%233b2a4a'/%3E%3C/svg%3E") bottom / 100% 34% no-repeat;
}

/* Szene: Mick in the Mix – Club mit Scheinwerfern, Lasern und Konfetti */
.theme-party .scene {
  background:
    /* unscharfe Lichtpunkte (Bokeh), unregelmäßig verteilt */
    radial-gradient(circle at 12% 30%, rgba(255, 120, 220, .35) 0 14px, transparent 22px),
    radial-gradient(circle at 34% 14%, rgba(120, 200, 255, .30) 0 10px, transparent 17px),
    radial-gradient(circle at 46% 58%, rgba(255, 210, 120, .22) 0 18px, transparent 28px),
    radial-gradient(circle at 63% 20%, rgba(200, 140, 255, .30) 0 12px, transparent 20px),
    radial-gradient(circle at 92% 38%, rgba(0, 230, 255, .28) 0 16px, transparent 26px),
    radial-gradient(circle at 24% 72%, rgba(255, 80, 160, .25) 0 9px, transparent 15px),
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, .22) 0 8px, transparent 13px),
    radial-gradient(ellipse 70% 40% at 70% 105%, rgba(255, 0, 170, .55), transparent 70%),
    radial-gradient(ellipse 60% 35% at 25% 110%, rgba(0, 220, 255, .45), transparent 70%),
    radial-gradient(circle at 50% -10%, #3b1170 0%, #1a0838 45%, #0b0418 100%);
}
.theme-party .fx-1 { /* Scheinwerferkegel */
  background:
    conic-gradient(from 168deg at 18% -5%, transparent 0deg, rgba(0, 229, 255, .55) 6deg, transparent 13deg),
    conic-gradient(from 182deg at 82% -5%, transparent 0deg, rgba(255, 46, 196, .6) 6deg, transparent 13deg),
    conic-gradient(from 174deg at 50% -8%, transparent 0deg, rgba(180, 120, 255, .4) 7deg, transparent 15deg);
  filter: blur(1px); mix-blend-mode: screen;
  animation: sway 6s ease-in-out infinite alternate; transform-origin: 50% 0;
}
.theme-party .fx-2 { /* Laser */
  background:
    linear-gradient(115deg, transparent 49.6%, rgba(0, 255, 160, .7) 50%, transparent 50.4%),
    linear-gradient(65deg, transparent 49.7%, rgba(255, 60, 120, .65) 50%, transparent 50.3%),
    linear-gradient(140deg, transparent 49.8%, rgba(120, 180, 255, .55) 50%, transparent 50.2%);
  mix-blend-mode: screen; opacity: .8; animation: flicker 3.2s steps(2) infinite;
}
.theme-party .fx-3 { /* Konfetti & Lichtpunkte */
  background-image:
    radial-gradient(circle, rgba(255, 220, 90, .9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(0, 230, 255, .8) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 70, 200, .85) 0 1.8px, transparent 2.4px);
  background-size: 61px 47px, 83px 71px, 97px 59px;
  background-position: 0 0, 30px 20px, 50px 10px;
  opacity: .8;
  animation: confetti 14s linear infinite;
}

/* Szene: Abend – Nachthimmel */
.theme-evening .scene { background: radial-gradient(circle at 78% 26%, #fdf6d8 0 5%, rgba(253, 246, 216, .25) 9%, transparent 20%), linear-gradient(180deg, #0b1230 0%, #1d2a5c 60%, #3a3f7a 100%); }
.theme-evening .fx-1 { background-image: radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.5px); background-size: 37px 41px; opacity: .7; }

/* Szene: Neutral */
.theme-neutral .scene { background: radial-gradient(circle at 75% 70%, rgba(251, 122, 60, .5), transparent 55%), linear-gradient(160deg, #1d2531, #0f141b); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(4%); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes flicker { 50% { opacity: .35; } }
@keyframes confetti { to { background-position: 0 47px, 30px 91px, 50px 69px; } }
@media (prefers-reduced-motion: reduce) {
  .scene .fx, .live-dot { animation: none !important; }
  .series-tile, .host { transition: none; }
}

/* Reihe als Etikett auf der Folge */
a.tag { text-decoration: none; }
.tag-series.theme-morning { color: #e8762f; border-color: #e8762f; }
.tag-series.theme-party { color: #d946ef; border-color: #d946ef; }
.catalog-sub { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }

.series-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-n { font-family: var(--f-mono); font-size: 11.5px; opacity: .7; }

/* Verwaltung der Reihen */
.series-admin-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.series-mini { height: 190px; pointer-events: none; }
.series-mini .series-text { padding: 14px 40% 14px 14px; }
.series-mini .series-title { font-size: 28px; }
.series-mini .series-host { font-size: 16px; }
.series-admin-actions { margin-top: 12px; gap: 16px; }

/* ===================== Rahmenprogramm: Startseite ===================== */
.section { padding: 40px 0 8px; }
.hero-cta { margin-top: 22px; }

/* Karte im Einstieg: aus NRW für ganz Deutschland */
.hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; }
.hero-map { margin: 0; text-align: center; }
.de-map { width: 100%; max-width: 250px; height: auto; overflow: visible; }
.de-land { fill: var(--surface-2); stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.5; stroke-linejoin: round; }
.de-nrw { fill: var(--accent); fill-opacity: .9; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.de-link { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 3 5; opacity: .75; animation: de-flow 2.2s linear infinite; }
.de-city { fill: var(--surface); stroke: var(--accent); stroke-width: 1.8; animation: de-blink 2.8s ease-in-out infinite; }
.de-hub { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.de-wave { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: de-wave 3.6s ease-out infinite; opacity: 0; }
.de-label { font-family: var(--f-display); font-weight: 700; font-size: 13px; fill: #fff; text-anchor: middle; letter-spacing: .06em; }
.hero-map figcaption { margin-top: 10px; font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--muted); }
.hero-map figcaption strong { color: var(--accent); }
@keyframes de-flow { to { stroke-dashoffset: -16; } }
@keyframes de-blink { 0%, 100% { fill: var(--surface); } 50% { fill: var(--accent); } }
@keyframes de-wave { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .de-link, .de-city, .de-wave { animation: none; }
  .de-wave { opacity: 0; }
}
.hero-cta .btn { padding: 10px 18px; font-size: 15px; }
.topnav .nav-login { border: 1px solid var(--line); color: var(--text); }
.topnav .nav-login:hover { border-color: var(--accent); background: transparent; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.benefit h3 { font-family: var(--f-display); font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.benefit-n + h3 { margin-top: 10px; }
.benefit p { color: var(--muted); font-size: 14px; margin: 0; }
.benefit-n { font-family: var(--f-mono); font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 1px 6px; }

#sendungen .series-grid { grid-template-columns: repeat(2, 1fr); }
/* Schwerpunkt über die volle Breite – bei genau zwei Sendungen stehen beide gleich groß nebeneinander */
#sendungen .series-tile.is-featured:not(:nth-last-child(2)) { grid-column: 1 / -1; height: 380px; }
.series-time { align-self: flex-start; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; padding: 2px 8px; margin-top: 4px; border-radius: 4px; background: rgba(0, 0, 0, .4); white-space: nowrap; }

/* Kacheln ohne Moderatorenbild: Text darf die ganze Breite nutzen */
.series-tile.no-host .series-text { padding-right: 22px; background: linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 75%); }

/* Szene: Am Nachmittag – Sommerhimmel */
.theme-afternoon .scene {
  background:
    radial-gradient(circle at 80% 22%, #fffbe6 0 7%, rgba(255, 236, 160, .7) 11%, rgba(255, 220, 120, .2) 24%, transparent 40%),
    linear-gradient(180deg, #1f6fd1 0%, #3d95e8 45%, #8cc9f5 80%, #c9e8fb 100%);
}
.theme-afternoon .fx-1 {
  background:
    radial-gradient(ellipse 22% 9% at 20% 35%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(ellipse 14% 7% at 30% 31%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(ellipse 18% 7% at 55% 48%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(ellipse 10% 5% at 63% 45%, rgba(255, 255, 255, .75), transparent 70%);
  filter: blur(3px); animation: drift 30s ease-in-out infinite alternate;
}
.theme-afternoon .fx-2 { /* Stadt-Silhouette */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V38h18v-10h14v14h10V20h16v22h12V30h20v12h8V16h14v26h16V34h12v8h18V24h10v-8h8v26h14V30h18v12h12V22h20v20h10V34h16v8h18V26h14v16h12V36h14v24Z' fill='%23164a86' opacity='.85'/%3E%3C/svg%3E") bottom / 100% 26% no-repeat;
}

/* Szene: Am Wochenende – Strand und Sonne */
.theme-weekend .scene {
  background:
    radial-gradient(circle at 78% 30%, #fff8dc 0 8%, rgba(255, 214, 120, .6) 13%, transparent 32%),
    linear-gradient(180deg, #ff9a6b 0%, #ffc483 30%, #ffe2a8 48%, #2bb3c0 49%, #1b8ea6 66%, #f2d39a 67%, #e9c27f 100%);
}
.theme-weekend .fx-1 { /* Wellenglitzern */
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 18px, rgba(255, 255, 255, .45) 18px 30px, rgba(255, 255, 255, 0) 30px 52px);
  mask-image: linear-gradient(180deg, transparent 50%, #000 52%, #000 64%, transparent 66%);
  -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 52%, #000 64%, transparent 66%);
  opacity: .5; animation: drift 9s ease-in-out infinite alternate;
}
.theme-weekend .fx-2 { /* Palme */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M48 140C52 100 50 70 58 40' stroke='%235a3a22' stroke-width='5' fill='none'/%3E%3Cpath d='M58 40C40 28 22 32 8 46C26 36 42 38 58 40ZM58 40C66 22 84 16 98 22C82 24 70 30 58 40ZM58 40C46 18 30 10 14 12C30 18 44 28 58 40ZM58 40C74 34 90 40 100 54C86 44 72 42 58 40Z' fill='%23205c3b'/%3E%3C/svg%3E") 94% 100% / auto 74% no-repeat;
  opacity: .9;
}
.series-tile.theme-weekend:not(.no-host) .fx-2 { display: none; } /* Palme nur ohne Moderatorenbild */
.tag-series.theme-afternoon { color: #2e86de; border-color: #2e86de; }
.tag-series.theme-weekend { color: #0e9aa7; border-color: #0e9aa7; }

/* Programmschema als Wochenraster */
.schedule {
  display: grid; grid-template-columns: 52px repeat(7, 1fr); grid-template-rows: 34px repeat(var(--rows), 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px 10px; position: relative;
}
.sch-day { grid-row: 1; text-align: center; font-weight: 600; font-size: 13px; color: var(--muted); align-self: center; }
.sch-hour { grid-column: 1; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); transform: translateY(-7px); }
.sch-line { grid-column: 2 / -1; border-top: 1px dashed var(--line); }
.sch-block {
  margin: 2px 3px; border-radius: 6px; padding: 6px 8px; overflow: hidden; z-index: 1;
  display: flex; flex-direction: column; gap: 2px; color: #fff; font-size: 12px; line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.sch-block strong { font-family: var(--f-display); font-size: 15px; font-weight: 700; }
.sch-block span { font-family: var(--f-mono); opacity: .85; font-size: 11px; }
.block-morning { background: linear-gradient(160deg, #f08a5d, #c8668a); }
.block-afternoon { background: linear-gradient(160deg, #3d95e8, #1f6fd1); }
.block-party { background: linear-gradient(160deg, #b51fd6, #3b1170); }
.block-weekend { background: linear-gradient(160deg, #1fb4b4, #127a8f); }
.block-evening { background: linear-gradient(160deg, #3a3f7a, #0b1230); }
.block-neutral { background: linear-gradient(160deg, #5a6677, #2a3442); }
.schedule-list { display: none; list-style: none; margin: 0; padding: 0; gap: 8px; }
.schedule-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); color: #fff; }
.schedule-list strong { font-family: var(--f-display); font-size: 18px; }
.schedule-list span { font-family: var(--f-mono); font-size: 12.5px; align-self: center; }

/* Sendeuhr */
.clock-wrap { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 32px; align-items: center; }
.clock { width: 100%; height: auto; }
.clock-face { fill: var(--surface); stroke: var(--line); }
.seg { stroke: var(--bg); stroke-width: 1; transition: opacity .15s; }
.seg-element { fill: var(--accent); }
.seg-window { fill: var(--ok); }
.seg-news { fill: var(--blue); }
.seg-music { fill: var(--muted); opacity: .28; }
.seg { cursor: default; transition: opacity .15s, stroke-width .15s; }
.seg.hl { stroke: var(--text); stroke-width: 2.5; opacity: 1; }
.seg-music.hl { opacity: .6; stroke: var(--muted); }
.seg-hit { fill: transparent; stroke: none; pointer-events: all; }

/* Zeile in der Liste in der Farbe des Elements hervorheben */
.clock-legend li { transition: background .15s, border-color .15s, transform .15s; }
.clock-legend li.hl { transform: translateX(4px); }
.clock-legend li.leg-element.hl { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-color: var(--accent); }
.clock-legend li.leg-window.hl  { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); border-color: var(--ok); }
.clock-legend li.leg-news.hl    { background: color-mix(in srgb, var(--blue) 22%, var(--surface)); border-color: var(--blue); }
.clock-legend li.leg-music.hl   { background: color-mix(in srgb, var(--muted) 28%, var(--surface)); border-color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .clock-legend li.hl { transform: none; } }
.clock-num { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.clock-center { font-family: var(--f-display); font-size: 34px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.clock-center-sub { font-size: 11px; fill: var(--muted); text-anchor: middle; text-transform: uppercase; letter-spacing: .08em; }
.clock-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.clock-legend li { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.clock-legend li.leg-window { border-left-color: var(--ok); }
.clock-legend li.leg-news { border-left-color: var(--blue); }
.clock-legend li.leg-news em { color: var(--blue); }
.clock-legend li.leg-music { border-left-color: color-mix(in srgb, var(--muted) 45%, transparent); background: var(--surface-2); }
.clock-legend li.leg-music code { color: var(--muted); }
.clock-legend code { font-size: 15px; font-weight: 500; color: var(--text); }
.clock-legend em { font-style: normal; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.clock-legend li.leg-element em { color: var(--accent); }
.clock-legend li.leg-window em { color: var(--ok); }

.steps-4 { grid-template-columns: repeat(4, 1fr); border-top: 0; padding-top: 0; }

/* Pakete */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.package { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.package.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.package h3 { font-family: var(--f-display); font-size: 24px; font-weight: 700; margin: 0; }
.package-price { font-family: var(--f-display); font-size: 30px; font-weight: 700; }
.package-price span { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.package p { color: var(--muted); font-size: 14px; flex: 1; }

/* Kontakt */
.contact { padding-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.lead-sm { color: var(--muted); font-size: 16px; }
.contact-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.contact-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
fieldset.checks { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
fieldset.checks legend { font-size: 13.5px; font-weight: 600; padding: 0 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================== Beitragsbörse ===================== */
.boerse-public { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.latest-list li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.package-note { color: var(--muted); font-size: 13px; flex: 0 !important; margin: 0; }
.package-incl { color: var(--ok); font-weight: 600; font-size: 13.5px; flex: 0 !important; margin: 0; }
.boerse-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.boerse-head h2 { margin-bottom: 4px; }
.quota { display: flex; flex-direction: column; align-items: flex-end; }
.quota .stat-lbl { font-size: 12.5px; color: var(--muted); }
.quota .stat-val { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--ok); }
.quota .stat-val small { font-size: 14px; color: var(--muted); font-weight: 500; }
.quota .small-val { font-size: 18px; color: var(--text); }
.boerse-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.boerse-filter input[type=search] { flex: 1; min-width: 200px; }
.boerse-filter select { width: auto; }
.anmod-box { margin: 0 0 12px; font-size: 13.5px; }
.anmod-box summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.anmod-box p { margin: 6px 0 0; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 4px; }
.anmod { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 4px; }
.review { border-left: 4px solid var(--accent); }
.review audio { margin: 6px 0; }
.wish { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.wish form { flex: none; display: flex; gap: 8px; align-items: center; }
.boerse-extras { display: grid; gap: 12px; margin-bottom: 16px; }
.boerse-extras > details { margin: 0; }
.boerse-extras summary { cursor: pointer; }
.row-missing td { color: var(--muted); }
.rights { background: var(--accent-soft); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.pill-pruefung { color: var(--accent); border-color: var(--accent); }
.pill-freigegeben { color: var(--ok); border-color: var(--ok); }
.pill-abgelehnt { color: var(--err); border-color: var(--err); }
.rep-stats { grid-template-columns: repeat(4, 1fr); }
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.statement-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.statement-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.statement-sum strong { font-family: var(--f-display); font-size: 34px; }
tfoot th { background: var(--surface-2); color: var(--text); font-size: 13px; text-transform: none; letter-spacing: 0; }
@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .statement { border: 0; padding: 0; }
}

/* ===================== Verwaltung: Produktion ===================== */
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.prod-status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.stat-lbl { font-size: 13px; color: var(--muted); }
.stat-val { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.stat-ok { border-left: 4px solid var(--ok); }
.stat-ok .stat-val { color: var(--ok); }
.stat-warn { border-left: 4px solid var(--err); }
.stat-warn .stat-val { color: var(--err); }
.prod-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.prod-date input { width: auto; padding: 5px 10px; }
.prod-title { margin: 0 0 0 8px; font-size: 24px; }
.prod-head h2 { margin-bottom: 10px; }
.prod-grid th, .prod-grid td { text-align: center; padding: 6px 8px; }
.prod-grid tbody th { text-align: left; font-family: var(--f-mono); font-size: 13px; color: var(--text); background: transparent; text-transform: none; letter-spacing: 0; }
.th-sub { font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.col-window, .cell-window { background: var(--ok-soft); color: var(--ok); font-size: 12px; }
.cell { min-width: 92px; font-size: 12.5px; position: relative; }
.cell-ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.cell-ok .cell-play { color: var(--ok); font-weight: 600; text-decoration: none; font-family: var(--f-mono); }
.cell-actions { display: inline-flex; gap: 8px; margin-left: 6px; vertical-align: middle; }
.cell-actions form { margin: 0; display: inline; }
.cell-actions label { display: inline; cursor: pointer; font-weight: 400; }
.cell-miss { background: color-mix(in srgb, var(--err) 7%, transparent); }
.cell-upload { display: inline; cursor: pointer; color: var(--err); font-weight: 600; font-size: 12px; }
.cell-upload:hover { text-decoration: underline; }
.cell.busy { opacity: .6; }
.cell-progress { display: block; font-size: 11px; color: var(--muted); }
.cell-progress.err { color: var(--err); white-space: normal; }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); cursor: pointer; text-align: center; padding: 12px; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); color: var(--accent); }
.dropzone input { display: none; }
.bulk-log { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
.bulk-log .ok { color: var(--ok); }
.bulk-log .err { color: var(--err); }
.bulk-log .warn { color: #c98a00; }
.cell-fb { background: color-mix(in srgb, #c98a00 12%, transparent); }
.cell-fb .cell-upload { color: #c98a00; }
.cell-var { display: block; font-size: 10.5px; font-weight: 600; color: var(--blue); margin-top: 2px; }
.fallback-box > summary { cursor: pointer; }
.fallback-box[open] > summary { margin-bottom: 8px; }

/* Sender / Abruf */
.abruf { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.abruf-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0; font-size: 13px; }
.abruf-list dt { color: var(--muted); }
.abruf-list dd { margin: 0; min-width: 0; }
code.copyable { cursor: copy; word-break: break-all; background: var(--surface); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
code.copyable:hover, code.copyable.copied { border-color: var(--accent); }
.edit-table td { padding: 6px 8px; white-space: normal; }
.edit-table input, .edit-table select { padding: 6px 8px; font-size: 14px; }
.edit-table .num { width: 70px; }
.edit-table .num-wide { width: 120px; }
.edit-table .days { white-space: nowrap; }
.edit-table .days label { display: inline-flex; gap: 2px; margin-right: 6px; font-weight: 500; font-size: 12.5px; }
.inquiry.is-done { opacity: .55; }
.inquiry h3 { margin-bottom: 2px; }

/* Feste Sendeplatz-Links */
.slot-group { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.slot-group summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.slot-group summary .muted { font-size: 13px; }
.slot-group .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.slot-table td { white-space: normal; vertical-align: middle; }
.slot-table td:nth-child(3) { width: 60%; }
.slot-table code.copyable { font-size: 12px; display: inline-block; }
.slot-tips { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.slot-tips strong { color: var(--text); }
.slot-admin { margin-top: 12px; }
.slot-admin > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

/* Kundenbereich */
.kunde-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.booked { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.booked li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.row-window td { color: var(--muted); background: var(--ok-soft); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr; }
  .show-side { border-left: 0; border-top: 1px solid var(--line); }
  .player { flex-direction: column; align-items: stretch; gap: 4px; }
  .grid-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .new-code .btn-row { margin-left: 0; }
  .brand-name { font-size: 20px; }
  .brand { min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav { gap: 0; flex: none; }
  .topnav a { padding: 6px 8px; font-size: 13px; }
  .topnav .nav-catalog { display: none; }
  .series-grid { grid-template-columns: 1fr; }
  .series-tile { height: 300px; }
  .series-text { padding: 18px; padding-right: 38%; }
  .series-title { font-size: 36px; }
  .series-tagline { display: none; }
  .host { width: 62%; }
  .series-admin-grid { grid-template-columns: 1fr; }
  .topnav .nav-wide { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .boerse-public, .rep-stats { grid-template-columns: 1fr; }
  .quota { align-items: flex-start; }
  .hero-map { display: flex; align-items: center; gap: 16px; text-align: left; }
  .de-map { max-width: 120px; flex: none; }
  .hero-map figcaption { margin: 0; font-size: 20px; }
  #sendungen .series-grid { grid-template-columns: 1fr; }
  .benefits, .steps-4 { grid-template-columns: 1fr 1fr; }
  .schedule { display: none; }
  .schedule-list { display: grid; }
  .clock-wrap, .contact-grid, .kunde-top, .prod-status { grid-template-columns: 1fr; }
  .clock { max-width: 300px; margin: 0 auto; }
  .clock-legend li { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 9px 12px; }
  .abruf-list { grid-template-columns: 1fr; }
  .abruf-list dt { margin-top: 6px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .benefits, .steps-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .benefits, .steps-4 { grid-template-columns: 1fr; }
}

/* ===================== Verwaltung: Übersicht ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi-grid .stat:hover { border-color: var(--accent); }
.state-bars { display: grid; gap: 6px; max-width: 640px; }
.state-bar { display: grid; grid-template-columns: 200px 1fr 32px; gap: 10px; align-items: center; font-size: 14px; }
.state-bar .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.state-bar .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.state-bar strong { text-align: right; }
.recovery-codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.recovery-codes code { font-size: 15px; padding: 4px 8px; background: var(--surface); border-radius: 6px; }
.totp-key { display: inline-block; font-size: 17px; letter-spacing: .05em; padding: 6px 10px; margin: 6px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; user-select: all; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.btn-row form { display: inline; }

/* ===================== Rechnung ===================== */
.invoice { padding: 40px 48px; }
.invoice-head { display: flex; justify-content: space-between; flex-direction: row-reverse; gap: 30px; margin-bottom: 36px; line-height: 1.5; }
.invoice-from { text-align: right; }
.invoice-from .brand-logo { height: 26px; margin: 0 0 14px auto; }
.invoice-to { min-height: 120px; }
.invoice-meta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.invoice-meta h2 { margin: 0; font-size: 28px; }
.invoice-meta dl { display: grid; grid-template-columns: auto auto; gap: 2px 16px; margin: 0; font-size: 14px; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; text-align: right; }
.invoice-lines { width: 100%; margin-bottom: 20px; }
.invoice-lines tfoot td { border: 0; padding-top: 4px; padding-bottom: 4px; }
.invoice-lines tr.total td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--text); padding-top: 8px; }
.invoice-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 640px) {
  .invoice { padding: 20px; }
  .invoice-head { flex-direction: column; }
  .invoice-from { text-align: left; }
  .invoice-from .brand-logo { margin-left: 0; }
  .invoice-foot { grid-template-columns: 1fr; }
  .state-bar { grid-template-columns: 120px 1fr 28px; }
}
@media print { .invoice { padding: 0; } }

/* ===================== Startseite: Demo-Stunde ===================== */
.clock-side { display: flex; flex-direction: column; gap: 12px; }
.demo-btn { align-self: flex-start; gap: 10px; font-size: 16px; padding: 11px 20px; }
.demo-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 11px; }
.demo-note { margin: -4px 0 4px; min-height: 1.4em; }
.clock-hand line { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }
.clock-hand circle { fill: var(--text); }
.clock-hand { pointer-events: none; }

/* ===================== Startseite: Konfigurator ===================== */
.configurator { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 18px; padding: 24px; }
.configurator h3 { margin: 0 0 12px; font-size: 22px; }
.configurator fieldset { margin: 0 0 14px; }
.configurator .pkg-buttons { border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pkg-buttons legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.pkg-btn { position: relative; display: block; cursor: pointer; }
.pkg-btn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pkg-btn span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pkg-btn strong { font-size: 15px; }
.pkg-btn small { color: var(--muted); font-size: 13px; font-weight: 400; }
.pkg-btn:hover span { border-color: var(--accent); }
.pkg-btn input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pkg-btn input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.configurator select { width: auto; margin-bottom: 14px; }
.cfg-result { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); align-self: start; }
.cfg-hours { font-family: var(--f-display); font-size: 32px; line-height: 1.05; }
.cfg-price { font-size: 15px; margin: 4px 0 8px; }
.cfg-price strong { font-family: var(--f-display); font-size: 24px; color: var(--accent); }
.btn.disabled { opacity: .5; pointer-events: none; }

/* ===================== Startseite: Referenzen ===================== */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ref { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.ref img { max-height: 56px; max-width: 180px; object-fit: contain; }
.ref-name { font-family: var(--f-display); font-size: 22px; }
.ref blockquote { margin: 0; font-size: 15px; line-height: 1.5; }
.ref figcaption { color: var(--muted); font-size: 13px; }
.ref-edit { border-top: 1px solid var(--line); padding: 10px 0; }
.ref-edit summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ref-thumb { height: 26px; max-width: 90px; object-fit: contain; }

/* ===================== Sendungsseite ===================== */
.sendung-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: flex-end; }
.sendung-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 65%, transparent); }
.sendung-hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; padding-top: 48px; }
.sendung-hero-text { padding-bottom: 40px; max-width: 560px; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.sendung-hero-text .series-kicker a { color: #fff; text-decoration: none; }
.sendung-hero h1 { font-family: var(--f-display); font-size: clamp(48px, 8vw, 84px); line-height: .95; margin: 12px 0 6px; color: #fff; }
.sendung-host { font-family: var(--f-display); font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.sendung-time { margin: 0; font-weight: 600; }
.sendung-tagline { margin: 10px 0 20px; font-size: 16px; opacity: .92; }
.sendung-host-img { max-height: 400px; max-width: 45%; object-fit: contain; align-self: flex-end; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 18%); mask-composite: intersect; }
.sendung-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.sendung-bio { font-size: 17px; line-height: 1.65; }
.sendung-proben { display: grid; gap: 10px; }
.sendung-proben audio { width: 100%; margin-top: 8px; }
.sendung-facts h3 { margin-top: 0; }
.sendung-facts dl { margin: 0 0 18px; display: grid; gap: 2px; }
.sendung-facts dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.sendung-facts dd { margin: 0; }

@media (max-width: 760px) {
  .configurator, .sendung-grid { grid-template-columns: 1fr; }
  .sendung-hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .sendung-host-img { max-width: 70%; max-height: 260px; align-self: flex-end; }
  .sendung-hero-text { padding-bottom: 28px; }
}

/* Startphase: Schwerpunkt-Sendung auf dem Handy nicht höher als die anderen Kacheln */
@media (max-width: 760px) { #sendungen .series-tile.is-featured:not(:nth-last-child(2)) { height: 300px; } }

.booking-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.booking-sum strong { font-family: var(--f-display); font-size: 26px; }
@media (max-width: 640px) { .booking-sum { grid-template-columns: 1fr; } }

/* ===== Startseite für Senderchefs ===== */
.hero-points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.situation-answer { margin: 22px 0 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--accent); font-size: 16px; max-width: 900px; }
.cost-calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.cost-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cost-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cost-inputs label.check { flex-direction: row; align-items: center; }
.cost-inputs .span-2 { grid-column: 1 / -1; }
.cost-result { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; }
.cost-own, .cost-offer { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.cost-offer span { font-size: 15px; font-weight: 500; color: var(--muted); }
.cost-diff { color: var(--ok); font-weight: 600; }
.cost-result .btn { margin-top: 12px; }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 8px 0 2px; font-size: 14.5px; }
.contact-person { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin: 4px 0 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.contact-person strong { font-size: 17px; }
.contact-person a { text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  .cost-calc, .cost-inputs { grid-template-columns: 1fr; }
}
.hero-slim .wrap { max-width: 900px; }
.hero-slim h1 { font-size: clamp(34px, 5vw, 54px); }
.benefits-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .benefits-3 { grid-template-columns: 1fr; } }
