/* ============================================
   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: #fff;
    opacity: 0.7;
    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: #fff;
    text-decoration: none;
}

/* ============================================
   MEGA DROPDOWN – NUR EIN Block, kein Duplikat!
   ============================================ */
.mega-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;

    position: fixed;     /* ← fixed statt absolute */
    left: 0;
    right: 0;
    top: 80px;           /* ← Höhe deines Headers in px */
    width: 100vw;

    z-index: 9999;
    background: rgba(84, 84, 84, 0.96);
    border-top: 3px solid #dddddd;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    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: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
	padding: 2rem 2rem 2rem 2rem;  /* ← gleiches Padding links und rechts */
}

.mega-col {
    padding: 0 1.2rem 1rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
	padding: 0 1.2rem 1rem 0;  /* ← unten: 1.5rem statt 1rem */
}
.mega-col:first-child {
    padding-left: 0.5rem;
}
.mega-col:last-child {
    border-right: none;
}

.mega-col-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0 0.8rem 0;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #dddddd;
    transition: color 0.15s;
}

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

.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: rgba(255, 255, 255, 0.72);
    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: #fff;
    padding-left: 5px;
    text-decoration: none;
}

/* ============================================
   HAMBURGER + MOBILE MENU
   ============================================ */
.hamburger-menu {
    display: none;
}

button#burger-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #fff;
    padding: 0.5rem;
    line-height: 1;
}

#mobile-menu {
    display: none;
    list-style: none !important;
    margin: 0;
    padding: 0.5rem 0;
    background: #545454;
}

#mobile-menu.open {
    display: block;
}

#mobile-menu > li > a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#mobile-menu .mobile-sub-menu,
#mobile-menu .mobile-sub-sub-menu {
    display: none;
    list-style: none !important;
    padding: 0 0 0 1.2rem;
    margin: 0;
    background: rgba(0,0,0,0.15);
}

#mobile-menu .mobile-sub-menu.open,
#mobile-menu .mobile-sub-sub-menu.open {
    display: block;
}

#mobile-menu .mobile-sub-menu li a {
    display: block;
    padding: 0.55rem 1rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

button.mobile-toggle {
    background: none;
    border: none;
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    float: right;
    line-height: 1;
}

/* ============================================
   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;
    }
}