/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    background: #1a1f2e;
    color: #e0e0e0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* ===== HEADER & NAVIGATION ===== */
#site-header {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a3a5a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu a {
    color: #b0bec5;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 6px;
}

.main-menu a:hover {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

/* Dropdown Menus */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(38, 50, 75, 0.98);
    backdrop-filter: blur(15px);
    min-width: 220px;
    border: 1px solid #2a3a5a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-menu .sub-menu li:last-child {
    border-bottom: none;
}

.main-menu .sub-menu a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0;
}

.main-menu .sub-menu a:hover {
    background: rgba(79, 195, 247, 0.15);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #b0bec5;
    transition: all 0.3s ease;
}

.mobile-toggle:hover span {
    background: #4fc3f7;
}

/* ===== MAIN CONTENT LAYOUT ===== */
#main-content {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    align-items: start;
}

.sidebar-area {
    flex: 0 0 300px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Articles - DEINE TEXTGRÖSSEN */
.content-area article {
    background: rgba(38, 50, 75, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #2a3a5a;
    backdrop-filter: blur(10px);
}

.entry-title {
    color: #4fc3f7;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4fc3f7;
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.3;
    color: #e0e0e0;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h1 {
    font-size: 1.1rem;
    color: #4fc3f7;
    margin: 2rem 0 1rem 0;
}

.entry-content h2 {
    font-size: 1rem;
    color: #4fc3f7;
    margin: 1.8rem 0 1rem 0;
}

.entry-content h3 {
    font-size: 0.9rem;
    color: #4fc3f7;
    margin: 1.6rem 0 0.8rem 0;
}

/* Sidebar */
#secondary {
    background: rgba(38, 50, 75, 0.6);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #2a3a5a;
    backdrop-filter: blur(10px);
}

.widget {
    margin-bottom: 2rem;
    font-size: 0.8rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: #4fc3f7;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a3a5a;
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #4fc3f7;
}

.widget_radio_rfm_program_widget {
    background: rgba(12, 17, 28, 0.92);
    border: 1px solid rgba(79, 195, 247, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(5, 8, 16, 0.55);
}

.widget_radio_rfm_program_widget .widget-title {
    margin-bottom: 1.1rem;
    color: #f5f8ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}

.program-widget {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.program-widget__current {
    background: rgba(18, 28, 44, 0.92);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.program-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff9c9c;
    background: rgba(255, 68, 68, 0.18);
    border: 1px solid rgba(255, 68, 68, 0.4);
}

.program-widget__current-title {
    color: #f5f8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.program-widget__current-title:hover,
.program-widget__current-title:focus-visible {
    color: #4fc3f7;
}

.program-widget__current-time {
    font-size: 0.82rem;
    color: #9fb3c8;
    letter-spacing: 0.06em;
}

.program-widget__current-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #94a6bd;
    line-height: 1.5;
}

.program-widget__section {
    border-top: 1px solid rgba(79, 195, 247, 0.12);
    padding-top: 1rem;
}

.program-widget__section-title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7ec9f8;
}

.program-widget__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.program-widget__list-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.program-widget__list-time {
    min-width: 74px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: #4fc3f7;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

.program-widget__list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.program-widget__list-title {
    color: #e2ecfb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.program-widget__list-title:hover,
.program-widget__list-title:focus-visible {
    color: #4fc3f7;
}

.program-widget__list-range {
    font-size: 0.72rem;
    color: #8fa0b8;
    letter-spacing: 0.04em;
}

.program-widget__empty {
    margin: 0;
    font-size: 0.82rem;
    color: #8fa0b8;
}

/* ===== AUDIO PLAYER ===== */
#persistent-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid #2a3a5a;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.player-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

/* Player Toggle */
#player-toggle {
    background: #4fc3f7;
    color: #1a1f2e;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#player-toggle.playing {
    background: #ff9800;
}

#player-toggle:hover {
    transform: scale(1.05);
}

/* Mode Buttons */
.player-mode {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
}

.mode-btn {
    background: none;
    border: none;
    color: #b0bec5;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mode-label-short {
    display: none;
}

.mode-btn.active {
    background: #4fc3f7;
    color: #1a1f2e;
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Track Info */
#track-info {
    flex: 1;
    margin: 0 1rem;
    min-width: 0;
}

/* Now-playing nur bei Live anzeigen */
.player-live #now-playing {
    display: block;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

.player-audiothek #now-playing {
    display: none;
}

/* Current Track nur bei Audiothek anzeigen */
.player-audiothek #current-track {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.player-live #current-track {
    display: none;
}

.track-title {
    font-weight: 600;
    color: #4fc3f7;
    display: block;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-time {
    font-size: 0.75rem;
    color: #b0bec5;
    min-width: 80px;
    text-align: right;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

#volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #2a3a5a;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#volume-slider:hover {
    opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
}

#volume-btn {
    background: none;
    border: none;
    color: #b0bec5;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#volume-btn:hover {
    color: #4fc3f7;
}

/* ===== FOOTER ===== */
#site-footer {
    background: rgba(26, 31, 46, 0.9);
    padding: 2rem;
    text-align: center;
    color: #78909c;
    border-top: 1px solid #2a3a5a;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    #main-content {
        max-width: 1200px;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .header-container {
        padding: 0.5rem 1.5rem;
    }
    
    .sidebar-area {
        flex: 0 0 250px;
    }
    
    .main-menu a {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 0.5rem 1rem;
        min-height: 70px;
    }
    
    .site-logo {
        height: 50px;
    }
    
    /* Mobile Menu */
    .mobile-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 31, 46, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid #2a3a5a;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-menu {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-menu .sub-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-left: 1rem;
    }
    
    /* Mobile Menu Toggle Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Main Content Mobile */
    #main-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sidebar-area {
        flex: 1;
        width: 100%;
        order: 2;
    }
    
    .content-area {
        order: 1;
    }
    
    .content-area article {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    .entry-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Player Mobile */
    .player-container {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .player-controls {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    #track-info {
        margin: 0 0.5rem;
        order: 3;
        flex-basis: 100%;
    }
    
    .progress-time {
        display: none;
    }
    
    #volume-slider {
        width: 60px;
    }
    
    .player-mode {
        order: -1;
    }
}

@media (max-width: 480px) {
    #persistent-audio-player {
        padding: 0 0.5rem;
    }

    .player-container {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }

    #player-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        padding: 0.6rem;
    }

    .mode-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.75rem;
    }

    .mode-label-full {
        display: none;
    }

    .mode-label-short {
        display: inline;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
    }

    .player-live #now-playing {
        font-size: 0.78rem;
    }

    #track-info {
        order: 3;
    }

    .volume-control {
        gap: 0.35rem;
    }

    #volume-btn {
        font-size: 0.95rem;
        padding: 0.35rem;
    }

    #volume-slider {
        width: 50px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.3rem;
    color: #4fc3f7;
}

.loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(79, 195, 247, 0); text-shadow: .25em 0 0 rgba(79, 195, 247, 0), .5em 0 0 rgba(79, 195, 247, 0); }
    40% { color: #4fc3f7; text-shadow: .25em 0 0 rgba(79, 195, 247, 0), .5em 0 0 rgba(79, 195, 247, 0); }
    60% { text-shadow: .25em 0 0 #4fc3f7, .5em 0 0 rgba(79, 195, 247, 0); }
    80%, 100% { text-shadow: .25em 0 0 #4fc3f7, .5em 0 0 #4fc3f7; }
}

/* Entry Content mit einheitlichem Ausschnitt */
.entry-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* Read More Link */
.read-more {
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

.read-more-link {
    display: inline-block;
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #4fc3f7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    background: #4fc3f7;
    color: #1a1f2e;
    transform: translateY(-1px);
}

/* Flexbox Layout für Artikel */
.content-area article {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
}

.entry-thumbnail {
    flex: 0 0 150px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.entry-thumbnail a:hover img {
    transform: scale(1.05);
}

.entry-main-content {
    flex: 1;
    min-width: 0;
}

.entry-header {
    margin-bottom: 0.8rem;
}

.entry-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.entry-title a {
    color: #fff;
    text-decoration: none;
}

.entry-title a:hover {
    color: #4fc3f7;
}

.entry-meta {
    font-size: 0.85rem;
    color: #b0bec5;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area article {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entry-thumbnail {
        flex: 0 0 auto;
        text-align: center;
    }
    
    .entry-thumbnail img {
        max-width: 200px;
    }
    
    .entry-content {
        font-size: 0.9rem;
    }
}

/* Search Results - Konsistentes Layout */
.search-results {
    margin-bottom: 2rem;
}

.search-result-item {
    display: grid;
    grid-template-columns: 200px 1fr; /* Feste Breite für Meta + flexible Content */
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Linke Spalte - Meta Daten */
.search-result-meta {
    grid-column: 1;
}

.entry-header {
    margin-bottom: 0;
}

.entry-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #fff;
    text-decoration: none;
}

.entry-title a:hover {
    color: #4fc3f7;
}

.entry-meta {
    font-size: 0.8rem;
    color: #b0bec5;
    line-height: 1.4;
}

.entry-date {
    display: block;
    margin-bottom: 0.3rem;
}

.entry-type {
    display: inline-block;
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Rechte Spalte - Content */
.entry-summary {
    grid-column: 2;
}

.entry-summary p {
    margin-bottom: 1rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.read-more-link {
    display: inline-block;
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-result-meta {
        grid-column: 1;
    }
    
    .entry-summary {
        grid-column: 1;
    }
    
    .entry-title {
        font-size: 1.2rem;
    }
}

/* Suchbegriffe hervorheben */
mark {
    background: #ffeb3b;
    color: #000;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 600;
}

/* Audiothek Styles */
.audiothek-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(38, 50, 75, 0.6);
    border-radius: 8px;
    border: 1px solid #2a3a5a;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4fc3f7;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2a3a5a;
    border-radius: 4px;
    padding: 0.5rem;
    color: #fff;
    min-width: 150px;
}

.audiothek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.audiothek-item {
    background: rgba(38, 50, 75, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2a3a5a;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.audiothek-item:hover {
    transform: translateY(-5px);
    border-color: #4fc3f7;
}

.audiothek-item[aria-disabled="true"] {
    cursor: default;
    opacity: 0.6;
}

.audiothek-item[aria-disabled="true"]:hover {
    transform: none;
    border-color: #2a3a5a;
}

.audiothek-item.is-active {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.25);
    background: rgba(38, 50, 75, 0.85);
}

.audiothek-item:focus {
    outline: 2px solid rgba(79, 195, 247, 0.7);
    outline-offset: 3px;
}

.audiothek-thumbnail {
    text-align: center;
    margin-bottom: 1rem;
}

.audiothek-thumbnail img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.audiothek-title {
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.audiothek-meta {
    color: #b0bec5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.audiothek-description {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.play-audiothek {
    background: #4fc3f7;
    color: #1a1f2e;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.play-audiothek:hover {
    background: #29b6f6;
    transform: scale(1.05);
}

.download-link {
    color: #b0bec5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #4fc3f7;
}

.audiothek-load-more {
    text-align: center;
    margin-top: 2rem;
}

#load-more-audios {
    background: transparent;
    color: #4fc3f7;
    border: 2px solid #4fc3f7;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#load-more-audios:hover {
    background: #4fc3f7;
    color: #1a1f2e;
}

/* Responsive */
@media (max-width: 768px) {
    .audiothek-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .audiothek-grid {
        grid-template-columns: 1fr;
    }
}

/* Audiothek Erweiterungen */
.audio-count {
    color: #b0bec5;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.audio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.show-name {
    background: rgba(79, 195, 247, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4fc3f7;
}

.episode-year {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #b0bec5;
}

.audiothek-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.file-size {
    font-size: 0.75rem;
    color: #78909c;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Filter Verbesserungen */
#search-filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2a3a5a;
    border-radius: 4px;
    padding: 0.5rem;
    color: #fff;
    min-width: 200px;
}

#search-filter::placeholder {
    color: #78909c;
}

.no-audios {
    text-align: center;
    padding: 3rem;
    color: #b0bec5;
}

/* Audiothek Grid mit Class-basiertem Filter */
.audiothek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.audiothek-item {
    background: rgba(38, 50, 75, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2a3a5a;
    transition: all 0.3s ease;
}

/* Gefilterte Items ausblenden */
.audiothek-item.filtered-out {
    display: none !important;
}

/* Smooth Transitions für Filter */
.audiothek-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.audiothek-item:not(.filtered-out) {
    animation: fadeIn 0.3s ease;
}

.audiothek-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 152, 0, 0.12);
    color: #ffe7c2;
    border: 1px solid rgba(255, 152, 0, 0.4);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
}

.audiothek-link:hover,
.audiothek-link:focus-visible {
    border-color: rgba(255, 152, 0, 0.7);
    background: rgba(255, 152, 0, 0.2);
    color: #fff3dc;
    transform: translateY(-1px);
}

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

/* Programm Page */
.content-area.full-width {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

.programm-focus {
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) minmax(240px, 0.75fr);
    gap: 1.75rem;
    margin: 2.5rem 0 2.2rem;
}

.current-show-card {
    background: linear-gradient(135deg, rgba(13, 19, 33, 0.96), rgba(22, 32, 50, 0.96));
    border: 1px solid rgba(79, 195, 247, 0.22);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    box-shadow: 0 22px 48px rgba(6, 9, 18, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
    overflow: hidden;
}

.current-show-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(79, 195, 247, 0.18), transparent 55%);
    opacity: 0.7;
}

.current-show-card__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #9fb3c8;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

.current-show-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.current-show-card__badge.is-live {
    background: rgba(255, 68, 68, 0.18);
    color: #ff9494;
    border-color: rgba(255, 68, 68, 0.45);
    box-shadow: 0 0 22px rgba(255, 68, 68, 0.25);
}

.current-show-card__badge.is-upcoming {
    background: rgba(79, 195, 247, 0.2);
    color: #82d7ff;
    border-color: rgba(79, 195, 247, 0.45);
}

.current-show-card__day {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #d0deef;
}

.current-show-card__time {
    color: #7fc8f8;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
}

.current-show-card__title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #f7faff;
    position: relative;
    z-index: 1;
}

.current-show-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.current-show-card__title a:hover,
.current-show-card__title a:focus-visible {
    color: #4fc3f7;
}

.current-show-card__description {
    margin: 0;
    color: #b7c7dd;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.current-show-card__more {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(79, 195, 247, 0.18);
    color: #e2f6ff;
    border: 1px solid rgba(79, 195, 247, 0.42);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.current-show-card__more:hover,
.current-show-card__more:focus-visible {
    border-color: rgba(79, 195, 247, 0.7);
    background: rgba(79, 195, 247, 0.28);
    transform: translateY(-1px);
}

.current-show-card__fallback {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.focus-lists {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.focus-list {
    background: rgba(10, 16, 26, 0.92);
    border: 1px solid rgba(45, 65, 98, 0.55);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 14px 34px rgba(4, 7, 14, 0.55);
}

.focus-list__title {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7ec9f8;
}

.focus-list__items {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.focus-list__item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #e0ecff;
    font-size: 0.9rem;
}

.focus-list__time {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #4fc3f7;
    min-width: 54px;
}

.focus-list__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.focus-list__link:hover,
.focus-list__link:focus-visible {
    color: #4fc3f7;
}

.focus-list--empty {
    text-align: center;
    color: #8fa0b8;
    font-size: 0.85rem;
    border: 1px dashed rgba(79, 195, 247, 0.3);
    background: rgba(12, 18, 30, 0.7);
}

.programm-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.2rem;
    padding: 1rem 1.2rem;
    background: rgba(7, 11, 18, 0.88);
    border: 1px solid rgba(32, 46, 72, 0.75);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(4, 7, 14, 0.6);
    backdrop-filter: blur(14px);
}

.nav-btn {
    background: rgba(16, 24, 39, 0.9);
    border: 1px solid rgba(37, 56, 86, 0.6);
    color: #b8c7d9;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 120px;
    text-align: left;
}

.nav-btn__label {
    pointer-events: none;
}

.nav-btn__today {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: #4fc3f7;
    text-transform: uppercase;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    color: #ffffff;
    border-color: rgba(79, 195, 247, 0.55);
    box-shadow: 0 12px 28px rgba(79, 195, 247, 0.25);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.25), rgba(41, 182, 246, 0.35));
    color: #f5fbff;
    border-color: rgba(79, 195, 247, 0.65);
    box-shadow: 0 16px 38px rgba(41, 182, 246, 0.32);
}

.nav-btn.active .nav-btn__today {
    color: #ffd180;
}

.programm-day {
    display: none;
    animation: fadeIn 0.3s ease;
}

.programm-day.active {
    display: block;
}

.day-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    color: #f5f8ff;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.day-title__chip {
    background: rgba(79, 195, 247, 0.18);
    color: #4fc3f7;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.day-title__date {
    color: #8fa0b8;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.programm-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
}

.time-slot {
    position: relative;
    display: grid;
    grid-template-columns: minmax(90px, 120px) 1fr;
    column-gap: 1.3rem;
    row-gap: 0.6rem;
    align-items: start;
    background: rgba(12, 17, 27, 0.95);
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(42, 65, 95, 0.6);
    box-shadow: 0 16px 38px rgba(5, 8, 16, 0.58);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.time-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(79, 195, 247, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.time-slot:hover,
.time-slot:focus-within {
    transform: translateY(-3px);
    border-color: rgba(79, 195, 247, 0.38);
    box-shadow: 0 20px 48px rgba(6, 10, 18, 0.68);
}

.time-slot:hover::before,
.time-slot:focus-within::before {
    opacity: 1;
}

.time-slot.current {
    border-color: rgba(255, 92, 92, 0.65);
    box-shadow: 0 24px 56px rgba(255, 68, 68, 0.28);
}

.time-slot.current::before {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.22), rgba(255, 68, 68, 0.08));
    opacity: 1;
}

.time-slot.past {
    opacity: 0.75;
    border-color: rgba(32, 46, 72, 0.45);
}

.time-slot.highlight::before {
    background: linear-gradient(135deg, rgba(255, 174, 66, 0.22), rgba(255, 152, 0, 0.08));
    opacity: 1;
}

.time-range {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 700;
    color: #7fc8f8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.time-range__start,
.time-range__end {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 0.95rem;
}

.time-range__separator {
    opacity: 0.65;
}

.show-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slot-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9fb3c8;
    background: rgba(79, 195, 247, 0.12);
    border: 1px solid rgba(79, 195, 247, 0.25);
}

.slot-badge--live {
    background: rgba(255, 68, 68, 0.2);
    color: #ff9b9b;
    border-color: rgba(255, 68, 68, 0.5);
}

.slot-badge--upcoming {
    background: rgba(79, 195, 247, 0.18);
    color: #7fd4ff;
    border-color: rgba(79, 195, 247, 0.45);
}

.show-title {
    color: #f2f6ff;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin: 0;
}

.show-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.show-title a:hover,
.show-title a:focus-visible {
    color: #4fc3f7;
}

.show-description {
    margin: 0.35rem 0 0;
    color: #9fb3c8;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.95;
}

.no-slots {
    background: rgba(14, 20, 32, 0.9);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    text-align: center;
    color: #b0bec5;
    box-shadow: 0 12px 32px rgba(6, 9, 18, 0.5);
}

.programm-info {
    background: rgba(16, 21, 34, 0.94);
    padding: 2.1rem;
    border-radius: 18px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    margin-top: 2.8rem;
    box-shadow: 0 16px 40px rgba(5, 8, 16, 0.6);
}

.programm-info h3 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.programm-info a {
    color: #81d4fa;
    text-decoration: none;
    font-weight: 600;
}

.programm-info a:hover,
.programm-info a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .programm-focus {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-btn {
        min-width: calc(50% - 0.9rem);
        align-items: center;
        text-align: center;
    }

    .nav-btn__label {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .programm-navigation {
        padding: 0.75rem;
        gap: 0.6rem;
        justify-content: center;
    }

    .nav-btn {
        min-width: calc(50% - 0.6rem);
    }

    .programm-slots {
        grid-template-columns: 1fr;
    }

    .time-slot {
        grid-template-columns: 1fr;
        row-gap: 0.6rem;
    }

    .time-range {
        order: -1;
    }
}

@media (max-width: 540px) {
    .current-show-card {
        padding: 1.4rem 1.5rem;
    }

    .current-show-card__title {
        font-size: 1.45rem;
    }

    .focus-list {
        padding: 0.9rem 1rem;
    }

    .nav-btn {
        min-width: 100%;
    }
}
