/*
Theme Name: Radioplattform
Description: Senderseite von radioplattform.eu – Layouts Magazin, Bühne und Studio, Farben und Logo live aus dem Portal.
Version: 1.0.0
Requires PHP: 8.2
Author: WebInx
Text Domain: radioplattform
*/

:root {
    --rp-primaer: #2F6FED;
    --rp-akzent-text: #1F4FB8;
    --rp-sekundaer: #283583;
    --rp-dunkel: #111618;
    --rp-grund: #F4F4F2;
    --rp-karte: #FFFFFF;
    --rp-text: #111618;
    --rp-leise: #5B6167;
    --rp-linie: #E4E4E0;
    --rp-schrift: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --rp-schrift-titel: var(--rp-schrift);
    --rp-radius: 14px;
    --rp-breite: 1280px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-bottom: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rp-grund); color: var(--rp-text); font: 16px/1.5 var(--rp-schrift); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rp-akzent-text); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rp-primaer) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--rp-schrift-titel); line-height: 1.15; margin: 0; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--rp-karte); padding: 10px 14px; border-radius: 8px; }
.springen:focus { left: 8px; }
.breite { max-width: var(--rp-breite); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .breite { padding: 0 16px; } }

/* ---------- Kopf ---------- */
.kopf { background: var(--rp-karte); border-bottom: 1px solid var(--rp-linie); position: relative; z-index: 20; }
.kopf .breite { display: flex; align-items: center; gap: 16px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 58px; width: auto; display: block; }
.logo-text { font: 800 22px var(--rp-schrift-titel); }
.menue { flex: 1; }
.menue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 700 15px var(--rp-schrift-titel); }
.menue .current-menu-item > a, .menue .current_page_parent > a { color: var(--rp-akzent-text); text-decoration: underline; text-underline-offset: 6px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
    background: var(--rp-primaer); color: #fff; font: 800 15px var(--rp-schrift-titel); cursor: pointer; text-align: center; }
.knopf:hover { color: #fff; filter: brightness(.94); }
.knopf svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.knopf.rahmen { background: transparent; color: var(--rp-akzent-text); box-shadow: inset 0 0 0 2px var(--rp-primaer); }
.knopf.rahmen:hover { color: var(--rp-akzent-text); background: color-mix(in srgb, var(--rp-primaer) 8%, transparent); }
.menue-knopf { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--rp-grund); cursor: pointer; place-items: center; }
.menue-knopf svg { width: 22px; height: 22px; stroke: var(--rp-text); }
@media (max-width: 900px) {
    .kopf .breite { flex-wrap: wrap; }
    .logo img { height: 44px; }
    .menue-knopf { display: grid; margin-left: auto; }
    .kopf .knopf.live { display: none; }
    .menue { flex-basis: 100%; display: none; }
    .menue.offen { display: block; }
    .menue ul { flex-direction: column; gap: 0; font-size: 17px; }
    .menue li a { display: block; padding: 12px 0; border-top: 1px solid var(--rp-linie); }
}

/* Leiste unter dem Kopf: On Air, Jetzt läuft, Wetter, Verkehr */
.leiste { background: var(--rp-dunkel); color: #fff; font-size: 14px; }
.leiste .breite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 9px; padding-bottom: 9px; }
.leiste a { color: #fff; text-decoration: underline; }
.leiste .rechts { margin-left: auto; }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF3B47; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .leiste .optional { display: none; } .leiste .rechts { margin-left: 0; } }

/* ---------- Inhalt ---------- */
main { display: block; }
.inhalt { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 640px) { .inhalt { padding-top: 18px; gap: 32px; } }
.abschnitt-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.abschnitt-kopf::before { content: ''; width: 6px; height: 28px; border-radius: 3px; background: var(--rp-primaer); flex: none; }
.abschnitt-kopf h2 { font-size: 26px; font-weight: 800; }
.abschnitt-kopf a { margin-left: auto; font-weight: 700; color: var(--rp-akzent-text); white-space: nowrap; }
.karte { background: var(--rp-karte); border-radius: var(--rp-radius); overflow: hidden; }
.raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.raster.klein { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.zeile { display: flex; flex-wrap: wrap; gap: 24px; }
.dachzeile { font-size: 12px; font-weight: 700; color: var(--rp-akzent-text); text-transform: uppercase; letter-spacing: .04em; }
.leise { color: var(--rp-leise); }

/* News-Karten */
.news-karte { display: flex; flex-direction: column; }
.news-karte .bild { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; background: var(--rp-linie); }
.news-karte .text { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.news-karte h3 { font-size: 18px; font-weight: 800; line-height: 1.25; }
.news-karte.ohne-bild { border-top: 6px solid var(--rp-sekundaer); }
.news-quer { display: flex; gap: 14px; padding: 12px; align-items: flex-start; }
.news-quer .bild { width: 130px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; flex: none; }
.news-quer h3 { font-size: 17px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
@media (max-width: 640px) { .news-quer .bild { width: 96px; } .news-quer h3 { font-size: 15px; } }
.aufmacher { flex: 2 1 560px; display: flex; flex-direction: column; }
.aufmacher .bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.aufmacher .text { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.aufmacher h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.aufmacher p { margin: 0; font-size: 17px; color: #3A3F44; }
.seitenspalte { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.hinweis-rot { background: var(--rp-primaer); color: #fff; border-radius: var(--rp-radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.hinweis-rot:hover { color: #fff; filter: brightness(.95); }
.hinweis-rot b { font: 800 17px var(--rp-schrift-titel); display: block; }
.hinweis-rot svg { width: 30px; height: 30px; stroke: #fff; flex: none; }

/* Sendungen */
.sendung { position: relative; }
.sendung img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--rp-sekundaer); }
.sendung .platzhalter { aspect-ratio: 16 / 9; background: var(--rp-sekundaer); color: #fff; display: grid; place-items: center; font: 800 22px var(--rp-schrift-titel); padding: 12px; text-align: center; }
.sendung .text { padding: 14px 16px; }
.sendung b { font-family: var(--rp-schrift-titel); display: block; }
.sendung.jetzt { box-shadow: 0 0 0 3px var(--rp-primaer); }
.sendung.jetzt .zeit { color: var(--rp-akzent-text); font-weight: 700; }
.sendung.vorbei { opacity: .65; }
.zeit { font-size: 13px; color: var(--rp-leise); }

/* Playlist */
.titel-liste { display: flex; flex-direction: column; }
.titel-zeile { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #EEEEEB; }
.titel-zeile:last-child { border-bottom: 0; }
.titel-zeile img, .titel-zeile .cover-leer { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--rp-linie); }
.titel-zeile .name { flex: 1; min-width: 0; }
.titel-zeile .name b, .titel-zeile .name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titel-zeile .uhr { font-size: 13px; color: var(--rp-leise); }
.titel-zeile .laeuft { font-size: 12px; font-weight: 700; color: var(--rp-akzent-text); }
.suche-feld { display: flex; align-items: center; gap: 10px; border: 1px solid #D5D6D2; border-radius: 10px; padding: 0 14px; background: var(--rp-karte); }
.suche-feld svg { width: 18px; height: 18px; stroke: var(--rp-leise); flex: none; }
.suche-feld input { border: 0; outline: 0; flex: 1; font: inherit; padding: 12px 0; background: transparent; color: var(--rp-text); min-width: 0; }
.box { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.box h2 { font-size: 20px; font-weight: 800; }

/* Wetter */
.wetter { background: var(--rp-sekundaer); color: #fff; }
.wetter .gross { display: flex; align-items: center; gap: 16px; }
.wetter .grad { font: 800 44px var(--rp-schrift-titel); }
.wetter .stunden { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 14px; }
.wetter .quelle { font-size: 12px; opacity: .85; }
.wetter svg { width: 54px; height: 54px; }

/* Studio */
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-reihe a { flex: 1 1 140px; border: 2px solid var(--rp-primaer); color: var(--rp-akzent-text); border-radius: 10px; padding: 12px; font-weight: 700; text-align: center; }

/* App-Hinweis */
.app-hinweis { background: var(--rp-dunkel); color: #fff; border-radius: 18px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.app-hinweis h2 { font-size: 28px; font-weight: 800; }
.app-hinweis p { margin: 8px 0 0; color: #D4D6D8; font-size: 17px; }
.app-hinweis .text { flex: 1 1 420px; }
.app-hinweis a.weiss { background: #fff; color: var(--rp-dunkel); border-radius: 10px; padding: 12px 18px; font-weight: 700; }
.app-hinweis a.weiss:hover { color: var(--rp-dunkel); }

/* ---------- Bühne ---------- */
.buehne { background: color-mix(in srgb, var(--rp-primaer) 22%, #17181c); color: #fff; padding: 56px 0 64px; transition: background-color .6s; }
.buehne .breite { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.buehne .cover { width: min(380px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45); background: rgba(255,255,255,.08); }
.buehne .text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.buehne .ueber { font-weight: 700; letter-spacing: .08em; font-size: 14px; text-transform: uppercase; }
.buehne h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.02; }
.buehne .interpret { font-size: clamp(20px, 2.4vw, 26px); color: #F1E6E8; }
.buehne .knopf { min-height: 60px; font-size: 18px; padding: 0 30px; }
.buehne .knopf.hell { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.buehne a:not(.knopf) { color: #fff; text-decoration: underline; }
.kachel { border-radius: 18px; padding: 28px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.kachel:hover { color: #fff; filter: brightness(.95); }
.kachel b { font: 800 24px var(--rp-schrift-titel); }

/* ---------- Studio (dunkel) ---------- */
body.vorlage-studio { --rp-grund: #111618; --rp-karte: #1C2226; --rp-text: #ECEDEE; --rp-leise: #9AA1A7; --rp-linie: #262C30; --rp-akzent-text: #FF8A92; }
body.vorlage-studio .kopf { background: var(--rp-grund); }
body.vorlage-studio .logo img { background: #fff; border-radius: 10px; padding: 6px 10px; }
body.vorlage-studio .aufmacher p { color: #C9CDD0; }
body.vorlage-studio .titel-zeile { border-color: var(--rp-linie); }
.on-air { flex: 3 1 560px; position: relative; border-radius: 22px; overflow: hidden; min-height: 440px; background: var(--rp-karte); }
.on-air > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.on-air .text { position: absolute; inset: auto 0 0 0; padding: 32px; background: linear-gradient(transparent, rgba(17,22,24,.95)); display: flex; flex-direction: column; gap: 10px; color: #fff; }
.on-air h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }

/* ---------- Artikel und Seiten ---------- */
.artikel-raster { display: flex; flex-wrap: wrap; gap: 48px; }
.artikel { flex: 999 1 640px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.artikel h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.artikel .meta { color: var(--rp-leise); font-size: 15px; }
.artikel figure { margin: 0; }
.artikel figcaption { font-size: 13px; color: var(--rp-leise); margin-top: 6px; }
.artikel .bild-gross { width: 100%; border-radius: var(--rp-radius); display: block; }
.fliesstext { font-size: 18px; line-height: 1.7; }
.fliesstext > * { margin: 0 0 1em; }
.fliesstext h2 { font-size: 26px; margin-top: 1.2em; }
.fliesstext h3 { font-size: 21px; margin-top: 1.1em; }
.fliesstext a { color: var(--rp-akzent-text); text-decoration: underline; }
.fliesstext img { border-radius: 10px; }
.fliesstext iframe { max-width: 100%; border: 0; border-radius: 10px; }
.fliesstext blockquote { margin-left: 0; padding-left: 18px; border-left: 4px solid var(--rp-primaer); font-style: italic; }
.fliesstext table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.fliesstext td, .fliesstext th { border: 1px solid var(--rp-linie); padding: 6px 10px; }
.brotkrumen { font-size: 14px; color: var(--rp-leise); }
.brotkrumen a { color: var(--rp-leise); }
.schlagworte { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rp-linie); }
.schlagworte a { background: var(--rp-karte); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.seitenleiste { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.seiten-titel { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.seiten-titel h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.tage { display: flex; flex-wrap: wrap; gap: 8px; }
.tage button { padding: 10px 18px; border-radius: 999px; background: var(--rp-karte); font-weight: 700; border: 0; cursor: pointer; font: 700 15px var(--rp-schrift); color: var(--rp-text); min-height: 44px; }
.tage button[aria-selected="true"] { background: var(--rp-primaer); color: #fff; }
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 14px; }
.plan .uhrzeit { width: 120px; font: 700 18px var(--rp-schrift-titel); }
.plan img, .plan .platzhalter { width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--rp-sekundaer); }
.plan .was { flex: 1 1 300px; }
.plan .was b { font: 800 20px var(--rp-schrift-titel); display: block; }
.person { text-align: center; padding: 18px; }
.person img, .person .leer { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; background: var(--rp-linie); }
.seiten-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.seiten-nav .page-numbers { padding: 10px 16px; border-radius: 10px; background: var(--rp-karte); font-weight: 700; }
.seiten-nav .current { background: var(--rp-primaer); color: #fff; }

/* ---------- Fuß und Player ---------- */
.fuss { background: var(--rp-karte); border-top: 1px solid var(--rp-linie); }
.fuss .breite { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; color: var(--rp-leise); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.player-platz { height: 72px; }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 72px; border: 0; width: 100%; display: block; box-shadow: 0 -4px 16px rgba(0,0,0,.08); background: var(--rp-karte); }
.app-hinweis .knopf-reihe a.weiss { border: 0; color: var(--rp-dunkel); flex: 0 1 auto; padding: 14px 22px; }
@media (max-width: 640px) { .raster.klein { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .sendung .text { padding: 10px 12px; } .sendung b { font-size: 15px; } .aufmacher p { display: none; } }
