/* ===========================
   Allgemeine Stile
   =========================== */
body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('boxen/background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #F0F8FF; /* Eisiges Weiß */
}

/* ===========================
   Header & Tagline
   =========================== */
header {
    background: linear-gradient(135deg, rgb(46 43 34 / 48%) 60%, rgb(138 3 3 / 48%) 100% 100%);
    box-shadow: 0 4px 16px rgba(138, 3, 3, 0.15);
    border-radius: 0 0 18px 18px;
    padding: 18px 24px 8px 24px;
    color: var(--foreground);
    font-family: var(--font-family);
}

.tagline p {
    font-size: 2rem;
    font-weight: 900;
    color: #f3d27a;
    margin: 0 0 18px 0;
    text-align: center;
    letter-spacing: 0.03em;
    user-select: none;
    perspective: 600px;
    text-shadow:
        0 1px 0 #b37a00,
        0 2px 0 #a36e00,
        0 3px 0 #8f6200,
        0 4px 0 #7b5600,
        0 5px 0 #684a00,
        0 6px 0 #543e00,
        0 7px 0 #403200,
        0 8px 7px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.tagline p:hover {
    transform: rotateX(15deg) rotateY(10deg) translateZ(10px);
    text-shadow:
        0 2px 1px #ffd54f,
        0 4px 2px #ffca28,
        0 6px 3px #ffc107,
        0 8px 4px #ffb300,
        0 10px 5px #ffa000,
        0 12px 6px #ff8f00,
        0 14px 7px #ff6f00,
        0 16px 14px rgba(0,0,0,0.8);
}

/* ===========================
   Hauptnavigation
   =========================== */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a,
.main-nav .dropdown-toggle {
    color: #f3a56e;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 
        background 0.2s cubic-bezier(.4,0,.2,1),
        color 0.2s cubic-bezier(.4,0,.2,1),
        box-shadow 0.2s cubic-bezier(.4,0,.2,1);
    outline: none;
}

.main-nav a[aria-current="page"],
.main-nav a.active,
.main-nav .dropdown-toggle[aria-expanded="true"] {
    background: linear-gradient(90deg, #8a0303 0%, #f3d27a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(243, 210, 122, 0.15);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle:focus-visible {
    background: color-mix(in srgb, #f3d27a 60%, transparent);
    color: #2e2b22;
    box-shadow: 0 4px 16px rgba(243, 210, 122, 0.18);
}

.main-nav .dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
    color: #f3d27a;
    transition: transform 0.2s;
}
.main-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

/* Dropdown-Menüs */
.main-nav ul.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(46, 43, 34, 0.97);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(138, 3, 3, 0.18);
    padding: 10px 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

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

.main-nav li:focus-within > ul.dropdown,
.main-nav li:hover > ul.dropdown,
.main-nav .dropdown-toggle[aria-expanded="true"] + ul.dropdown {
    display: flex;
}

.main-nav ul.dropdown li {
    margin: 0;
}

.main-nav ul.dropdown a {
    padding: 10px 18px;
    display: block;
    font-size: 1rem;
    color: #f3a56e;
    border-radius: 6px;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.main-nav ul.dropdown a:hover,
.main-nav ul.dropdown a:focus-visible {
    background: #f3d27a;
    color: #2e2b22;
    outline: none;
}

/* ===========================
   Sendeplan-Überschrift
   =========================== */
h1 {
    text-align: center;
    color: #f3d27a;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 2.2rem 0 1.2rem 0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(138,3,3,0.13);
}

/* ===========================
   Sendeplan-Tabelle
   =========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(46, 43, 34, 0.92);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(138, 3, 3, 0.15);
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid #8A0303;
    padding: 12px 16px;
    text-align: left;
    font-size: 1.05rem;
}

th {
    background: linear-gradient(90deg, #8A0303 0%, #f3d27a 100%);
    color: #2E2B22;
    font-weight: 800;
    letter-spacing: 0.03em;
}

td {
    background: rgba(46, 43, 34, 0.92);
    color: #F0F8FF;
    vertical-align: middle;
}

tr:nth-child(even) td {
    background: rgba(46, 43, 34, 0.85);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.user-info .avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #8A0303;
    background: #2E2B22;
}

.user-info .genre {
    color: #D9B94A;
    font-weight: 600;
}

.genre-bild {
    width: 150px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #f3d27a;
    background: #2E2B22;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .genre-bild {
        width: 60px;
        height: 38px;
    }
}

.no-programm,
.no-image {
    color: #D9B94A;
    font-style: italic;
}

/* ===========================
   Tabs
   =========================== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    background: linear-gradient(90deg, #2E2B22 0%, #8A0303 100%);
    color: #f3d27a;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 0.7em 1.5em;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(138,3,3,0.10);
    border: none;
    outline: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-bottom: -2px;
    user-select: none;
}

.tab.active,
.tab:hover,
.tab:focus-visible {
    background: linear-gradient(90deg, #f3d27a 0%, #8A0303 100%);
    color: #2E2B22;
    box-shadow: 0 4px 16px rgba(243, 210, 122, 0.18);
    z-index: 2;
}

.tab-content {
    display: none;
    background: rgba(46, 43, 34, 0.92);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 32px rgba(138, 3, 3, 0.18), 0 1.5px 8px rgba(0,0,0,0.13);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    margin: 0 auto 2.5rem auto;
    max-width: 900px;
    animation: fadeInTab 0.5s cubic-bezier(.4,0,.2,1);
}

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

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #f3d27a;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-align: left;
    letter-spacing: 0.03em;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 900px) {
    .tab-content {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 99vw;
    }
    table {
        font-size: 0.98rem;
    }
    .tabs {
        gap: 0.3rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.3rem;
        margin: 1.2rem 0 0.7rem 0;
    }
    .tab-content h2 {
        font-size: 1.1rem;
    }
    table, th, td {
        font-size: 0.93rem;
    }
    .genre-bild {
        width: 38px;
        height: 38px;
    }
    .user-info .avatar {
        width: 32px;
        height: 32px;
    }
}