/* Body Scroll */
body.menu-open {
    overflow: hidden;
}

/* HAP Logo */

.sitetitle.img,
.mobile-title.image {
    z-index: 10001;
}

/* Burger Button – jetzt schwarz */
.burger {
    position: fixed;
    top: 50px;
    right: 40px;
    z-index: 10001;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 50px;
    height: 2px;
    background: #000;
    margin: 5px 0;

    transition: ease-out 0.2s all;
}

.burger:hover span {
    background-color: #3b4a71;
}

.burger.open span:nth-child(1) {
    transform: rotate(25deg) translate(5.5px, 5.5px);
}

.burger.open span:nth-child(2) {
    opacity: 0; /* mittlerer Strich ausblenden */
}

.burger.open span:nth-child(3) {
    transform: rotate(-25deg) translate(5.5px, -5.5px);
}

/* Menü Overlay – neue Farbe + hoher z-index + Opacity-Fade */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #8ca3b7;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;

    box-sizing: border-box;
    padding: 6rem 40px; /* Abstand oben/unten */
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-grow: 1;
    width: 100%;
}

/* Menü-Links mittig gestapelt */
.menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;

    text-align: center;
}

.menu-list a {
    font-family: texgyreheros-bold-webfont;
    color: white;
    font-size: 70px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;

    transition: ease-out 0.2s all;
}

.menu-list a:hover {
    color: #3b4a71 !important;
    text-decoration: none !important;
}

/* Sprachwechsler neben dem Burger */
.language-switcher {
    position: fixed;
    top: 46px;
    right: 125px;
    z-index: 10002;
    display: flex;
    gap: 0.5rem;
}

.language-switcher li {
    list-style: none;
}

.language-switcher a {
    font-family: texgyreheros-bold-webfont;
    color: #000;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;

    transition: ease-out 0.2s all;
}

.language-switcher a:hover {
    color: #3b4a71 !important;
    text-decoration: none !important;
}

/* Sprachwechsler im Overlay */
.menu-overlay .language-switcher {
    position: absolute;
    top: 1rem;
    right: 4rem;
}

/* Nav Footer */
.nav-footer {
    display: flex;
    justify-content: space-between;

    width: 100%;

    transform: translateY(58px);

    font-family: texgyreheros-bold-webfont;
    font-size: 18px;
}

.nav-footer a {
    font-family: texgyreheros-bold-webfont;
    font-size: 18px;
    color: #fff;

    transition: ease-out 0.2s all;
}

.nav-footer a:hover {
    color: #3b4a71 !important;
    text-decoration: none !important;
}

@media only screen and (max-width: 1920px) {
    .menu-list a {
        font-size: 40px;
    }
}

@media only screen and (max-width: 1440px) {
    .burger {
        top: 12.5px;
        right: 15px;
    }

    .menu-overlay {
        padding: 4rem 15px;
    }

    .menu-list a {
        font-size: 24px;
    }

    .language-switcher {
        top: 9px;
        right: 100px;
    }

    .nav-footer {
        flex-direction: column;
        row-gap: 1rem;
        transform: translateY(44px);

        font-size: 14px;
    }

    .nav-footer a {
        font-size: 14px;
    }
}
