:root {
    --nmw-menu-green: #005b45;
    --nmw-menu-green-dark: #003f31;
    --nmw-menu-mint: #25c5a1;
    --nmw-menu-red: #e3000f;
    --nmw-menu-white: #f8fffc;
}

.nmw-menu-toggle {
    cursor: pointer;
    display: flex;
}

.nmw-mobile-menu,
.nmw-mobile-menu * {
    box-sizing: border-box;
}

.nmw-mobile-menu {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(64vw, 370px);
    min-width: 270px;
    height: 100vh;
    height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top)) clamp(18px, 3vw, 36px) calc(16px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--nmw-menu-white);
    background-color: rgba(0, 75, 56, .97);
    border: 1px solid rgba(157, 231, 210, .28);
    border-right: 0;
    border-radius: 18px 0 0 18px;
    box-shadow: -18px 0 54px rgba(0, 25, 18, .3);
    transform: translate3d(101%, 0, 0);
    visibility: hidden;
    transition: transform .42s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .42s;
    scrollbar-width: thin;
    scrollbar-color: rgba(39, 197, 161, .55) transparent;
    overscroll-behavior: contain;
    isolation: isolate;
}

.nmw-mobile-menu::before,
.nmw-mobile-menu::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.nmw-mobile-menu::before {
    top: 8%;
    right: -35%;
    width: 90%;
    aspect-ratio: 1;
    background: rgba(20, 151, 112, .12);
}

.nmw-mobile-menu::after {
    bottom: 15%;
    left: -45%;
    width: 105%;
    aspect-ratio: 1;
    background: rgba(0, 38, 29, .18);
}

.nmw-mobile-menu.active {
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.nmw-menu-overlay {
    position: fixed;
    z-index: 99998;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 35, 26, .67);
    transition: opacity .34s ease, visibility 0s linear .34s;
}

.nmw-menu-overlay.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.nmw-menu-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 64px;
}

.nmw-menu-logo {
    display: inline-flex;
    width: clamp(58px, 7vw, 82px);
    height: clamp(58px, 7vw, 82px);
    align-items: center;
    justify-content: center;
}

.nmw-menu-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .15));
}

.nmw-menu-close {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 5px 1px 0 0;
    padding: 0;
    place-items: center;
    color: var(--nmw-menu-green-dark);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 4px 13px rgba(0, 31, 23, .2);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.nmw-menu-close .material-symbols-rounded {
    font-size: 20px;
    font-weight: 350;
}

.nmw-menu-close:hover,
.nmw-menu-close:focus-visible {
    color: var(--nmw-menu-green-dark);
    background: #dff9f1;
    border-color: #fff;
    transform: scale(1.04);
    outline: none;
}

.nmw-menu-intro {
    display: flex;
    flex-direction: column;
    margin: 10px 0 16px;
}

.nmw-menu-kicker,
.nmw-menu-title {
    display: block;
}

.nmw-menu-kicker {
    margin-bottom: 4px;
    color: var(--nmw-menu-mint);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.2;
}

.nmw-menu-title {
    max-width: 430px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.3vw, 35px);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.nmw-menu-nav {
    flex: 0 0 auto;
}

.nmw-menu-list,
.nmw-menu-list .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nmw-menu-list > li {
    position: relative;
    margin: 0 0 8px;
    overflow: hidden;
    border: 1px solid rgba(211, 255, 243, .31);
    border-radius: 13px;
    background: rgba(0, 64, 48, .2);
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.nmw-menu-list > li:hover,
.nmw-menu-list > li:focus-within,
.nmw-menu-list > li.active,
.nmw-menu-list > li.current-menu-item,
.nmw-menu-list > li.current-menu-ancestor {
    border-color: rgba(80, 226, 190, .78);
    background: rgba(7, 122, 91, .27);
}

.nmw-menu-list > li > a {
    display: grid;
    min-height: 59px;
    padding: 8px 13px;
    grid-template-columns: 40px minmax(0, 1fr) 26px;
    gap: 11px;
    align-items: center;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(16px, 2.1vw, 19px);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.nmw-menu-list > li > a:hover,
.nmw-menu-list > li > a:focus,
.nmw-menu-list > li > a:active {
    color: #fff;
    background: transparent;
    transform: none;
    outline: none;
}

.nmw-menu-item-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: rgba(11, 158, 119, .73);
    border-radius: 8px;
    font-size: 23px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
    box-shadow: inset 0 0 0 1px rgba(113, 244, 210, .12);
}

.nmw-menu-item-label {
    min-width: 0;
}

.nmw-menu-list > .menu-item-has-children > a .nmw-menu-item-label::after {
    display: block;
    margin-top: 2px;
    color: var(--nmw-menu-mint);
    content: "Untermenü";
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nmw-menu-item-arrow {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    justify-self: end;
    font-size: 24px;
    font-weight: 500;
    border-radius: 50%;
    transition: transform .28s ease;
}

.nmw-menu-list > .menu-item-has-children > a .nmw-menu-item-arrow {
    color: var(--nmw-menu-mint);
    background: rgba(37, 197, 161, .13);
}

.nmw-menu-list > .menu-item-has-children.active > a .nmw-menu-item-arrow {
    transform: rotate(180deg);
}

.nmw-menu-list .sub-menu {
    display: block;
    max-height: 0;
    padding: 0 13px;
    overflow: hidden;
    opacity: 0;
    border-top: 0 solid rgba(197, 255, 238, .26);
    transition: max-height .42s ease, opacity .28s ease, padding .35s ease, border-width .2s ease;
}

.nmw-menu-list .menu-item-has-children.active > .sub-menu {
    max-height: 520px;
    padding-top: 8px;
    padding-bottom: 9px;
    opacity: 1;
    border-top-width: 1px;
}

.nmw-menu-list .sub-menu li {
    margin: 0;
}

.nmw-menu-list .sub-menu a {
    display: grid;
    padding: 6px 8px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, .84);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 400;
    line-height: 1.2;
    border-radius: 8px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.nmw-menu-list .sub-menu a:hover,
.nmw-menu-list .sub-menu a:focus-visible {
    color: #fff;
    background: rgba(37, 197, 161, .12);
    transform: translateX(2px);
    outline: none;
}

.nmw-menu-submenu-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--nmw-menu-mint);
    background: rgba(37, 197, 161, .14);
    border: 1px solid rgba(113, 244, 210, .13);
    border-radius: 7px;
    font-size: 18px;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 20;
    line-height: 1;
}

/* Zentral unter GFC > Icons konfigurierte Symbole. */
.gfc-icon,
.gfc-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.2em;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
    line-height: 1;
    vertical-align: -0.16em;
}

.gfc-nav-icon {
    margin-right: .38em;
}

.nmw-menu-cta {
    flex: 0 0 auto;
    margin-top: 11px;
}

.nmw-menu-button {
    display: grid;
    min-height: 56px;
    padding: 8px 13px;
    grid-template-columns: 36px minmax(0, 1fr) 21px;
    gap: 8px;
    align-items: center;
    color: #fff;
    background: var(--nmw-menu-red);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(107, 0, 7, .2);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 600;
    line-height: 1;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nmw-menu-button:hover,
.nmw-menu-button:focus-visible {
    color: #fff;
    background: #c9000d;
    box-shadow: 0 11px 27px rgba(107, 0, 7, .29);
    transform: translateY(-1px);
    outline: none;
}

.nmw-menu-button-icon {
    justify-self: center;
    font-size: 25px;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.nmw-menu-button-arrow {
    justify-self: end;
    font-size: 24px;
}

.nmw-menu-divider {
    display: grid;
    margin: auto 0 12px;
    padding-top: 18px;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    color: var(--nmw-menu-mint);
}

.nmw-menu-divider > span:not(.material-symbols-rounded) {
    height: 1px;
    background: rgba(127, 218, 194, .45);
}

.nmw-menu-divider .material-symbols-rounded {
    font-size: 26px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 32;
}

.nmw-menu-social {
    display: block;
}

.nmw-menu-social-title {
    display: block;
    margin-bottom: 11px;
    color: #fff;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
}

.nmw-menu-social-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nmw-menu-social-links a,
.nmw-menu-social-placeholder {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: #fff;
    background: rgba(0, 64, 48, .25);
    border: 1.5px solid rgba(37, 197, 161, .92);
    border-radius: 50%;
    transition: background-color .2s ease, transform .2s ease;
}

.nmw-menu-social-links a:hover,
.nmw-menu-social-links a:focus-visible {
    color: #fff;
    background: rgba(37, 197, 161, .2);
    transform: translateY(-2px);
    outline: none;
}

.nmw-menu-social-links svg {
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nmw-menu-social-links .nmw-social-fill {
    fill: currentColor;
    stroke: none;
}

@media (max-width: 520px) {
    .nmw-mobile-menu {
        width: 72vw;
        min-width: 0;
        padding-right: 18px;
        padding-left: 18px;
        border-radius: 18px 0 0 18px;
    }

    .nmw-menu-header {
        min-height: 58px;
    }

    .nmw-menu-logo {
        width: 58px;
        height: 58px;
    }

    .nmw-menu-intro {
        margin-top: 10px;
    }

    .nmw-menu-list > li > a {
        min-height: 56px;
        padding: 7px 11px;
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        gap: 9px;
    }

    .nmw-menu-item-icon {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .nmw-menu-button {
        min-height: 54px;
        padding: 7px 12px;
    }

    .nmw-menu-divider {
        margin-top: 16px;
    }

    .nmw-menu-social-links {
        gap: 12px;
    }

    .nmw-menu-social-links a,
    .nmw-menu-social-placeholder {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (max-width: 360px) {
    .nmw-mobile-menu {
        width: 76vw;
        padding-right: 16px;
        padding-left: 16px;
        border-radius: 18px 0 0 18px;
    }

    .nmw-menu-title {
        font-size: 25px;
    }
}

/* Auf normalen und kleineren Handyhöhen wird das vollständige Menü inklusive
   geöffnetem Untermenü möglichst ohne eigenen Scrollbereich dargestellt. */
@media (max-height: 780px) {
    .nmw-mobile-menu {
        padding-top: calc(10px + env(safe-area-inset-top));
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .nmw-menu-header {
        min-height: 50px;
    }

    .nmw-menu-logo {
        width: 50px;
        height: 50px;
    }

    .nmw-menu-close {
        width: 32px;
        height: 32px;
        margin-top: 3px;
    }

    .nmw-menu-close .material-symbols-rounded {
        font-size: 19px;
    }

    .nmw-menu-intro {
        margin: 10px 0 12px;
    }

    .nmw-menu-kicker {
        margin-bottom: 2px;
        font-size: 13px;
        line-height: 1.1;
    }

    .nmw-menu-title {
        font-size: 21px;
        line-height: 1;
    }

    .nmw-menu-list > li {
        margin-bottom: 6px;
        border-radius: 11px;
    }

    .nmw-menu-list > li > a {
        min-height: 54px;
        padding: 7px 10px;
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        gap: 8px;
        font-size: 15.5px;
    }

    .nmw-menu-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 7px;
        font-size: 22px;
    }

    .nmw-menu-item-arrow {
        font-size: 21px;
    }

    .nmw-menu-list .menu-item-has-children.active > .sub-menu {
        padding-top: 7px;
        padding-bottom: 8px;
    }

    .nmw-menu-list .sub-menu a {
        padding: 5px 7px;
        font-size: 14px;
        line-height: 1.2;
    }

    .nmw-menu-cta {
        margin-top: 8px;
    }

    .nmw-menu-button {
        min-height: 50px;
        padding: 6px 10px;
        grid-template-columns: 32px minmax(0, 1fr) 18px;
        font-size: 15px;
    }

    .nmw-menu-button-icon,
    .nmw-menu-button-arrow {
        font-size: 22px;
    }

    .nmw-menu-divider {
        margin: auto 0 8px;
        padding-top: 12px;
        gap: 10px;
    }

    .nmw-menu-divider .material-symbols-rounded {
        font-size: 23px;
    }

    .nmw-menu-social-title {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .nmw-menu-social-links a,
    .nmw-menu-social-placeholder {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .nmw-menu-social-links svg {
        width: 17px;
        height: 17px;
    }

}

@media (max-height: 650px) {
    .nmw-mobile-menu {
        padding-top: calc(7px + env(safe-area-inset-top));
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .nmw-menu-header {
        min-height: 44px;
    }

    .nmw-menu-logo {
        width: 44px;
        height: 44px;
    }

    .nmw-menu-close {
        width: 29px;
        height: 29px;
    }

    .nmw-menu-intro {
        margin: 10px 0 8px;
    }

    .nmw-menu-kicker {
        font-size: 12px;
    }

    .nmw-menu-title {
        font-size: 19px;
    }

    .nmw-menu-list > li {
        margin-bottom: 5px;
    }

    .nmw-menu-list > li > a {
        min-height: 50px;
    }

    .nmw-menu-item-icon {
        width: 36px;
        height: 36px;
    }

    .nmw-menu-list .menu-item-has-children.active > .sub-menu {
        padding-top: 5px;
        padding-bottom: 6px;
    }

    .nmw-menu-list .sub-menu a {
        padding: 4px 6px;
        font-size: 13.5px;
        line-height: 1.2;
    }

    .nmw-menu-cta {
        margin-top: 6px;
    }

    .nmw-menu-button {
        min-height: 46px;
    }

    .nmw-menu-divider {
        margin: auto 0 6px;
        padding-top: 9px;
    }

    .nmw-menu-divider .material-symbols-rounded {
        font-size: 20px;
    }

    .nmw-menu-social-title {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .nmw-menu-social-links a,
    .nmw-menu-social-placeholder {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .nmw-mobile-menu,
    .nmw-menu-overlay,
    .nmw-mobile-menu * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
