/* ============================================
   RESET
   ============================================ */
.mega-menu-wrapper *,
.hamburger-menu * {
    box-sizing: border-box;
}

/* ============================================
   DESKTOP MENU
   ============================================ */

.desktop-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    gap: 0;
}

.desktop-menu > li {
    position: static !important;
    display: block !important;
    float: none !important;
}

.desktop-menu > li.has-dropdown {
    padding-bottom: 6px;
    margin-bottom: -6px;
}

.desktop-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: #eeeeee;
    opacity: 0.8;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s, opacity 0.2s;
}

.desktop-menu > li > a:hover,
.desktop-menu > li > a.active {
    opacity: 1;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   MEGA DROPDOWN
   ============================================ */
.mega-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;

    position: fixed;
    left: 0;
    right: 0;
    top: 80px;
    width: 100vw;

    z-index: 9999;
    background: #ffffff;
    border-top: 3px solid #374151;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    max-height: 80vh;
    overflow-y: auto;
}

.has-dropdown:hover > .mega-dropdown,
.has-dropdown:focus-within > .mega-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   INNERES LAYOUT – zentriert
   ============================================ */
.mega-dropdown-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.mega-col {
    flex: 0 0 180px;
    padding: 0 1.2rem 1rem 0;
    border-right: 1px solid #e5e7eb;
}
.mega-col:first-child {
    padding-left: 0.5rem;
}
.mega-col:last-child {
    border-right: none;
}

.mega-col-title {
    display: block;
    font-weight: 700;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0 0.8rem 0;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.15s;
}

.mega-col-title:hover,
.mega-col-title.active {
    color: #374151;
    text-decoration: none;
}

.nav-main .mega-menu a[href=""],
.nav-main .mega-menu a:not([href]),
nav a[href=""] {
    pointer-events: none;
    cursor: default;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    display: block;
    opacity: 1;
}

.mega-sub-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.mega-sub-list li {
    padding: 0;
    margin: 0;
}

.mega-sub-list li a {
    display: block;
    padding: 0.3rem 0;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    line-height: 1.8;
}

.mega-sub-list li a:hover,
.mega-sub-list li a.active {
    color: #111827;
    padding-left: 5px;
    text-decoration: none;
}

/* ============================================
   HAMBURGER + MOBILE MENU
   ============================================ */
   
   /* Logo nicht über Burger-Button legen */
#logo,
#logo .inner,
.col-md-2 {
    pointer-events: none;
}

/* Links im Logo aber klickbar lassen */
#logo a {
    pointer-events: auto;
}

/* Burger-Button immer oben */
#burger-toggle {
    position: relative;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.hamburger-menu {
    position: relative;
    z-index: 999999 !important;
}

/* ============================================
   HAMBURGER + MOBILE MENU
   – Original TYPO3 Starterkit: #menu-btn / #mainmenu
   ============================================ */

/* Eigene Hamburger-Elemente deaktivieren */
.hamburger-menu {
    display: none !important;
}

button#burger-toggle {
    display: none !important;
}

#mobile-menu {
    display: none !important;
}

/* Original-Menü unangetastet lassen */
#menu-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999999 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
    .mega-menu-wrapper {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hamburger-menu {
        display: none !important;
    }
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
    .mega-menu-wrapper {
        display: none !important;
    }
    .hamburger-menu {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .hamburger-menu {
        display: none !important;
    }
}

