@font-face {
    font-family: "NOVIS PT Serif";
    src: url("/fonts/pt-serif-v17-latin-regular.woff2") format("woff2");
    font-display: swap;
}

.novis-nav {
    --nav-ink: #243338;
    --nav-accent: #24576a;
    --nav-line: #d9e1e2;
    --nav-paper: #fff;
    --nav-highlight: #eff5f6;
    position: sticky;
    top: 0;
    z-index: 108;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 12px;
    border-bottom: 1px solid var(--nav-line);
    background: var(--nav-paper);
    color: var(--nav-ink);
    font: 1rem/1.35 "NOVIS PT Serif", Georgia, serif;
    box-shadow: 0 4px 20px rgb(36 51 56 / 7%);
}

.novis-nav[data-scrolled] {
    background-color: rgb(255 255 255 / 92%);
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .novis-nav[data-scrolled] {
        background-color: rgb(255 255 255 / 80%);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .novis-nav {
        transition: background-color .24s ease, backdrop-filter .24s ease;
    }
}

.novis-nav + #index_bild_1 {
    margin-top: 24px;
}

.novis-nav *,
.novis-nav *::before {
    box-sizing: border-box;
}

.novis-nav a,
.novis-nav a:visited {
    color: inherit;
    text-decoration: none;
}

.novis-nav :is(a, button, summary):focus-visible {
    outline: 2px solid var(--nav-accent);
    outline-offset: -3px;
}

.novis-nav__brand {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 8px 6px;
}

.novis-nav__brand img {
    display: block;
    width: 136px;
    height: auto;
}

.novis-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.novis-nav__links {
    grid-column: 1 / -1;
}

@media (width < 1140px) {
    .novis-nav[data-ready] .novis-nav__links {
        margin-inline: -12px;
        padding-inline: 12px;
        background: var(--nav-paper);
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
}

.novis-nav__mobile,
.novis-nav__item {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.novis-nav__mobile {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: none;
    white-space: nowrap;
}

.novis-nav[data-ready] .novis-nav__mobile {
    display: flex;
}

.novis-nav__links[hidden] {
    display: none;
}

.novis-nav summary::-webkit-details-marker {
    display: none;
}

.novis-nav__chevron {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin: -3px 3px 0;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.novis-nav__group[open] .novis-nav__chevron,
.novis-nav__mobile[aria-expanded="true"] .novis-nav__chevron {
    transform: translateY(3px) rotate(225deg);
}

.novis-nav__item[aria-current],
.novis-nav__group[open] > summary,
.novis-nav__mobile[aria-expanded="true"] {
    color: var(--nav-accent);
    background: var(--nav-highlight);
}

.novis-nav__left > li,
.novis-nav__right > li {
    border-top: 1px solid var(--nav-line);
}

.novis-nav ul.novis-nav__panel {
    padding: 2px 0 4px 14px;
}

.novis-nav__tile {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

.novis-nav__tile img,
.novis-nav__tile-description {
    display: none;
}

@media (hover: hover) {
    .novis-nav :is(.novis-nav__item, .novis-nav__tile, .novis-nav__mobile):hover {
        color: var(--nav-accent);
        background: var(--nav-highlight);
    }
}

@media (max-width: 360px) {
    .novis-nav__brand img {
        width: 92px;
    }
}

@media (max-width: 991px) {
    .novis-nav + #index_bild_1 {
        display: flex;
        align-items: flex-end;
    }

    .novis-nav + #index_bild_1 #willkommen {
        position: static;
        width: auto;
        margin: 0;
        padding: 24px;
    }
}

@media (min-width: 1140px) {
    .novis-nav {
        padding-inline: clamp(12px, 2vw, 28px);
    }

    .novis-nav[data-ready] .novis-nav__mobile {
        display: none;
    }

    .novis-nav__brand img {
        width: 176px;
    }

    .novis-nav__links {
        display: contents;
    }

    .novis-nav :is(.novis-nav__left, .novis-nav__right) {
        display: flex;
        grid-row: 1;
        justify-content: space-evenly;
        align-items: center;
        min-width: 0;
    }

    .novis-nav__left {
        grid-column: 1;
    }

    .novis-nav__right {
        grid-column: 3;
    }

    .novis-nav__left > li,
    .novis-nav__right > li {
        border: 0;
    }

    .novis-nav__item {
        font-size: clamp(.9rem, 1.15vw, 1.06rem);
        white-space: nowrap;
    }

    .novis-nav ul.novis-nav__panel {
        position: absolute;
        inset: 100% 0 auto;
        display: grid;
        grid-template-columns: repeat(var(--novis-nav-columns), minmax(0, 1fr));
        gap: clamp(12px, 1.5vw, 22px);
        max-height: calc(100vh - 122px);
        overflow-y: auto;
        padding: clamp(16px, 2vw, 28px);
        border: 1px solid var(--nav-line);
        border-radius: 0 0 10px 10px;
        background: var(--nav-paper);
        box-shadow: 0 18px 32px rgb(36 51 56 / 15%);
    }

    .novis-nav__tile {
        display: grid;
        grid-template-rows: auto 1fr;
        align-items: start;
        height: 100%;
        padding: 0;
        border: 1px solid var(--nav-line);
        border-radius: 7px;
        overflow: hidden;
    }

    .novis-nav__tile img {
        display: block;
        width: 100%;
        aspect-ratio: 5 / 3;
        object-fit: cover;
        background: var(--nav-highlight);
    }

    .novis-nav__tile-copy {
        display: grid;
        gap: 4px;
        padding: 13px 14px 15px;
    }

    .novis-nav__tile-description {
        display: block;
        color: #536167;
        font-size: .875em;
        line-height: 1.4;
    }

    .novis-nav__tile:focus-visible {
        outline-offset: 3px;
    }
}
