/*
Theme Name: danceradionrw2027v3
Theme URI: https://laut.fm/danceradio-nrw
Author: Danceradio NRW
Description: Internetradio-Theme nur für den laut.fm-Stream von Danceradio NRW. Info-Leiste, Header mit Menü, On-Air-Player mit Cover und Titel, Willkommen-Bereich, Zuletzt gespielt, Hörlinks (MP3, M3U, PLS, ASX), Playlist mit den letzten 100 Titeln, Footer mit Social-Buttons sowie Impressum-, Datenschutz- und GEMA/GVL-Hinweis. Farben und Texte im Customizer änderbar.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danceradionrw2027v3
*/

:root {
	--accent: #ff4d2e;
	--dark: #141b2d;
	--bg: #f3f5f8;
	--panel: #ffffff;
	--line: #dde1e8;
	--text: #141b2d;
	--muted: #4a5568;
	--radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 14px; background: #fff; border: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-main { padding: 28px 0 8px; min-height: 55vh; }

/* ---------- Info-Leiste ---------- */
.topbar { background: var(--dark); color: #fff; font-size: .82rem; letter-spacing: .04em; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.topbar strong { color: var(--accent); font-weight: 800; }

/* ---------- Header ---------- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .custom-logo { max-height: 52px; width: auto; display: block; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 900; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.3rem; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; }
.brand-tag { font-size: .85rem; color: var(--muted); }
.nav-toggle { display: none; padding: 9px 16px; font: inherit; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 9px 16px; font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: none; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; background: var(--dark); }
.main-nav ul ul { display: none; }

/* ---------- Player (Hero) ---------- */
.drn { color: var(--text); }
.drn *, .drn *::before, .drn *::after { box-sizing: border-box; }
.drn-hero { background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20,27,45,.08); overflow: hidden; }
.drn-hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 28px 0; }
.drn-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--dark); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.drn-badge i { width: 9px; height: 9px; border-radius: 50%; background: #7b8499; }
.drn.is-live .drn-badge { background: var(--accent); }
.drn.is-live .drn-badge i { background: #fff; animation: drn-pulse 1.4s ease-in-out infinite; }
@keyframes drn-pulse { 50% { opacity: .3; } }
.drn-livetag { font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.drn-hero-body { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; padding: 20px 28px 28px; }
.drn-cover { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e9ecf2, #d5dae4); border: 1px solid var(--line); }
.drn-ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 2.6rem; letter-spacing: .06em; color: #a5adbd; }
.drn-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.drn-cover img[hidden] { display: none; }
.drn-kicker { margin: 0 0 6px; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.drn-kicker-dark { margin-top: 36px; }
.drn-artist { margin: 0 0 2px; font-size: 1.15rem; font-weight: 700; color: var(--muted); }
.drn-title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 900; letter-spacing: -.01em; overflow-wrap: anywhere; }
.drn-album { margin: 6px 0 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.drn-status { display: inline-flex; align-items: center; gap: 9px; margin: 12px 0 0; font-size: .92rem; font-weight: 700; color: var(--muted); }
.drn-lamp { width: 10px; height: 10px; border-radius: 50%; background: #b9c0cf; }
.drn.is-live .drn-lamp { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,77,46,.2); }
.drn.is-live .drn-status { color: var(--text); }
.drn-progress { height: 6px; margin-top: 18px; border-radius: 3px; background: #e6e9f0; overflow: hidden; }
.drn-progress b { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.drn-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.drn-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.drn-play { flex: none; width: 72px; height: 72px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--accent); box-shadow: 0 8px 22px rgba(255,77,46,.35); transition: transform .15s; }
.drn-play:hover { transform: scale(1.06); }
.drn-play svg { width: 32px; height: 32px; fill: currentColor; }
.drn-play .i-pause { display: none; }
.drn.is-playing .drn-play .i-play { display: none; }
.drn.is-playing .drn-play .i-pause { display: block; }
.drn-listen { display: flex; flex-direction: column; line-height: 1.25; }
.drn-listen strong { font-size: 1.1rem; font-weight: 800; }
.drn-listen span { font-size: .9rem; color: var(--muted); }
.drn-vol { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.drn-vol svg { width: 22px; height: 22px; fill: var(--dark); flex: none; }
.drn-vol input { width: 140px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.drn-meter { display: flex; gap: 3px; margin-left: auto; align-items: flex-end; height: 32px; }
.drn-meter i { width: 5px; height: 100%; background: #cfd4df; border-radius: 1px; transform-origin: bottom; transform: scaleY(.15); }
.drn.is-playing .drn-meter i { background: var(--accent); animation: drn-meter .9s ease-in-out infinite alternate; }
@keyframes drn-meter { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

/* ---------- Abschnitte ---------- */
.section { margin-top: 44px; }
.welcome { text-align: center; max-width: 760px; margin: 48px auto 0; }
.welcome h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.01em; }
.welcome p { margin: 0; font-size: 1.08rem; color: var(--muted); }
.drn-h { margin: 0 0 16px; font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; color: var(--text); }
.drn-more { margin: 16px 0 0; }
.drn-link { font-weight: 800; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); }
.drn-link:hover { color: var(--accent); }
.drn-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.drn-h-page { margin-top: 0; font-size: 2rem; }

/* ---------- Hörlinks ---------- */
.drn-streams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.drn-stream { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.drn-stream-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.drn-stream strong { font-size: 1.15rem; font-weight: 800; }
.drn-stream em { font-style: normal; font-size: .9rem; font-weight: 600; color: var(--muted); }
.drn-stream code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; color: var(--text); background: var(--bg); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; }
.drn-stream-actions { display: flex; gap: 8px; }
.drn-btn { flex: 1; padding: 10px; font: inherit; font-size: .9rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.drn-btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------- Playlist ---------- */
.drn-tracks { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.drn-tracks li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); }
.drn-tracks li:first-child { border-top: 0; }
.drn-tracks li.empty { display: block; color: var(--muted); }
.drn-t-title { display: block; font-size: 1.05rem; font-weight: 800; }
.drn-t-artist { font-size: .95rem; color: var(--muted); }
.drn-tracks time { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drn-legal { font-size: .9rem; color: var(--muted); }

/* ---------- Seiten & Beiträge ---------- */
.entry-card { max-width: 78ch; margin: 0 0 32px; padding: 28px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-title { margin: 0 0 8px; font-size: 1.9rem; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.entry-title a { text-decoration: none; }
.entry-meta { margin: 0 0 16px; font-size: .88rem; color: var(--muted); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 .5em; line-height: 1.25; }
.entry-content a { color: var(--accent); }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.page-wide .entry-card { max-width: none; background: transparent; border: 0; padding: 0; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 32px; }
.nav-links a, .nav-links span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; }
.nav-links .current { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--dark); color: #d6dbe7; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 40px 20px 28px; }
.footer-brand { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.site-footer p { margin: 0 0 8px; }
.footer-h { margin: 0 0 12px; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn { padding: 8px 16px; font-weight: 800; font-size: .9rem; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; padding: 12px 18px; font-weight: 800; font-size: .92rem; text-decoration: none; color: #fff !important; background: #1faa59; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.whatsapp-float:hover { background: #178a47; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.nav-toggle { display: inline-block; }
	.main-nav { width: 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.drn-hero-body { grid-template-columns: 1fr; gap: 20px; padding: 16px 20px 22px; }
	.drn-hero-top { padding: 16px 20px 0; }
	.drn-cover { max-width: 280px; width: 100%; margin: 0 auto; }
	.drn-meter { display: none; }
	.drn-tracks li { grid-template-columns: 1fr; gap: 2px; }
	.entry-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
