/* =============================================
   WebRadio — Dark Wave Design
   ============================================= */

:root {
    --primary:       #00d4ff;
    --primary-dark:  #00a8cc;
    --primary-glow:  rgba(0, 212, 255, 0.2);
    --bg-dark:       #0a0e1a;
    --bg-card:       #111827;
    --bg-card2:      #1a2235;
    --border-color:  rgba(255,255,255,0.08);
    --text-main:     #e8edf5;
    --text-muted:    #94a3b8;
    --player-height: 72px;
    --nav-height:    64px;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow:   0 0 30px rgba(0,212,255,0.15);

    /* Bootstrap 5.3 CSS-Variablen überschreiben für Dark Mode */
    --bs-body-color:          #e8edf5;
    --bs-body-color-rgb:      232, 237, 245;
    --bs-secondary-color:     #94a3b8;
    --bs-secondary-color-rgb: 148, 163, 184;
    --bs-body-bg:             #0a0e1a;
    --bs-body-bg-rgb:         10, 14, 26;
    --bs-link-color:          #00d4ff;
    --bs-link-hover-color:    #00a8cc;
    --bs-border-color:        rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    padding-top: var(--nav-height);
    padding-bottom: var(--player-height);
    overflow-x: hidden;
}

.skip-link { position: absolute; top: -50px; left: 0; background: var(--primary); color: #000; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 0; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 0; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-main); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.text-primary-radio { color: var(--primary) !important; }

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    transition: all 0.3s;
}
#mainNav.scrolled { background: rgba(10,14,26,0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.navbar-brand { font-size: 1.3rem; letter-spacing: -0.5px; color: var(--text-main) !important; }
.brand-icon { color: var(--primary); font-size: 1.5rem; margin-right: 4px; }
.brand-text { font-weight: 800; }
.nav-link { color: var(--text-muted) !important; font-weight: 500; font-size: 0.9rem; padding: 6px 12px !important; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text-main) !important; background: var(--primary-glow); }
.nav-link.active { color: var(--primary) !important; }

.lang-switcher { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.lang-switcher a { color: var(--text-muted); }
.lang-switcher a.active, .lang-switcher a:hover { color: var(--primary); }
.lang-switcher span { color: var(--border-color); }

.btn-primary-radio { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #000 !important; font-weight: 600; border: none; border-radius: 50px; padding: 8px 20px; transition: all 0.3s; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary-radio:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,255,0.4); }
.btn-outline-radio { border: 2px solid var(--primary); color: var(--primary); background: transparent; border-radius: 50px; padding: 10px 28px; font-weight: 600; transition: all 0.3s; }
.btn-outline-radio:hover { background: var(--primary); color: #000; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a0e1a 0%, #0d1730 50%, #0a1628 100%); }
.hero-section::before { content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); border-radius: 50px; padding: 6px 16px; font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary), #7b61ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #000; font-weight: 700; border: none; border-radius: 50px; padding: 14px 32px; font-size: 1rem; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-primary:hover { box-shadow: 0 8px 32px rgba(0,212,255,0.4); transform: translateY(-2px); color: #000; }
.btn-hero-secondary { background: transparent; border: 2px solid var(--border-color); color: var(--text-main); border-radius: 50px; padding: 12px 30px; font-size: 1rem; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.now-on-air-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; max-width: 360px; width: 100%; box-shadow: var(--shadow), var(--shadow-glow); position: relative; overflow: hidden; }
.now-on-air-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(0,212,255,0.05), transparent); pointer-events: none; }

/* ===== MINI EQUALIZER (im Badge) ===== */
.mini-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 4px; vertical-align: middle; }
.mini-eq span { display: block; width: 3px; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: mini-eq-bounce 0.8s ease-in-out infinite; }
.mini-eq span:nth-child(1) { animation-duration: 0.80s; animation-delay: -0.00s; }
.mini-eq span:nth-child(2) { animation-duration: 1.10s; animation-delay: -0.55s; }
.mini-eq span:nth-child(3) { animation-duration: 0.70s; animation-delay: -0.28s; }
.mini-eq span:nth-child(4) { animation-duration: 0.95s; animation-delay: -0.70s; }
.mini-eq.paused span { animation-play-state: paused; }
@keyframes mini-eq-bounce { 0%,100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }

.live-indicator { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,59,48,0.15); border: 1px solid rgba(255,59,48,0.4); border-radius: 50px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: #ff3b30; }
.live-dot { width: 8px; height: 8px; background: #ff3b30; border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.live-indicator-small { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; }

/* ===== CARDS ===== */
.radio-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); transition: all 0.3s; overflow: hidden; }
.radio-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow), 0 0 20px rgba(0,212,255,0.1); }
.card-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.radio-card:hover .card-img-wrapper img { transform: scale(1.05); }

/* ===== SECTIONS ===== */
.section-padding { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }

/* ===== DJ KARTEN ===== */
.dj-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all 0.3s; }
.dj-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.dj-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin: 0 auto 1rem; display: block; }
.dj-avatar-placeholder { width: 96px; height: 96px; border-radius: 50%; background: var(--bg-card2); border: 3px solid var(--border-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2.5rem; color: var(--text-muted); }
.dj-social a { color: var(--text-muted); margin: 0 4px; font-size: 1.1rem; transition: color 0.2s; }
.dj-social a:hover { color: var(--primary); }

/* ===== SENDEPLAN ===== */
.day-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.day-tab { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.day-tab:hover, .day-tab.active { background: rgba(0,212,255,0.1); border-color: var(--primary); color: var(--primary); }
.day-tab.today-tab { border-color: rgba(0,212,255,0.5); }
.show-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; border-left: 3px solid var(--primary); transition: all 0.2s; }
.show-block:hover { background: var(--bg-card2); }
.show-block.featured { border-left-color: #ffd700; }
.show-time { font-size: 0.75rem; color: var(--text-muted); }
.show-title { font-weight: 600; font-size: 0.9rem; }
.show-dj { font-size: 0.8rem; color: var(--primary); }

/* ===== NEWS ===== */
.news-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.news-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { width: 100%; height: 200px; object-fit: cover; }
.news-img-placeholder { width: 100%; height: 200px; background: var(--bg-card2); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-muted); }
.news-body { padding: 1.25rem; }
.news-date { font-size: 0.8rem; color: var(--text-muted); }
.news-title { font-size: 1.1rem; font-weight: 700; margin: 0.5rem 0; }
.news-excerpt { font-size: 0.9rem; color: var(--text-muted); }
.news-tag { background: rgba(0,212,255,0.1); color: var(--primary); border-radius: 50px; padding: 2px 10px; font-size: 0.75rem; font-weight: 600; }

/* ===== FORMULARE ===== */
.form-control, .form-select { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 10px; padding: 12px 16px; font-size: 0.95rem; transition: all 0.2s; }
.form-control:focus, .form-select:focus { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); color: var(--text-main); }
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.btn-submit { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #000; font-weight: 700; border: none; border-radius: 50px; padding: 12px 32px; font-size: 1rem; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-submit:hover { box-shadow: 0 6px 24px rgba(0,212,255,0.4); transform: translateY(-1px); color: #000; }
.btn-submit:disabled { opacity: 0.7; pointer-events: none; }
.alert-radio-success { background: rgba(52,199,89,0.1); border: 1px solid rgba(52,199,89,0.3); color: #34c759; border-radius: var(--radius); padding: 14px 18px; }
.alert-radio-error { background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.3); color: #ff3b30; border-radius: var(--radius); padding: 14px 18px; }

/* ===== STICKY PLAYER ===== */
.radio-player { position: fixed; bottom: 0; left: 0; right: 0; height: var(--player-height); background: rgba(17,24,39,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border-color); z-index: 1050; box-shadow: 0 -4px 24px rgba(0,0,0,0.4); }
.player-inner { height: var(--player-height); padding: 0 16px; }
.player-play-btn { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; color: #000; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; cursor: pointer; }
.player-play-btn:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,212,255,0.4); }
.player-live-badge { display: flex; align-items: center; gap: 6px; background: rgba(255,59,48,0.15); border: 1px solid rgba(255,59,48,0.3); border-radius: 50px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: #ff3b30; flex-shrink: 0; white-space: nowrap; transition: all 0.3s; }
.player-live-badge.autodj-badge { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.3); color: var(--primary); }
.player-song { font-weight: 600; font-size: 0.95rem; max-width: 300px; }
.player-now-playing { font-size: 0.7rem; }
.player-listener-count { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.player-listener-label { font-size: 0.65rem; }
.volume-range { width: 90px; accent-color: var(--primary); cursor: pointer; }

/* ===== FOOTER ===== */
.site-footer { background: #080c18; border-top: 1px solid var(--border-color); padding: 60px 0 30px; margin-bottom: var(--player-height); }
.footer-heading { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-divider { border-color: var(--border-color); margin: 2rem 0 1.5rem; }

.page-hero { background: linear-gradient(180deg, rgba(0,212,255,0.05) 0%, transparent 100%); border-bottom: 1px solid var(--border-color); padding: 60px 0 40px; text-align: center; }
.page-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }

.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 991px) { #navMenu { background: rgba(10,14,26,0.98); padding: 1rem; border-radius: 0 0 12px 12px; } .hero-section { min-height: auto; padding: 80px 0 60px; } .hero-visual { margin-top: 3rem; } }
@media (max-width: 575px) { .player-song { max-width: 140px; } .section-padding { padding: 60px 0; } }

.bg-card  { background: var(--bg-card) !important; }
.bg-card2 { background: var(--bg-card2) !important; }
.border-radio { border-color: var(--border-color) !important; }
.text-radio-muted { color: var(--text-muted) !important; }

/* ===== LESBARKEIT / KONTRAST FIXES ===== */
/* Bootstrap text-muted global überschreiben — muss auf dunklem Hintergrund lesbar sein */
.text-muted { color: #94a3b8 !important; }

/* Show-Block Beschreibungstext */
.show-block p.small,
.show-block .text-muted { color: #8b9cbf !important; }

/* Show-Zeit lesbarer */
.show-time { font-size: 0.75rem; color: #7a8fad !important; }

/* Footer Texte — Footer-Hintergrund ist noch dunkler (#080c18) */
.site-footer { color: #94a3b8; }
.site-footer p,
.site-footer .text-muted { color: #7a8fad !important; }
.site-footer small,
.footer-copy { color: #5a6a85 !important; }
.footer-links a { color: #8b9cbf !important; }
.footer-brand-desc { color: #7a8fad !important; }
/* Checkbox & Radio Labels */
.form-check-label { color: var(--text-main); font-size: 0.9rem; }
.form-check-input {
    background-color: var(--bg-card2);
    border: 1px solid rgba(255,255,255,0.25);
    width: 1.1em; height: 1.1em;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus { box-shadow: 0 0 0 3px var(--primary-glow); border-color: var(--primary); }

/* Sidebar Info-Cards Texte (Kontakt-Seite etc.) */
.radio-card p,
.radio-card .text-muted,
.info-card-text { color: var(--text-muted) !important; }

/* Breadcrumb */
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Wunsch/Kontakt Sidebar Cards */
.info-card .card-text,
.info-card p { color: #94a3b8; }

/* Bootstrap form-check in dunklem Theme */
.form-check { padding-left: 1.8em; }
.form-check .form-check-input { margin-left: -1.8em; float: left; }
.form-check a { color: var(--primary); text-decoration: underline; }
.form-check a:hover { color: var(--primary-dark); }

/* ===== COOKIE BANNER ===== */
#cookieBanner {
    position: fixed; bottom: calc(var(--player-height) + 12px); left: 12px; right: 12px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 9990; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    max-width: 760px; margin: 0 auto; left: 50%; transform: translateX(-50%);
    animation: slideUpCookie 0.4s ease;
}
@keyframes slideUpCookie { from { opacity:0; transform:translateX(-50%) translateY(20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
#cookieBanner .cookie-text { flex: 1; font-size: 0.85rem; color: var(--text-muted); min-width: 200px; }
#cookieBanner .cookie-text a { color: var(--primary); }
#cookieBanner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000; font-weight: 700; font-size: 0.8rem; border: none;
    border-radius: 50px; padding: 7px 18px; cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
}
.btn-cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,212,255,0.4); }
.btn-cookie-reject {
    background: transparent; color: var(--text-muted); font-size: 0.8rem;
    border: 1px solid var(--border-color); border-radius: 50px;
    padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.btn-cookie-reject:hover { color: var(--text-main); border-color: var(--text-muted); }
@media (max-width: 480px) {
    #cookieBanner { bottom: calc(var(--player-height) + 8px); padding: 1rem; }
    #cookieBanner .cookie-actions { width: 100%; }
    .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}

/* ===== VOTE BUTTON ===== */
.vote-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: transparent; border: 1px solid var(--border-color);
    border-radius: 50px; padding: 4px 10px; cursor: pointer;
    font-size: 0.78rem; color: var(--text-muted);
    transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.vote-btn:hover:not([disabled]) { border-color: #ef4444; color: #ef4444; }
.vote-btn.voted { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.1); }
.vote-btn[disabled] { cursor: default; }
.vote-btn i { font-size: 0.85rem; }

/* ===== SENDEPLAN SWIPE INDIKATOR (Mobile) ===== */
.swipe-hint {
    display: none; text-align: center;
    color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.5rem;
    animation: fadeInOut 2s ease 1s both;
}
@keyframes fadeInOut { 0%,100%{opacity:0} 20%,80%{opacity:1} }
@media (max-width: 768px) { .swipe-hint { display: block; } }

/* ===== PLAYLIST HISTORY ===== */
.history-track { transition: background 0.2s; border-radius: 8px; padding: 2px 4px; }
.history-track:hover { background: var(--primary-glow); }
