/*!
 * Webradio für das GSI-CMS – Player-Leiste, Radio-Seite, Sendeplan, Wunschbox, Studio, Boxen
 * Farben lassen sich im Layout über die Variablen --wr-… anpassen.
 * Modul © 2026 gameserver-install.de · by rumpel
 */
:root {
    --wr-accent: #ff3d6e;
    --wr-accent-2: #ffb347;
    --wr-bg: #12131a;
    --wr-card: rgba(255, 255, 255, .055);
    --wr-line: rgba(255, 255, 255, .1);
    --wr-fg: #f3f4f8;
    --wr-muted: rgba(243, 244, 248, .62);
    --wr-live: #ff2d55;
    --wr-ok: #2fd27a;
    --wr-radius: 16px;
    --wr-viz-1: var(--wr-accent);
    --wr-viz-2: var(--wr-accent-2);
}

/* ------------------------------------------------------------ Icons Play/Pause */
.wr-ico-play, .wr-ico-pause { display: inline-block; width: 1em; height: 1em; position: relative; }
.wr-ico-play::before { content: ""; position: absolute; left: .2em; top: 0; border-style: solid; border-width: .5em 0 .5em .85em; border-color: transparent transparent transparent currentColor; }
.wr-ico-pause::before, .wr-ico-pause::after { content: ""; position: absolute; top: 0; width: .32em; height: 1em; background: currentColor; border-radius: 2px; }
.wr-ico-pause::before { left: .1em; }
.wr-ico-pause::after { right: .1em; }
.wr-ico-pause, .wr-playing [data-wr-play] .wr-ico-play, .wr-loading [data-wr-play] .wr-ico-play { display: none; }
.wr-playing [data-wr-play] .wr-ico-pause, .wr-loading [data-wr-play] .wr-ico-pause { display: inline-block; }
.wr-loading [data-wr-play] { animation: wr-pulse 1s ease-in-out infinite; }
@keyframes wr-pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 61, 110, 0); transform: scale(.96); } }

.wr-badge { display: inline-flex; align-items: center; gap: .4em; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .22em .6em; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--wr-fg); }
.wr-badge::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--wr-muted); }
.wr-online .wr-badge::before { background: var(--wr-ok); box-shadow: 0 0 8px var(--wr-ok); }
.wr-live .wr-badge { background: var(--wr-live); color: #fff; }
.wr-live .wr-badge::before { background: #fff; animation: wr-blink 1.2s infinite; }
@keyframes wr-blink { 50% { opacity: .25; } }

/* kleines Equalizer-Symbol */
.wr-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.wr-eq i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; }
.wr-playing .wr-eq i { animation: wr-eq .9s ease-in-out infinite alternate; }
.wr-playing .wr-eq i:nth-child(2) { animation-delay: -.3s; }
.wr-playing .wr-eq i:nth-child(3) { animation-delay: -.6s; }
.wr-playing .wr-eq i:nth-child(4) { animation-delay: -.45s; }
@keyframes wr-eq { 0% { height: 15%; } 100% { height: 100%; } }

/* ------------------------------------------------------------ Player-Leiste */
body.wr-has-bar { padding-bottom: 84px; }
.wr-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1040; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; color: var(--wr-fg);
    background: linear-gradient(120deg, rgba(18, 19, 26, .94), rgba(30, 20, 40, .94)); border: 1px solid var(--wr-line); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; transition: transform .35s ease; }
.wr-bar::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(90deg, var(--wr-accent), var(--wr-accent-2), var(--wr-accent)); background-size: 200% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .0; transition: opacity .4s; pointer-events: none; }
.wr-playing .wr-bar::before { opacity: .9; animation: wr-flow 4s linear infinite; }
@keyframes wr-flow { to { background-position: 200% 0; } }
.wr-bar-play { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer;
    background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); box-shadow: 0 6px 20px rgba(255, 61, 110, .4); }
.wr-bar-play:focus-visible, .wr-bar-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wr-bar-cover { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2a2340, #1b1d2a); display: grid; place-items: center; color: var(--wr-accent); }
.wr-bar-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wr-bar-info { min-width: 0; flex: 1 1 auto; }
.wr-bar-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wr-bar-show { color: var(--wr-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-bar-song { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.wr-bar-song span { color: var(--wr-muted); }
.wr-bar-viz { flex: 0 1 160px; width: 160px; height: 40px; }
.wr-bar-count { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-bar-count small { color: var(--wr-muted); font-size: 11px; }
.wr-bar-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.wr-bar-listeners { color: var(--wr-muted); font-size: 12px; white-space: nowrap; }
.wr-bar-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--wr-line); background: rgba(255, 255, 255, .06); color: var(--wr-fg); cursor: pointer; display: grid; place-items: center; }
.wr-bar-btn:hover { background: rgba(255, 255, 255, .14); }
.wr-bar-stream { max-width: 150px; background: rgba(255, 255, 255, .08); color: var(--wr-fg); border: 1px solid var(--wr-line); border-radius: 8px; padding: 4px 6px; font-size: 12px; }
.wr-bar-stream option { color: #111; }
[data-wr-volume] { -webkit-appearance: none; appearance: none; width: 90px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--wr-accent) var(--wr-vol, 80%), rgba(255, 255, 255, .2) var(--wr-vol, 80%)); cursor: pointer; }
[data-wr-volume]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
[data-wr-volume]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.wr-note { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%); background: rgba(0, 0, 0, .85); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.wr-note.show { opacity: 1; }
.wr-bar.wr-collapsed { transform: translateY(calc(100% - 6px)); }
.wr-bar.wr-collapsed .wr-bar-min { transform: translateY(-46px) rotate(180deg); background: var(--wr-accent); }
.wr-has-bar .wr-collapsed ~ * { }
@media (max-width: 991px) { .wr-bar-viz, .wr-bar-stream { display: none; } }
@media (max-width: 767px) {
    body.wr-has-bar { padding-bottom: 76px; }
    .wr-bar { left: 6px; right: 6px; bottom: 6px; gap: 10px; padding: 8px 10px; }
    .wr-bar-count, .wr-bar-listeners, [data-wr-volume].wr-bar-vol, .wr-bar-cover { display: none; }
    .wr-bar-play { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------ Gemeinsam: Karten */
.wr-page { --wr-fg: inherit; color: inherit; }
.wr-card { background: var(--wr-card); border: 1px solid var(--wr-line); border-radius: var(--wr-radius); padding: 20px; }
.wr-card h2, .wr-card h3 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: .5em; }
.wr-muted { opacity: .65; }
.wr-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 991px) { .wr-grid { grid-template-columns: 1fr; } }

/* Radio-Seite: Bühne */
.wr-stage { position: relative; overflow: hidden; border-radius: calc(var(--wr-radius) + 6px); padding: 28px; color: #fff; isolation: isolate; margin-bottom: 20px;
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--wr-show, var(--wr-accent)) 55%, transparent), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(255, 179, 71, .35), transparent 55%), #15121f; }
.wr-stage-viz { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; width: 100%; opacity: .55; z-index: -1; }
.wr-stage-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.wr-disc { position: relative; width: clamp(140px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 3px 4px); box-shadow: 0 20px 50px rgba(0, 0, 0, .55), inset 0 0 0 6px #0a0a0a; display: grid; place-items: center; }
.wr-disc > * { grid-area: 1 / 1; }
.wr-disc img, .wr-disc .wr-disc-label { width: 46%; height: 46%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(0, 0, 0, .6); }
.wr-disc .wr-disc-label { background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); }
.wr-disc::after { content: ""; position: absolute; width: 8%; height: 8%; border-radius: 50%; background: #0d0d0d; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.wr-playing .wr-disc { animation: wr-spin 6s linear infinite; }
@keyframes wr-spin { to { transform: rotate(360deg); } }
.wr-stage-meta { min-width: 0; }
.wr-stage-meta .wr-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.wr-stage-title { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.08; margin: 0; word-break: break-word; }
.wr-stage-artist { font-size: clamp(1rem, 1.8vw, 1.3rem); opacity: .8; margin: 6px 0 18px; }
.wr-stage-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wr-btn-play { display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 12px 22px 12px 14px; font-weight: 800; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); box-shadow: 0 10px 30px rgba(255, 61, 110, .45); font-size: 1rem; }
.wr-btn-play > span:first-child { width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .25); display: grid; place-items: center; font-size: 14px; }
.wr-btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 10px 16px; color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; cursor: pointer; }
.wr-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.wr-stage-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: .92rem; opacity: .9; }
.wr-stage-facts b { font-variant-numeric: tabular-nums; }
.wr-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 16px; }
.wr-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wr-accent), var(--wr-accent-2)); transition: width 1s linear; }
@media (max-width: 640px) { .wr-stage { padding: 20px; } .wr-stage-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .wr-stage-meta .wr-kicker, .wr-stage-actions, .wr-stage-facts { justify-content: center; } }

/* DJ-Karte */
.wr-dj { display: flex; gap: 14px; align-items: center; }
.wr-dj-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); }
.wr-dj b { display: block; font-size: 1.05rem; }

/* Verlauf */
.wr-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wr-hist { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; }
.wr-hist:hover { background: rgba(127, 127, 127, .08); }
.wr-hist-cover { width: 42px; height: 42px; border-radius: 8px; flex: 0 0 auto; background: center/cover no-repeat, linear-gradient(135deg, #2a2340, #1b1d2a); }
.wr-hist-cover.wr-noimg { background: linear-gradient(135deg, color-mix(in srgb, var(--wr-accent) 60%, #222), #1b1d2a); }
.wr-hist-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.wr-hist-text b, .wr-hist-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-hist-text small { opacity: .65; }
.wr-hist-time { font-variant-numeric: tabular-nums; opacity: .6; font-size: .85rem; }

/* Sendeplan (Liste und Woche) */
.wr-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wr-slot { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--wr-line); border-left: 4px solid var(--wr-slot, var(--wr-accent)); background: rgba(127, 127, 127, .04); }
.wr-slot-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.wr-slot.wr-has-img { grid-template-columns: 96px 48px minmax(0, 1fr); }
.wr-slot-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.wr-day .wr-slot.wr-has-img { grid-template-columns: 1fr; }
.wr-day .wr-slot-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.wr-slot-title { font-weight: 700; display: block; }
.wr-slot small { opacity: .7; }
.wr-slot.wr-auto { border-left-color: rgba(127, 127, 127, .45); opacity: .75; }
.wr-slot.wr-running { background: color-mix(in srgb, var(--wr-slot, var(--wr-accent)) 14%, transparent); box-shadow: 0 0 0 1px var(--wr-slot, var(--wr-accent)) inset; }
.wr-slot.wr-past { opacity: .45; }
.wr-slot .wr-badge { margin-left: 6px; vertical-align: middle; }
.wr-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wr-day { background: var(--wr-card); border: 1px solid var(--wr-line); border-radius: 14px; padding: 12px; min-height: 160px; }
.wr-day.wr-today { box-shadow: 0 0 0 2px var(--wr-accent) inset; }
.wr-day h3 { font-size: .95rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.wr-day .wr-slot { grid-template-columns: 1fr; gap: 2px; padding: 8px 10px; }
.wr-day-empty { opacity: .55; font-size: .9rem; }
.wr-weeknav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
@media (max-width: 575px) { .wr-week { grid-template-columns: 1fr; } .wr-slot { grid-template-columns: 1fr; } }

/* Wunschbox */
.wr-wish .wr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wr-wish-kind { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(127, 127, 127, .12); margin-bottom: 14px; }
.wr-wish-kind label { margin: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.wr-wish-kind input { position: absolute; opacity: 0; pointer-events: none; }
.wr-wish-kind input:checked + span { color: #fff; }
.wr-wish-kind label:has(input:checked) { background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); color: #fff; }
.wr-wish .wr-only-greet { display: none; }
.wr-wish.wr-greet .wr-only-greet { display: block; }
.wr-wish.wr-greet .wr-only-wish { display: none; }
.wr-wishmsg { min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.wr-wishmsg.ok { color: var(--wr-ok); }
.wr-wishmsg.err { color: var(--wr-live); }
.wr-wish.wr-sent [type=submit] { animation: wr-pop .6s ease; }
@keyframes wr-pop { 40% { transform: scale(1.08); } }
.wr-closed { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: rgba(127, 127, 127, .1); }

/* Studio */
.wr-studio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wr-studio-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--wr-line); background: rgba(127, 127, 127, .05); transition: opacity .3s, transform .3s; }
.wr-studio-item.wr-new { animation: wr-in .6s ease; border-color: var(--wr-accent); }
.wr-studio-item.wr-done { opacity: 0; transform: translateX(30px); }
@keyframes wr-in { from { opacity: 0; transform: translateY(-8px); } }
.wr-studio-kind { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--wr-accent) 25%, transparent); color: var(--wr-accent); }
.wr-kind-greet .wr-studio-kind { background: rgba(47, 210, 122, .18); color: var(--wr-ok); }
.wr-studio-actions { display: flex; gap: 6px; }
.wr-studio-actions form { margin: 0; }
.wr-studio .wr-empty-note { display: none; }
.wr-studio.wr-empty .wr-empty-note { display: block; }
.wr-cred { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.wr-cred dt { opacity: .7; font-weight: 500; }
.wr-cred dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.wr-secret { filter: blur(5px); cursor: pointer; transition: filter .2s; }
.wr-secret.wr-shown, .wr-secret:focus { filter: none; }

/* Boxen */
.wr-box-now { display: flex; gap: 12px; align-items: center; }
.wr-box-cover { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); }
.wr-box-cover img { width: 100%; height: 100%; object-fit: cover; }
.wr-box-play { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 18px; opacity: .9; }
.wr-box-play:hover { background: rgba(0, 0, 0, .5); }
.wr-box-text { min-width: 0; }
.wr-box-text b, .wr-box-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-box-text span { opacity: .7; font-size: .9em; }
.wr-box-viz { width: 100%; height: 36px; margin-top: 8px; display: block; }
.wr-box-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .85em; opacity: .85; font-variant-numeric: tabular-nums; }

/* Pop-up-Player */
body.wr-popup { margin: 0; min-height: 100vh; color: #fff; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: radial-gradient(120% 90% at 50% 0%, #3a1430, #12131a 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; gap: 14px; }
.wr-popup .wr-disc { width: min(62vw, 260px); }
.wr-popup h1 { font-size: 1.1rem; margin: 0; opacity: .85; }
.wr-popup .wr-stage-title { font-size: 1.5rem; }
.wr-popup canvas { width: 100%; max-width: 360px; height: 60px; }
.wr-popup .wr-pop-row { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wr-popup footer { font-size: 11px; opacity: .45; margin-top: 8px; }
.wr-popup a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
    .wr-playing .wr-disc, .wr-playing .wr-eq i, .wr-playing .wr-bar::before, .wr-live .wr-badge::before { animation: none !important; }
}

/* In deinem Player hören (Winamp, VLC, iTunes, Windows Media) */
.wr-files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wr-files-list li { display: grid; gap: 6px; }
.wr-files-name { font-weight: 700; }
.wr-files-links { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .35); background: rgba(127, 127, 127, .08); color: inherit; font: inherit; font-size: 13px; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.wr-file:hover, .wr-file:focus-visible { background: rgba(127, 127, 127, .18); border-color: var(--wr-accent, currentColor); color: inherit; }
.wr-file.wr-copied { border-color: #22c55e; }
.wr-pop-files { margin: 8px 0; font-size: 13px; }
.wr-pop-files summary { cursor: pointer; opacity: .85; }
.wr-pop-files .wr-files { margin-top: 8px; }

/* ------------------------------------------------------------ Sendeplan (breit, animiert) */
.wr-plan { --wr-plan-gap: 14px; }
.wr-plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.wr-plan-head h1 { margin-bottom: 4px; }
.wr-plan-head p { margin: 0; }
.wr-plan-onair { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--wr-line); background: var(--wr-card); min-width: 220px; }
.wr-plan-onair > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.wr-plan-onair small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.wr-plan-onair.is-live { border-color: var(--wr-live); box-shadow: 0 0 0 1px var(--wr-live) inset, 0 0 24px -8px var(--wr-live); }
.wr-plan-onair.is-live small { color: var(--wr-live); opacity: 1; }
.wr-plan-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--wr-ok); box-shadow: 0 0 0 0 rgba(47, 210, 122, .6); animation: wr-plan-ping 2s infinite; flex-shrink: 0; }
.is-live > .wr-plan-dot, .wr-plan-live .wr-plan-dot, .wr-plan-tab .wr-plan-dot { background: var(--wr-live); animation: wr-plan-ping-live 1.2s infinite; }
@keyframes wr-plan-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(47, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 210, 122, 0); } }
@keyframes wr-plan-ping-live { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); opacity: 1; } 50% { opacity: .35; } 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); opacity: 1; } }

.wr-plan-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.wr-plan-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--wr-line); background: var(--wr-card); color: inherit; text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .2s, border-color .2s, background-color .2s; }
.wr-plan-btn:hover, .wr-plan-btn:focus-visible { border-color: var(--wr-accent); color: inherit; transform: translateY(-1px); }
.wr-plan-btn.disabled { opacity: .35; pointer-events: none; }
.wr-plan-range { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; text-align: center; }
.wr-plan-range b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.wr-plan-today { font-size: .85rem; font-weight: 700; color: var(--wr-accent); text-decoration: none; }

.wr-plan-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.wr-plan-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--wr-line); background: var(--wr-card); color: inherit; font: inherit; cursor: pointer; transition: transform .2s, border-color .2s, background-color .2s; }
.wr-plan-tab b { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.wr-plan-tab small { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.wr-plan-tab em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: .7rem; font-weight: 800; opacity: .6; }
.wr-plan-tab:hover { transform: translateY(-2px); border-color: var(--wr-accent); }
.wr-plan-tab.is-active { background: color-mix(in srgb, var(--wr-accent) 22%, transparent); border-color: var(--wr-accent); }
.wr-plan-tab.is-today { box-shadow: 0 0 0 2px var(--wr-accent) inset; }
.wr-plan-tab .wr-plan-dot { width: 8px; height: 8px; }

.wr-plan-days { display: grid; gap: var(--wr-plan-gap); }
.wr-pday { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border-radius: var(--wr-radius); border: 1px solid var(--wr-line); background: var(--wr-card); }
.wr-pday.is-today { border-color: var(--wr-accent); box-shadow: 0 0 0 1px var(--wr-accent) inset, 0 18px 40px -24px var(--wr-accent); }
.wr-pday-head { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.wr-pday-head b { font-size: 1.15rem; }
.wr-pday-today { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--wr-accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wr-pday-empty { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--wr-line); opacity: .7; }
.wr-pslots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.wr-pslot { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 14px; border: 1px solid var(--wr-line); border-left: 4px solid var(--wr-slot, var(--wr-accent)); background: rgba(127, 127, 127, .05); transition: transform .25s, box-shadow .25s, border-color .25s, opacity .3s; }
.wr-pslot:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); }
.wr-pslot-art { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--wr-slot, var(--wr-accent)) 30%, transparent); color: #fff; font-size: 1.4rem; }
.wr-pslot-art img { width: 100%; height: 100%; object-fit: cover; }
.wr-pslot-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wr-pslot-time { font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wr-slot, var(--wr-accent)); }
.wr-pslot-title { font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.wr-pslot-title .fa-star { color: var(--wr-accent-2); font-size: .8em; }
.wr-pslot-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .85rem; opacity: .8; }
.wr-pslot-genre { padding: 0 8px; border-radius: 999px; border: 1px solid var(--wr-line); }
.wr-pslot-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .78rem; opacity: .8; text-align: right; white-space: nowrap; }
.wr-plan-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--wr-live); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wr-plan-live .wr-plan-dot { width: 7px; height: 7px; background: #fff; }
.wr-pslot.is-live { border-color: var(--wr-live); border-left-color: var(--wr-live); background: color-mix(in srgb, var(--wr-live) 12%, transparent); animation: wr-plan-glow 2.4s ease-in-out infinite; }
.wr-pslot.is-live .wr-pslot-state { opacity: 1; }
@keyframes wr-plan-glow { 50% { box-shadow: 0 0 0 1px var(--wr-live) inset, 0 0 26px -6px var(--wr-live); } }
.wr-pslot.is-past { opacity: .5; }
.wr-pslot.is-special { background: color-mix(in srgb, var(--wr-accent-2) 10%, transparent); }

/* Einblenden (nur mit JavaScript, ohne „Bewegung reduzieren“) */
.wr-plan-js .wr-pslot { animation: wr-plan-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.wr-plan-js .wr-pslot.is-live { animation: wr-plan-in .45s cubic-bezier(.2, .8, .2, 1) both, wr-plan-glow 2.4s ease-in-out .5s infinite; }
@keyframes wr-plan-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.wr-pday.wr-anim-in { animation: wr-plan-in .35s ease both; }
.wr-plan-days { transition: opacity .2s, transform .22s; }
.wr-plan.wr-busy .wr-plan-days { pointer-events: none; }
.wr-plan.wr-leave-next .wr-plan-days { opacity: 0; transform: translateX(-36px); }
.wr-plan.wr-leave-prev .wr-plan-days { opacity: 0; transform: translateX(36px); }
.wr-plan.wr-enter-next .wr-plan-days { animation: wr-plan-from-right .45s cubic-bezier(.2, .8, .2, 1) both; }
.wr-plan.wr-enter-prev .wr-plan-days { animation: wr-plan-from-left .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wr-plan-from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes wr-plan-from-left { from { opacity: 0; transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) {
    .wr-plan *, .wr-plan { animation: none !important; transition: none !important; }
}
@media (max-width: 991px) {
    .wr-plan-tabs { grid-template-columns: repeat(8, minmax(72px, 1fr)); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
    .wr-pday { grid-template-columns: 1fr; gap: 10px; }
    .wr-pday-head { flex-direction: row; align-items: baseline; gap: 10px; padding-top: 0; }
    .wr-pday-today { margin-top: 0; }
}
@media (max-width: 575px) {
    .wr-plan-nav { grid-template-columns: auto minmax(0, 1fr) auto; }
    .wr-plan-btn span { display: none; }
    .wr-pslots { grid-template-columns: 1fr; }
    .wr-pslot { grid-template-columns: 52px minmax(0, 1fr); }
    .wr-pslot-art { width: 52px; height: 52px; }
    .wr-pslot-state { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; }
    .wr-pslot-state:empty { display: none; }
}

/* ------------------------------------------------------------ GSI-CMS: Formulare und Hilfsklassen (ohne Bootstrap) */
.wr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wr-small { font-size: .875em; }
.wr-mt { margin-top: 10px; display: inline-block; }
.wr-m0 { margin: 0; }
.wr-page h1 { margin: 0 0 16px; }
.wr-page p { margin: 0 0 8px; }
.wr-col { display: grid; gap: 20px; align-content: start; }
.wr-grid > .wr-card { align-self: start; }
.wr-grid-wish { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 991px) { .wr-grid-wish { grid-template-columns: 1fr; } }
.wr-intro { margin-bottom: 20px; }
.wr-card h2 .wr-more { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--wr-accent); text-decoration: none; }
.wr-card h2 .wr-more:hover { text-decoration: underline; }
.wr-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--wr-accent); color: var(--wr-accent); text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s; }
.wr-btn-outline:hover { background: var(--wr-accent); color: #fff; }
.wr-select { width: auto; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; }
.wr-select option { color: #111; }
.wr-stage { overflow: visible; }
.wr-stage-meta { position: relative; }
.wr-stage .wr-note { top: auto; bottom: -10px; transform: translate(-50%, 100%); }
.wr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.wr-wish-compact .wr-fields, .wr-box .wr-fields { grid-template-columns: 1fr; }
.wr-full { grid-column: 1 / -1; }
.wr-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wr-field label { font-size: .85rem; font-weight: 600; opacity: .85; }
.wr-field input, .wr-field textarea { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--wr-line); background: rgba(127, 127, 127, .08); color: inherit; font: inherit; transition: border-color .2s, box-shadow .2s; }
.wr-field input:focus, .wr-field textarea:focus { outline: 0; border-color: var(--wr-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wr-accent) 25%, transparent); }
.wr-field textarea { resize: vertical; min-height: 64px; }
.wr-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px 20px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 800; cursor: pointer;
    background: linear-gradient(135deg, var(--wr-accent), var(--wr-accent-2)); box-shadow: 0 8px 22px -8px var(--wr-accent); transition: transform .2s, opacity .2s; }
.wr-send:hover { transform: translateY(-1px); }
.wr-send:disabled { opacity: .6; cursor: wait; }
.wr-wish-compact .wr-send { width: 100%; }
.wr-wish .wr-only-greet { display: none; }
.wr-closed a { color: var(--wr-accent); font-weight: 700; }
.wr-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--wr-live); color: #fff; font-size: .78rem; font-weight: 800; }
.wr-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--wr-line); background: rgba(127, 127, 127, .1); color: inherit; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.wr-icon-btn.wr-ok:hover { background: var(--wr-ok); color: #fff; }
.wr-icon-btn.wr-no:hover { background: rgba(127, 127, 127, .35); }
.wr-studio-msg { margin-top: 4px; }
.wr-pslot-text { font-size: .82rem; opacity: .7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wr-box { display: grid; gap: 4px; }
.wr-popup .wr-bar-stream { max-width: 240px; }
/* Seiten und Boxen folgen hellen und dunklen Layouts (Linien/Karten aus der Textfarbe) */
.wr-page, .wr-box { --wr-card: color-mix(in srgb, currentColor 5%, transparent); --wr-line: color-mix(in srgb, currentColor 15%, transparent); }
/* Sendeplan-Karten: Zustand (live/vorbei) unter dem Text, damit lange Titel genug Platz haben */
.wr-pslot { grid-template-columns: 64px minmax(0, 1fr); }
.wr-pslot-state { grid-column: 2; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; text-align: left; }
.wr-pslot-state:empty { display: none; }

/* Lizenzhinweis (GEMA, GVL, weitere) */
.wr-lic { display: grid; gap: 10px; }
.wr-lic__text { margin: 0; font-size: .92rem; opacity: .85; }
.wr-lic__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.wr-lic__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 96px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(127,127,127,.28); background: rgba(127,127,127,.08); color: inherit; text-decoration: none; }
a.wr-lic__item:hover { border-color: var(--gsi-accent, #e94560); }
.wr-lic__item img { max-height: 44px; max-width: 140px; width: auto; object-fit: contain; }
.wr-lic__item small { font-size: .75rem; opacity: .75; }
.wr-lic--foot { justify-items: center; text-align: center; padding: 18px 16px; border-top: 1px solid rgba(127,127,127,.18); }
.wr-lic--foot .wr-lic__list { justify-content: center; }
