/*
Header CSS: NPUOT
=========================================================
Enthält:
- barrierefreie Schnellnavigation
- Seitenkopf und Logo
- Suche
- Servicenavigation
- Barrierefreiheitsmenü
- Hauptnavigation und Mega-Menü
- mobile Navigation

Grundprinzip:
- Desktop-Anpassungen gelten ab 1101 px.
- Die bestehende mobile Navigation bleibt unverändert.
- Grundfunktionen arbeiten ohne JavaScript.
=========================================================
*/

/* =========================================================
   Header-spezifische Variable
========================================================= */

:root {
    --npuot-mobile-header-space: 196px;
}

/* =========================================================
   Barrierefreie Schnellnavigation
========================================================= */

.npuot-a11y-nav {
    position: fixed;
    z-index: 10000;
    top: 0.5rem;
    left: 0.5rem;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.npuot-a11y-nav:focus-within {
    transform: translateY(0);
}

.npuot-a11y-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: #ffffff;
    border: 2px solid #003b63;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 20%);
}

.npuot-a11y-menu a {
    display: block;
    padding: 0.55rem 0.8rem;
    color: #26224f;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 0.45rem;
}

.npuot-a11y-menu a:hover,
.npuot-a11y-menu a:focus-visible {
    color: #ffffff;
    background: #26224f;
    outline: none;
}

/* =========================================================
   Site Header
========================================================= */

.npuot-site-header {
    z-index: 1000;
    width: 100%;
}

.npuot-site-header--overlay {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
}

.npuot-site-header--solid {
    position: relative;
    background: var(--wp--preset--color--primary);
}

.npuot-site-header__inner {
    width: min(var(--npuot-content-width), calc(100% - 2.5rem));
    margin-inline: auto;
    padding-block: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.npuot-site-header__top {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
}

.npuot-site-header__tools {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 1.6vw, 1.5rem);
}

.npuot-site-header__search {
    min-width: 0;
    max-width: 26rem;
    flex: 1 1 auto;
}

.npuot-site-header__top-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.npuot-site-header__brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.npuot-site-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.npuot-site-header__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.npuot-site-header__logo img,
.npuot-site-header__logo .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 72px;
}

/* =========================================================
   Header Search
========================================================= */

.site-search {
    margin: 0;
}

.site-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.site-search__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
}

.site-search__input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.7rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: var(--npuot-color-white);
    color: var(--npuot-color-black);
    font-size: 0.9rem;
    line-height: 1.2;
}

.site-search__button {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--npuot-color-white);
    color: var(--npuot-color-black);
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
}

/* =========================================================
   Top Navigation
========================================================= */

.npuot-top-menu,
.npuot-top-menu ul,
.npuot-main-menu,
.npuot-main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.npuot-top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 1.6vw, 1.5rem);
}

.npuot-top-menu > li {
    position: relative;
}

.npuot-top-menu a {
    color: var(--npuot-color-white);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.npuot-top-menu a:hover,
.npuot-top-menu a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/*
 * Das Untermenü beginnt unmittelbar am Elternpunkt.
 * Dadurch entsteht beim Wechsel mit der Maus keine Lücke.
 */
.npuot-top-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 300;
    display: none;
    min-width: 220px;
    margin: 0;
    padding-block: 0.75rem;
    border-radius: 0.75rem;
    background: var(--npuot-color-white);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.npuot-top-menu > li:hover > .sub-menu,
.npuot-top-menu > li:focus-within > .sub-menu {
    display: block;
}

.npuot-top-menu .sub-menu a {
    display: block;
    padding: 0.4rem 0.9rem;
    color: var(--npuot-color-primary);
    white-space: normal;
}

.npuot-top-menu .sub-menu a:hover,
.npuot-top-menu .sub-menu a:focus-visible {
    background: #f3f3f3;
}

/* =========================================================
   Barrierefreiheitsmenü
========================================================= */

.npuot-accessibility-menu {
    position: relative;
    flex: 0 0 auto;
    color: var(--npuot-color-white);
}

.npuot-accessibility-menu__toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.55rem;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    border-radius: 0.5rem;
}

.npuot-accessibility-menu__toggle::-webkit-details-marker {
    display: none;
}

.npuot-accessibility-menu__toggle:hover,
.npuot-accessibility-menu__toggle:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.npuot-accessibility-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.npuot-accessibility-menu__panel {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 0.25rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    max-height: calc(100vh - 8rem);
    margin: 0;
    padding: 0.75rem;
    overflow-y: auto;
    color: var(--npuot-color-dark-blue);
    background: var(--npuot-color-white);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
}

.npuot-accessibility-menu__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.npuot-accessibility-menu__heading {
    margin: 0;
    padding: 0.4rem 0.6rem;
    color: inherit;
    font-weight: 700;
}

.npuot-accessibility-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--npuot-color-dark-blue);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.npuot-accessibility-menu__close:hover,
.npuot-accessibility-menu__close:focus-visible {
    background: #f3f3f3;
}

.npuot-accessibility-menu__links {
    display: grid;
    gap: 0.25rem;
    margin: 0.35rem 0 0;
    padding: 0.35rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(0, 44, 80, 0.18);
}

.npuot-accessibility-menu__links a {
    display: block;
    padding: 0.55rem 0.6rem;
    color: var(--npuot-color-dark-blue);
    text-decoration: none;
    border-radius: 0.4rem;
}

.npuot-accessibility-menu__links a:hover,
.npuot-accessibility-menu__links a:focus-visible {
    background: #f3f3f3;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* =========================================================
   Unterstützungsmenü: Bedienelemente
========================================================= */

.npuot-a11y-controls {
    display: grid;
    gap: 0.9rem;
}

.npuot-a11y-controls__group {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.npuot-a11y-controls__legend {
    margin: 0 0 0.35rem;
    color: inherit;
    font-weight: 400;
}

.npuot-a11y-mode-button,
.npuot-a11y-option-button {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border: 2px solid var(--npuot-color-dark-blue);
    border-radius: 999px;
    background: #f3f3f3;
    color: var(--npuot-color-black);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.npuot-a11y-mode-button:hover,
.npuot-a11y-option-button:hover {
    background: var(--npuot-color-dark-blue);
    color: var(--npuot-color-white);
}

.npuot-a11y-mode-button.is-active,
.npuot-a11y-option-button.is-active,
.npuot-a11y-mode-button[aria-pressed="true"],
.npuot-a11y-option-button[aria-pressed="true"] {
    background: var(--npuot-color-dark-blue);
    color: var(--npuot-color-white);
}

.npuot-a11y-mode-button:focus-visible,
.npuot-a11y-option-button:focus-visible,
.npuot-a11y-reset:focus-visible,
.npuot-accessibility-menu__close:focus-visible,
.npuot-accessibility-menu__links a:focus-visible {
    outline: 3px solid var(--npuot-color-dark-blue);
    outline-offset: 3px;
}

.npuot-a11y-reset {
    justify-self: stretch;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--npuot-color-dark-blue);
    border-radius: 0.5rem;
    background: var(--npuot-color-white);
    color: var(--npuot-color-dark-blue);
    font-weight: 700;
    cursor: pointer;
}

.npuot-a11y-reset:hover {
    background: var(--npuot-color-dark-blue);
    color: var(--npuot-color-white);
}

.npuot-a11y-no-js-message {
    display: none;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.no-js .npuot-a11y-controls {
    display: none;
}

.no-js .npuot-a11y-no-js-message {
    display: block;
}

/* =========================================================
   Hoher Kontrast
========================================================= */

html.a11y-high-contrast {
    filter: contrast(1.25);
}

html.a11y-high-contrast body {
    color: #000000;
    background: #ffffff;
}

html.a11y-high-contrast a {
    color: #0000cc;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

html.a11y-high-contrast :focus-visible {
    outline-color: #000000;
    outline-width: 4px;
}

/* =========================================================
   Dunkler Modus
========================================================= */

html.a11y-dark body,
html.a11y-dark .home-section,
html.a11y-dark .home-section:nth-of-type(odd),
html.a11y-dark .home-section:nth-of-type(even) {
    color: #f7f7f7;
    background: #161616;
}

html.a11y-dark .npuot-site-header {
    background: #161616;
}

html.a11y-dark .npuot-hero {
    background:
        linear-gradient(
            to bottom,
            #161616 0%,
            #161616 62%,
            #161616 62%,
            #161616 100%
        );
}

html.a11y-dark .npuot-site-header__top,
html.a11y-dark .npuot-site-header__inner {
    color: #ffffff;
}

html.a11y-dark .npuot-top-menu > li > a,
html.a11y-dark .npuot-main-menu > li > a,
html.a11y-dark .npuot-accessibility-menu {
    color: #ffffff;
}

html.a11y-dark .news-card,
html.a11y-dark .event-card,
html.a11y-dark .closure-card,
html.a11y-dark .themen-card,
html.a11y-dark .home-facts__card,
html.a11y-dark .npuot-accessibility-menu__panel,
html.a11y-dark .npuot-top-menu .sub-menu {
    color: #f7f7f7;
    background: #242424;
}

html.a11y-dark h1,
html.a11y-dark h2,
html.a11y-dark h3,
html.a11y-dark h4,
html.a11y-dark h5,
html.a11y-dark h6,
html.a11y-dark p,
html.a11y-dark .home-section__title,
html.a11y-dark .home-section__intro,
html.a11y-dark .home-section__content,
html.a11y-dark .themen-card__content p {
    color: #f7f7f7;
}

html.a11y-dark a,
html.a11y-dark .npuot-accessibility-menu__links a,
html.a11y-dark .npuot-top-menu .sub-menu a {
    color: #fff3a6;
}

html.a11y-dark .npuot-a11y-mode-button,
html.a11y-dark .npuot-a11y-option-button {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

html.a11y-dark .npuot-a11y-mode-button:hover,
html.a11y-dark .npuot-a11y-option-button:hover,
html.a11y-dark .npuot-a11y-mode-button.is-active,
html.a11y-dark .npuot-a11y-option-button.is-active,
html.a11y-dark .npuot-a11y-mode-button[aria-pressed="true"],
html.a11y-dark .npuot-a11y-option-button[aria-pressed="true"] {
    border-color: #ffdf4f;
    background: #ffdf4f;
    color: #000000;
}

html.a11y-dark .npuot-a11y-reset {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

html.a11y-dark .npuot-a11y-reset:hover {
    border-color: #ffdf4f;
    background: #ffdf4f;
    color: #000000;
}

html.a11y-dark .npuot-accessibility-menu__close {
    color: #ffffff;
}

html.a11y-dark .npuot-accessibility-menu__close:hover {
    background: #343434;
}

html.a11y-dark .npuot-accessibility-menu__panel :focus-visible {
    outline: 3px solid #ffdf4f;
    outline-offset: 3px;
}

/* =========================================================
   Weißmodus
========================================================= */

html.a11y-white body,
html.a11y-white .home-section,
html.a11y-white .home-section:nth-of-type(odd),
html.a11y-white .home-section:nth-of-type(even),
html.a11y-white .news-card,
html.a11y-white .event-card,
html.a11y-white .closure-card,
html.a11y-white .themen-card,
html.a11y-white .home-facts__card {
    color: #000000;
    background: #ffffff;
    box-shadow: none;
}

html.a11y-white h1,
html.a11y-white h2,
html.a11y-white h3,
html.a11y-white h4,
html.a11y-white h5,
html.a11y-white h6,
html.a11y-white p,
html.a11y-white .home-section__title,
html.a11y-white .home-section__intro,
html.a11y-white .home-section__content,
html.a11y-white .themen-card__content p {
    color: #000000;
}

html.a11y-white a {
    color: #003b70;
    text-decoration: underline;
}

/* =========================================================
   Bilder ausblenden
========================================================= */

/*
 * visibility: hidden erhält die belegte Fläche.
 * Dadurch bleiben Karten, Grids und Bildformate stabil.
 */
html.a11y-no-images img,
html.a11y-no-images picture,
html.a11y-no-images video,
html.a11y-no-images iframe {
    visibility: hidden !important;
}

html.a11y-no-images .npuot-hero__image,
html.a11y-no-images .news-card__image,
html.a11y-no-images .event-card__image,
html.a11y-no-images .closure-card__image,
html.a11y-no-images .themen-card__image,
html.a11y-no-images .wp-block-image,
html.a11y-no-images .wp-block-cover {
    background: #e8e8e8 !important;
}

html.a11y-no-images .wp-block-cover,
html.a11y-no-images [style*="background-image"] {
    background-image: none !important;
}

/* Logo und funktionale Symbole bleiben sichtbar. */
html.a11y-no-images .npuot-site-header__logo img,
html.a11y-no-images .npuot-accessibility-menu svg {
    visibility: visible !important;
}

/* =========================================================
   Zeilenfokus
========================================================= */

.npuot-reading-guide {
    display: none;
}

html.a11y-reading-guide .npuot-reading-guide {
    position: fixed;
    top: var(--npuot-reading-guide-y, 50vh);
    right: 0;
    left: 0;
    z-index: 99999;
    display: block;
    height: 4rem;
    border-top: 2px solid rgba(255, 215, 0, 0.9);
    border-bottom: 2px solid rgba(255, 215, 0, 0.9);
    box-shadow:
        0 -100vh 0 100vh rgba(0, 0, 0, 0.58),
        0 100vh 0 100vh rgba(0, 0, 0, 0.58);
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================================================
   Main Navigation
========================================================= */

.npuot-site-header__main-nav {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.npuot-main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2rem, 4vw, 4.5rem);
}

.npuot-main-menu > li {
    position: relative;
}

.npuot-main-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    color: var(--npuot-color-white);
    font-size: clamp(1.25rem, 1.55vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none;
}

.npuot-main-menu > li > a:hover,
.npuot-main-menu > li > a:focus-visible,
.npuot-main-menu > .current-menu-item > a,
.npuot-main-menu > .current-menu-ancestor > a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* =========================================================
   Desktop Mega Menu
========================================================= */

@media (min-width: 1101px) {
    .npuot-main-menu {
        position: relative;
        width: 100%;
    }

    .npuot-main-menu > li {
        position: static;
    }

    .npuot-main-menu > li > .sub-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
        align-items: start;
        gap: 1.75rem;
        width: min(var(--npuot-content-width), calc(100vw - 3rem));
        padding: 2rem;
        border-radius: 0 0 1.5rem 1.5rem;
        background: var(--npuot-color-white);
        box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 0.75rem);
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .npuot-main-menu > li > a:hover + .sub-menu,
    .npuot-main-menu > li > .sub-menu:hover,
    .npuot-main-menu > li:focus-within > .sub-menu,
    .npuot-main-menu > li.is-mega-open > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .npuot-main-menu > li > .sub-menu > li {
        min-width: 0;
    }

    .npuot-main-menu > li > .sub-menu > li > a {
        display: block;
        margin-bottom: 0.75rem;
        color: var(--npuot-color-dark-blue);
        font-weight: 700;
        text-decoration: none;
    }

    .npuot-main-menu > li > .sub-menu > li > .sub-menu {
        position: static;
        display: block;
        width: auto;
        margin: 0.625rem 0 0;
        padding: 0;
        opacity: 1;
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    .npuot-main-menu > li > .sub-menu > li > .sub-menu li + li {
        margin-top: 0.5rem;
    }

    .npuot-main-menu > li > .sub-menu a {
        color: var(--npuot-color-dark-blue);
        line-height: 1.4;
        text-decoration: none;
    }

    .npuot-main-menu > li > .sub-menu a:not([href="#"]):hover,
    .npuot-main-menu > li > .sub-menu a:not([href="#"]):focus-visible {
        text-decoration: underline;
        text-underline-offset: 0.25em;
        text-decoration-thickness: 2px;
    }

    .npuot-main-menu > li > .sub-menu a[href="#"] {
        cursor: default;
        pointer-events: none;
    }

    .npuot-main-menu > li > .sub-menu:has(> li:not(.menu-item-has-children)) {
        grid-template-columns: repeat(2, minmax(220px, max-content));
        justify-content: start;
        column-gap: 3.5rem;
        row-gap: 0.875rem;
    }

    .npuot-mega-menu__teaser {
        display: none;
        position: absolute;
        top: 100%;
        right: 3.5rem;
        z-index: 1100;
        width: 300px;
        padding-top: 2.125rem;
        pointer-events: none;
    }

    .npuot-main-menu:has(> li > a:hover + .sub-menu) + .npuot-mega-menu__teaser,
    .npuot-main-menu:has(> li > .sub-menu:hover) + .npuot-mega-menu__teaser,
    .npuot-main-menu:has(> li:focus-within > .sub-menu) + .npuot-mega-menu__teaser {
        display: block;
    }

    .npuot-mega-menu__teaser p {
        margin: 0;
        color: #4a4a4a;
        font-size: 1rem;
        line-height: 1.45;
    }

    .npuot-mobile-nav {
        display: none !important;
    }
}

/* =========================================================
   Mobile Menu Toggle
========================================================= */

.npuot-menu-toggle {
    display: none;
}

/* =========================================================
   Mobile / Tablet
========================================================= */

@media (max-width: 1100px) {
    .npuot-site-header {
        position: sticky;
        top: 0;
        z-index: 10000;
        background: var(--npuot-color-primary);
    }

    .npuot-site-header__inner {
        width: calc(100% - 2rem);
        padding-block: 1rem;
        gap: 1rem;
    }

    .npuot-site-header__top {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "tools";
        gap: 0.875rem;
    }

    .npuot-site-header__brand {
        grid-area: brand;
        justify-content: center;
        width: 100%;
    }

    .npuot-site-header__tools {
        grid-area: tools;
        display: block;
        width: 100%;
    }

    .npuot-site-header__search {
        width: 100%;
    }

    .npuot-site-header__top-nav,
    .npuot-accessibility-menu {
        display: none;
    }

    .npuot-site-header__logo img,
    .npuot-site-header__logo .custom-logo {
        max-width: min(190px, 65vw);
        max-height: 64px;
    }

    .site-search,
    .site-search__field {
        width: 100%;
    }

    .site-search__field {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-search__input {
        padding: 0.65rem 0.8rem;
        font-size: 1rem;
    }

    .site-search__button {
        min-height: 44px;
        padding: 0.6rem 0.9rem;
        font-size: 1rem;
    }

    .npuot-site-header__main-nav {
        display: none;
    }

    .npuot-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        min-height: 44px;
        padding: 0.5rem 1rem;
        border: 0;
        border-radius: 999px;
        background: var(--npuot-color-white);
        color: var(--npuot-color-primary);
        cursor: pointer;
    }

    .npuot-menu-toggle__icon {
        position: relative;
        width: 20px;
        height: 14px;
        border-top: 3px solid currentColor;
        border-bottom: 3px solid currentColor;
    }

    .npuot-menu-toggle__icon::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        border-top: 3px solid currentColor;
        transform: translateY(-50%);
    }

    .npuot-mobile-nav {
        position: fixed;
        top: var(--npuot-mobile-header-space);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
        width: 100%;
        height: auto;
        padding: 2rem 1.25rem 3rem;
        background: var(--npuot-color-primary);
        color: var(--npuot-color-white);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .npuot-mobile-nav[hidden] {
        display: none;
    }

    .npuot-mobile-nav__section {
        width: min(100%, 960px);
        margin-inline: auto;
        margin-bottom: 2rem;
    }

    .npuot-mobile-nav__label {
        margin: 0 0 1rem;
        color: var(--npuot-color-black);
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .npuot-mobile-menu {
        display: grid;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .npuot-mobile-menu > li {
        padding-bottom: 0.875rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .npuot-mobile-menu a {
        display: inline-flex;
        color: var(--npuot-color-white);
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
    }

    .npuot-mobile-menu a:hover,
    .npuot-mobile-menu a:focus-visible,
    .npuot-mobile-menu .current-menu-item > a,
    .npuot-mobile-menu .current-menu-ancestor > a {
        color: var(--npuot-color-beige);
        text-decoration: underline;
        text-underline-offset: 0.25em;
    }

    .npuot-mobile-menu .sub-menu {
        display: grid;
        gap: 0.5rem;
        margin: 0.75rem 0 0;
        padding: 0 0 0 1.25rem;
        list-style: none;
    }

    .npuot-mobile-menu .sub-menu a {
        font-size: 1rem;
    }

    body.npuot-mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    :root {
        --npuot-mobile-header-space: 188px;
    }

    .npuot-site-header__inner {
        width: calc(100% - 2rem);
    }

    .npuot-site-header__logo img,
    .npuot-site-header__logo .custom-logo {
        max-width: min(180px, 70vw);
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    :root {
        --npuot-mobile-header-space: 184px;
    }

    .npuot-site-header__inner {
        width: calc(100% - 1.5rem);
    }

    .site-search__field {
        gap: 0.4rem;
    }

    .site-search__input {
        padding-inline: 0.7rem;
    }

    .site-search__button {
        padding-inline: 0.8rem;
    }
}

/* =========================================================
   Navigation ohne JavaScript
========================================================= */

@media (max-width: 1100px) {
    .no-js .npuot-menu-toggle {
        display: none !important;
    }

    .no-js .npuot-mobile-nav[hidden] {
        display: block !important;
        position: static;
        width: 100%;
        height: auto;
        padding: 1.5rem 0 0;
        overflow: visible;
    }
}


.npuot-accessibility-menu__panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.npuot-accessibility-menu__heading {
	margin: 0;
	padding: 0.4rem 0.6rem;
	font-weight: 700;
}

.npuot-accessibility-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--npuot-color-dark-blue);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.npuot-accessibility-menu__close:hover,
.npuot-accessibility-menu__close:focus-visible {
	background: #f3f3f3;
}

/* Ohne JavaScript: Zusatzschalter ausblenden */
.no-js .npuot-a11y-controls {
	display: none;
}

/* Hinweis ohne JavaScript anzeigen */
.npuot-a11y-no-js-message {
	display: none;
}

.no-js .npuot-a11y-no-js-message {
	display: block;
}