/* ========================================================== */
/* 1. HEADER-BEREICH (HAUPTMENÜ & ICONS EINZEILIG)            */
/* ========================================================== */

/* Verhindert absolut jeden Zeilenumbruch im Hauptmenü auf dem Desktop */
header .astroid-menu,
header .navbar-nav,
header .mod-menu ul {
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
}

/* Verringert das Padding für kompakten Platz im Header */
header .astroid-menu > li > a,
header .navbar-nav > li > a,
header .astroid-menu .nav-link,
header .navbar-nav .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13.5px !important; 
    white-space: nowrap !important;
}

/* Hält Sprachflaggen und Facebook-Symbol rechts kompakt nebeneinander */
.col-lg-2,
.col-lg-2 .astroid-social-profiles {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

/* Zwingt die äußeren Header-Spalten auf Desktop-Bildschirmen in die perfekte Breite */
@media (min-width: 992px) {
    header .astroid-column:first-of-type,
    header [class*="col-"]:first-of-type,
    header .col-lg-10 {
        width: 86% !important; 
        max-width: 86% !important;
        flex: 0 0 86% !important;
    }
    header .astroid-column:last-of-type,
    header [class*="col-"]:last-of-type,
    header .col-lg-2 {
        width: 14% !important; 
        max-width: 14% !important;
        flex: 0 0 14% !important;
    }
}

/* ========================================================== */
/* 2. HEADER-DROP-DOWNS (UNTERMENÜS FÜR BRIARD & CO. VERTIKAL)*/
/* ========================================================== */

header li.nav-item {
    position: relative !important;
}

header ul.mod-menu__sub,
header .astroid-menu .dropdown-menu {
    display: flex !important;
    flex-direction: column !important; 
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    padding: 10px 15px !important;
    min-width: 240px !important;
    width: auto !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
}

header ul.mod-menu__sub li.nav-item,
header .astroid-menu .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 8px !important;
}

/* ========================================================== */
/* 3. SEITENLEISTE (DEFINITION FÜR DIE NEUE HÜLLE)            */
/* ========================================================== */

/* Blendet alle verschachtelten Geister-Kopien im Hintergrund aus */
.custom-sidebar-wrapper .astroid-menu-container,
.custom-sidebar-wrapper .astroid-menu-wrapper,
.custom-sidebar-wrapper ul.mod-menu ul.mod-menu,
.custom-sidebar-wrapper .nav-item .nav-item .nav-item {
    display: none !important;
}

/* Richtet die Hauptliste der Seitenleiste sauber vertikal aus */
.custom-sidebar-wrapper ul.mod-menu,
.custom-sidebar-wrapper .navbar-nav {
    display: flex !important;
    flex-direction: column !important; 
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Formatiert jeden echten Menüpunkt als saubere, einzelne Zeile */
.custom-sidebar-wrapper ul.mod-menu > li.nav-item,
.custom-sidebar-wrapper .nav-item {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 4px 0 !important;
}

/* Versteckt Untermenüs standardmäßig */
.custom-sidebar-wrapper ul.mod-menu__sub,
.custom-sidebar-wrapper .dropdown-menu {
    display: none !important;
    padding-left: 15px !important; 
}

/* Öffnet Untermenü bei Hover oder wenn aktiv */
.custom-sidebar-wrapper li.nav-item:hover ul.mod-menu__sub,
.custom-sidebar-wrapper li.nav-item.active ul.mod-menu__sub,
.custom-sidebar-wrapper li.nav-item:hover .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
}

/* ==========================================================================
   IHRE FARB-STRUKTUR
   ========================================================================== */

/* Hellers Hintergrund (#59fffe) */
body, 
#astroid-body,
.astroid-topbar,                  
.astroid-top-section,
.astroid-wrapper,                 
#astroid-content,
.astroid-content-section,
#astroid-footer,                  
.astroid-footer-section,
#astroid-copyright,
.astroid-copyright-section,
header.astroid-header-section + div {
    background-color: #59fffe !important;
    background: #59fffe !important;
    color: #333333 !important;    
}

/* Obere Menüleiste (#58cdcc) */
.astroid-menu-section, 
.astroid-navigation,
.astroid-nav-wrap,
#astroid-header .navbar-nav {
    background-color: #58cdcc !important;
}

/* Obere Menütasten normal */
#astroid-header .nav-link,
#astroid-header .menu-item {
    background-color: #58cdcc !important;
    color: #333333 !important;    
}

/* Aktive und gehoverte Tasten oben & Jagd auf das sture #16728b */
#astroid-header .nav-item.active .nav-link,
#astroid-header .nav-item.current .nav-link,
#astroid-header .nav-link.active,
#astroid-header .nav-link.current,
#astroid-header .nav-link:hover,
.astroid-main-menu .active a,
.astroid-main-menu .current a {
    background-color: #a6ffff !important; 
    color: #333333 !important;
}

/* Hintergrund der neuen linken Seitenleiste (#58cdcc) */
.custom-sidebar-wrapper {
    background-color: #58cdcc !important;
    padding: 15px;
    border-radius: 4px;
}

/* Tasten im linken Seitenmenü */
.custom-sidebar-wrapper .nav-link,
.custom-sidebar-wrapper a {
    background-color: #58cdcc !important;
    color: #333333 !important;
    display: block;
    padding: 8px 12px;
    text-decoration: none;
}

/* Aktive und gehoverte Tasten links */
.custom-sidebar-wrapper .active > a,
.custom-sidebar-wrapper .current > a,
.custom-sidebar-wrapper a:hover,
.custom-sidebar-wrapper .nav-link.active {
    background-color: #a6ffff !important; 
    color: #333333 !important;
    font-weight: bold;
}

/* Leiste im Footer (#58cdcc) */
.astroid-footer-menu,
#astroid-footer .moduletable_menu,
#astroid-footer .nav {
    background-color: #58cdcc !important;
}

/* ==========================================================================
   RADIKALE ABSICHERUNG: GEGEN DAS DEUTSCHE BAND UNTER DEM LOGO
   ========================================================================== */

/* Zwingt das Hauptmenü in eine Reihe und verhindert das Ausbrechen nach unten */
#astroid-header .astroid-nav {
    display: flex !important;
    justify-content: flex-end !important; 
    width: auto !important;
}
.astroid-header-row .astroid-nav-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Löscht den doppelten Ausbruch unter dem Logo auf der DE Seite */
div[cz-color-3355443],
.astroid-header-row + .astroid-menu-section {
    display: none !important;
}
