#main-header {
    border: none;
    box-shadow: none;
    padding: 1.2rem 0;
    transition: 0.6s ease-in-out;
    background: var(--color-bg);
}

#main-header.et-fixed-header {
    padding: 0.4rem 0;
    background: var(--color-white);
}


.custom-logo-link {
    color: #0D0106;

}

.custom-main-menu ul li.insights-nav a::before {
    content: "NEU";
    display: block;
    position: absolute;
    font-weight: 800;
    color: var(--color-primary);
    top: -12px;
    font-size: 12px;
    right: 0;
}

.custom-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    font-size: 24px;
    font-weight: bold;
    font-family: var(--font-mono);
    text-transform: normal;
}

.logo-container .logo {
    font-size: var(--text-2xl);
}

.logo-container .logo svg {
    width: 100%;
    max-width: 200px;
}

.custom-main-menu {
    display: flex;
    justify-content: center;
}

.custom-menu-items > li {
    list-style: none;
    display: inline-block;
    margin: 0 15px;
}

/* AUSKOMMENTIEREN / LÖSCHEN:
.custom-menu-items ul {
    display: flex;
}

.custom-menu-items ul li {
    display: flex;
    padding: 1rem;
}

*/

.custom-main-menu ul li a {
    color: var(--color-black);
    font-family: var(--font-mono);
    font-size: 16px;
}


.burger-menu {
    display: none;
}

.burger-menu span {
    display: block;
    width: 35px;
    height: 3px;
    background-color: #0D0106;
    margin: 2.5px;
    transition: all 0.3s;
}

.custom-header-container.active .burger-menu span {
    background-color: #ffffff;
}


.custom-header-container.active .burger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-header-container.active .burger-menu span:nth-child(2) {
    opacity: 0;
}

.custom-header-container.active .burger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* TOP-LEVEL UL horizontal ausrichten */
.custom-menu-items {
    display: flex;
    align-items: center;
}

/* Top-Level LI muss positioniert sein für absolute Submenus */
.custom-menu-items > li {
    position: relative;
}

/* Standard-Links oben */
.custom-main-menu ul li a {
    color: var(--color-black);
    font-family: var(--font-mono);
    font-size: 16px;
    text-decoration: none;
}

/* SUBMENÜ (Dropdown) – Desktop */
.custom-menu-items .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;                 /* zunächst versteckt */
    flex-direction: column;
    background: var(--color-white);
    min-width: 220px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 99;
}

/* Submenu-Elemente */
.custom-menu-items .sub-menu li {
    list-style: none;
    display: block;
    margin: 0;
}

/* Links im Submenu */
.custom-menu-items .sub-menu li a {
    display: block !important;
    padding: 0.6rem 1.2rem;
    font-size: 14px;
    color: var(--color-black);
    white-space: nowrap;
}

/* Hover-Effekt */
.custom-menu-items .sub-menu li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Dropdown zeigen bei Hover des Elternelements */
.custom-menu-items > li:hover > .sub-menu {
    display: flex;
}

@media (max-width: 980px) {

    /* ... deine bestehenden Mobile-Regeln ... */

    /* Submenus im Mobile: untereinander, nicht absolut */
    .custom-menu-items .sub-menu {
        position: static;
        display: none;                  /* optional: zunächst verstecken */
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
    }

    .custom-menu-items .sub-menu li a {
        font-size: var(--text-3xl);     /* etwas kleiner als Eltern, falls gewünscht */
        padding: 0.3rem 0;
    }

    /* Wenn dir Hover reicht (z.B. auf Tablets), kannst du das aktiv lassen */
    .custom-menu-items > li:hover > .sub-menu {
        display: flex;
    }
}




@media screen and (min-width: 979px ) {
    .only-mobile {
        display: none !important;
    }
}


@media (max-width: 980px) {
    .custom-main-menu ul li.insights-nav a::before {
        display: none;
    }

    .custom-header-container {
        flex-direction: row;
    }

    .logo-container {
        order: 1;
        width: 100%;
    }

    .burger-menu {
        order: 3;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: 100%;
        cursor: pointer;
        flex-direction: column;
        z-index: 9;
        flex: 1;
    }


    .custom-main-menu,
    .cta-container {
        display: none;
        width: 100%;
    }

    .custom-main-menu {
        z-index:9 !important;
    }

    #menu-hauptmenue {
        display: flex;
        gap: var(--space-xl);
    }

    .custom-header-container.active .custom-main-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-primary);
        justify-content: center;
        align-items: center;
        animation: slideIn 0.5s forwards;
    }

    .custom-menu-items {
        flex-direction: column;
        text-align: center;
    }


    .custom-main-menu,
    .cta-container {
        transition: transform 0.5s ease-out;
    }

    .cta-container {
        margin-top: 20px;
        z-index: 9;
        max-height: 100px;
        bottom: 5%;
        top: auto !important;
        background: transparent !important;
    }

    #menu-hauptmenue a {
        color: var(--color-white);
        font-family: var(--font-mono);
        font-size: var(--text-4xl);
    }

    .only-mobile.btn-secondary {
        margin-top: calc(var(--space-xl) * 2);
    }

    @keyframes slideIn {
        from {
            transform: translateY(-100%);
        }
        to {
            transform: translateY(0);
        }
    }
}
