/* ============================================
   Endless Radio — Entwurf
   ============================================ */

:root {
    --bg: #0a0a12;
    --bg-alt: #0e0e1a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f2f2f7;
    --text-dim: #a3a3b8;
    --accent-1: #8b5cf6;
    --accent-2: #ec4899;
    --accent-3: #22d3ee;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 18px;
}

/* ---------- Hell-Modus ---------- */
:root[data-theme="light"] {
    --bg: #f5f5fb;
    --bg-alt: #ececf6;
    --surface: rgba(20, 20, 45, 0.045);
    --surface-strong: rgba(20, 20, 45, 0.07);
    --border: rgba(20, 20, 45, 0.1);
    --text: #17171f;
    --text-dim: #57576e;
}

:root[data-theme="light"] .bg-glow { opacity: 0.16; }
:root[data-theme="light"] .bg-glow--two { opacity: 0.1; }
:root[data-theme="light"] .site-header { background: rgba(245, 245, 251, 0.75); }
:root[data-theme="light"] .intro-overlay { background: radial-gradient(circle at 50% 40%, #17172b 0%, #08080f 75%); }
:root[data-theme="light"] .player-progress { background: rgba(20, 20, 45, 0.08); }
:root[data-theme="light"] .main-nav.open { background: rgba(245, 245, 251, 0.98); }
:root[data-theme="light"] .footer-social a:hover { color: var(--text); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.intro-active { overflow: hidden; height: 100vh; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Background glows ---------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}
.bg-glow--one {
    width: 500px; height: 500px;
    background: var(--accent-1);
    top: -150px; left: -100px;
}
.bg-glow--two {
    width: 450px; height: 450px;
    background: var(--accent-3);
    bottom: -100px; right: -100px;
    opacity: 0.2;
}

/* ---------- Hexagon-Hintergrundanimation ---------- */
.hex-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* ============================================
   INTRO ANIMATION
   ============================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: radial-gradient(circle at 50% 40%, #17172b 0%, #08080f 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: introFadeOut 0.8s ease forwards;
    animation-delay: 2.6s;
}

.intro-overlay.skip {
    animation: introFadeOut 0.5s ease forwards;
    animation-delay: 0s;
}

@keyframes introFadeOut {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.intro-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 48px;
}
.intro-bars span {
    width: 6px;
    border-radius: 4px;
    background: var(--gradient);
    animation: bounceBar 1.1s ease-in-out infinite;
}
.intro-bars span:nth-child(1) { height: 18px; animation-delay: 0s; }
.intro-bars span:nth-child(2) { height: 38px; animation-delay: 0.1s; }
.intro-bars span:nth-child(3) { height: 48px; animation-delay: 0.2s; }
.intro-bars span:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.intro-bars span:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes bounceBar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.intro-logo {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    animation: introReveal 0.8s ease forwards 0.3s;
}
.intro-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 10px;
}

.intro-tagline {
    color: var(--text-dim);
    opacity: 0;
    animation: introReveal 0.8s ease forwards 0.6s;
}

@keyframes introReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro-skip {
    position: absolute;
    bottom: 36px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.intro-skip:hover {
    color: var(--text);
    border-color: var(--accent-1);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(10, 10, 18, 0.65);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
    border: 1px dashed var(--border);
    padding: 5px 12px;
    border-radius: 999px;
}
.nav-pill em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent-1); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost {
    background: var(--surface);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.btn--primary {
    background: var(--gradient);
    color: #fff;
}
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none !important;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ============================================
   HERO / PLAYER
   ============================================ */
.hero {
    padding: 90px 0 70px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 20px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text p {
    color: var(--text-dim);
    max-width: 460px;
    font-size: 1.05rem;
}

/* Player card */
.player-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 22px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.player-art { flex-shrink: 0; }
.vinyl {
    width: 92px; height: 92px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a2e, #2a2a45, #1a1a2e);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 6s linear infinite paused;
}
.player-card.playing .vinyl { animation-play-state: running; }
.vinyl-hole {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gradient);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.player-info { flex: 1; min-width: 0; }
.player-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-3);
    margin-bottom: 4px;
}
.player-info h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-artist {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.player-progress {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.player-progress-fill {
    height: 100%;
    width: 30%;
    background: var(--gradient);
    border-radius: 4px;
}
.player-card.playing .player-progress-fill {
    animation: progressLoop 8s linear infinite;
}
@keyframes progressLoop {
    0% { width: 0%; }
    100% { width: 100%; }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ctrl-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.ctrl-btn svg { width: 18px; height: 18px; fill: currentColor; }
.ctrl-btn:hover { transform: translateY(-2px); }
.ctrl-btn--play {
    width: 48px; height: 48px;
    background: var(--gradient);
    border: none;
}
.ctrl-btn--play svg { width: 20px; height: 20px; fill: #fff; }

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.vol-icon { width: 18px; height: 18px; fill: var(--text-dim); }
.volume-wrap input[type="range"] {
    width: 70px;
    accent-color: var(--accent-1);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 50px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 10px;
}
.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-1);
}
.news-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-2);
    background: rgba(236, 72, 153, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}
.news-card time {
    font-size: 0.8rem;
    color: var(--text-dim);
}
.news-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    line-height: 1.35;
}
.news-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    flex: 1;
}
.news-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-3);
}

/* DJs */
.dj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.dj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.dj-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-3);
}
.dj-avatar {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
}
.dj-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.dj-show {
    color: var(--accent-3);
    font-size: 0.88rem;
    font-weight: 600;
}
.dj-time {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 14px;
}
.dj-genres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.dj-genres span {
    font-size: 0.72rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
}

/* Community teaser */
.community-teaser { padding-bottom: 110px; }
.community-inner {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 30px;
    max-width: 720px;
}
.community-inner h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    margin-bottom: 14px;
}
.community-inner p {
    color: var(--text-dim);
    margin-bottom: 26px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-inner p { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: all 0.2s ease;
}
.footer-social a:hover {
    color: #fff;
    border-color: var(--accent-1);
}
.footer-copy { width: 100%; text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .dj-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .news-grid { grid-template-columns: 1fr; }
    .dj-grid { grid-template-columns: 1fr 1fr; }
    .player-card { flex-direction: column; align-items: flex-start; }
    .volume-wrap { margin-left: 0; }
}

@media (max-width: 480px) {
    .dj-grid { grid-template-columns: 1fr; }
    .header-actions .btn--ghost { display: none; }
}

/* Mobile nav open state */
.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.97);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
}
