/* RadioButler – Design "Split-Studio" (entschieden 2026-09-26)
   Farben nur Schwarz, Weiss, Orange. Schriften Geist / Geist Mono (lokal ausgeliefert). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rb-black: #0a0a0a;
  --rb-white: #ffffff;
  --rb-orange: #fe6e01;

  /* Abstufungen nur aus Schwarz/Weiss gemischt */
  --rb-grey-50: #f3f3f2;
  --rb-grey-100: #ececea;
  --rb-grey-200: #e2e2e0;
  --rb-grey-400: #9a9a9a;
  --rb-grey-600: #5c5c5c;
  --rb-grey-800: #1c1c1c;

  --rb-font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --rb-mono: "Geist Mono", ui-monospace, monospace;

  --rb-radius-sm: 10px;
  --rb-radius: 18px;
  --rb-radius-lg: 28px;
  --rb-sidebar: 232px;
}

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

html, body { margin: 0; }

body {
  font: 15px/1.55 var(--rb-font);
  color: var(--rb-black);
  background: var(--rb-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--rb-orange); outline-offset: 2px; }

.mono { font-family: var(--rb-mono); }
.eyebrow {
  font: 500 11px/1 var(--rb-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rb-orange);
}
.accent { color: var(--rb-orange); font-style: normal; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px var(--rb-font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rb-orange); color: var(--rb-black); }
.btn-dark { background: var(--rb-black); color: var(--rb-white); }
.btn-ghost { border-color: #444; color: var(--rb-white); background: transparent; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; background: var(--rb-white); padding: 2px; }

/* ---------- VU-Meter (Markenzeichen) ---------- */
.vu { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.vu i {
  width: 5px; height: 100%; background: var(--rb-orange); border-radius: 2px;
  transform-origin: bottom; animation: rb-vu 1.1s ease-in-out infinite;
}
.vu i:nth-child(2) { animation-delay: .2s; }
.vu i:nth-child(3) { animation-delay: .45s; }
.vu i:nth-child(4) { animation-delay: .1s; }
.vu i:nth-child(5) { animation-delay: .6s; }
.vu i:nth-child(6) { animation-delay: .3s; }
.vu i:nth-child(7) { animation-delay: .75s; }
.vu i:nth-child(8) { animation-delay: .15s; }
.vu-lg { height: 60px; } .vu-lg i { width: 8px; }
@keyframes rb-vu { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ---------- Oeffentliche Seite ---------- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px);
  background: var(--rb-black); color: var(--rb-white);
}
.site-header .brand { margin-right: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--rb-grey-400); }
.site-nav a:hover { color: var(--rb-white); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--rb-black); }

.tile {
  border-radius: var(--rb-radius); padding: 18px; background: var(--rb-grey-50);
  display: flex; flex-direction: column; gap: 6px; justify-content: space-between;
}
.tile small { font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; }
.tile b { font-size: 30px; letter-spacing: -.03em; }
.tile-orange { background: var(--rb-orange); }
.tile-black { background: var(--rb-black); color: var(--rb-white); }
.tile-black small { color: var(--rb-orange); }
.tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }

.marquee { background: var(--rb-black); color: var(--rb-white); overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; gap: 26px; padding: 14px 0;
  font: 700 13px var(--rb-mono); letter-spacing: .14em;
  animation: rb-marquee 32s linear infinite;
}
.marquee-track span { display: inline-flex; gap: 26px; align-items: center; }
.marquee-track i { font-style: normal; color: var(--rb-orange); }
@keyframes rb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 56px clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head p { font-size: 16px; }
.section-grey { background: var(--rb-grey-50); }
.small { font-size: 13px; }
.btn-outline { border-color: var(--rb-grey-200); background: var(--rb-white); color: var(--rb-black); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
[hidden] { display: none !important; }

/* ---------- Anmelde-Assistent ---------- */
.ob-steps {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  max-width: 1040px;
}
.ob-steps li {
  border-top: 3px solid var(--rb-grey-200); padding-top: 10px;
  font: 500 12px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-400);
  display: flex; flex-direction: column; gap: 2px;
}
.ob-steps li span { font-size: 18px; font-weight: 700; color: inherit; }
.ob-steps li.active { border-color: var(--rb-orange); color: var(--rb-black); }
.ob-steps li.done { border-color: var(--rb-black); color: var(--rb-black); }
.ob-card {
  max-width: 1040px; border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius-lg);
  padding: clamp(18px, 3vw, 32px); background: var(--rb-white);
}
.ob-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ob-step legend { padding: 0; margin-bottom: 6px; }
.ob-step h3 { font-size: 26px; }
.ob-step h4 { font-size: 17px; margin-top: 8px; }
.ob-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ob-ok { border-radius: var(--rb-radius-sm); padding: 10px 14px; background: var(--rb-orange); color: var(--rb-black); font-weight: 500; }

.ob-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ob-tile {
  position: relative; cursor: pointer; border-radius: var(--rb-radius); padding: 18px;
  border: 2px solid var(--rb-grey-100); background: var(--rb-grey-50);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s;
}
.ob-tile:hover { border-color: var(--rb-grey-400); }
.ob-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ob-tile:has(input:checked) { background: var(--rb-black); border-color: var(--rb-black); color: var(--rb-white); }
.ob-tile:has(input:checked) .ob-tile-tag, .ob-tile:has(input:checked) small { color: var(--rb-grey-400); }
.ob-tile:has(input:focus-visible) { outline: 3px solid var(--rb-orange); outline-offset: 2px; }
.ob-tile-name { font: 500 12px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-orange); }
.ob-tile-price { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.ob-tile-price small { display: block; font: 400 12px var(--rb-font); letter-spacing: 0; color: var(--rb-grey-600); }
.ob-tile-price .ob-contact { font-size: 18px; font-weight: 600; color: inherit; }
.ob-tile-tag { font-size: 14px; color: var(--rb-grey-600); }

/* Projektbeschreibung nur beim Enterprise-Tarif */
.ob-enterprise.field { display: none; background: var(--rb-grey-50); border-radius: var(--rb-radius); padding: 16px; }
.ob-form:has(input[data-enterprise="true"]:checked) .ob-enterprise.field { display: flex; }
/* Schritt KI & Stimmen: Key-Felder nur bei "eigene Keys" */
.ob-grid.ob-ownkeys { display: none; margin-top: 16px; }
.ob-form:has(input[name="AiMode"][value="own"]:checked) .ob-grid.ob-ownkeys { display: grid; }

.ob-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-feature, .ob-checks label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius-sm); padding: 14px;
}
.ob-feature strong { display: block; }
.ob-feature:has(input:checked) { border-color: var(--rb-black); }
.ob-feature input, .ob-checks input { accent-color: var(--rb-orange); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.ob-checks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ob-streamurl {
  border-radius: var(--rb-radius-sm); padding: 12px 14px; background: var(--rb-black);
  font: 500 14px var(--rb-mono); word-break: break-all;
}
.ob-streamurl a { color: var(--rb-orange); }

/* ---------- Produkt ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how .tile { min-height: 150px; justify-content: flex-start; }
.how .tile b { font-size: 22px; }
.how .tile span { color: var(--rb-grey-600); }
.how .tile-black span { color: var(--rb-grey-400); }
.how .tile-orange small, .how .tile-orange span { color: var(--rb-black); }
textarea.input { resize: vertical; font-family: var(--rb-font); }

.site-footer {
  background: var(--rb-black); color: var(--rb-grey-400);
  padding: 28px clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.site-footer a { color: var(--rb-grey-400); text-decoration: none; }
.site-footer a:hover { color: var(--rb-white); }
.site-footer .spacer { flex: 1; }

/* ---------- Login ---------- */
.auth {
  min-height: calc(100vh - 140px); display: grid; place-items: center;
  padding: 40px 16px; background: var(--rb-grey-50);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--rb-white);
  border-radius: var(--rb-radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.auth-card h1 { font-size: 30px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-600); }
.input, select.input {
  font: 15px var(--rb-font); padding: 11px 14px; border-radius: var(--rb-radius-sm);
  border: 1px solid var(--rb-grey-200); background: var(--rb-white); color: var(--rb-black);
}
.input:focus { outline: none; border-color: var(--rb-orange); box-shadow: 0 0 0 3px rgba(254, 110, 1, .18); }
.alert {
  border-radius: var(--rb-radius-sm); padding: 10px 14px;
  background: var(--rb-black); color: var(--rb-white); font-size: 14px;
}
.alert::before { content: "● "; color: var(--rb-orange); }
.muted { color: var(--rb-grey-600); }
.link { color: var(--rb-black); text-decoration-color: var(--rb-orange); text-underline-offset: 3px; }

/* ---------- Login-Bereich: Split-Studio ---------- */
.studio { display: grid; grid-template-columns: var(--rb-sidebar) 1fr; min-height: 100vh; background: var(--rb-black); }

.sidebar {
  color: var(--rb-grey-400); padding: 18px 12px 24px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: var(--rb-white); padding: 0 8px 14px; }
.station-select { margin: 0 4px 10px; position: relative; }
.station-select select {
  width: 100%; appearance: none; cursor: pointer;
  background: transparent; color: var(--rb-white);
  border: 1px solid #2a2a2a; border-radius: var(--rb-radius-sm);
  padding: 8px 28px 8px 26px; font: 500 14px var(--rb-font);
}
.station-select select option { color: var(--rb-black); }
.station-select::before {
  content: ""; position: absolute; left: 11px; top: 50%; translate: 0 -50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--rb-orange);
}
.station-select::after { content: "▾"; position: absolute; right: 11px; top: 50%; translate: 0 -50%; color: var(--rb-white); pointer-events: none; }

.nav-group { font: 500 14px var(--rb-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rb-grey-400); padding: 10px 10px; }
.nav-single { padding: 6px 0; }
/* Dashboard steht allein, sieht aber aus wie die Bereichsueberschriften (.nav-group). Wiki bleibt klein. */
.nav-single .nav-item[href="/app/overview"] { font: 500 14px var(--rb-mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px; }
/* Pay as you order: My productions und Ad Studio stehen dort allein und sehen ebenso aus wie die Bereiche (Thore 01.10.2026). */
.nav-single-payg .nav-item[href="/app/produce"],
.nav-single-payg .nav-item[href="/app/adstudio"] { font: 500 14px var(--rb-mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px; }
.nav-section summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; border-radius: 8px; }
.nav-section summary::-webkit-details-marker { display: none; }
.nav-section summary::after { content: "+"; font-size: 12px; }
.nav-section[open] summary::after { content: "–"; }
.nav-section summary:hover { color: var(--rb-white); }
.nav-section[open] { padding-bottom: 4px; }
.nav-item {
  padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; color: var(--rb-grey-400);
}
.nav-item:hover { color: var(--rb-white); background: #161616; }
.nav-item.active { background: var(--rb-white); color: var(--rb-black); font-weight: 600; }
.nav-item em { font: normal 10px var(--rb-mono); color: var(--rb-orange); }
.nav-item.pending { opacity: .55; }
.nav-item.active.pending { opacity: 1; }
.sidebar .spacer { flex: 1; min-height: 16px; }

.canvas {
  background: var(--rb-white); border-radius: 22px 0 0 0;
  padding: 22px clamp(16px, 2.4vw, 30px) 40px; min-width: 0;
}
.canvas-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.canvas-top h1 { font-size: 28px; }

.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.bento .tile { min-height: 120px; }
.bento .tile-black { grid-row: span 2; }
.bento .span-2 { grid-column: span 2; }
.quota { height: 6px; background: var(--rb-grey-200); border-radius: 3px; }
.quota i { display: block; height: 100%; background: var(--rb-orange); border-radius: 3px; }

.list { background: var(--rb-white); border: 1px solid var(--rb-grey-100); justify-content: flex-start; }
.list-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--rb-grey-100); }
.list-row:first-of-type { border-top: 0; }
.pill { font: 700 10px var(--rb-mono); border-radius: 999px; padding: 3px 9px; background: var(--rb-orange); color: var(--rb-black); }
.pill-off { background: var(--rb-grey-100); color: var(--rb-grey-600); }

.empty {
  border: 1px dashed var(--rb-grey-200); border-radius: var(--rb-radius);
  padding: 36px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}

.menu-toggle { display: none; }


/* =====================================================================
   BAUSTEINE des Login-Bereichs. Alle Seiten nutzen nur diese Klassen
   (plus die Tag-Helper in Infrastructure/TagHelpers.cs). Uebersicht:
   /app/admin/styleguide. Aenderungen hier wirken auf allen Seiten.
   ===================================================================== */

/* Seitenkopf */
.page-header { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-title h1 { font-size: clamp(24px, 3vw, 30px); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-actions select.input { min-width: 180px; }

/* Stapel und Raster */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Karten */
.card { background: var(--rb-white); border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius); padding: clamp(16px, 2.4vw, 22px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-dark { background: var(--rb-black); color: var(--rb-white); border-color: var(--rb-black); }
.card-dark .muted { color: var(--rb-grey-400); }
.card-title { font-size: 17px; letter-spacing: -.02em; }
.card-dark .alert { background: var(--rb-grey-800); }

/* Formulare */
.form-grid, .ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2, .ob-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field .hint { color: var(--rb-grey-600); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--rb-orange); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
input[type=range] { accent-color: var(--rb-orange); }
/* Datei-Auswahl als normaler Button (Thore 30.09.2026, alle Seiten): kein Eingabekasten, der Knopf wie .btn-outline,
   daneben der gewaehlte Dateiname. */
input[type=file].input { padding: 0; border: 0; background: transparent; box-shadow: none; font: 14px var(--rb-font); color: var(--rb-grey-600); max-width: 100%; }
input[type=file].input:focus { box-shadow: none; }
input[type=file].input::file-selector-button {
  margin-right: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rb-grey-200);
  background: var(--rb-white); color: var(--rb-black); font: 600 14px var(--rb-font); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
input[type=file].input::file-selector-button:hover { transform: translateY(-1px); border-color: var(--rb-black); }
input[type=file].input:focus-visible::file-selector-button { outline: 2px solid var(--rb-orange); outline-offset: 2px; }

/* Buttons: Groessen und Varianten */
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--rb-white); color: var(--rb-black); border-color: var(--rb-black); }
.btn-danger:hover { background: var(--rb-black); color: var(--rb-white); }
.btn-link { background: none; border: 0; padding: 0; color: var(--rb-black); text-decoration: underline; text-decoration-color: var(--rb-orange); text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius); background: var(--rb-white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-600); padding: 12px 14px; background: var(--rb-grey-50); white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--rb-grey-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--rb-grey-50); }
.table a { color: var(--rb-black); font-weight: 600; text-decoration-color: var(--rb-orange); text-underline-offset: 3px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table-empty { padding: 28px; text-align: center; color: var(--rb-grey-600); }

/* Meldungen */
.notice { border-radius: var(--rb-radius-sm); padding: 10px 14px; background: var(--rb-orange); color: var(--rb-black); font-size: 14px; font-weight: 500; }
.stack > .alert, .stack > .notice { margin: 0; }

/* Status-Pillen */
.pill-on { background: var(--rb-orange); color: var(--rb-black); }
.pill-off { background: var(--rb-grey-100); color: var(--rb-grey-600); }
.pill-warn { background: var(--rb-white); color: var(--rb-black); box-shadow: inset 0 0 0 1.5px var(--rb-orange); }
.pill-error { background: var(--rb-black); color: var(--rb-white); }
/* Ticketsystem v2 (docs/ticketsystem-v2-plan.md): Erledigt dunkel, Geplant/In Umsetzung weiss mit Rand, Abgelehnt durchgestrichen */
.pill-dark { background: var(--rb-black); color: var(--rb-white); }
.pill-outline { background: var(--rb-white); color: var(--rb-black); box-shadow: inset 0 0 0 1.5px var(--rb-grey-400); }
.pill-struck { background: var(--rb-grey-100); color: var(--rb-grey-600); text-decoration: line-through; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--rb-grey-50); border-radius: var(--rb-radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat small { font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-600); }
.stat b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Reiter (Links oder Buttons) */
/* Nur nav.tabs: der Baustein <tabs> (class "tabs") enthaelt ganze Formulare, deren Links und Knoepfe sonst wie Reiter aussehen. */
nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rb-grey-100); }
nav.tabs a, nav.tabs button { padding: 10px 14px; border: 0; background: none; font: 500 14px var(--rb-font); color: var(--rb-grey-600); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
nav.tabs .active, nav.tabs a:hover, nav.tabs button:hover { color: var(--rb-black); border-bottom-color: var(--rb-orange); }

/* Audio und Dialog */
audio.audio { height: 34px; width: 240px; max-width: 100%; vertical-align: middle; }
dialog.dialog { border: 0; border-radius: var(--rb-radius-lg); padding: 24px; width: min(560px, calc(100vw - 32px)); }
dialog.dialog::backdrop { background: rgba(10, 10, 10, .55); }
details.more > summary { cursor: pointer; font-weight: 600; }

/* Vorformatierter Text (Prompts, Logs) */
.pre { font: 13px/1.5 var(--rb-mono); white-space: pre-wrap; word-break: break-word; background: var(--rb-grey-50); border-radius: var(--rb-radius-sm); padding: 12px 14px; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile-black { grid-row: auto; grid-column: 1 / -1; }

  .studio { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: none; }
  .studio.menu-open .sidebar { display: flex; }
  .sidebar > .brand { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; color: var(--rb-white);
  }
  .menu-toggle button { background: none; border: 1px solid #2a2a2a; color: var(--rb-white); border-radius: 8px; padding: 6px 12px; font: 500 13px var(--rb-font); }
  .canvas { border-radius: 22px 22px 0 0; }
}
@media (max-width: 560px) {
  .bento, .ob-grid, .form-grid, .grid-2, .grid-3, .ob-features { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .ob-grid .span-2 { grid-column: auto; }
  .ob-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .ob-steps li { font-size: 9px; letter-spacing: .02em; }
  .bento .span-2 { grid-column: auto; }
  .site-header .site-nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vu i, .marquee-track { animation: none; }
  .btn:hover { transform: none; }
}

/* Baustein: Kachel-Link (Station) - ganze Karte als Link, z. B. Uebersicht */
a.card-link { text-decoration: none; color: inherit; gap: 4px; transition: border-color .15s ease; }
a.card-link:hover { border-color: var(--rb-orange); }
a.card-link b { font-size: 16px; letter-spacing: -.02em; }
a.card-link-add { border-style: dashed; }

/* Baustein: Wochenkalender (Station) - scheduler, programtemplates; Partial Pages/App/Station/_WeekCalendar */
.wcal-scroll { overflow-x: auto; border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius); background: var(--rb-white); }
.wcal { --wcal-hour: 42px; min-width: 760px; display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); font-size: 13px; }
.wcal-head { padding: 10px 4px; text-align: center; font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-600); background: var(--rb-grey-50); border-bottom: 1px solid var(--rb-grey-100); }
.wcal-head small { display: block; letter-spacing: 0; }
.wcal-head.today { color: var(--rb-black); box-shadow: inset 0 -2px 0 var(--rb-orange); }
.wcal-hours { display: grid; grid-auto-rows: var(--wcal-hour); }
.wcal-hours span { font: 11px var(--rb-mono); color: var(--rb-grey-600); text-align: right; padding: 3px 8px 0 0; }
.wcal-day { display: grid; grid-auto-rows: var(--wcal-hour); grid-template-columns: repeat(12, minmax(0, 1fr)); border-left: 1px solid var(--rb-grey-100);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--wcal-hour) - 1px), var(--rb-grey-100) calc(var(--wcal-hour) - 1px), var(--rb-grey-100) var(--wcal-hour)); }
.wcal-day.today { background-color: var(--rb-grey-50); }
.wcal-item { margin: 2px; border-radius: 8px; padding: 4px 6px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-decoration: none; line-height: 1.15; }
.wcal-item:hover { outline: 2px solid var(--rb-orange); outline-offset: 1px; z-index: 1; }
.wcal-item b { font-size: 12px; }
.wcal-item span { font-size: 11px; opacity: .85; }
.wcal-tone-0 { background: var(--rb-grey-200); color: var(--rb-black); }
.wcal-tone-1 { background: var(--rb-orange); color: var(--rb-black); }
.wcal-tone-2 { background: var(--rb-black); color: var(--rb-white); }
/* Voice Tracking: Sendungen/Vorlagen mit VT (docs/voice-tracking-plan.md) */
.wcal-tone-3 { background: #2563eb; color: var(--rb-white); }
.wcal-r1{grid-row-start:1} .wcal-r2{grid-row-start:2} .wcal-r3{grid-row-start:3} .wcal-r4{grid-row-start:4} .wcal-r5{grid-row-start:5} .wcal-r6{grid-row-start:6} .wcal-r7{grid-row-start:7} .wcal-r8{grid-row-start:8} .wcal-r9{grid-row-start:9} .wcal-r10{grid-row-start:10} .wcal-r11{grid-row-start:11} .wcal-r12{grid-row-start:12} .wcal-r13{grid-row-start:13} .wcal-r14{grid-row-start:14} .wcal-r15{grid-row-start:15} .wcal-r16{grid-row-start:16} .wcal-r17{grid-row-start:17} .wcal-r18{grid-row-start:18} .wcal-r19{grid-row-start:19} .wcal-r20{grid-row-start:20} .wcal-r21{grid-row-start:21} .wcal-r22{grid-row-start:22} .wcal-r23{grid-row-start:23} .wcal-r24{grid-row-start:24}
.wcal-h1{grid-row-end:span 1} .wcal-h2{grid-row-end:span 2} .wcal-h3{grid-row-end:span 3} .wcal-h4{grid-row-end:span 4} .wcal-h5{grid-row-end:span 5} .wcal-h6{grid-row-end:span 6} .wcal-h7{grid-row-end:span 7} .wcal-h8{grid-row-end:span 8} .wcal-h9{grid-row-end:span 9} .wcal-h10{grid-row-end:span 10} .wcal-h11{grid-row-end:span 11} .wcal-h12{grid-row-end:span 12} .wcal-h13{grid-row-end:span 13} .wcal-h14{grid-row-end:span 14} .wcal-h15{grid-row-end:span 15} .wcal-h16{grid-row-end:span 16} .wcal-h17{grid-row-end:span 17} .wcal-h18{grid-row-end:span 18} .wcal-h19{grid-row-end:span 19} .wcal-h20{grid-row-end:span 20} .wcal-h21{grid-row-end:span 21} .wcal-h22{grid-row-end:span 22} .wcal-h23{grid-row-end:span 23} .wcal-h24{grid-row-end:span 24}
.wcal-c1{grid-column-start:1} .wcal-c2{grid-column-start:2} .wcal-c3{grid-column-start:3} .wcal-c4{grid-column-start:4} .wcal-c5{grid-column-start:5} .wcal-c6{grid-column-start:6} .wcal-c7{grid-column-start:7} .wcal-c8{grid-column-start:8} .wcal-c9{grid-column-start:9} .wcal-c10{grid-column-start:10} .wcal-c11{grid-column-start:11} .wcal-c12{grid-column-start:12}
.wcal-w1{grid-column-end:span 1} .wcal-w2{grid-column-end:span 2} .wcal-w3{grid-column-end:span 3} .wcal-w4{grid-column-end:span 4} .wcal-w5{grid-column-end:span 5} .wcal-w6{grid-column-end:span 6} .wcal-w7{grid-column-end:span 7} .wcal-w8{grid-column-end:span 8} .wcal-w9{grid-column-end:span 9} .wcal-w10{grid-column-end:span 10} .wcal-w11{grid-column-end:span 11} .wcal-w12{grid-column-end:span 12}
/* Baustein: Chips (Station) - kleine Link-Pillen, z. B. Vorlagen ohne Wochentag */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 5px 12px; background: var(--rb-grey-50); border: 1px solid var(--rb-grey-200); color: var(--rb-black); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--rb-orange); }
.chip.active { background: var(--rb-black); border-color: var(--rb-black); color: var(--rb-white); box-shadow: inset 0 -2px 0 var(--rb-orange); }
/* Baustein: thumb (Station) - kleine Bildvorschau, z. B. hochgeladene Player-Bilder */
.thumb { max-height: 90px; width: auto; border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius-sm); background: var(--rb-grey-50); padding: 3px; }

/* Baustein: embed-frame (Station) - Vorschau einer eingebetteten Seite (Radioplayer) */
.embed-frame { display: block; width: 100%; max-width: 420px; height: 660px; border: 0; border-radius: var(--rb-radius); background: var(--rb-black); margin-top: 8px; }

/* Baustein: url (Station) - lange Adressen (Stream-URL) umbrechen statt die Seite zu verbreitern */
.url { font-family: var(--rb-mono); overflow-wrap: anywhere; min-width: 0; }

/* Baustein: Feld-Zusaetze (Station) - Checkbox und Hilfe-Link innerhalb eines field, Farbwahl-Eingabe */
.field label.check { font: 400 14px var(--rb-font); letter-spacing: 0; text-transform: none; color: inherit; }
.field > .btn-link { align-self: flex-start; }
input[type=color].input { width: 72px; height: 42px; padding: 4px; cursor: pointer; }

/* Baustein: check-grid (Content/Blocks) - viele kleine Checkboxen (Stunden, Wochentage) im Raster */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px 12px; }
.check-grid .check { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* check-grid wide (Musikarchiv) - Checkboxen mit laengeren Namen (Sub-Genres, Stimmungen) */
.check-grid.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.check-grid.wide .check { white-space: normal; }
.check-grid .check.strong { font-weight: 700; }
/* fieldset.plain (Musikarchiv) - Formularteil ohne Rahmen; mit disabled nur lesbar */
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.table tr.muted td { color: var(--rb-grey-600); }

/* Baustein: schedule (Content/Blocks) - Wochenuebersicht Tage x Stunden mit Eintraegen und Tooltip */
.schedule { border: 1px solid var(--rb-grey-100); border-radius: var(--rb-radius); overflow: hidden; background: var(--rb-white); }
.schedule-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: flex-end; padding: 14px 18px; background: var(--rb-black); color: var(--rb-white); }
.schedule-head .muted { color: var(--rb-grey-400); font-size: 12px; }
.schedule-head .muted b { color: var(--rb-orange); }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--rb-grey-200); }
.schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.schedule-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--rb-grey-600); }
.schedule-dot.is-current { background: var(--rb-orange); }
.schedule-dot.is-conflict { background: var(--rb-black); box-shadow: 0 0 0 2px var(--rb-orange); }
.schedule-scroll { overflow: auto; max-height: 640px; }
.schedule-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; table-layout: fixed; font-size: 12px; }
.schedule-table th { position: sticky; top: 0; z-index: 2; background: var(--rb-grey-50); font: 500 11px var(--rb-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rb-grey-600); padding: 8px 6px; border-bottom: 1px solid var(--rb-grey-200); }
.schedule-table th:first-child { width: 72px; text-align: left; padding-left: 12px; }
.schedule-table th.is-today { color: var(--rb-orange); }
.schedule-table td { vertical-align: top; padding: 4px; border-bottom: 1px solid var(--rb-grey-100); border-right: 1px solid var(--rb-grey-100); height: 30px; }
.schedule-table td:last-child { border-right: 0; }
.schedule-table td.schedule-hour { position: sticky; left: 0; z-index: 1; background: var(--rb-grey-50); color: var(--rb-grey-600); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 6px 6px 6px 12px; }
.schedule-table td.is-today { background: #fff6ee; }
.schedule-chip { display: flex; gap: 5px; margin: 2px 0; padding: 3px 7px; border-radius: 6px; background: var(--rb-grey-600); color: var(--rb-white); line-height: 1.25; cursor: default; }
.schedule-chip b { flex: none; font-variant-numeric: tabular-nums; }
.schedule-chip span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-chip.is-current { background: var(--rb-orange); color: var(--rb-black); }
.schedule-chip.is-conflict { background: var(--rb-black); box-shadow: inset 0 0 0 2px var(--rb-orange); color: var(--rb-white); }
/* Liste /app/block: Chips sind Links, gleiche Startzeit rot umrandet */
a.schedule-chip { text-decoration: none; }
.schedule-chip.is-link { cursor: pointer; }
.schedule-chip.is-link:hover { background: var(--rb-black); color: var(--rb-white); }
.schedule.is-overview { margin-top: 24px; }
.schedule.is-overview .schedule-chip.is-conflict { background: var(--rb-grey-600); box-shadow: inset 0 0 0 2px #e53935; }
.schedule.is-overview .schedule-dot.is-conflict { background: var(--rb-grey-600); box-shadow: 0 0 0 2px #e53935; }
.schedule-empty { padding: 18px; text-align: center; color: var(--rb-grey-600); font-size: 13px; }
.schedule-tip { position: fixed; z-index: 50; max-width: 320px; pointer-events: none; background: var(--rb-black); color: var(--rb-white); border-left: 3px solid var(--rb-orange); border-radius: var(--rb-radius-sm); padding: 8px 10px; font-size: 12px; line-height: 1.4; }
.schedule-tip b { color: var(--rb-orange); }
.schedule-tip .muted { color: var(--rb-grey-400); }
/* Baustein: timeline (Station) - Zeitstrahl unter einem Schieberegler, z. B. Mitschnitt auf /app/recording.
   .timeline-bar enthaelt absolut positionierte Balken (left/width setzt das Skript):
   .timeline-avail = vorhandener Zeitraum, .timeline-item timeline-<gattung> = gesendetes Element. */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.timeline input[type=range] { display: block; width: 100%; margin: 0; }
.timeline-bar { position: relative; height: 38px; background: var(--rb-grey-100); border-radius: var(--rb-radius-sm); overflow: hidden; }
.timeline-bar span { position: absolute; top: 0; bottom: 0; }
.timeline-avail { background: var(--rb-grey-200); }
.timeline-item { min-width: 1px; cursor: help; }
.timeline-music { background: var(--rb-grey-400); }
.timeline-moderation { background: var(--rb-orange); }
.timeline-news { background: var(--rb-black); }
.timeline-localnews { background: var(--rb-grey-800); }
.timeline-addnews { background: var(--rb-grey-600); }
.timeline-traffic { background: color-mix(in srgb, var(--rb-orange) 55%, var(--rb-white)); }
.timeline-block { background: color-mix(in srgb, var(--rb-orange) 60%, var(--rb-black)); }
.timeline-event { background: color-mix(in srgb, var(--rb-orange) 30%, var(--rb-white)); }
.timeline-other { background: var(--rb-grey-200); box-shadow: inset 0 0 0 1px var(--rb-grey-400); }

/* Baustein: input-row (Station) - Eingabe mit Knopf daneben (Hilfe-"?", Suchen, Hinzufuegen); die Eingabe fuellt die Zeile. */
.input-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.input-row > .input { flex: 1; min-width: 0; }
.input-row > .check { flex: 1; }

/* Baustein: nowrap (Station) - Tabellenzellen ohne Umbruch (ItemStyle-Wrap=false der alten GridViews). */
.nowrap { white-space: nowrap; }
/* Baustein: form-grid-schmal (Advertising) - lange Optionstexte in Auswahllisten sprengen das Raster auf schmalen Bildschirmen nicht */
.form-grid > .field { min-width: 0; }
.field select.input { max-width: 100%; }
/* Baustein: prose (oeffentliche Seiten) – langer Rechtstext wie Impressum, Datenschutz, Nutzungsbedingungen */
.prose { max-width: 860px; display: flex; flex-direction: column; gap: 12px; line-height: 1.65; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 22px; }
.prose h3 { font-size: 18px; margin-top: 14px; }
.prose h4 { font-size: 15px; margin-top: 8px; line-height: 1.3; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.prose a { color: var(--rb-black); text-decoration-color: var(--rb-orange); text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Knoepfe im Fliesstext (z. B. Sprachumschalter auf /legalnotice): .prose a darf deren Schriftfarbe nicht ueberschreiben. */
.prose a.btn { text-decoration: none; overflow-wrap: normal; }
.prose a.btn-dark { color: var(--rb-white); }
.prose a.btn-primary { color: var(--rb-black); }
.prose .pill { white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--rb-grey-100); margin: 10px 0; width: 100%; }
/* Baustein: avatar (Voices) - rundes Vorschaubild */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--rb-grey-100); }

/* Baustein: week-grid (Voices) - Wochenraster 7 x 24 */
.week-grid th, .week-grid td { padding: 4px 6px; font-size: 11px; text-align: center; }
.week-grid td.slot-empty { color: var(--rb-grey-400); }
.week-grid td.slot-one { background: var(--rb-grey-100); }
.week-grid td.slot-many { box-shadow: inset 0 0 0 1.5px var(--rb-orange); }

/* Baustein: form-grid-shrink (Voices) - Felder mit langen Select-Optionen sprengen das Raster nicht */
.form-grid > * { min-width: 0; }

/* Baustein: flash-gap (Voices) - Abstand, wenn <flash /> direkt im Seiteninhalt steht */
.canvas > .alert, .canvas > .notice { margin-bottom: 16px; }

/* Baustein: lang-switch - Sprachumschalter (Seitenleiste und oeffentlicher Kopf) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; font: 500 11px var(--rb-mono); letter-spacing: .08em; }
.lang-switch a { padding: 4px 7px; border-radius: 6px; color: inherit; opacity: .6; text-decoration: none; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; background: var(--rb-orange); color: var(--rb-black); }
.sidebar .lang-switch { margin: 0 8px 8px; color: var(--rb-white); }

/* Baustein: schedule-radio (Content/Blocks) - Sendername im uebersetzten Untertitel der Wochenuebersicht */
.schedule-head .muted #rbScheduleRadioName { color: var(--rb-orange); font-weight: 600; }
/* Baustein: row-end (Voices) - Zeile rechtsbuendig, z. B. mehrere Aktionen in einer Tabellenzelle */
.row-end { justify-content: flex-end; }
/* Baustein: timeline-clickable (Station) - anklickbarer Zeitstrahl (z. B. /app/recording): Klick auf ein Element springt dorthin;
   Musik liegt als schmaler Streifen unten, damit die Wortbeitraege darueber anklickbar bleiben. */
.timeline-clickable { height: 44px; }
.timeline-clickable .timeline-item { min-width: 4px; cursor: pointer; }
.timeline-clickable .timeline-music { top: 60%; }

/* Baustein: live-meter (Station) - Live-Lampe und Pegelanzeige (/app/live).
   .live-lamp is-armed|is-onair; .live-meter enthaelt <span> (Pegel, Breite setzt das Skript, is-over = ueber der Schwelle)
   und <i> (Umschaltschwelle bei -40 von -60..0 dBFS = 33.33 %). */
.live-lamp { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--rb-grey-400); }
.live-lamp.is-armed { background: var(--rb-white); box-shadow: inset 0 0 0 4px var(--rb-orange); }
.live-lamp.is-onair { background: var(--rb-orange); box-shadow: 0 0 0 6px rgba(254, 110, 1, .2); }
.live-state { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.live-meter { position: relative; width: 100%; height: 26px; background: var(--rb-grey-100); border-radius: var(--rb-radius-sm); overflow: hidden; }
.live-meter span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rb-grey-600); transition: width .15s linear; }
.live-meter span.is-over { background: var(--rb-orange); }
.live-meter i { position: absolute; top: 0; bottom: 0; left: 33.333%; width: 2px; background: var(--rb-black); }
.live-scale { display: flex; justify-content: space-between; gap: 8px; font: 500 11px var(--rb-mono); color: var(--rb-grey-600); }

/* Baustein: busy - Ladekreisel, wenn der RadioButler arbeitet (js/busy.js) */
.busy { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgb(255 255 255 / .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.busy.on { opacity: 1; pointer-events: auto; cursor: progress; }
.busy-ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--rb-grey-100); border-top-color: var(--rb-orange); animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-ring { animation-duration: 2.4s; } }

/* Baustein: help-q - dezentes Fragezeichen fuer Hilfetexte (wie in der alten Site) */
.help-q { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: none; color: var(--rb-grey-400); font: 600 11px/1 var(--rb-font); cursor: help; opacity: .6; vertical-align: middle; }
.help-q:hover, .help-q:focus-visible { opacity: 1; color: var(--rb-orange); }
.field { position: relative; }
.field > .help-q { position: absolute; top: -2px; right: 0; }

/* Baustein: tabs - Reiter fuer lange Seiten (<tabs>/<tab>, js/tabs.js) */
.tab-bar { display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none; background: var(--rb-grey-100); border-radius: 14px; position: sticky; top: 8px; z-index: 5; box-shadow: 0 0 0 8px var(--rb-white); }
.tab-bar::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border: 0; border-radius: 10px; background: none; font: 500 14px var(--rb-font); color: var(--rb-grey-600); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--rb-black); background: rgb(255 255 255 / .7); }
.tab[aria-selected="true"] { background: var(--rb-black); color: var(--rb-white); box-shadow: inset 0 -3px 0 var(--rb-orange); }
.tab:focus-visible { outline: 2px solid var(--rb-orange); outline-offset: 2px; }
.tab-panel[hidden] { display: none; }
.tabs, .tab-panel { min-width: 0; max-width: 100%; }
.tab-bar { max-width: 100%; }

/* Baustein: play-btn (Dashboard) - runder Play-Knopf fuer den Sender-Stream */
.play-col { width: 52px; }
.play-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--rb-orange); color: var(--rb-black); font-size: 13px; cursor: pointer; }
.play-btn:hover { background: var(--rb-black); color: var(--rb-orange); }
.play-btn.playing { background: var(--rb-black); color: var(--rb-orange); box-shadow: 0 0 0 3px var(--rb-orange); }
.play-btn:focus-visible { outline: 2px solid var(--rb-orange); outline-offset: 2px; }
.row-inactive td { color: var(--rb-grey-600); }

/* ---------- Dashboard (/app/overview): Senderkarten + Tarifblock ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 12px; }
.dash-radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.dash-radio.is-inactive { opacity: .7; }
.dash-radio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-radio-head a { color: var(--rb-black); text-decoration: none; font-size: 22px; letter-spacing: -.03em; }
.dash-now { display: flex; align-items: center; gap: 18px; background: var(--rb-black); color: var(--rb-white); border-radius: var(--rb-radius); padding: 18px; min-height: 150px; }
.dash-now .play-btn { width: 52px; height: 52px; font-size: 18px; flex: none; }
.dash-cover { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; }
.dash-now-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-now-text small { font: 500 12px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-orange); }
.dash-now-text strong { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dash-now-text .small { color: var(--rb-grey-400); font-size: 14px; margin-top: 4px; }
.dash-listeners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-listeners div { background: var(--rb-grey-50); border-radius: var(--rb-radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.dash-listeners small { font: 500 11px var(--rb-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rb-grey-600); }
.dash-listeners b { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* Senderseite: Hoerer unter dem Sendernamen (wie Dashboard) */
.station-listeners { max-width: 420px; margin-bottom: 16px; }
.dash-inactive { grid-column: 1 / -1; }
.dash-inactive ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.dash-inactive li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rb-grey-100); }
.dash-inactive a { color: var(--rb-black); text-decoration: none; }
.dash-meters { display: flex; flex-direction: column; gap: 10px; }
.dash-meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.dash-meter em { font-style: normal; color: var(--rb-grey-600); font-size: 12px; }
.dash-meter b { font-variant-numeric: tabular-nums; }
.dash-meter i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--rb-grey-100); position: relative; overflow: hidden; }
.dash-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--rb-orange); border-radius: inherit; }
.dash-plan .card-title { font-size: 22px; }
.dash-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dash-notice .btn { flex: none; }
.dash-notice-warn::before { color: #f5c542; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }

/* Baustein: Benutzer und Protokoll (Account) */
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.log-changes { margin: 6px 0 0; font-size: 13px; }
.log-changes th { font: 500 11px var(--rb-mono); text-transform: uppercase; color: var(--rb-grey-600); text-align: left; padding: 2px 10px 2px 0; }
.log-changes td { padding: 2px 10px 2px 0; vertical-align: top; word-break: break-word; }
.log-changes .old { color: var(--rb-grey-600); text-decoration: line-through; }
details.log-details summary { cursor: pointer; }

/* ---------- Produktionsplan (/app/produce) ---------- */
.plan-row { border: 1px solid var(--rb-grey-200); border-radius: var(--rb-radius-sm); padding: 14px 16px; display: grid; gap: 10px; }
.plan-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.plan-row-head .field { min-width: 150px; flex: 0 1 220px; }
.plan-row-head .plan-remove { margin-left: auto; }
.plan-row-head > .plan-tag { align-self: center; font-size: 13px; padding: 4px 10px; }
.plan-checks { gap: 6px 12px; }
.plan-tag { display: inline-block; padding: 2px 6px; margin: 1px 0; border-radius: 6px; font: 500 11px/1.3 var(--rb-mono); white-space: nowrap; }
.plan-news { background: #fff0e4; color: #9a4200; }
.plan-weather { background: #e6f1fb; color: #1d5a8c; }
.plan-traffic { background: #eaf6ea; color: #2d6b2d; }
.week-grid th, .week-grid td { padding: 4px 6px; font-size: 12px; vertical-align: top; }
.week-grid td { min-width: 92px; }
.week-grid td .plan-tag { display: block; }

/* ---------- Werbe-Slots: typische Stunde (Senderseite) und Werbeplan ---------- */
.adhour { position: relative; height: 44px; margin: 14px 0 6px; border-radius: var(--rb-radius-sm); background: var(--rb-grey-50); border: 1px solid var(--rb-grey-200); }
.adhour > span { position: absolute; top: 11px; transform: translateX(-2px); padding: 2px 7px; border-radius: 6px; font: 500 11px/1.4 var(--rb-mono); white-space: nowrap; }
.adhour-news { background: var(--rb-black); color: var(--rb-white); }
.adhour-slot { background: #fff0e4; color: #9a4200; }
.adhour-end { right: 4px; left: auto !important; transform: none !important; }
.adplan-grid td { min-width: 110px; vertical-align: top; padding: 4px 6px; font-size: 12px; }
.adplan-grid th { padding: 4px 6px; }
.adchip { display: block; margin: 2px 0; padding: 3px 6px; border-radius: 6px; font: 500 11px/1.35 var(--rb-mono); background: var(--rb-grey-100); color: var(--rb-grey-800); cursor: pointer; border: 0; width: 100%; text-align: left; }
.adchip.is-busy { background: #fff0e4; color: #9a4200; }
.adchip.is-over { background: var(--rb-orange); color: var(--rb-white); }
.adchip.is-noads { background: transparent; color: var(--rb-grey-400); text-decoration: line-through; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 500 11px/1.5 var(--rb-mono); }
.status-running { background: var(--rb-orange); color: var(--rb-white); }
.status-planned { background: #e6f1fb; color: #1d5a8c; }
.status-paused { background: var(--rb-grey-100); color: var(--rb-grey-800); }
.status-expired { background: var(--rb-grey-100); color: var(--rb-grey-400); }
@media (max-width: 720px) { .adplan-desktop { display: none; } }
@media (min-width: 721px) { .adplan-mobile { display: none; } }

.adplan-list th { width: 64px; }
.adplan-list td:nth-child(2) { width: 56px; }
.adplan-list td:nth-child(3) { width: 180px; }
.adchip { white-space: normal; overflow-wrap: anywhere; }
.adchip-waiting { display: block; font-weight: 400; opacity: .8; }

/* Play-Knopf (Stimmvergleich): schwarzer Kreis, oranges Dreieck; spielt = oranges Stopp-Quadrat */
.playbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--rb-black); cursor: pointer; position: relative; flex: none; transition: transform .15s ease; }
.playbtn:hover { transform: scale(1.06); }
.playbtn::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--rb-orange); }
.playbtn.is-playing::after { left: 12px; top: 12px; width: 10px; height: 10px; border: 0; background: var(--rb-orange); border-radius: 2px; }
/* Stimmvergleich: Play-Knopf, Status und "Dieses Modell nutzen" mittig untereinander */
.vc-cell { align-items: center; text-align: center; }
/* Stimmvergleich: "Dieses Modell nutzen" so gross wie "In Verwendung" (Pill 10px) */
.vc-cell .btn-sm { font-size: 10px; padding: 4px 10px; }

/* Wartungszugang: oranger Balken ganz oben (docs/wartungszugang-plan.md) */
.supportbar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--rb-orange); color: var(--rb-black); font-size: 14px; }
.supportbar-end { border: 0; border-radius: 999px; padding: 5px 14px; background: var(--rb-black); color: var(--rb-white); font: 600 13px var(--rb-font); cursor: pointer; }

/* Produktionsprobleme (30.09.2026): roter Balken auf jeder Seite, Karte "Probleme" auf dem Dashboard */
.problembar { position: sticky; top: 0; z-index: 999; display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; background: #c62828; color: #fff; font-size: 14px; }
.problembar-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; text-align: center; }
.problembar-link { flex: none; border-radius: 999px; padding: 4px 12px; background: #fff; color: #c62828; font-weight: 600; font-size: 13px; text-decoration: none; }
.problembar-link:hover { background: var(--rb-black); color: #fff; }
/* Chat-/Ticket-Hinweis (30.09.2026): gruener Balken oben, Zaehler im Menue */
.chatbar { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; background: #2e7d32; color: #fff; font-size: 14px; }
.chatbar-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; text-align: center; }
.chatbar-link { flex: none; border-radius: 999px; padding: 4px 12px; background: #fff; color: #2e7d32; font-weight: 600; font-size: 13px; text-decoration: none; }
.chatbar-link:hover { background: var(--rb-black); color: #fff; }
.problembar, .chatbar { position: relative; padding-right: 48px; padding-left: 48px; }
.problembar { position: sticky; }
.problembar[hidden], .chatbar[hidden] { display: none; }
.bar-dismiss { position: absolute; top: 6px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.bar-dismiss:hover { background: rgba(0, 0, 0, .25); }
.nav-unread { margin-left: 6px; color: var(--rb-orange); font-weight: 700; }
.nav-item.active .nav-unread { color: #2e7d32; }
.dash-problems { margin-bottom: 16px; border-left: 4px solid #c62828; }
.dash-problems-ok { border-left-color: #2e7d32; }
.dash-problems ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-problems li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-problems li .btn { flex: none; }

/* Schiebeschalter fuer An/Aus-Einstellungen (Thore 30.09.2026): <label class="check switch"><input type="checkbox"> ...
   Grau = aus, gruen = an. Mehrfachauswahlen (Tage, Stunden, Listen) bleiben normale Haken. */
.check.switch { align-items: center; }
.switch input[type=checkbox] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0;
  width: 40px; height: 22px; border-radius: 999px; background: var(--rb-grey-200); cursor: pointer;
  transition: background-color .18s ease;
}
.switch input[type=checkbox]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--rb-white); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .18s ease;
}
.switch input[type=checkbox]:checked { background: #2fb344; }
.switch input[type=checkbox]:checked::after { transform: translateX(18px); }
.switch input[type=checkbox]:focus-visible { outline: 2px solid var(--rb-orange); outline-offset: 2px; }
.switch input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .switch input[type=checkbox], .switch input[type=checkbox]::after { transition: none; } }

/* Support: Chat und Tickets (docs/ticketsystem-plan.md, 30.09.2026) */
.support-scroll { max-height: 60vh; overflow-y: auto; }
/* Feste Download-Adressen (Produce, Reiter Dateien) */
.bed-delete { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--rb-grey-600); cursor: pointer; }
.bed-delete:hover { background: var(--rb-grey-100); color: #c62828; }
.copy-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
@media (max-width: 700px) { .copy-row { grid-template-columns: 1fr; } }
/* Mehrere Chats je Kunde (30.09.2026) */
.chat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-new { justify-content: center; }
.chat-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-item { position: relative; border-radius: var(--rb-radius-sm); border: 1px solid var(--rb-grey-100); background: var(--rb-white); }
.chat-item.active { border-color: var(--rb-orange); box-shadow: inset 3px 0 0 var(--rb-orange); }
.chat-item-link { display: flex; flex-direction: column; gap: 2px; padding: 8px 40px 8px 12px; color: inherit; text-decoration: none; }
.chat-item-title { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.chat-item-delete { position: absolute; top: 4px; right: 4px; margin: 0; }
.chat-item-delete .bar-dismiss { position: static; color: var(--rb-grey-600); }
.chat-item-delete .bar-dismiss:hover { background: var(--rb-grey-100); color: #c62828; }
@media (max-width: 800px) { .chat-layout { grid-template-columns: 1fr; } }
.support-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.support-msg { max-width: 80%; padding: 10px 14px; border-radius: var(--rb-radius-sm); background: var(--rb-grey-50); border: 1px solid var(--rb-grey-100); }
.support-msg.support-customer { align-self: flex-end; background: var(--rb-white); border-color: var(--rb-grey-200); }
.support-msg.support-agent { align-self: flex-start; background: #fff6ee; border-color: #ffd9b8; }
.support-msg.support-admin { align-self: flex-start; background: var(--rb-black); color: var(--rb-white); border-color: var(--rb-black); }
.support-msg.support-admin .muted { color: var(--rb-grey-400); }
.support-msg.support-internal { background: repeating-linear-gradient(45deg, var(--rb-grey-50), var(--rb-grey-50) 8px, var(--rb-grey-100) 8px, var(--rb-grey-100) 16px); color: var(--rb-black); border-style: dashed; }
.support-msg.support-system { align-self: center; max-width: 100%; background: transparent; border: 0; padding: 2px 6px; font-size: 12px; color: var(--rb-grey-600); }
.support-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 4px; }
.support-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.support-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.support-toticket { display: inline-block; margin-top: 6px; font-size: 12px; color: inherit; opacity: .7; }
.support-toticket:hover { opacity: 1; }
.dash-support { border-left-color: var(--rb-orange); }
.dash-support-open { margin-bottom: 16px; }
.problembar-help { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
@media (max-width: 700px) { .support-msg { max-width: 100%; } }

/* Laendergruppen in den Listen Requests / News Sources (01.10.2026): Linie und fettes Land. */
.table tr.country-group th { border-top: 2px solid var(--rb-black); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--rb-black); padding-top: 18px; background: transparent; text-transform: none; letter-spacing: 0; }

/* Block-Seite (2026-10-03, docs/block-seite-plan.md) */
.type-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.type-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--rb-grey-200); border-radius: 14px; color: var(--rb-black); text-decoration: none; }
.type-tile:hover { border-color: var(--rb-orange); }
.type-tile b { font-size: 17px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--rb-grey-50); border: 1px solid var(--rb-grey-200); font-size: 12px; font-weight: 600; }
.block-group > summary, .block-expired > summary { cursor: pointer; padding: 6px 0; }
.block-group-head b { font-size: 16px; }
.bed-mark { color: var(--rb-orange); font-weight: 700; margin-left: 4px; }
.block-item { background: #fff; border: 1px solid var(--rb-grey-200); border-radius: 12px; }
.block-item.is-bed { border: 0; }
.block-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; cursor: pointer; list-style: none; }
.block-item-head::-webkit-details-marker { display: none; }
.block-item-body { padding: 4px 14px 14px; }
.block-item-move { display: inline-flex; gap: 2px; }
.block-keep { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.block-item-delete { margin-left: 4px; }
.iconbtn { border: 1px solid var(--rb-grey-200); background: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; line-height: 1; }
.iconbtn:hover { border-color: var(--rb-black); }
.block-sub > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; min-width: 34px; text-align: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rb-grey-200); background: var(--rb-grey-50); font-size: 13px; cursor: pointer; }
.chip-check input:checked + span { background: var(--rb-black); color: #fff; border-color: var(--rb-black); }
.chip-check input:focus-visible + span { outline: 2px solid var(--rb-orange); }
.file-pick { cursor: pointer; }
.blocktl { position: relative; height: 34px; background: var(--rb-grey-50); border-radius: 8px; margin: 6px 0; }
.blocktl-bar { position: absolute; top: 4px; bottom: 4px; background: var(--rb-black); color: #fff; border-radius: 6px; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 0 6px; display: flex; align-items: center; }
.blocktl-bar.is-bed { background: var(--rb-orange); }
.blocktl-bar.is-estimated { background: transparent; color: var(--rb-black); border: 2px dashed var(--rb-grey-600); }
.blocktl-bar span { overflow: hidden; text-overflow: ellipsis; }

/* Musikarchiv-Song: Wellenform mit Markern Cue in / Ramp / Fade out / Cue out (wwwroot/js/waveform.js) */
.wave-scroll { overflow-x: scroll; overflow-y: hidden; padding: 22px 0; }
.wave { --wave-color: var(--rb-grey-800); --cue-in: 0%; --ramp: 0%; --fade-out: 100%; --cue-out: 100%; --zoom: 1; position: relative; width: calc(var(--zoom) * 100%); height: 150px; overflow-x: clip; background: var(--rb-grey-50); border-radius: 8px; cursor: pointer; touch-action: pan-y; user-select: none; }
.wave-canvas { position: absolute; top: 0; left: 0; height: 100%; display: block; pointer-events: none; }
.wave-shade { position: absolute; inset: 0; pointer-events: none; border-radius: 8px; display: none;
  background: linear-gradient(to right,
    rgba(243,243,242,.78) 0 var(--cue-in), rgba(254,110,1,.12) var(--cue-in) var(--ramp), transparent var(--ramp) var(--fade-out),
    rgba(254,110,1,.12) var(--fade-out) var(--cue-out), rgba(243,243,242,.78) var(--cue-out) 100%); }
.wave.is-ready .wave-shade { display: block; }
.wave-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.wave-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rb-orange); pointer-events: none; }
.wave-marker { --mc: var(--rb-black); position: absolute; top: -22px; bottom: -22px; width: 16px; margin-left: -8px; display: none; cursor: ew-resize; touch-action: none; outline: none; z-index: 1; }
.wave.is-ready .wave-marker { display: block; }
.wave-marker[aria-disabled="true"] { cursor: default; }
.wave-marker::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--mc); }
.wave-marker[data-field="Song_Ramp1"], .wave-marker[data-field="Song_FadeOut"] { --mc: var(--rb-orange); }
.wave-marker-label { position: absolute; left: 7px; padding: 2px 7px; border-radius: 0 6px 6px 0; background: var(--mc); color: var(--rb-white); font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 16px; }
.wave-marker.top .wave-marker-label { top: 0; }
.wave-marker.bottom .wave-marker-label { bottom: 0; }
.wave-marker.end .wave-marker-label { left: auto; right: 7px; border-radius: 6px 0 0 6px; }
.wave-marker-time { font-family: var(--rb-mono); font-weight: 400; opacity: .85; }
.wave-marker:focus-visible .wave-marker-label, .wave-marker.is-dragging .wave-marker-label { box-shadow: 0 0 0 2px var(--rb-white), 0 0 0 4px var(--mc); }
.wave-marker.is-dragging::before, .wave-marker:hover::before { width: 3px; }
.wave-bar { align-items: center; gap: 12px; }
.wave-time { font-family: var(--rb-mono); }
.wave-zoom { display: inline-flex; align-items: center; gap: 6px; }
.wave-zoom .btn { min-width: 34px; justify-content: center; font-size: 16px; line-height: 1; }
.wave-zoom-level { min-width: 30px; text-align: center; font-family: var(--rb-mono); }
.wave-save { margin-left: auto; }

/* Voice Tracking: Editor einer Sendung (Pages/App/VoiceTracking/Show, wwwroot/js/vt-editor.js) */
.vt-fill { font-family: var(--rb-mono); font-size: 13px; color: var(--rb-grey-600); }
.vt-fill.is-over { color: #c62828; }
.vt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vt-row { display: grid; grid-template-columns: 22px 64px 96px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; background: var(--rb-white); }
.vt-row:hover { background: var(--rb-grey-50); }
.vt-row.is-placeholder { color: var(--rb-grey-600); background: var(--rb-grey-50); }
.vt-row.is-locked { opacity: .55; }
.vt-row.is-dragging { box-shadow: 0 6px 20px rgba(0,0,0,.15); background: var(--rb-white); position: relative; z-index: 2; }
.vt-row.type-voice .vt-type { color: var(--rb-orange); font-weight: 600; }
.vt-handle { cursor: grab; color: var(--rb-grey-400); letter-spacing: -3px; touch-action: none; user-select: none; text-align: center; }
.vt-row.is-locked .vt-handle { visibility: hidden; }
.vt-time, .vt-len { font-family: var(--rb-mono); font-size: 13px; }
.vt-type { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--rb-grey-600); }
.vt-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-title small { margin-left: 6px; }
.vt-title.is-struck { text-decoration: line-through; }
.vt-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vt-icon { border: 0; background: transparent; font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--rb-grey-600); }
.vt-icon:hover { background: var(--rb-grey-100); color: var(--rb-black); }
.vt-row.type-marker { grid-template-columns: minmax(0, 1fr) auto auto; padding: 2px 6px; }
.vt-marker-bar { grid-column: 1 / -1; grid-row: 1; height: 4px; border-radius: 2px; background: #f5c400; align-self: center; }
.vt-marker-text { grid-column: 1; grid-row: 1; justify-self: start; background: var(--rb-white); padding: 0 8px; margin-left: 30px; color: #8a6d00; }
.vt-row.type-marker .vt-actions { grid-column: 3; grid-row: 1; background: var(--rb-white); padding-left: 6px; }
.vt-joint { display: flex; justify-content: center; gap: 6px; height: 10px; align-items: center; opacity: 0; transition: opacity .15s ease, height .15s ease; }
.vt-joint:hover, .vt-joint:focus-within { opacity: 1; height: 30px; }
.vt-joint-btn { border: 1px solid var(--rb-grey-200); background: var(--rb-white); border-radius: 999px; padding: 3px 12px; font: 600 12px var(--rb-font); cursor: pointer; }
.vt-joint-btn:hover { border-color: var(--rb-black); }
@media (hover: none) { .vt-joint { opacity: 1; height: 30px; } }
@media (max-width: 640px) {
  .vt-row { grid-template-columns: 22px 58px minmax(0, 1fr) auto; }
  .vt-type { display: none; }
  .vt-len { display: none; }
}
.vt-dialog { border: 0; border-radius: var(--rb-radius); padding: 22px; width: min(520px, calc(100vw - 32px)); }
.vt-dialog-wide { width: min(900px, calc(100vw - 32px)); }
.vt-dialog::backdrop { background: rgba(10,10,10,.45); }
html.vt-locked, html.vt-locked body { overflow: hidden; }
.vt-building { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10,10,10,.55); backdrop-filter: blur(3px); }
.vt-building[hidden] { display: none; }
.vt-building-box { background: var(--rb-white, #fff); border-radius: var(--rb-radius); padding: 28px 32px; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.vt-building-progress { margin: 12px 0 0; font-weight: 600; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vt-building-progress:empty { display: none; }
.vt-building-bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--rb-grey-100); overflow: hidden; }
.vt-building-bar > span { display: block; height: 100%; background: var(--rb-orange); transition: width .4s ease; }
.vt-eq { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 56px; margin-bottom: 16px; }
.vt-eq span { width: 8px; height: 100%; border-radius: 4px; background: var(--rb-orange); transform-origin: bottom; animation: vt-eq 1s ease-in-out infinite; }
.vt-eq span:nth-child(2) { animation-delay: -.8s; } .vt-eq span:nth-child(3) { animation-delay: -.3s; } .vt-eq span:nth-child(4) { animation-delay: -.6s; }
.vt-eq span:nth-child(5) { animation-delay: -.1s; } .vt-eq span:nth-child(6) { animation-delay: -.7s; } .vt-eq span:nth-child(7) { animation-delay: -.4s; }
@keyframes vt-eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .vt-eq span { animation-duration: 3s; } }
.vtm-lane { display: flex; flex-direction: column; gap: 2px; }
.vtm-lane[hidden] { display: none; }
.vtm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.vtm-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtm-scroll { padding: 22px 0; }
.vtm-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; }
.vtm-wave { height: 96px; cursor: default; }
.vtm-voice-box { position: relative; height: 72px; background: var(--rb-grey-50); border-radius: 8px; border: 1px dashed var(--rb-grey-200, #ddd); }
.vtm-voice-box canvas { width: 100%; height: 100%; display: block; }
.vtm-voice-box .wave-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.vt-meter { height: 10px; background: var(--rb-grey-100); border-radius: 5px; overflow: hidden; }
.vt-meter span { display: block; height: 100%; width: 0; background: var(--rb-orange); transition: width .05s linear; }
.vt-meter span.is-hot { background: #c62828; }
.vt-rec-time { font-family: var(--rb-mono); }
.vt-file { cursor: pointer; }
.vt-tracks { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 6px 0; min-height: 120px; }
.vt-strip { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.vt-fader { writing-mode: vertical-lr; direction: rtl; width: 30px; height: 96px; margin: 0; accent-color: var(--rb-orange); cursor: ns-resize; }
.vt-track { position: relative; height: 96px; background: var(--rb-grey-50); border-radius: 8px; overflow: hidden; }
.vt-track canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.vt-track-label { position: absolute; left: 8px; top: 6px; font-size: 12px; background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 4px; pointer-events: none; }
.vt-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #c62828; pointer-events: none; z-index: 2; }
.vt-tracks-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.vt-tracks.is-ready .vt-tracks-status { display: none; }
#vt-listen.is-playing { background: var(--rb-orange); color: var(--rb-black); }

/* Voice Tracking: Schalter oben rechts in Sendung und Vorlage, Palette im Editor */
.vt-switch-form { display: inline-flex; }
.vt-switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rb-grey-200); background: var(--rb-white); border-radius: 999px; padding: 6px 14px 6px 6px; font: 600 14px var(--rb-font); cursor: pointer; }
.vt-switch-knob { width: 34px; height: 20px; border-radius: 10px; background: var(--rb-grey-200); position: relative; transition: background .15s ease; }
.vt-switch-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--rb-white); transition: left .15s ease; }
.vt-switch.is-on { border-color: #2563eb; color: #2563eb; }
.vt-switch.is-on .vt-switch-knob { background: #2563eb; }
.vt-switch.is-on .vt-switch-knob::after { left: 16px; }
.vt-switch:disabled { opacity: .5; cursor: not-allowed; }
.vt-switch:has(> input:checked) { border-color: #2563eb; color: #2563eb; }
.vt-switch:has(> input:checked) .vt-switch-knob { background: #2563eb; }
.vt-switch:has(> input:checked) .vt-switch-knob::after { left: 16px; }
.vt-switch:has(> input:disabled) { opacity: .5; cursor: not-allowed; }
.vt-switch:has(> input:focus-visible) { outline: 2px solid #2563eb; outline-offset: 2px; }
.vt-palette { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0 10px; border-bottom: 1px solid var(--rb-grey-100); }
.vt-chip { border: 1px solid var(--rb-grey-200); background: var(--rb-white); border-radius: 999px; padding: 4px 12px; font: 600 12px var(--rb-font); cursor: grab; touch-action: none; user-select: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-chip:hover { border-color: var(--rb-black); }
.vt-chip.type-news, .vt-chip.type-weather, .vt-chip.type-traffic { background: var(--rb-grey-50); }
.vt-chip.type-openerbed { border-color: var(--rb-orange); }
.vt-chip-ghost { position: fixed; z-index: 1000; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.vt-row.is-drop { box-shadow: inset 0 -3px 0 #2563eb; }

/* Ticketsystem v2: Ungelesen-Punkt, Zaehler-Chips, Statusleiste des Admins */
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rb-orange); margin-right: 6px; vertical-align: middle; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.ticket-chips { gap: 6px; }
.ticket-chips .chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--rb-grey-200); border-radius: 999px; padding: 4px 12px; font-size: 13px; text-decoration: none; color: var(--rb-black); background: var(--rb-white); }
.ticket-chips .chip b { font-variant-numeric: tabular-nums; }
.ticket-chips .chip.is-active { background: var(--rb-black); color: var(--rb-white); border-color: var(--rb-black); }
.ticket-statusbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
.ticket-statusform textarea { min-height: 60px; }
.ticket-edit summary { cursor: pointer; color: var(--rb-grey-600); }
.ticket-edit[open] { flex-basis: 100%; }
@media (max-width: 760px) { .ticket-statusbar { grid-template-columns: 1fr; } }

/* Moderationen: Abstand zwischen Bestellen, Moderation per Link und Bestellungen (09.10.2026) */
.mod-sections { display: flex; flex-direction: column; gap: 40px; }

/* Baustein: help-wiki - letzte Zeile im Hilfe-Dialog, Link auf das Feld im Wiki */
.help-wiki { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--rb-grey-100); font-size: 13px; }
.help-wiki a { color: var(--rb-orange); }

/* Demo-Zugang (2026-10-10, docs/demo-zugang-plan.md): oranger Balken mit Restzeit und Weg zum Abo */
.demobar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 8px 16px; background: var(--rb-orange); color: #fff; font-size: 14px; text-align: center; }
.demobar-link { flex: none; border-radius: 999px; padding: 4px 12px; background: #fff; color: var(--rb-black); font-weight: 600; font-size: 13px; text-decoration: none; }
.demobar-link:hover { background: var(--rb-black); color: #fff; }
