/* =========================================================
   FSX Radio - Modernes, responsives Design-System (Beta)
   ========================================================= */

:root {
    --brand: #FED003;
    --brand-dark: #F6B203;
    --brand-soft: #FEC057;

    /* Werden ggf. von der saisonalen Menuekonfiguration ueberschrieben */
    --nav-link: var(--brand-dark);
    --nav-accent: var(--brand);
    --nav-accent-dark: var(--brand-dark);
    --nav-bg: rgba(20, 20, 24, 0.92);

    --bg: #0c0c10;
    --bg-2: #111118;
    --surface: #16161d;
    --surface-2: #1d1d27;
    --surface-3: #262633;
    --text: #f3f4f6;
    --muted: #a2a8b3;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(254, 208, 3, 0.35);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);

    --container: 1240px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(254, 208, 3, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(246, 178, 3, 0.08), transparent 55%),
        var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-soft);
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 0.5em;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.3em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #1a1500;
    box-shadow: 0 8px 22px rgba(254, 208, 3, 0.28);
}

.btn-primary:hover {
    color: #1a1500;
    box-shadow: 0 10px 28px rgba(254, 208, 3, 0.42);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-danger {
    background: #2a1416;
    border-color: rgba(229, 72, 77, 0.5);
    color: #ff9ca0;
}

.btn-sm {
    padding: 0.45em 0.9em;
    font-size: 0.85rem;
}

/* ---------- Header / Hero ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
    font-size: 1.15rem;
}

.brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: grid;
    place-items: center;
    color: #1a1500;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(254, 208, 3, 0.3);
}

.brand span.brand-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
}

/* ---------- Navigation ---------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: var(--nav-link);
    padding: 0.55em 0.9em;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.main-nav a.active {
    box-shadow: inset 0 -2px 0 var(--nav-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta {
    display: inline-flex;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 16, 0.15) 0%, rgba(12, 12, 16, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 20px;
    width: 100%;
    max-width: 760px;
}

.hero-logo {
    max-height: 200px;
    width: auto;
    margin: 0 auto 18px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero p.lead {
    color: #e8e8ec;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
}

/* ---------- Layout-Grid ---------- */
.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
    padding: 32px 0 48px;
}

.main-col {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
}

/* ---------- Stream-Player ---------- */
.stream-player--hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background:
        linear-gradient(135deg, rgba(254, 208, 3, 0.14), rgba(246, 178, 3, 0.05)),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow-sm);
}

.stream-player__visual {
    flex-shrink: 0;
}

.stream-player__art-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    padding: 0;
    border: 2px solid rgba(254, 208, 3, 0.45);
    border-radius: var(--radius);
    background-color: var(--surface-3);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.stream-player__art-btn:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 10px 28px rgba(254, 208, 3, 0.18);
}

.stream-player__play-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(12, 12, 16, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
}

.stream-player__play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}

.stream-player--hero.is-playing .stream-player__play-icon::before {
    left: 50%;
    border-width: 0;
    width: 16px;
    height: 20px;
    background:
        linear-gradient(to right, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}

.stream-player__body {
    min-width: 0;
}

.stream-player__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 6px;
}

.stream-player__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8f8f;
}

.stream-player__station {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand);
}

.stream-player__title {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.15;
}

.stream-player__tagline {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.stream-player__audio {
    width: 100%;
    margin-top: 4px;
    border-radius: var(--radius-sm);
}

.stream-player--compact .stream-player__compact-btn {
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: var(--radius-sm);
    background-color: var(--surface-2);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stream-player--compact .stream-player__compact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.stream-player--compact .stream-player__audio {
    width: 100%;
    margin-top: 10px;
}

/* Legacy-Klasse (falls noch referenziert) */
.player-card {
    display: none;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* ---------- Karten / Sektionen ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: #fff;
}

.section-title .accent {
    color: var(--brand);
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 20px;
}

/* ---------- Team-Karten ---------- */
.team-group {
    margin-bottom: 32px;
}

.team-group h3 {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand);
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.team-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.team-card .photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0c0c10;
}

.team-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .body {
    padding: 14px 16px 18px;
}

.team-card .display {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand);
}

.team-card .real {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    font-size: 0.88rem;
}

.team-card dt {
    color: var(--muted);
}

.team-card dd {
    margin: 0;
}

/* ---------- Sendeplan ---------- */
.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.day-tabs a {
    padding: 0.5em 1em;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.day-tabs a:hover {
    border-color: var(--border-strong);
}

.day-tabs a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #1a1500;
    border-color: transparent;
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
}

.schedule th,
.schedule td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.schedule thead th {
    background: var(--surface-3);
    color: var(--brand);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule tbody tr {
    background: var(--surface-2);
}

.schedule tbody tr:nth-child(even) {
    background: var(--surface);
}

.schedule tbody tr:hover {
    background: rgba(254, 208, 3, 0.06);
}

.schedule .col-time {
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.schedule .col-dj {
    font-weight: 600;
}

/* ---------- News ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.news-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.news-item img {
    width: 100%;
    height: auto;
}

.news-item .news-caption {
    padding: 12px 14px;
    font-weight: 600;
}

.news-video {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.news-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Partner ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.partner-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.partner-card img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.partner-card .partner-name {
    color: #1a1a1a;
    font-weight: 700;
}

/* ---------- Formulare ---------- */
.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.7em 0.9em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(254, 208, 3, 0.18);
}

.textarea {
    min-height: 160px;
    resize: vertical;
}

.prose {
    color: #e7e8ea;
}

.prose b {
    color: #fff;
}

/* ---------- Sidebar-Widgets ---------- */
.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    padding: 10px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    border-bottom: 1px solid var(--border);
}

.widget-body {
    padding: 12px;
}

.widget iframe {
    display: block;
    width: 100%;
    border: 0;
}

.secondary-stream .stream-player--compact {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    flex: 1;
    text-align: center;
    padding: 0.7em;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 700;
}

/* ---------- Werbung / Marquee ---------- */
.promo-rail {
    overflow: hidden;
    height: 500px;
    position: relative;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}

.promo-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    animation-name: scroll-up;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.promo-rail:hover .promo-track {
    animation-play-state: paused;
}

.promo-item {
    display: block;
    line-height: 0;
}

.promo-track img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    max-width: 150px;
    width: 100%;
    height: auto;
}

.promo-sep {
    width: 60%;
    height: 0;
    border-top: 2px solid var(--border);
    margin: 4px 0;
}

@keyframes scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* ---------- Cookie-Hinweis (DSGVO) ---------- */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #323232;
    color: #fff;
    border-top: 2px solid var(--brand);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    padding: 14px 18px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-hide {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-consent-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
}

.cookie-consent-text a {
    color: var(--brand);
    text-decoration: underline;
}

.cookie-consent-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 28px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Flash-Nachrichten ---------- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.flash-success {
    background: rgba(46, 160, 67, 0.15);
    border-color: rgba(46, 160, 67, 0.5);
    color: #8ce99a;
}

.flash-error {
    background: rgba(229, 72, 77, 0.15);
    border-color: rgba(229, 72, 77, 0.5);
    color: #ff9ca0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 8px 16px 16px;
        transform: translateY(-120%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        padding: 0.85em 0.6em;
        border-radius: 8px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 300px;
    }

    .stream-player--hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 18px 16px;
    }

    .stream-player__visual {
        display: flex;
        justify-content: center;
    }

    .stream-player__meta {
        justify-content: center;
    }
}
