/* Radiowebseite – Admin-Backend
   Ruhige SaaS-Designsprache: neutrale Flächen, eine Markenfarbe (Rot→Orange), klare Typografie.
   Keine externen Ressourcen. Dark Mode über prefers-color-scheme oder [data-theme]. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ Tokens */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --brand-1: #e11d48; --brand-2: #f97316;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  /* Buttons mit weißer Schrift: dunklere Enden für AA-Kontrast */
  --btn-grad: linear-gradient(135deg, #e11d48 0%, #d63a1a 60%, #c2410c 100%);

  --bg: #f6f6f7; --sidebar: #fbfbfc; --surface: #ffffff; --surface-2: #f8f8fa; --surface-3: #f1f1f4;
  --border: #e6e6ea; --border-strong: #d4d4da; --hover: #f2f2f5;
  --text: #111216; --text-2: #3c3f47; --muted: #686c76; --faint: #9a9da6;
  --accent: #be123c; --accent-soft: #fff1f3; --accent-soft-2: #ffe4e8; --accent-border: #fecdd6;
  --ok: #15803d; --ok-soft: #ecfdf3; --ok-border: #bbf0cf;
  --warn: #a14b00; --warn-soft: #fff7eb; --warn-border: #fbd9a6;
  --danger: #c81e3a; --danger-soft: #fff1f2; --danger-border: #fecdd3;
  --info: #1d4ed8; --info-soft: #eff4ff; --info-border: #c7d7fe;
  --ring: 0 0 0 3px rgba(225, 29, 72, .22);
  --shadow-xs: 0 1px 2px rgba(16, 18, 24, .05);
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, .05), 0 1px 3px rgba(16, 18, 24, .04);
  --shadow-md: 0 4px 12px -2px rgba(16, 18, 24, .08), 0 2px 4px -2px rgba(16, 18, 24, .05);
  --shadow-lg: 0 18px 40px -12px rgba(16, 18, 24, .22), 0 4px 10px -4px rgba(16, 18, 24, .08);
  --r-sm: 6px; --r: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --sb-w: 252px; --top-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f; --sidebar: #0e0f13; --surface: #14151a; --surface-2: #181a1f; --surface-3: #1e2026;
    --border: #25272e; --border-strong: #33363e; --hover: #1c1e24;
    --text: #ededf0; --text-2: #c9cbd2; --muted: #9b9fa9; --faint: #6c707a;
    --accent: #fb7185; --accent-soft: rgba(225, 29, 72, .12); --accent-soft-2: rgba(225, 29, 72, .2); --accent-border: rgba(251, 113, 133, .3);
    --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .1); --ok-border: rgba(74, 222, 128, .25);
    --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .1); --warn-border: rgba(251, 191, 36, .25);
    --danger: #fb7185; --danger-soft: rgba(225, 29, 72, .1); --danger-border: rgba(251, 113, 133, .3);
    --info: #93b4fd; --info-soft: rgba(59, 130, 246, .12); --info-border: rgba(147, 180, 253, .25);
    --ring: 0 0 0 3px rgba(251, 113, 133, .3);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f; --sidebar: #0e0f13; --surface: #14151a; --surface-2: #181a1f; --surface-3: #1e2026;
  --border: #25272e; --border-strong: #33363e; --hover: #1c1e24;
  --text: #ededf0; --text-2: #c9cbd2; --muted: #9b9fa9; --faint: #6c707a;
  --accent: #fb7185; --accent-soft: rgba(225, 29, 72, .12); --accent-soft-2: rgba(225, 29, 72, .2); --accent-border: rgba(251, 113, 133, .3);
  --ok: #4ade80; --ok-soft: rgba(34, 197, 94, .1); --ok-border: rgba(74, 222, 128, .25);
  --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .1); --warn-border: rgba(251, 191, 36, .25);
  --danger: #fb7185; --danger-soft: rgba(225, 29, 72, .1); --danger-border: rgba(251, 113, 133, .3);
  --info: #93b4fd; --info-soft: rgba(59, 130, 246, .12); --info-border: rgba(147, 180, 253, .25);
  --ring: 0 0 0 3px rgba(251, 113, 133, .3);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 1.65rem; line-height: 1.2; margin: 0; font-weight: 600; }
h2 { font-size: 1rem; line-height: 1.3; margin: 0 0 .75rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; }
code, .mono, kbd { font-family: var(--mono); font-size: .86em; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft-2); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: .6rem 1rem; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .82rem; }
.help { color: var(--muted); font-size: .8rem; margin: .35rem 0 0; line-height: 1.45; }
.pre { white-space: pre-wrap; }

.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.i-sm { width: 15px; height: 15px; } .i-xs { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ Shell */
.shell { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); z-index: 40; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: var(--top-h); padding: 0 .9rem 0 1rem; border-bottom: 1px solid var(--border); flex: none; }
.sb-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); min-width: 0; border-radius: var(--r); }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-grad); color: #fff; flex: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 10px -2px rgba(225, 29, 72, .45); }
.logo-mark .i { width: 19px; height: 19px; }
.logo-mark-lg { width: 44px; height: 44px; border-radius: 12px; } .logo-mark-lg .i { width: 26px; height: 26px; }
.sb-brand-text { display: grid; line-height: 1.2; min-width: 0; }
.sb-brand-text strong { font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.sb-brand-text span { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .sb-close { display: none; }
.sb-nav { flex: 1; overflow-y: auto; padding: .8rem .65rem 1rem; }
.sb-group + .sb-group { margin-top: 1.1rem; }
.sb-label { margin: 0 0 .3rem; padding: 0 .65rem; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.sb-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.sb-nav a { position: relative; display: flex; align-items: center; gap: .65rem; padding: .44rem .65rem; border-radius: var(--r); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .875rem; transition: background .12s, color .12s; }
.sb-nav a .i { color: var(--faint); transition: color .12s; }
.sb-nav a:hover { background: var(--hover); color: var(--text); }
.sb-nav a:hover .i { color: var(--text-2); }
.sb-nav a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); font-weight: 600; }
.sb-nav a[aria-current] .i { color: var(--accent); }
.sb-nav a[aria-current]::before { content: ""; position: absolute; left: -.65rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-grad); }
.sb-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: var(--brand-1); color: #fff; font-variant-numeric: tabular-nums; }
.sb-foot { padding: .75rem; border-top: 1px solid var(--border); flex: none; }
.sb-site { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
.sb-site:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.sb-site-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: none; }
.sb-site-text { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.sb-site-text strong { font-size: .82rem; font-weight: 600; }
.sb-site-text small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-site > .i { color: var(--faint); }
.sb-backdrop { display: none; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: .75rem; padding: 0 1.75rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); }
.topbar .nav-toggle { display: none; }
.crumbs { min-width: 0; flex: 1; }
.crumbs ol { list-style: none; display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs li { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); margin-right: .2rem; flex: none; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs [aria-current] span { overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: .5rem; flex: none; }

.live-pill { display: inline-flex; align-items: center; gap: .5rem; max-width: 340px; height: 34px; padding: 0 .8rem 0 .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); text-decoration: none; font-size: .8rem; box-shadow: var(--shadow-xs); }
.live-pill:hover { border-color: var(--border-strong); }
.live-label { font-weight: 700; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-pill.is-live .live-label { color: var(--accent); }
.live-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; position: relative; display: inline-block; }
.is-live .live-dot, .live-dot.on { background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none; padding: 0; transition: background .12s, color .12s, border-color .12s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn-sm { width: 30px; height: 30px; border-radius: 7px; } .icon-btn-sm .i { width: 16px; height: 16px; }
.icon-btn-danger:hover { color: var(--danger); background: var(--danger-soft); }
[data-theme-toggle] .i-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .i-sun { display: inline-block; } :root[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .i-sun { display: inline-block; }
  :root:not([data-theme="light"]) [data-theme-toggle] .i-moon { display: none; }
}

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: 3px 8px 3px 3px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; color: var(--text-2); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--hover); border-color: var(--border); }
.um-name { font-weight: 500; font-size: .85rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 248px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-head { display: grid; gap: .1rem; padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.menu-head strong { font-size: .9rem; } .menu-head span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.menu-head .tag { justify-self: start; margin-top: .3rem; }
.menu a, .menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .7rem; border-radius: var(--r); color: var(--text-2); text-decoration: none; font: inherit; font-size: .86rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--hover); color: var(--text); }
.menu .i { color: var(--muted); width: 16px; height: 16px; }
.menu form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--border); }
.menu-danger:hover { color: var(--danger) !important; } .menu-danger:hover .i { color: var(--danger); }

.content { padding: 1.75rem 1.75rem 6rem; width: 100%; max-width: 1320px; margin: 0 auto; }
.content:focus { outline: none; }

/* Avatare & Töne */
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: .74rem; font-weight: 650; flex: none; letter-spacing: .02em;
  background: var(--tone-bg, #ffe4e6); color: var(--tone-fg, #9f1239); }
.avatar-xs { width: 22px; height: 22px; font-size: .6rem; } .avatar-lg { width: 44px; height: 44px; font-size: .9rem; } .avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.tone-1, .tone-rose { --tone-bg: #ffe4e8; --tone-fg: #9f1239; }
.tone-2, .tone-orange { --tone-bg: #ffedd5; --tone-fg: #9a3412; }
.tone-3, .tone-violet { --tone-bg: #ede9fe; --tone-fg: #5b21b6; }
.tone-4, .tone-teal { --tone-bg: #ccfbf1; --tone-fg: #115e59; }
.tone-5, .tone-blue { --tone-bg: #dbeafe; --tone-fg: #1e40af; }
.tone-6, .tone-slate { --tone-bg: #e8eaee; --tone-fg: #374151; }
:root[data-theme="dark"] .tone-1, :root[data-theme="dark"] .tone-rose { --tone-bg: rgba(244, 63, 94, .16); --tone-fg: #fda4af; }
:root[data-theme="dark"] .tone-2, :root[data-theme="dark"] .tone-orange { --tone-bg: rgba(249, 115, 22, .16); --tone-fg: #fdba74; }
:root[data-theme="dark"] .tone-3, :root[data-theme="dark"] .tone-violet { --tone-bg: rgba(139, 92, 246, .18); --tone-fg: #c4b5fd; }
:root[data-theme="dark"] .tone-4, :root[data-theme="dark"] .tone-teal { --tone-bg: rgba(20, 184, 166, .16); --tone-fg: #5eead4; }
:root[data-theme="dark"] .tone-5, :root[data-theme="dark"] .tone-blue { --tone-bg: rgba(59, 130, 246, .18); --tone-fg: #93c5fd; }
:root[data-theme="dark"] .tone-6, :root[data-theme="dark"] .tone-slate { --tone-bg: rgba(148, 163, 184, .16); --tone-fg: #cbd5e1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-1, :root:not([data-theme="light"]) .tone-rose { --tone-bg: rgba(244, 63, 94, .16); --tone-fg: #fda4af; }
  :root:not([data-theme="light"]) .tone-2, :root:not([data-theme="light"]) .tone-orange { --tone-bg: rgba(249, 115, 22, .16); --tone-fg: #fdba74; }
  :root:not([data-theme="light"]) .tone-3, :root:not([data-theme="light"]) .tone-violet { --tone-bg: rgba(139, 92, 246, .18); --tone-fg: #c4b5fd; }
  :root:not([data-theme="light"]) .tone-4, :root:not([data-theme="light"]) .tone-teal { --tone-bg: rgba(20, 184, 166, .16); --tone-fg: #5eead4; }
  :root:not([data-theme="light"]) .tone-5, :root:not([data-theme="light"]) .tone-blue { --tone-bg: rgba(59, 130, 246, .18); --tone-fg: #93c5fd; }
  :root:not([data-theme="light"]) .tone-6, :root:not([data-theme="light"]) .tone-slate { --tone-bg: rgba(148, 163, 184, .16); --tone-fg: #cbd5e1; }
}

/* ------------------------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 36px; padding: 0 .9rem; font: inherit; font-size: .86rem; font-weight: 550; line-height: 1;
  border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s, box-shadow .12s, transform .06s; }
.btn .i { width: 16px; height: 16px; color: inherit; opacity: .85; }
.btn:hover { background: var(--hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-grad); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(190, 18, 60, .3), 0 4px 12px -4px rgba(225, 29, 72, .45); }
.btn-primary:hover { background: var(--btn-grad); filter: brightness(1.06) saturate(1.05); border-color: transparent; }
.btn-primary .i { opacity: 1; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { color: var(--danger); border-color: var(--danger-border); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.btn-light:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.btn-sm { height: 30px; padding: 0 .7rem; font-size: .8rem; }
.btn-lg { height: 44px; padding: 0 1.2rem; font-size: .95rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form, .page-actions form { margin: 0; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .7rem; box-shadow: 0 1px 0 var(--border); }

/* ------------------------------------------------------------------ Seitenkopf */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.page-sub { color: var(--muted); margin: .35rem 0 0; font-size: .9rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.eyebrow { margin: 0 0 .35rem; color: var(--muted); font-size: .78rem; font-weight: 500; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 500; margin-bottom: .45rem; }
.back-link:hover { color: var(--text); }
.count-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-family: var(--font); font-size: .72rem; font-weight: 650; letter-spacing: 0;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); font-variant-numeric: tabular-nums; vertical-align: middle; }
.count-pill-muted { background: var(--surface-3); color: var(--muted); border-color: var(--border); }

/* ------------------------------------------------------------------ Karten, Tags, Status */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.4rem 1.5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem .85rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.card-link { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 550; color: var(--muted); text-decoration: none; }
.card-link:hover { color: var(--accent); }
.section-head { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 0 0 .15rem; font-size: 1.05rem; }
.section-head p { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }

.tag { display: inline-flex; align-items: center; gap: .3rem; height: 21px; padding: 0 7px; border-radius: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.tag-orange { background: #fff4e6; color: #9a3412; border-color: #fed7aa; }
.tag-blue { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.tag-rose { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.tag-muted { color: var(--muted); }
:root[data-theme="dark"] .tag-orange { background: rgba(249, 115, 22, .12); color: #fdba74; border-color: rgba(253, 186, 116, .25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-orange { background: rgba(249, 115, 22, .12); color: #fdba74; border-color: rgba(253, 186, 116, .25); } }

.status { display: inline-flex; align-items: center; gap: .4rem; height: 22px; padding: 0 8px 0 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-border); }
.status-draft { color: var(--muted); background: var(--surface-3); border-color: var(--border); }
.status-plan { color: var(--info); background: var(--info-soft); border-color: var(--info-border); }
.chip { display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.chip-ok { background: rgba(74, 222, 128, .14); color: #86efac; }
.chip-warn { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.chip-muted { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }

/* Alerts & Toasts */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid; margin-bottom: 1.25rem; font-size: .88rem; }
.alert > .i { margin-top: 1px; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.alert-error strong, .alert-error li { color: var(--text); } .alert-error strong { color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-border); }
.flash { padding: .75rem 1rem; border-radius: var(--r-md); margin-bottom: 1rem; border: 1px solid var(--border); background: var(--surface); }
.flash-ok { background: var(--ok-soft); border-color: var(--ok-border); } .flash-error { background: var(--danger-soft); border-color: var(--danger-border); } .flash-warn { background: var(--warn-soft); border-color: var(--warn-border); }

.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .65rem; padding: .8rem .8rem .8rem .95rem; border-radius: var(--r-lg); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: toast-in .28s cubic-bezier(.2, .9, .3, 1.2); font-size: .87rem; }
.toast p { margin: 0; flex: 1; padding-top: 1px; }
.toast > .i { margin-top: 1px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; }
.toast-ok > .i { background: var(--ok-soft); color: var(--ok); }
.toast-error > .i { background: var(--danger-soft); color: var(--danger); }
.toast-warn > .i { background: var(--warn-soft); color: var(--warn); }
.toast-x { border: 0; background: none; color: var(--faint); padding: 2px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.toast-x:hover { color: var(--text); background: var(--hover); }
.toast-x .i { width: 16px; height: 16px; }
.toast.is-leaving { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* Dialog (Bestätigung) */
.confirm-dialog { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(420px, calc(100vw - 2rem)); }
.confirm-dialog::backdrop { background: rgba(9, 10, 14, .5); backdrop-filter: blur(3px); }
.confirm-dialog[open] { animation: pop .16s ease-out; }
.cd-body { display: flex; gap: 1rem; padding: 1.4rem 1.4rem 1.1rem; }
.cd-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); flex: none; }
.cd-body h2 { margin: .1rem 0 .35rem; font-size: 1.05rem; }
.cd-body p { margin: 0; color: var(--muted); font-size: .88rem; }
.cd-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.4rem; background: var(--surface-2); border-top: 1px solid var(--border); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.btn-danger-solid { background: #be123c; border-color: #be123c; color: #fff; }
.btn-danger-solid:hover { background: #9f1239; border-color: #9f1239; }

/* Leere Zustände */
.empty { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 3.5rem 1.5rem; }
.empty h2, .empty h1 { margin: .9rem 0 .1rem; font-size: 1.15rem; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 0 1rem; }
.empty-art { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--brand-grad); color: #fff; box-shadow: 0 14px 30px -10px rgba(225, 29, 72, .55); }
.empty-art .i { width: 34px; height: 34px; position: relative; }
.empty-ring { position: absolute; inset: -14px; border-radius: 30px; border: 1px dashed var(--border-strong); }
.empty-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 38px; border: 1px solid var(--border); opacity: .6; }
.empty-sm { padding: 2rem 1rem; gap: .2rem; }
.empty-sm p { margin: .5rem 0 .6rem; font-size: .86rem; }
.empty-sm p strong { color: var(--text); }
.empty-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }

/* ------------------------------------------------------------------ Dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label ic" "value value" "foot foot"; align-items: start; gap: .1rem .5rem; padding: 1.05rem 1.15rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; overflow: hidden; }
.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-label { grid-area: label; font-size: .8rem; font-weight: 550; color: var(--muted); padding-top: .2rem; }
.kpi-ic { grid-area: ic; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tone-bg); color: var(--tone-fg); }
.kpi-value { grid-area: value; font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.kpi-foot { grid-area: foot; display: flex; align-items: center; gap: .25rem; font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.kpi-foot strong { color: var(--text); }
.kpi-bars { grid-area: foot; display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: .35rem; }
.kpi-bars .bar { flex: 1; min-height: 3px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--border); border-width: 0; }
.kpi-bars .bar.is-today { background: var(--brand-grad); }
.bar.h-0 { height: 3px; } .bar.h-1 { height: 10%; } .bar.h-2 { height: 20%; } .bar.h-3 { height: 30%; } .bar.h-4 { height: 40%; } .bar.h-5 { height: 50%; }
.bar.h-6 { height: 60%; } .bar.h-7 { height: 70%; } .bar.h-8 { height: 80%; } .bar.h-9 { height: 90%; } .bar.h-10 { height: 100%; }
.kpi-bars .bar:not(.is-today):not(.h-0) { background: color-mix(in srgb, var(--brand-1) 28%, var(--surface-3)); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }

.onair { position: relative; overflow: hidden; color: #fff; background: #12080c; border-color: #2a1219; display: flex; flex-direction: column; isolation: isolate; }
.onair-glow { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(225, 29, 72, .55), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(249, 115, 22, .42), transparent 60%), linear-gradient(160deg, #1a0a10, #0f0a0c); }
.onair-glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.onair-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.35rem 0; }
.onair-badge { display: inline-flex; align-items: center; gap: .5rem; margin: 0; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.onair-main { display: flex; gap: 1.5rem; align-items: center; padding: 1.25rem 1.35rem 1.35rem; flex: 1; }
.cover { width: 152px; height: 152px; border-radius: 14px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .08); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onair-meta { min-width: 0; }
.onair-kicker { margin: 0 0 .3rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.onair-title { margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.onair-artist { margin: .3rem 0 0; font-size: 1.05rem; color: rgba(255, 255, 255, .78); }
.onair-stat { display: inline-flex; align-items: center; gap: .4rem; margin: .9rem 0 0; padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.onair-err { margin: .6rem 0 0; font-size: .8rem; color: #fcd34d; }
.onair-show { padding: .95rem 1.35rem 1.1rem; background: rgba(0, 0, 0, .28); border-top: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.show-line { display: flex; align-items: center; gap: .8rem; }
.show-dot { width: 10px; height: 34px; border-radius: 4px; background: var(--brand-grad); flex: none; }
.show-info { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.show-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); font-weight: 600; }
.show-info strong { font-size: .95rem; color: #fff; }
.show-hosts { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.show-time { font-variant-numeric: tabular-nums; font-size: .85rem; color: rgba(255, 255, 255, .85); font-weight: 600; white-space: nowrap; }
.link-light { color: #fff; }
.show-progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; margin-top: .8rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.show-progress::-webkit-progress-bar { background: rgba(255, 255, 255, .14); border-radius: 99px; }
.show-progress::-webkit-progress-value { background: var(--brand-grad); border-radius: 99px; }
.show-progress::-moz-progress-bar { background: var(--brand-grad); border-radius: 99px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 1rem; }
.quick a { display: flex; align-items: center; gap: .65rem; padding: .65rem .7rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .12s, background .12s, box-shadow .12s; min-width: 0; }
.quick a:hover { border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow-xs); }
.quick a > span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.quick strong { font-size: .82rem; font-weight: 600; }
.quick small { font-size: .72rem; color: var(--muted); }
.q-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--tone-bg); color: var(--tone-fg); flex: none; }
.q-ic .i { width: 17px; height: 17px; }
.inventory { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--border); }
.inventory div { padding: .75rem .5rem; text-align: center; }
.inventory div + div { border-left: 1px solid var(--border); }
.inventory dt { font-size: .68rem; color: var(--muted); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inventory dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.feed, .tracks, .mini-list, .agenda { list-style: none; margin: 0; padding: .35rem 0; }
.feed a { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.25rem; text-decoration: none; color: var(--text); transition: background .1s; }
.feed a:hover, .mini-list a:hover { background: var(--surface-2); }
.feed-body { display: grid; min-width: 0; flex: 1; gap: .1rem; }
.feed-top { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.feed-text { font-size: .84rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.feed .unread .feed-top strong { font-weight: 700; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-1); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.dot-new.is-read { background: transparent; box-shadow: none; }

.tracks li { display: flex; align-items: center; gap: .75rem; padding: .55rem 1.25rem; }
.track-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); color: var(--muted); flex: none; border: 1px solid var(--border); }
.track-ic .i { width: 16px; height: 16px; }
.track-ic.is-now { background: var(--brand-grad); color: #fff; border-color: transparent; }
.track-body { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.track-body strong { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-body span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracks time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.mini-list a { display: flex; align-items: center; gap: .8rem; padding: .6rem 1.25rem; text-decoration: none; color: var(--text); }
.ml-body { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.ml-body strong { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-body small { font-size: .76rem; color: var(--muted); }
.thumb-sm { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--surface-3); color: var(--faint); border: 1px solid var(--border); flex: none; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-sm.is-round { border-radius: 50%; }
.thumb-sm .avatar { width: 100%; height: 100%; border-radius: 0; }
.thumb-color { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; }

.agenda li { display: flex; align-items: center; gap: .85rem; padding: .6rem 1.25rem; }
.ag-time { display: grid; width: 48px; line-height: 1.2; text-align: right; flex: none; }
.ag-time strong { font-size: .88rem; font-variant-numeric: tabular-nums; }
.ag-time small { font-size: .7rem; color: var(--muted); }
.ag-bar { width: 4px; align-self: stretch; min-height: 34px; border-radius: 4px; background: var(--border-strong); flex: none; }
.ag-body { display: grid; line-height: 1.3; min-width: 0; }
.ag-body strong { font-size: .86rem; font-weight: 600; } .ag-body small { font-size: .76rem; color: var(--muted); }

/* ------------------------------------------------------------------ Tabellen & Listen */
.table-card { overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-count { margin: 0 0 0 auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.search-box { position: relative; display: flex; align-items: center; flex: 1; min-width: 200px; max-width: 360px; margin: 0; }
.search-box > .i { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search-box input { padding-left: 34px; padding-right: 36px; height: 36px; }
.search-box .kbd { position: absolute; right: 8px; pointer-events: none; }
.search-box input:focus + .kbd, .search-box input:not(:placeholder-shown) + .kbd { display: none; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--border); }
.segmented a, .segmented button { display: inline-flex; align-items: center; gap: .35rem; height: 28px; padding: 0 .75rem; border-radius: 6px; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 550; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.segmented a:hover, .segmented button:hover { color: var(--text); }
.segmented [aria-current], .segmented [aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; padding: .6rem 1rem; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.col-narrow { width: 1%; }
.col-actions { width: 1%; text-align: right; }
.cell-title { display: flex; align-items: center; gap: .8rem; min-width: 220px; }
.cell-text { display: grid; min-width: 0; line-height: 1.35; }
.cell-text small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.row-link { color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--accent); text-decoration: underline; }
.cell-date { display: grid; line-height: 1.3; white-space: nowrap; }
.cell-date strong { font-weight: 550; color: var(--text); font-size: .84rem; } .cell-date small { color: var(--muted); font-size: .75rem; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { vertical-align: middle; }
.row-actions form { display: inline; margin: 0; }
.table tbody tr .row-actions .icon-btn { color: var(--muted); }
.table tbody tr:hover .row-actions .icon-btn { color: var(--text-2); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; background: var(--border-strong); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.swatch-line { display: inline-flex; align-items: center; gap: .5rem; } .swatch-line code { color: var(--muted); }
.slug { color: var(--muted); background: var(--surface-3); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }
.with-ic { display: inline-flex; align-items: center; gap: .3rem; } .with-ic .i { color: var(--faint); }
.avatars { display: inline-flex; vertical-align: middle; } .avatars .avatar { box-shadow: 0 0 0 2px var(--surface); } .avatars .avatar + .avatar { margin-left: -6px; }
.host-names { font-size: .82rem; }
.no-match td { padding: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.pager-btns { display: flex; gap: .4rem; }
.filters { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }

/* Inbox */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox-item { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--border); transition: background .1s; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-link { display: grid; grid-template-columns: 8px 32px minmax(150px, 210px) minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem 1rem; flex: 1; min-width: 0; text-decoration: none; color: var(--text-2); }
.inbox-from { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.inbox-from strong { font-weight: 550; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-body { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .86rem; }
.inbox-body strong { font-weight: 500; color: var(--text); }
.inbox-item.unread .inbox-from strong, .inbox-item.unread .inbox-body strong { font-weight: 700; }
.inbox-item:not(.unread) .inbox-body strong { color: var(--text-2); }
.inbox-time { font-size: .76rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inbox-item.unread .inbox-time { color: var(--text); font-weight: 600; }
.inbox-del { margin: 0 .75rem 0 0; }
.inbox-item .inbox-del .icon-btn { opacity: .55; }
.inbox-item:hover .inbox-del .icon-btn, .inbox-del .icon-btn:focus-visible { opacity: 1; }

/* Einzelnachricht */
.msg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.msg-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1.1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.msg-head > div { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.msg-head a { font-size: .85rem; }
.song-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.song-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-grad); color: #fff; flex: none; }
.song-ic .i { width: 24px; height: 24px; }
.song-card div { display: grid; line-height: 1.3; }
.song-card small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.song-card strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; } .song-card span { color: var(--text-2); }
.msg-quote { margin: 1.25rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--brand-1); background: var(--accent-soft); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1rem; color: var(--text); }
.msg-subject { font-size: 1.15rem; margin: 0 0 .75rem; }
.msg-body { font-size: .95rem; line-height: 1.65; color: var(--text); }
.details { display: grid; grid-template-columns: 90px 1fr; gap: .55rem .9rem; margin: 0; font-size: .84rem; }
.details dt { color: var(--muted); font-weight: 500; } .details dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* Benutzer */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.role-card { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); }
.role-card p { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; align-items: start; max-width: 1000px; }
.profile-card { display: grid; justify-items: center; text-align: center; gap: .15rem; }
.profile-card .avatar { margin-bottom: .6rem; }
.profile-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0; }
.profile-card p.muted { margin: 0 0 .6rem; font-size: .85rem; }

/* ------------------------------------------------------------------ Formulare */
.stack { display: grid; gap: 1.2rem; }
.stack-sm { display: grid; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field > label, legend, .field-label { font-weight: 600; font-size: .84rem; color: var(--text); }
.req { color: var(--accent); }
input, select, textarea { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); padding: .55rem .7rem; width: 100%; min-height: 38px;
  box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text) 18%); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--brand-1); box-shadow: none; margin: 0; flex: none; }
input[type="file"] { padding: .4rem; }
input.input-lg { font-size: 1.05rem; font-weight: 550; min-height: 44px; }
.mono { font-family: var(--mono); font-size: .86rem; }
textarea { resize: vertical; line-height: 1.55; }
textarea.code { font-family: var(--mono); font-size: .82rem; background: var(--surface-2); }
select { -webkit-appearance: none; appearance: none; padding-right: 2.1rem; cursor: pointer; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-ic { position: absolute; right: 9px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .55rem; }
legend { padding: 0; margin-bottom: .45rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 400; font-size: .88rem; cursor: pointer; }
.field > label.check-sm, .check-sm { font-size: .8rem; font-weight: 450; color: var(--muted); }
.form-side .field-image > label:first-child { font-family: var(--font); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.settings-fields .dz-preview { aspect-ratio: auto; height: 140px; }
.settings-fields .dz-preview img { object-fit: contain; padding: .75rem; }

.input-group { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.input-group input { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
.input-group input:focus { box-shadow: none; }
.ig-prefix { display: flex; align-items: center; gap: .4rem; padding: 0 .65rem; background: var(--surface-2); color: var(--muted); border-right: 1px solid var(--border); font-size: .8rem; white-space: nowrap; flex: none; }
.ig-prefix .i { width: 15px; height: 15px; }
.ig-mono { font-family: var(--mono); font-size: .78rem; }
.socials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.socials-grid .ig-prefix { width: 118px; }

.switch { position: relative; display: flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--text); padding: .1rem 0; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); flex: none; transition: background .16s; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s cubic-bezier(.3, .7, .4, 1.3); }
.switch input:checked + .switch-track { background: var(--btn-grad); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); outline: 2px solid var(--accent); outline-offset: 2px; }

.color-field { display: flex; align-items: center; gap: .6rem; }
.color-field input[type="color"] { width: 44px; height: 38px; padding: 3px; cursor: pointer; flex: none; }
.color-field code { padding: .35rem .55rem; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); text-transform: uppercase; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-check > span { display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .65rem 0 .3rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .8rem; font-weight: 500; transition: border-color .12s, background .12s; }
.chip-ok { width: 14px; height: 14px; display: none; color: var(--accent); }
.chip-check input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.chip-check input:checked + span .chip-ok { display: inline-block; }
.chip-check input:focus-visible + span { box-shadow: var(--ring); }

.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.radio-card > span > span:last-child { display: grid; line-height: 1.3; }
.radio-card small { color: var(--muted); font-size: .78rem; }
.radio-card input:checked + span { border-color: var(--accent); box-shadow: var(--ring); }
.radio-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-pick { grid-template-columns: 1fr 1fr; gap: .6rem; }
.role-pick legend { grid-column: 1 / -1; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--hover); }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }

/* Bild-Upload */
.dropzone { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); transition: border-color .15s, background .15s; overflow: hidden; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; min-height: 0; padding: 0; }
.dz-preview:empty, .dz-preview:not(:has(img)) { display: none; }
.dz-preview { aspect-ratio: 16 / 10; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border-bottom: 1px solid var(--border); }
.dz-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-body { display: grid; justify-items: center; gap: .35rem; padding: 1.1rem .9rem; text-align: center; font-size: .8rem; color: var(--muted); }
.has-file .dz-body { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: .7rem .85rem; align-items: center; }
.dz-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); box-shadow: var(--shadow-xs); }
.has-file .dz-ic { width: 30px; height: 30px; grid-row: span 2; }
.dz-text strong { color: var(--text); font-weight: 600; }
.dz-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dz-file:empty { display: none; }
.dz-file { font-family: var(--mono); font-size: .74rem; color: var(--text-2); }
.dz-audio { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-bottom: 1px solid var(--border); color: var(--muted); position: relative; z-index: 3; background: var(--surface); }
.dz-audio audio { width: 100%; height: 34px; }

/* Markdown-Editor */
.md-editor { border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
.md-editor:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.md-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 5px 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.md-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--surface-3); }
.md-tabs button { height: 28px; padding: 0 .75rem; border: 0; border-radius: 5px; background: none; font: inherit; font-size: .8rem; font-weight: 550; color: var(--muted); cursor: pointer; }
.md-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.md-toolbar { display: flex; align-items: center; gap: 1px; }
.md-toolbar button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
.md-toolbar button .i { width: 16px; height: 16px; }
.md-toolbar button:hover { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.md-toolbar[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.md-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 4px; }
.md-editor textarea { border: 0; border-radius: 0; box-shadow: none; min-height: 320px; padding: 1rem 1.1rem; font-family: var(--mono); font-size: .86rem; line-height: 1.7; background: var(--surface); }
.md-editor textarea:focus { box-shadow: none; }
.md-preview { padding: 1rem 1.25rem; min-height: 320px; }
.md-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .8rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.md-foot .help { margin: 0; font-size: .74rem; }
.md-count { font-size: .74rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose { font-size: .95rem; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 1.25rem; margin: 1.2em 0 .5em; } .prose h3 { font-size: 1.05rem; margin: 1em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose img { max-width: 100%; border-radius: var(--r); }
.prose blockquote { border-left: 3px solid var(--brand-1); margin: 1em 0; padding: .2rem 0 .2rem 1rem; color: var(--text-2); }
.prose code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }

/* Zweispaltiges Bearbeitungsformular */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.form-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--top-h) + 1rem); }
.side-box { padding: 1.1rem 1.15rem; }
.side-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; font-family: var(--font); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side-title .i { color: var(--accent); }
.side-actions { display: grid; gap: .65rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.side-links { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; }
.side-links a { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; }
.side-links a:hover { color: var(--text); }
.link-danger { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; padding: 0; font: inherit; color: var(--danger); cursor: pointer; }
.link-danger:hover { text-decoration: underline; }
.danger-zone { display: none; }
.narrow-form { max-width: 760px; }

.savebar { position: sticky; bottom: 1rem; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: .65rem .7rem .65rem 1.1rem;
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.savebar-state { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .82rem; color: var(--muted); min-width: 0; }
.savebar-state span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savebar-actions { display: flex; gap: .4rem; flex: none; }
.savebar.is-dirty { border-color: var(--accent-border); }
.savebar.is-dirty .savebar-state { color: var(--text); font-weight: 550; }
.savebar.is-dirty .savebar-state .i { color: var(--accent); }

/* ------------------------------------------------------------------ Sendeplan */
.week-card { margin-bottom: 1rem; overflow: hidden; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; padding: 0; font-size: .76rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .35rem; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
.week-scroll { overflow-x: auto; }
.week-grid { --hour: 26px; display: grid; grid-template-columns: 54px repeat(7, minmax(108px, 1fr)); grid-template-rows: auto auto; min-width: 820px; padding: 0 1rem 0 0; }
.week-corner { border-bottom: 1px solid var(--border); }
.week-day-label { display: grid; justify-items: center; padding: .6rem 0 .55rem; border-bottom: 1px solid var(--border); line-height: 1.25; }
.week-day-label strong { font-size: .8rem; font-weight: 650; }
.week-day-label small { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.week-day-label.is-today strong { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--btn-grad); color: #fff; }
.week-hours { position: relative; height: calc(var(--hour) * 24); font-size: .68rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.week-hours span { position: absolute; right: 8px; transform: translateY(-50%); }
.week-hours span[data-hour="0"] { transform: translateY(2px); }
.week-hours span[data-hour="24"] { transform: translateY(-100%); }
.week-day { border-left: 1px solid var(--border); }
.week-day.is-today { background: color-mix(in srgb, var(--brand-1) 4%, transparent); }
.week-day-col { position: relative; height: calc(var(--hour) * 24); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) * 2 - 1px), var(--border) calc(var(--hour) * 2 - 1px), var(--border) calc(var(--hour) * 2)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), color-mix(in srgb, var(--border) 45%, transparent) calc(var(--hour) - 1px), color-mix(in srgb, var(--border) 45%, transparent) var(--hour)); }
.week-block { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; padding: 4px 7px; border-radius: 7px; font-size: .72rem; line-height: 1.25;
  background: var(--brand-1); color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .12s, box-shadow .12s, filter .12s; }
.week-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(0,0,0,.18); }
.week-block strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-block span { opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.week-block:hover { filter: brightness(1.05); box-shadow: 0 6px 16px -4px rgba(0,0,0,.35); z-index: 2; }
.week-block.is-short span { display: none; }
.week-block.on-light { color: #111; }
.now-line { position: absolute; left: -1px; right: 0; height: 2px; background: #ef4444; z-index: 3; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px var(--surface); }
.week-help { display: flex; align-items: center; gap: .4rem; padding: .8rem 1.25rem; margin: 0; border-top: 1px solid var(--border); }
.sched-form { overflow: visible; }
.schedule-table td { padding: .5rem .75rem; }
.schedule-table input[type="time"] { min-width: 112px; font-variant-numeric: tabular-nums; }
.schedule-table select { min-width: 140px; }
.show-select .swatch { position: absolute; left: 10px; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; }
.show-select select { padding-left: 1.85rem; min-width: 200px; }
.schedule-table tr:target, .schedule-table tr.is-flash { background: var(--accent-soft) !important; box-shadow: inset 3px 0 0 var(--brand-1); }
.schedule-table tr.is-deleted td:not(.col-actions) { opacity: .4; text-decoration: line-through; }
.new-row td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.del-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--muted); cursor: pointer; position: relative; }
.del-toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.del-toggle:hover { background: var(--danger-soft); color: var(--danger); }
.del-toggle:has(input:checked) { background: var(--danger); color: #fff; }
.del-toggle:has(input:focus-visible) { box-shadow: var(--ring); }
.sched-form .card-head { border-bottom: 1px solid var(--border); }
.sched-form .savebar { margin: 0 .75rem .75rem; }

/* ------------------------------------------------------------------ Einstellungen */
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.settings-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--top-h) + 1rem); }
.settings-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: var(--r-md); text-decoration: none; color: var(--text-2); border: 1px solid transparent; }
.settings-nav a:hover { background: var(--hover); }
.settings-nav a[aria-current] { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); color: var(--text); }
.sn-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); color: var(--muted); flex: none; }
.settings-nav a[aria-current] .sn-ic { background: var(--brand-grad); color: #fff; }
.sn-text { display: grid; line-height: 1.3; min-width: 0; }
.sn-text strong { font-size: .86rem; font-weight: 600; } .sn-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-fields .field-checkbox { padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
.preview-card { position: sticky; top: calc(var(--top-h) + 1rem); }
.live-test { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.live-test p { margin: 0; }
.live-test output { grid-column: 1 / -1; display: block; white-space: pre-wrap; font-family: var(--mono); font-size: .8rem; }
.live-test output:empty { display: none; }
.live-test output.ok { color: var(--ok); padding: .7rem .85rem; border-radius: var(--r); background: var(--ok-soft); border: 1px solid var(--ok-border); }
.live-test output.err { color: var(--danger); padding: .7rem .85rem; border-radius: var(--r); background: var(--danger-soft); border: 1px solid var(--danger-border); }

/* Live-Farbvorschau (Mini-Website) */
.site-preview { --p: #e11d48; --a: #f97316; --on-p: #fff; --sp-bg: #ffffff; --sp-surface: #f4f4f6; --sp-text: #111; --sp-muted: #5f6370;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--sp-bg); color: var(--sp-text); box-shadow: var(--shadow-md); font-size: .78rem; }
.site-preview.is-dark { --sp-bg: #0d0e12; --sp-surface: #181a20; --sp-text: #f2f2f5; --sp-muted: #a3a7b1; }
.sp-nav { display: flex; align-items: center; gap: .5rem; padding: .65rem .8rem; border-bottom: 1px solid color-mix(in srgb, var(--sp-text) 10%, transparent); }
.sp-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--p); color: var(--on-p); overflow: hidden; }
.sp-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--sp-bg); }
.sp-logo .i { width: 15px; height: 15px; }
.sp-nav strong { font-family: var(--font-display); font-size: .82rem; }
.sp-links { margin-left: auto; display: flex; gap: 6px; } .sp-links i { width: 26px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--sp-text) 16%, transparent); }
.sp-hero { padding: 1.3rem .9rem 1.2rem; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--a) 26%, transparent), transparent 60%), radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--p) 22%, transparent), transparent 60%); }
.sp-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--sp-text); font-weight: 700; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); }
.sp-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; margin: .55rem 0 .3rem; letter-spacing: -.01em; }
.sp-text { color: var(--sp-muted); margin: 0 0 .85rem; }
.sp-btns { display: flex; gap: .4rem; }
.sp-btn { display: inline-flex; align-items: center; gap: .3rem; height: 28px; padding: 0 .75rem; border-radius: 999px; background: var(--p); color: var(--on-p); font-weight: 650; font-size: .72rem; }
.sp-btn .i { width: 12px; height: 12px; }
.sp-btn-ghost { background: transparent; color: var(--sp-text); border: 1px solid color-mix(in srgb, var(--sp-text) 22%, transparent); }
.sp-player { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--sp-surface); border-top: 1px solid color-mix(in srgb, var(--sp-text) 8%, transparent); }
.sp-play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a); color: #fff; flex: none; }
.sp-play .i { width: 13px; height: 13px; }
.sp-track { display: grid; line-height: 1.2; } .sp-track small { color: var(--sp-muted); }
.sp-wave { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.sp-wave i { width: 3px; border-radius: 2px; background: var(--p); height: 40%; }
.sp-wave i:nth-child(2) { height: 80%; } .sp-wave i:nth-child(3) { height: 55%; } .sp-wave i:nth-child(4) { height: 100%; } .sp-wave i:nth-child(5) { height: 65%; } .sp-wave i:nth-child(6) { height: 35%; } .sp-wave i:nth-child(7) { height: 75%; }
.sp-codes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 0; }
.sp-codes div { padding: .55rem .7rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.sp-codes dt { font-size: .7rem; color: var(--muted); } .sp-codes dd { margin: 0; font-family: var(--mono); font-size: .82rem; text-transform: uppercase; }

/* ------------------------------------------------------------------ Login & Installer */
.auth-page { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; background: #0d0709; color: #fff; }
.auth-glow { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 15% 10%, rgba(225, 29, 72, .6), transparent 60%), radial-gradient(60% 55% at 95% 85%, rgba(249, 115, 22, .5), transparent 60%), radial-gradient(40% 40% at 60% 40%, rgba(225, 29, 72, .18), transparent 70%), #0d0709; }
.auth-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.auth-brand-top { display: flex; align-items: center; gap: .8rem; }
.auth-wordmark { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.auth-pitch { max-width: 480px; }
.auth-kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.88); }
.auth-kicker .live-dot { background: #ef4444; animation: pulse 2s infinite; }
.auth-headline { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 1.6rem; }
.auth-headline span { background: linear-gradient(90deg, #fda4af, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.82); font-size: .95rem; }
.auth-points .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fda4af; }
.auth-eq { display: flex; align-items: flex-end; gap: 5px; height: 56px; opacity: .85; }
.auth-eq span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(225,29,72,.85), rgba(249,115,22,.7)); height: 30%; animation: eq 1.6s ease-in-out infinite alternate; }
.auth-eq span:nth-child(3n) { height: 70%; animation-delay: -.4s; } .auth-eq span:nth-child(4n) { height: 45%; animation-delay: -.8s; } .auth-eq span:nth-child(5n) { height: 90%; animation-delay: -1.1s; } .auth-eq span:nth-child(7n) { height: 20%; animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.auth-eq span { transform-origin: bottom; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: .4rem; }
.auth-card > .muted { margin-bottom: 1.6rem; }
.auth-form { gap: 1.05rem; margin-top: .25rem; }
.auth-form input { min-height: 44px; }
.auth-form .btn-primary { margin-top: .35rem; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.auth-foot a { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--text); }
.auth-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.auth-mobile-brand { display: none; align-items: center; gap: .6rem; margin-bottom: 2rem; font-family: var(--font-display); font-size: 1.1rem; }

.install-page { background: var(--bg); }
.install { max-width: 620px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.install-brand { display: flex; align-items: center; gap: .7rem; justify-content: center; margin-bottom: 1.5rem; font-family: var(--font-display); font-size: 1.15rem; }
.install-card h1 { font-size: 1.45rem; margin-bottom: .5rem; }
.install-card h2 { margin: 1.4rem 0 .6rem; font-size: 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; font-size: .88rem; }
.checks li { display: flex; align-items: center; gap: .5rem; }
.check-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; }
.check-ic .i { width: 13px; height: 13px; }
.checks .ok .check-ic { background: var(--ok-soft); color: var(--ok); }
.checks .fail { color: var(--danger); font-weight: 600; } .checks .fail .check-ic { background: var(--danger-soft); color: var(--danger); }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; width: 100%; max-width: 420px; }

/* ------------------------------------------------------------------ Rolle Moderator/DJ + Prüfstatus */
.tag-violet { background: #f3f0ff; color: #5b21b6; border-color: #ddd6fe; }
:root[data-theme="dark"] .tag-violet { background: rgba(139, 92, 246, .14); color: #c4b5fd; border-color: rgba(196, 181, 253, .25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-violet { background: rgba(139, 92, 246, .14); color: #c4b5fd; border-color: rgba(196, 181, 253, .25); } }
.status-review { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-border); }
.text-warn { color: var(--warn); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.alert-info strong, .alert-warn strong { color: var(--text); }
.alert-info div, .alert-warn div { color: var(--text-2); }
.alert-live { align-items: center; background: var(--accent-soft); border-color: var(--accent-border); color: var(--text-2); }
.alert-live strong { color: var(--accent); }
.cell-sub { display: block; margin-top: .25rem; font-size: .74rem; color: var(--muted); }
.role-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.linked-login { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.cell-text > .tag { justify-self: start; }

/* Live-Hinweis „Du bist gerade on air“ */
.dj-live { position: relative; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-lg); color: #fff; overflow: hidden; isolation: isolate;
  background: var(--btn-grad); box-shadow: 0 16px 34px -16px rgba(225, 29, 72, .65); }
.dj-live::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.dj-live-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.dj-live-ic .i { width: 22px; height: 22px; }
.dj-live-text { display: grid; gap: .1rem; flex: 1; min-width: 0; line-height: 1.3; }
.dj-live-text strong { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.dj-live-text span { font-size: .85rem; color: rgba(255, 255, 255, .88); }
.dj-live .live-dot.on { background: #fff; animation: pulse-w 2s infinite; }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.quick-1 { grid-template-columns: 1fr; }
.dj-col { display: grid; gap: 1rem; align-content: start; min-width: 0; }

/* Musikwünsche */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .85rem; align-items: start; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.req-list > li:last-child { border-bottom: 0; }
.req-item.is-show { background: color-mix(in srgb, var(--brand-1) 5%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand-1); }
.req-item.is-done .req-main { opacity: .6; }
.req-main { min-width: 0; }
.req-top { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; font-size: .86rem; }
.req-time { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.req-song { display: flex; align-items: center; gap: .4rem; margin: .2rem 0 0; font-size: .95rem; font-weight: 600; color: var(--text); }
.req-song .i { color: var(--brand-1); }
.req-song span { overflow-wrap: anywhere; }
.req-greet { margin: .5rem 0 0; padding: .55rem .8rem; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; font-size: .85rem; color: var(--text-2); }
.req-item.is-show .req-greet { border-left-color: var(--brand-2); }
.req-act { display: flex; justify-content: flex-end; min-width: 8.6rem; margin: 0; padding-top: .1rem; }
.req-item .tag .live-dot { width: 6px; height: 6px; }

/* Ablauf Entwurf → Prüfung → Veröffentlichung */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; }
.steps li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .95rem; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: var(--surface); }
.steps li > span:last-child { display: grid; line-height: 1.3; }
.steps strong { font-size: .84rem; } .steps small { font-size: .76rem; color: var(--muted); }
.step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 700; flex: none; }
.dj-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.dj-flow li { position: relative; display: flex; gap: .7rem; padding: .35rem 0 .55rem; }
.dj-flow li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 1.15rem; bottom: -.2rem; width: 2px; background: var(--border); }
.dj-flow li > span:last-child { display: grid; line-height: 1.3; }
.dj-flow strong { font-size: .84rem; color: var(--muted); font-weight: 600; } .dj-flow small { font-size: .74rem; color: var(--faint); }
.dj-flow-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: .15rem; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); flex: none; }
.dj-flow .is-done .dj-flow-dot { border-color: var(--ok); background: var(--ok); }
.dj-flow .is-done strong { color: var(--text-2); }
.dj-flow .is-current .dj-flow-dot { border-color: var(--accent); background: var(--accent); box-shadow: var(--ring); }
.dj-flow .is-current strong { color: var(--text); } .dj-flow .is-current small { color: var(--muted); }
.dj-note { display: flex; align-items: center; gap: .35rem; margin: .9rem 0 0; }
.dj-read { max-width: 820px; }
.dj-read-img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--r-md); margin-bottom: 1.2rem; }
.dj-read-title { font-size: 1.5rem; margin: 0 0 .5rem; }
.dj-read-lead { font-size: 1.02rem; color: var(--text-2); margin: 0 0 1rem; }

/* Profil */
.dj-id { display: grid; justify-items: center; text-align: center; gap: .2rem; }
.dj-id-photo { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin-bottom: .5rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); }
.dj-id-photo img { width: 100%; height: 100%; object-fit: cover; }
.dj-id-photo .avatar-xl { width: 100%; height: 100%; font-size: 1.8rem; }
.dj-id .profile-name { margin: 0; }
.dj-id .muted { margin: .5rem 0 0; }
.dj-id .side-actions { width: 100%; }

/* Meine Sendungen */
.show-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.show-card { overflow: hidden; display: flex; flex-direction: column; }
.show-card-band { position: relative; display: grid; place-items: center; height: 120px; background: var(--brand-grad); color: rgba(255, 255, 255, .85); }
.show-card-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-card-band > .i { width: 34px; height: 34px; }
.show-card-live { position: absolute; left: .75rem; top: .75rem; display: inline-flex; align-items: center; gap: .4rem; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); }
.show-card-body { display: grid; gap: .5rem; padding: 1.1rem 1.25rem 1.15rem; flex: 1; align-content: start; }
.show-card-body h2 { margin: 0; font-size: 1.1rem; }
.show-card-body p { margin: 0; }
.show-card-k { display: flex; align-items: center; gap: .35rem; margin: .4rem 0 0; font-family: var(--font); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.show-card-k .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.slot-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.slot-list li { display: inline-flex; gap: .35rem; align-items: center; height: 28px; padding: 0 .65rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--text-2); }
.slot-list strong { color: var(--text); font-weight: 650; }
.show-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.dj-next { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 0; }

/* ------------------------------------------------------------------ Responsiv */

/* ------------------------------------------------------------------ Service-Module (Newsticker, Wetter, Verkehr) */
:root { --t-gefahr: #dc2626; --t-unfall: #ea580c; --t-sperrung: #9333ea; --t-stau: #f59e0b; --t-blitzer: #2563eb; --t-baustelle: #ca8a04; }
.wx { width: 1.6em; height: 1.6em; flex: none; display: inline-block; vertical-align: middle; overflow: visible; }
.side-sub { margin: .4rem 0 -.2rem; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-foot { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--border); }
.svc-out { display: block; white-space: pre-wrap; font-family: var(--mono); font-size: .8rem; }
.svc-out:empty { display: none; }
.svc-out.ok { color: var(--ok); padding: .7rem .85rem; border-radius: var(--r); background: var(--ok-soft); border: 1px solid var(--ok-border); }
.svc-out.err { color: var(--danger); padding: .7rem .85rem; border-radius: var(--r); background: var(--danger-soft); border: 1px solid var(--danger-border); }
.live-test-side { display: grid; grid-template-columns: 1fr; margin-top: 1rem; padding: .8rem; }
.svc-api { margin: .8rem 0 0; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start; padding: .8rem .9rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.feed-main { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-width: 0; }
.feed-main small { flex-basis: 100%; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-edit { display: contents; }
.feed-edit > summary { list-style: none; justify-self: end; }
.feed-edit > summary::-webkit-details-marker { display: none; }
.feed-edit[open] > summary { background: var(--hover); }
.feed-edit > .feed-form { grid-column: 1 / -1; }
.feed-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 9rem; gap: .8rem; align-items: end; }
.feed-form .switch, .feed-form .feed-actions, .feed-form .svc-out, .feed-new-title { grid-column: 1 / -1; }
.feed-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.feed-new { margin-top: .4rem; padding: 1rem; border-radius: var(--r-md); border: 1px dashed var(--border-strong); }
.feed-new-title { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; }
.ticker-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .84rem; }
.ticker-preview li { line-height: 1.4; color: var(--text-2); }
.ticker-preview .tag { margin-right: .2rem; }
.geo-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.geo-input { max-width: none; }
.geo-country { width: 160px; }
.geo-results { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.geo-results:empty { display: none; }
.geo-hit { display: grid; width: 100%; text-align: left; gap: .1rem; padding: .55rem .8rem; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.geo-hit:hover, .geo-hit:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.geo-hit small { color: var(--muted); font-size: .78rem; }
.geo-msg { font-size: .84rem; color: var(--muted); }
.geo-ok { color: var(--ok); font-weight: 600; }
.geo-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.wx-admin-now { display: flex; align-items: center; gap: .8rem; }
.wx-admin-ic { width: 56px; height: 56px; }
.wx-admin-now div { display: grid; line-height: 1.3; }
.wx-admin-now strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.wx-admin-now span { color: var(--muted); font-size: .82rem; }
.wx-admin-days { list-style: none; margin: .9rem 0; padding: .8rem 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; text-align: center; font-size: .74rem; }
.wx-admin-days li { display: grid; justify-items: center; gap: .15rem; color: var(--muted); }
.wx-admin-days .wx { width: 30px; height: 30px; }
.wx-admin-alert { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; padding: .45rem .6rem; border-radius: var(--r); font-size: .8rem; font-weight: 600; border-left: 3px solid var(--lvl, #dc2626); background: color-mix(in srgb, var(--lvl, #dc2626) 12%, var(--surface)); }
.wx-admin-alert.lvl-1 { --lvl: #eab308; } .wx-admin-alert.lvl-2 { --lvl: #f97316; } .wx-admin-alert.lvl-3 { --lvl: #dc2626; } .wx-admin-alert.lvl-4 { --lvl: #9333ea; }
.tchip { --t: var(--t-gefahr); display: inline-flex; align-items: center; gap: .35rem; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .7rem; font-weight: 650; white-space: nowrap; color: var(--text); background: color-mix(in srgb, var(--t) 16%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.tchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t); }
.tchip-unfall { --t: var(--t-unfall); } .tchip-sperrung { --t: var(--t-sperrung); } .tchip-stau { --t: var(--t-stau); } .tchip-blitzer { --t: var(--t-blitzer); } .tchip-baustelle { --t: var(--t-baustelle); }
.tr-adm { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.table tr.is-expired td { opacity: .55; }
.tr-adm-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .45rem; font-size: .84rem; }
.tr-adm-list li { display: flex; gap: .6rem; align-items: baseline; line-height: 1.4; }
.tr-adm-list em { color: var(--danger); font-style: normal; font-weight: 600; }
.roads-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.roads-field legend { font-size: .84rem; font-weight: 550; color: var(--text); margin-bottom: .4rem; padding: 0; }
.roads-filter { max-width: none; margin-bottom: .5rem; }
.roads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .35rem; max-height: 196px; overflow-y: auto; padding: .45rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.road-chip > span { width: 100%; justify-content: center; height: 28px; padding: 0 .4rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.onair-read { list-style: none; margin: 0; padding: .4rem 0; counter-reset: none; }
.onair-read li { --t: var(--t-gefahr); display: flex; gap: .9rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); }
.onair-read li:last-child { border-bottom: 0; }
.onair-read .tr-unfall { --t: var(--t-unfall); } .onair-read .tr-sperrung { --t: var(--t-sperrung); } .onair-read .tr-stau { --t: var(--t-stau); } .onair-read .tr-blitzer { --t: var(--t-blitzer); }
.onair-read-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--t) 18%, transparent); color: var(--text); font-weight: 700; font-size: .85rem; }
.onair-read p { margin: 0; }
.onair-read-line { font-size: 1.12rem; font-weight: 600; line-height: 1.45; color: var(--text); }
.onair-read-line .tchip { vertical-align: .15em; margin-right: .2rem; }
.onair-read-text { margin-top: .3rem !important; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.onair-read-meta { margin-top: .35rem !important; font-size: .78rem; color: var(--muted); }
.dj-tr-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .84rem; }
.dj-tr-mine li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.dj-tr-mine li > span { display: block; line-height: 1.45; min-width: 0; }
.dj-tr-mine small { display: block; color: var(--muted); }
@media (max-width: 640px) {
  .feed-form, .geo-fields { grid-template-columns: 1fr; }
  .geo-country { width: auto; flex: 1; }
  .onair-read li { padding: .85rem 1rem; }
}

@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-4, .span-7, .span-5 { grid-column: span 12; }
  .design-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
}
@media (max-width: 1080px) {
  .form-grid, .msg-grid { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .settings { grid-template-columns: 1fr; gap: 1rem; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: .35rem; padding-bottom: .25rem; scrollbar-width: none; }
  .settings-nav a { flex: none; padding: .45rem .7rem .45rem .45rem; }
  .settings-nav .sn-text small { display: none; }
  .sn-ic { width: 28px; height: 28px; }
  .account-grid { grid-template-columns: 1fr; }
  .role-pick-3, .role-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .25s cubic-bezier(.3, .7, .3, 1); box-shadow: var(--shadow-lg); background: var(--surface); }
  .nav-open .sidebar { transform: none; }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(9, 10, 14, .45); backdrop-filter: blur(2px); }
  .sidebar .sb-close, .topbar .nav-toggle { display: inline-grid; }
  .topbar { padding: 0 .75rem 0 .5rem; gap: .35rem; }
  .btn-site span, .um-name, .usermenu summary > .i-sm { display: none; }
  .btn-site { width: 36px; padding: 0; }
  .live-pill { max-width: 170px; }
  .live-pill .live-label { display: none; }
  .content { padding: 1.25rem 1rem 6rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-brand { display: flex; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .crumbs li:not(:last-child) { display: none; }
  .crumbs li + li::before { display: none; }
  .live-pill { display: none; }
  .kpis { gap: .6rem; }
  .kpi { padding: .85rem .9rem; }
  .kpi-value { font-size: 1.65rem; }
  .kpi-label { font-size: .74rem; }
  .kpi-ic { width: 28px; height: 28px; } .kpi-ic .i { width: 15px; height: 15px; }
  .onair-main { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cover { width: 112px; height: 112px; }
  .onair-title { font-size: 1.45rem; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .form-row, .socials-grid, .role-pick, .role-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dj-live { flex-wrap: wrap; }
  .dj-live .btn { width: 100%; }
  .req-item { grid-template-columns: 32px minmax(0, 1fr); padding-left: 1rem; padding-right: 1rem; }
  .req-act { grid-column: 2; justify-content: flex-start; min-width: 0; }
  .show-cards { grid-template-columns: 1fr; }
  .toolbar-count { display: none; }
  .search-box { max-width: none; }
  .inbox-link { grid-template-columns: 8px 32px minmax(0, 1fr) auto; grid-template-areas: "dot av from time" "dot av body body"; row-gap: .15rem; }
  .inbox-link .dot-new { grid-area: dot; } .inbox-link .avatar { grid-area: av; } .inbox-from { grid-area: from; } .inbox-body { grid-area: body; } .inbox-time { grid-area: time; }
  .table th, .table td { padding: .6rem .75rem; }
  .cell-title { min-width: 180px; }
  .savebar { bottom: .5rem; padding: .5rem .5rem .5rem .8rem; }
  .savebar-state { display: none; }
  .savebar-actions { width: 100%; justify-content: flex-end; }
  .card-pad { padding: 1.1rem; }
  .card-head { padding: .85rem 1rem; }
  .feed a, .tracks li, .mini-list a, .agenda li { padding-left: 1rem; padding-right: 1rem; }
  .feed-time { flex-direction: column-reverse; align-items: flex-end; gap: .2rem; }
  .toasts { left: 1rem; right: 1rem; width: auto; bottom: 1rem; }
  .live-test { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .table-card .table thead { display: none; }
  .table-card .table, .table-card .table tbody { display: block; }
  .table-card .table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
  .table-card .table tbody tr:last-child { border-bottom: 0; }
  .table-card .table td { border: 0; padding: 0; }
  .table-card .table td.cell-main { flex: 1 0 100%; }
  .table-card .table .cell-date { display: inline-flex; gap: .35rem; align-items: baseline; }
  .table-card .row-actions { margin-left: auto; }
  .table-card .row-actions a[target] { display: none; }
  .table-card .table tbody tr { gap: .45rem .6rem; }
  .table-card .cell-title { min-width: 0; }
  .search-box .kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .sidebar, .topbar, .savebar, .toasts { display: none !important; } .shell { display: block; } }

/* ================================================================== Schema v5: Menü, Chat-Moderation, Partner */

/* ---------------------------------------------- Menüverwaltung */
.menu-legend { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.menu-opts { display: contents; }
.menu-head, .menu-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 60px 60px 150px 92px; align-items: center; gap: .75rem; }
.menu-head { padding: .55rem 1.1rem .55rem 1rem; font-size: .7rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-row { padding: .7rem 1.1rem .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); transition: background .12s, box-shadow .12s, opacity .12s; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: var(--surface-2); }
.menu-row.is-dragging { opacity: .45; }
.menu-row.is-drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.menu-row.is-drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-row.is-moved { animation: menuflash .9s ease-out; }
@keyframes menuflash { from { background: var(--accent-soft); } }
.menu-row.is-off .menu-label, .menu-row.is-off .menu-sub { opacity: .55; }
.menu-grip { display: grid; place-items: center; width: 26px; height: 32px; color: var(--faint); cursor: grab; border-radius: 6px; }
.menu-grip:hover { color: var(--text-2); background: var(--hover); }
.menu-grip .i { width: 18px; height: 18px; }
.menu-main { min-width: 0; display: grid; gap: .2rem; }
.menu-title-line { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.menu-label { flex: 1; min-width: 0; max-width: 340px; height: 34px; font-weight: 600; }
.menu-label::placeholder { color: var(--text); opacity: .9; }
.menu-label:not(:focus)::placeholder { font-weight: 600; }
.menu-sub { margin: 0; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sub .mono { font-size: .74rem; }
.menu-note { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .76rem; color: var(--warn, #b45309); }
.menu-note-legal { color: var(--info); }
.menu-link-fields { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.menu-url { flex: 1; min-width: 180px; max-width: 340px; height: 32px; font-size: .8rem; }
.menu-switch { font-size: .8rem; gap: .5rem; }
@media (min-width: 1241px) { .menu-switch .switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.menu-switch input:disabled + .switch-track { opacity: .55; cursor: not-allowed; }
.menu-col select { height: 34px; font-size: .82rem; }
.menu-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.menu-actions .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.menu-kbd { display: flex; align-items: center; gap: .35rem; margin: 0; padding: .75rem 1.1rem; border-top: 1px solid var(--border); }
.menu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.menu-cols .help { grid-column: 1 / -1; margin: 0; }
.menu-tips { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .84rem; color: var(--text-2); line-height: 1.45; }
.menu-tips .i { vertical-align: -2px; color: var(--muted); }
@media (max-width: 1240px) {
  .menu-head { display: none; }
  .menu-row { grid-template-columns: 26px minmax(0, 1fr) auto; row-gap: .5rem; }
  .menu-grip { grid-row: 1 / 3; align-self: start; }
  .menu-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; grid-column: 2 / 4; grid-row: 2; }
  .menu-col { width: 200px; }
  .menu-actions { grid-column: 3; grid-row: 1; align-self: start; }
}
@media (max-width: 640px) { .menu-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------- Chat-Moderation */
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .kpis-3 { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; } .chat-kpis .kpi { padding: .7rem .75rem; } .chat-kpis .kpi-value { font-size: 1.5rem; } .chat-kpis .kpi-label { font-size: .7rem; } }
.cm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: cmpulse 2s infinite; }
@keyframes cmpulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .cm-live-dot { animation: none; } }
.cm-list { list-style: none; margin: 0; padding: .4rem .5rem; max-height: 62vh; min-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.cm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .6rem .7rem; border-radius: var(--r-md, 10px); }
.cm:hover { background: var(--surface-2); }
.cm-body { min-width: 0; }
.cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0; font-size: .82rem; }
.cm-nick { font-weight: 650; color: var(--text); }
.cm-time { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.cm-ip { color: var(--faint); font-size: .72rem; }
.cm-text { margin: .15rem 0 0; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }
.cm-hidden .cm-text, .cm-hidden .cm-nick { opacity: .5; text-decoration: line-through; text-decoration-color: var(--border-strong); }
.cm-review { background: color-mix(in srgb, #f59e0b 9%, transparent); }
.cm-staff { box-shadow: inset 3px 0 0 var(--accent); }
.cm-pinned { background: var(--info-soft); }
.cm-actions { display: flex; align-items: center; gap: 1px; opacity: .55; transition: opacity .12s; }
.cm:hover .cm-actions, .cm:focus-within .cm-actions { opacity: 1; }
.cm-actions form { margin: 0; }
.icon-btn-ok:hover { color: var(--ok); background: var(--ok-soft); }
.cm-ban { position: relative; }
.cm-ban > summary { list-style: none; }
.cm-ban > summary::-webkit-details-marker { display: none; }
.cm-ban-menu { width: 230px; }
.cm-ban.is-up .cm-ban-menu { top: auto; bottom: calc(100% + 6px); }
.cm-ban-menu form, .menu.cm-ban-menu { margin: 0; border-top: 0; padding: .4rem; }
.cm-ban-title { margin: .2rem .5rem .35rem; font-size: .8rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ban-hint { margin: .4rem .5rem .2rem; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.cm-empty { list-style: none; }
.cm-compose { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem 1rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cm-compose-main { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.cm-as { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); font-weight: 450; }
.cm-as strong { color: var(--text); }
.cm-compose-row { display: flex; gap: .5rem; }
.cm-compose-row input { flex: 1; min-width: 0; }
.cm-bans { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cm-bans li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .6rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.cm-bans li div { display: grid; min-width: 0; font-size: .84rem; }
.cm-bans small { color: var(--muted); font-size: .74rem; }
.cm-hours { display: flex; align-items: center; gap: .5rem; }
.cm-hours input { flex: 1; min-width: 0; }
.cm-hours span { color: var(--muted); font-size: .82rem; }
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; justify-content: center; }
.avatar-sm { width: 28px; height: 28px; font-size: .66rem; }

/* ---------------------------------------------- Partner */
.cell-with-thumb { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.partner-thumb { display: grid; place-items: center; width: 84px; height: 44px; flex: none; padding: 5px 8px; border-radius: 9px; background: #fff; border: 1px solid var(--border); color: var(--faint); }
.partner-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.partner-thumb.is-empty { background: var(--surface-3); }
.partner-places { display: inline-flex; gap: 3px; }
.pp { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: .68rem; font-weight: 600; color: var(--faint); background: var(--surface-3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.pp.is-on { color: var(--ok); background: var(--ok-soft); text-decoration: none; }
.table td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; color: var(--text); }
/* Logo-Vorschau auf Schachbrett: zeigt, dass transparente PNG/WebP transparent bleiben */
.partner-logo-box .dz-preview { background-color: #fff; background-image: linear-gradient(45deg, #eceef2 25%, transparent 25%, transparent 75%, #eceef2 75%), linear-gradient(45deg, #eceef2 25%, transparent 25%, transparent 75%, #eceef2 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.partner-logo-box .dz-preview img { object-fit: contain; }

/* ------------------------------------------------------------------ Schema v6: Podcasts, Galerie, Hörer-Konten */
.list-filter { display: flex; align-items: center; gap: .5rem; }
.list-filter .select-wrap { min-width: 200px; }
.podcast-admin-extra { margin-top: 1.25rem; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.feed-list li { display: grid; gap: .4rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.feed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.feed-url { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: .74rem; padding: .3rem .5rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.album-admin-grid { list-style: none; margin: 0; padding: 1rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.album-admin { display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); overflow: hidden; background: var(--surface); }
.album-admin-cover { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-3); color: var(--muted); }
.album-admin-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-admin-body { display: grid; gap: .25rem; padding: .7rem .8rem .2rem; justify-items: start; }
.album-admin .row-actions { justify-content: flex-end; padding: .3rem .5rem .5rem; }
.gallery-manager { margin-top: 1.25rem; }
.gallery-upload { display: grid; gap: .6rem; border-bottom: 1px solid var(--border); }
.gallery-upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.gallery-upload-row .field { flex: 1 1 260px; }
.photo-list { list-style: none; margin: 0; padding: 0; }
.photo-row { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: .9rem 1.1rem .9rem .8rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.photo-row.is-dragging { opacity: .45; }
.photo-row.is-drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.photo-row.is-drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.photo-row.is-moved { animation: menuflash .9s ease-out; }
.photo-row .menu-grip { margin-top: 2.2rem; cursor: grab; color: var(--muted); }
.photo-thumb { display: block; border-radius: 8px; overflow: hidden; background: var(--surface-3); aspect-ratio: 4 / 3; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-fields { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.photo-fields .check { grid-column: 1 / -1; }
.photo-row .menu-actions { display: flex; flex-direction: column; gap: .3rem; }
.is-missing { border-color: #d97706 !important; }
.help-warn { color: #b45309; }
@media (max-width: 720px) {
  .photo-row { grid-template-columns: 90px minmax(0, 1fr); }
  .photo-row .menu-grip { display: none; }
  .photo-row .photo-thumb, .photo-row .photo-fields { grid-row: 1; }
  .photo-row .menu-actions { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: flex-end; }
}

/* Demo-Modus (config demo_readonly) */
.demo-ro { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: .55rem 1.25rem; font-size: .875rem;
  background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--accent-border); }
.demo-ro svg { color: var(--accent); }
.demo-ro strong { font-weight: 650; }

/* Demo-Zugänge auf der Login-Seite (config demo_logins) */
.auth-card:has(.demo-logins) { max-width: 440px; }
.demo-logins { display: grid; gap: 1rem; margin-top: .25rem; }
.demo-login { gap: .8rem; padding: 1.1rem 1.15rem 1.15rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.demo-login-head { display: flex; align-items: flex-start; gap: .75rem; }
.demo-login-head h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.demo-login-head p { margin: 0; }
.demo-login-ic .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.demo-login input[readonly] { background: var(--surface); color: var(--text); }
