/* Öffentliches Basis-Theme (schlicht, funktional). Markenfarben kommen aus /theme.css (--primary, --accent, --on-primary). */
:root {
  --bg: #ffffff; --surface: #f4f4f6; --text: #16161a; --muted: #5d5d6a; --border: #dcdce3;
  --primary: #d6005c; --on-primary: #fff; --accent: #0a84ff;
  --radius: 12px; --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #111114; --surface: #1c1c21; --text: #f2f2f5; --muted: #a6a6b3; --border: #2e2e36; }
}
:root[data-theme="dark"] { --bg: #111114; --surface: #1c1c21; --text: #f2f2f5; --muted: #a6a6b3; --border: #2e2e36; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); padding-bottom: 72px; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
:root:not([data-theme="light"]) a { color: color-mix(in srgb, var(--primary) 70%, #fff); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) a { color: color-mix(in srgb, var(--primary) 85%, #000); } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1.5rem 0 1rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.main { min-height: 50vh; outline: none; }
[hidden] { display: none !important; }

/* Header / Navigation */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { text-decoration: none; color: var(--text) !important; font-weight: 800; font-size: 1.25rem; }
.brand-logo { max-height: 44px; width: auto; display: block; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text) !important; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--surface); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -6px; } .nav-toggle-bar::after { position: absolute; top: 6px; }
@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
}

/* Buttons / Formulare */
.btn, .btn-primary { display: inline-block; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .6rem 1.1rem; border-radius: 999px; font: inherit; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }
.form { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.form label, .form-inline label { display: grid; gap: .3rem; font-weight: 600; }
input, textarea, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .7rem; width: 100%; }
.form-inline fieldset { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.form-inline label { flex: 1 1 160px; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-ok { background: #e3f7e8; color: #0f5223; }
.alert-error { background: #fde8e8; color: #7a1010; }
.notice { color: var(--muted); }

/* Hero + Player */
.hero { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); color: var(--on-primary); padding: 2rem 0; }
.hero-inner { display: grid; gap: 1.5rem; }
.hero h1 { margin: 0; }
.hero-slogan { margin: .25rem 0 0; opacity: .9; }
.player { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 1.25rem; align-items: center; background: rgba(0,0,0,.25); border-radius: var(--radius); padding: 1rem; color: #fff; }
.player a { color: #fff !important; }
.player-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,.1); }
.player-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: .4rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; display: inline-block; }
.player-title { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; margin: .2rem 0 0; line-height: 1.2; }
.player-artist { margin: .2rem 0 .6rem; opacity: .9; }
.player-show, .player-listeners { margin: .2rem 0; font-size: .95rem; }
.player-controls { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.player-status { min-height: 1.2em; font-size: .85rem; margin: .4rem 0 0; }
.btn-play { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .7rem 1.3rem; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.icon-play { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.is-playing .icon-play { width: 13px; height: 16px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.volume input { width: 140px; accent-color: #fff; padding: 0; border: 0; background: transparent; }
@media (max-width: 560px) { .player { grid-template-columns: 1fr; } .player-cover { max-width: 220px; } }

/* Mini-Player */
.miniplayer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); }
.miniplayer-inner { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.btn-play-small { padding: 0; width: 44px; height: 44px; justify-content: center; background: var(--primary); color: var(--on-primary); flex: none; }
.miniplayer-cover { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.miniplayer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.miniplayer-title, .miniplayer-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer-title { font-weight: 700; } .miniplayer-artist { color: var(--muted); font-size: .9rem; }
.miniplayer-popup { font-size: .85rem; }
.page-popup { padding: 0; } .page-popup .miniplayer { display: none; }
.popup { padding: 1rem; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); min-height: 100vh; }
.popup-station { color: var(--on-primary); font-weight: 800; margin: 0 0 .75rem; }
.popup .player { grid-template-columns: 1fr; }

/* Blöcke / Karten */
.block { margin: 2.5rem auto; }
.home-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.home-grid .block { margin: 2rem 0 0; }
.subhead { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--muted); }
.more { font-weight: 600; }
.more::after { content: " →"; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: 1rem; }
.card-title { margin: .25rem 0 .5rem; font-size: 1.15rem; }
.card-title a { color: var(--text) !important; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta, .meta { color: var(--muted); font-size: .9rem; }
.event-date { margin: 0; display: flex; align-items: baseline; gap: .4rem; color: var(--primary); font-weight: 700; }
.event-day { font-size: 1.8rem; line-height: 1; }
.onair { display: flex; gap: 1rem; align-items: center; border-left: 6px solid var(--show-color, var(--primary)); padding: .75rem 1rem; background: var(--surface); border-radius: 8px; }
.onair h3 { margin: .1rem 0; }
.onair-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.onair-time { margin: 0; color: var(--muted); font-size: .9rem; }
.upcoming { list-style: none; padding: 0; margin: 0; }
.upcoming li { display: flex; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.upcoming span { color: var(--muted); min-width: 5.5rem; }

/* Historie */
.history { list-style: none; padding: 0; margin: 0; }
.history-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.history-item time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3rem; }
.history-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.history-text { display: flex; flex-direction: column; line-height: 1.3; }
.history-text span { color: var(--muted); font-size: .9rem; }

/* Sendeplan */
.tablist { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tablist button { border: 0; background: none; font: inherit; color: var(--text); padding: .7rem 1rem; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tablist button[aria-selected="true"] { border-bottom-color: var(--primary); font-weight: 700; }
.tab-short { display: none; }
@media (max-width: 700px) { .tab-long { display: none; } .tab-short { display: inline; } }
.tablist { display: none; } .js .tablist { display: flex; }
.js .tabpanel-title { position: absolute; left: -9999px; }
.schedule-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.schedule-item { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-left: 6px solid var(--show-color, var(--border)); background: var(--surface); border-radius: 8px; margin-bottom: .5rem; flex-wrap: wrap; }
.schedule-item.is-now { outline: 2px solid var(--primary); }
.schedule-time { font-variant-numeric: tabular-nums; min-width: 7.5rem; font-weight: 600; }
.schedule-show { flex: 1; display: flex; flex-direction: column; }
.schedule-show small { color: var(--muted); }
.badge-live { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; }

/* Team */
.team-grid { list-style: none; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-card a { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--text) !important; }
.team-card img, .avatar-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.avatar-placeholder { display: grid; place-items: center; background: var(--surface); font-size: 3rem; font-weight: 800; color: var(--muted); }
.team-card p { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.portrait { max-width: 320px; border-radius: var(--radius); }
.people { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.people a { display: flex; align-items: center; gap: .5rem; }
.people img { border-radius: 50%; object-fit: cover; }
.social-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

/* Inhalte */
.prose { max-width: 70ch; }
.prose img { border-radius: 8px; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1rem 0; padding: .2rem 1rem; color: var(--muted); }
.prose pre { background: var(--surface); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-img { width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.facts dt { font-weight: 700; } .facts dd { margin: 0; }
.slots { padding-left: 1.2rem; }
.podcast-audio { width: 100%; margin: 1rem 0; }
.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 2rem 0; }

/* Footer */
.site-footer { margin-top: 4rem; background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.footer-copy { color: var(--muted); grid-column: 1 / -1; margin: 0; }
.app-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.app-badge { display: inline-flex; flex-direction: column; background: #000; color: #fff !important; text-decoration: none; padding: .4rem .9rem; border-radius: 8px; font-weight: 700; line-height: 1.1; }
.app-badge small { font-weight: 400; font-size: .7rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
