:root {
    --color-white: #ffffff;
    --color-light: #e6e6e6;
    --color-black: #000000;
    --color-accent: #da171c;
    --color-accent-dark: #b21217;
    --color-text-soft: #5f5f5f;
    --color-border: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --bottom-nav-height: 108px;
    --content-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(218, 23, 28, 0.06), transparent 22%),
        linear-gradient(180deg, #f3f3f3 0%, var(--color-light) 100%);
    color: var(--color-black);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-shell {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 4px 14px;
    background: linear-gradient(180deg, rgba(243, 243, 243, 0.98), rgba(243, 243, 243, 0.9));
    backdrop-filter: blur(12px);
}

.page-content {
    padding: 8px 18px 0;
}

.view {
    display: none;
}

.view-active {
    display: block;
}

.station-nav {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: start;
    gap: 8px;
    margin-top: 8px;
}

.station-nav-btn {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-accent);
    box-shadow: none;
    font-size: 1.45rem;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.station-nav-btn:hover,
.station-nav-btn:focus-visible {
    transform: translateY(-1px);
    background: var(--color-white);
    outline: none;
}

.station-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.station-nav-center {
    text-align: center;
}

.station-kicker,
.section-kicker {
    margin: 0 0 6px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 700;
}

.station-title,
.section-title {
    margin: 0;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.station-title {
    font-size: clamp(1.0rem, 7vw, 4.2rem);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.station-media-card,
.content-card {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
}

.station-media-card {
    overflow: hidden;
}

.station-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #d0d0d0;
}

.station-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-actions {
    padding: 22px 22px 0;
}

.button-primary {
    width: 100%;
    min-height: 62px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    font-size: clamp(1.15rem, 4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 22px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
    outline: none;
}

.station-actions button {
    border-radius: var(--radius-sm);
}

.audio-player-wrap {
    padding: 18px 22px 0;
    display: grid;
    gap: 14px;
}

.audio-player {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    gap: 18px;
    padding: 10px 20px 12px;
    border-radius: var(--radius-lg);
    background: rgba(51,51,51,0.8);
    color: #ffffff;
}

.audio-play-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.audio-play-icon {
    font-size: 20px;
    line-height: 1;
}

.audio-main {
    display: grid;
    gap: 6px;
}

.audio-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.audio-title {
    font-weight: 500;
}

.audio-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.audio-progress {
    cursor: pointer;
}

.audio-progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.audio-progress-fill {
    width: 0;
    height: 100%;
    background: var(--color-accent);
    border-radius: 999px;
}

.audio-bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-volume-toggle {
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.audio-volume {
    flex: 0 0 32%;
    cursor: pointer;
}

.audio-volume-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            to right,
            rgba(0, 0, 0, 0.35) 0,
            rgba(0, 0, 0, 0.35) 3px,
            transparent 3px,
            transparent 6px
        );
    overflow: hidden;
}

.audio-volume-fill {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            to right,
            rgba(255, 255, 255, 0.65) 0,
            rgba(255, 255, 255, 0.65) 3px,
            transparent 3px,
            transparent 6px
        );
    transform-origin: left center;
}

.audio-player audio {
    display: none;
}

/* Audio-Elemente sind ohne Controls, dennoch sicher ausblenden */
.audio-player-el {
    display: none;
}

.station-text-card {
    padding: 18px 22px 28px;
}

.station-text {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #222222;
}

.station-text p:first-child {
    margin-top: 0;
}

.station-text p:last-child {
    margin-bottom: 0;
}

.content-card {
    padding: 24px;
}

.content-card-spaced {
    min-height: 56vh;
}

.legal-card {
    min-height: 56vh;
}

.legal-content {
    margin-top: 14px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #252525;
}

.legal-content p:first-child {
    margin-top: 0;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.lead-text {
    margin: 18px 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #252525;
}

.home-teaser-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 14px;
    border-radius: var(--radius-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.info-tile {
    padding: 18px;
    background: rgba(230, 230, 230, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-label {
    display: block;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.info-tile strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
}

.home-actions {
    margin-top: 24px;
}

.map-card {
    padding-bottom: 18px;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.map-canvas {
    min-height: 60vh;
    background: linear-gradient(180deg, rgba(230, 230, 230, 0.95), rgba(215, 215, 215, 0.95));
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    height: 100%;
    min-height: 340px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    color: #333333;
    line-height: 1.7;
}

.map-placeholder code {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 7px;
    border-radius: 6px;
}

.map-station-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.station-list-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: rgba(230, 230, 230, 0.7);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.station-list-item:hover,
.station-list-item:focus-visible,
.station-list-item.is-current {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: none;
    outline: none;
}

.station-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: none;
}

.station-list-meta strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.2;
}

.station-list-meta span {
    display: block;
    margin-top: 4px;
    color: var(--color-text-soft);
    font-size: 0.96rem;
}

.bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
}

.bottom-nav-btn {
    min-height: 56px;
    border: 0;
    background: transparent;
    color: var(--color-accent);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-btn:hover,
.bottom-nav-btn:focus-visible {
    background: rgba(218, 23, 28, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.bottom-nav-btn.is-active:not(.bottom-nav-btn-home) {
    background: rgba(218, 23, 28, 0.08);
}

.bottom-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(218, 23, 28, 0.08);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.bottom-nav-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.bottom-nav-btn-home {
    position: relative;
    justify-content: center;
    padding-top: 0;
}

.bottom-nav-home-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: none;
    margin-top: 0;
}

.bottom-nav-btn-home .bottom-nav-label {
    margin-top: 2px;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.drawer.is-open {
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.drawer-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 110%);
    width: min(100%, var(--content-width));
    max-height: min(75vh, 760px);
    background: #f8f8f8;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s ease;
    overflow: hidden;
}

.drawer.is-open .drawer-backdrop {
    opacity: 1;
}

.drawer.is-open .drawer-panel {
    transform: translate(-50%, 0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 10px;
    border-bottom: 1px solid var(--color-border);
}

.drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    font-size: 2rem;
    line-height: 1;
    color: var(--color-black);
}

.drawer-list {
    padding: 14px 16px 20px;
    overflow: auto;
    max-height: calc(75vh - 92px);
    display: grid;
    gap: 10px;
}

.loading-state,
.error-state,
.empty-state {
    padding: 32px 18px;
    text-align: center;
    color: #444444;
}

.site-footer {
    padding: 14px 18px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-link-btn {
    border: 0;
    background: transparent;
    color: #4a4a4a;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
    color: var(--color-black);
    outline: none;
}

.site-footer-separator {
    color: #8a8a8a;
}

@media (min-width: 768px) {
    .page-content {
        padding-left: 26px;
        padding-right: 26px;
    }

    .site-header {
        padding-left: 26px;
        padding-right: 26px;
    }

    .site-footer {
        padding-left: 26px;
        padding-right: 26px;
    }

    .station-actions,
    .audio-player-wrap,
    .station-text-card,
    .content-card {
        padding-left: 28px;
        padding-right: 28px;
    }

    .map-placeholder {
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .station-nav {
        grid-template-columns: 48px 1fr 48px;
    }

    .station-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .content-card,
    .station-actions,
    .audio-player-wrap,
    .station-text-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}