:root {
    --nav-full: 70px;
    --nav-min: 40px;
}

/* ===== Navigation container ===== */
header,
#mainNav {
    transition: height .25s ease, opacity .25s ease;
}

#mainNav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(var(--nav-full) + 10px); /* give a bit of breathing room */
    background-color: #fff;
    z-index: 1000;
    font: 16px/1.5625 Lato, sans-serif;
}

    #mainNav > .container {
        height: 100%;
    }


/* ===== Menu flex & horizontal spacing ===== */
#menuNetzbetreiberPortal .dx-menu-horizontal .dx-menu-items-container {
    display: flex;
    align-items: center;
}

#menuNetzbetreiberPortal .dx-menu-horizontal .dx-menu-item-wrapper:first-child {
    margin-right: auto;
    padding-top: 0;
    /* margin-top: -50px;  ← REMOVED */
}

#mainNav .dx-menu-item-wrapper:first-child a{
    color:transparent;
}
/* ===== Logo sizing ===== */
#mainNav .dx-menu-item-wrapper:first-child img {
    height: var(--nav-full);
    width: auto;
    padding-bottom: 0; /* remove the extra bottom padding */
    margin-top: -30px;
}




/* ===== Hide unwanted pop-outs ===== */
#menuNetzbetreiberPortal .dx-menu-item-popout,
#menuNetzbetreiberPortal .dx-menu-item-popout-container {
    display: none;
}


/* ===== Submenu positioning ===== */
#menuNetzbetreiberPortal .dx-submenu {
    position: absolute;
    top: 100%;
    left: 0;
}


/* ===== Hover underline strip ===== */
#menuNetzbetreiberPortal .dx-menu-item {
    position: relative;
}

    #menuNetzbetreiberPortal .dx-menu-item::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #444951;
        transform: translateX(-50%);
        transition: width .5s ease;
        z-index: 1;
    }

    #menuNetzbetreiberPortal .dx-menu-item:hover::before,
    #menuNetzbetreiberPortal .dx-menu-item.dx-state-hover::before {
        width: 100%;
    }


/* ===== Misc ===== */
#menuNetzbetreiberPortal {
    height: 100%;
    padding-top: 30px;
}

.dx-context-menu-container-border {
    border: 0;
}

.dx-menu-base{
    font: 16px/1.5625 Lato, sans-serif;
}