


@media (max-width: 1300px) {
    /* Verstecke das große Mega-Menü */
    .hauptmenue {
        display: none !important;
    }
    
    .mobilemenu {
        display: block !important;
    }

    .logo {
        width: 50% !important;
    }
    
    .outer-hauptmenue {
        width: 50% !important; 
    }
}

@media (min-width: 1301px) {
    .hauptmenue {
        display: block !important;
    }
    .mobilemenu {
        display: none !important;
    }
}


.outer-logo.bg-weiss {
    position: sticky !important;
    .page-wrapper {
        padding-bottom: .5rem;
    }
    #mod-custom96 {
        img {
            padding-bottom: .3rem;
            width: 100%;
            min-width: 120px;
        }
    }

    .s_container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
        padding: 0 2rem;
        .container-inner {
            display: flex;
            flex-direction: column;
            align-items: end;
            justify-content: end;
        }
    }
}

.hauptmenue {
    padding-left: 2rem !important;
    margin-top: .75rem;
}

.outer-logo .page-wrapper, 
.outer-logo .container-fluid, 
.outer-logo .row, 
.outer-logo .outer-hauptmenue, 
.outer-logo .hauptmenue {
    position: static !important;
}

.vertical-align-custom {
    display: flex;
    align-items: center;
}


.mega-menu-root, 
.mega-menu-root ul, 
.mega-menu-root li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}


.mega-menu-root {
    display: flex;
    justify-content: flex-start;
    gap: 2.2rem;
}

.mega-menu-root > li {
    position: static !important;
}

.mega-menu-root > li > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.mega-menu-root > li > a span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--white);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-root > li:hover > a span::after {
    width: 100%;
}


.mega-menu-root > li.parent > a::after {
    content: '';
    display: inline-block;
    margin-left: 10px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-root > li.parent:hover > a::after {
    transform: translateY(2px) rotate(-135deg);
}


.scrolled {
    .mega-menu-root > li > a {
        color: var(--font-color);
    }
    .mega-menu-root > li.parent > a::after {
        border-right: 2px solid var(--farbedunkel);
        border-bottom: 2px solid var(--farbedunkel);
    }
}

.unterseite {
     .mega-menu-root > li > a {
        color: var(--font-color);
    }
    .mega-menu-root > li.parent > a::after {
        border-right: 2px solid var(--font-color);
        border-bottom: 2px solid var(--font-color);
    }
}

.mega-dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    z-index: 9999;
    display: block; 
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f3f4f6;
    border-bottom: 6px solid var(--farbedunkel);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.mega-menu-root li:hover > .mega-dropdown-wrapper {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s;
}


.mega-container {
    max-width: 1320px;
    margin: 0 auto !important;
    display: flex;
    padding: 60px 20px !important;
    gap: 50px;
}

.mega-info-col {
    flex: 0 0 320px;
    padding-right: 40px !important;
    border-right: 1px solid #f0f0f0;
}

.mega-info-col h2 {
    font-size: 32px;
    font-weight: 800;
    color: #212121;
    line-height: 1.1;
    margin-bottom: 15px;
}

.mega-nav-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-nav-grid > li > a {
    font-size: 16px;
    font-weight: 800;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(33, 33, 33, 0.1);
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
    display: block;
    text-decoration: none;
}

.nav-child li a {
    display: block;
    padding: 4px 0 4px 22px !important;
    color: #4b5563;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500; 
    position: relative;
    transition: all 0.2s ease;
}

.nav-child li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    color: #212121;
    transition: all 0.2s ease;
}

.nav-child li a:hover {
    color: #212121;
    padding-left: 28px !important;
}

.nav-child li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}


.nav-child li.more-link a {
    font-weight: 700 !important;
    color: #212121 !important;
    margin-top: 5px !important;
}

.dachline ul {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin-bottom: 12px !important;
}