/*
Theme Name: Webradio livezwei
Author: Du & Google
Description: Klassisches Theme für livezwei mit separaten Menüs und Untermenüs (Dropdowns) für Desktop und Mobilgeräte.
Version: 1.6
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #222222;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header-Balken oben: Weiß */
.site-header {
    background-color: #ffffff;
    padding: 15px 25px;
    position: relative;
    border-bottom: 1px solid #eeeeee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start; /* Desktop-Menü beginnt direkt neben dem Icon */
    align-items: center;
    gap: 35px; /* Abstand zwischen Icon und Desktop-Menü */
}

/* Icon-Bild links oben: 100x100px und responsiv */
.site-logo img {
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================================
   DESKTOP-MENÜ & DROPDOWN-UNTERMENÜS (PC)
   ========================================================= */
.desktop-nav > ul {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.desktop-nav li {
    position: relative;
}

.desktop-nav a,
.desktop-nav a:visited,
.desktop-nav a:hover,
.desktop-nav a:active {
    background-color: #0A0FF0;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.desktop-nav a:hover {
    opacity: 0.85;
}

/* Kleiner Pfeil bei Menüpunkten mit Untermenü */
.desktop-nav li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 13px;
}

/* Desktop Untermenü (Dropdown) */
.desktop-nav ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    padding: 10px;
    border: 2px solid #0A0FF0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    list-style: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

/* Untermenü beim Drüberfahren mit der Maus anzeigen */
.desktop-nav li.menu-item-has-children:hover > ul.sub-menu {
    display: flex;
}

.desktop-nav ul.sub-menu a {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 8px 14px;
}

/* =========================================================
   HANDY & TABLET MENÜ & UNTERMENÜS
   ========================================================= */
.mobile-menu-toggle {
    display: none;
    background-color: #0A0FF0;
    border: none;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    margin-left: auto; /* Hält den Button auf Handy/Tablet immer oben rechts */
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    width: 260px;
    background-color: #ffffff;
    padding: 15px;
    border: 2px solid #0A0FF0;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.mobile-nav a,
.mobile-nav a:visited,
.mobile-nav a:hover,
.mobile-nav a:active {
    background-color: #0A0FF0;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    display: block;
}

/* Untermenü-Punkte auf Handy & Tablet (sauber eingerückt darunter) */
.mobile-nav ul.sub-menu {
    margin-top: 8px;
    padding-right: 14px;
    border-right: 3px solid #0A0FF0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav ul.sub-menu a {
    font-size: 15px;
    padding: 6px 12px;
    opacity: 0.92;
}

/* =========================================================
   STARTSEITE (BEGRÜSSUNGSBILD, SENDUNGEN & TEAM)
   ========================================================= */
.hero-banner {
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    text-align: center;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 2-Spalten-Bereich: Sendungen & Team */
.main-content-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Sendungen & Team Boxen: Weißer Hintergrund, Umrandung in #0A0ff0 & Buttons auf gleicher Höhe */
.content-box {
    background-color: #ffffff;
    padding: 25px;
    border: 3px solid #0A0ff0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.content-box h2 {
    color: #0A0ff0;
    margin-bottom: 15px;
}

.content-box a {
    margin-top: auto;
}

/* Umschaltung für Tablet & Handy (ab 992px abwärts) */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Auf kleinen Handys (unter 480px) passt sich das Icon sanft an */
@media (max-width: 480px) {
    .site-logo img {
        width: 75px;
        height: 75px;
    }
}
