:root {
    color-scheme: light;
    --ink: #18334d;
    --muted: #74808a;
    --paper: #ffffff;
    --soft: #f7f8f9;
    --line: #e3e6e8;
    --accent: #18334d;
    --focus: #005fcc;
    --content-width: 75rem;
    --header-top-height: 5.75rem;
    --header-compact-height: 4rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

.page-home {
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible,
[tabindex="-1"]:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
}

.visually-hidden {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: var(--paper);
    border: 0.1rem solid var(--ink);
    color: var(--ink);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell-container,
.content-width,
.narrow-width {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.narrow-width {
    max-width: 50rem;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    background: rgb(255 255 255 / 97%);
    color: var(--ink);
    border-bottom: 0.0625rem solid var(--line);
    box-shadow: 0 0.25rem 1.2rem rgb(24 51 77 / 6%);
}

.page-home .site-header {
    position: fixed;
    right: 0;
    left: 0;
    background: transparent;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.page-home .site-header.is-scrolled {
    background: rgb(255 255 255 / 54%);
    color: var(--ink);
    border-color: rgb(24 51 77 / 10%);
    box-shadow: 0 0.125rem 0.9375rem rgb(0 0 0 / 8%);
    backdrop-filter: blur(1.25rem);
}

.header-layout {
    width: min(calc(100% - 1rem), 77rem);
    min-height: var(--header-top-height);
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    align-items: center;
    gap: 1.25rem;
    transition: min-height 180ms ease;
}

@media (max-width: 64rem) {
    .header-layout {
        width: calc(100% - 0.875rem);
        grid-template-columns: 4rem minmax(0, 1fr) 4rem;
        gap: 0.75rem;
    }
}

.site-header.is-scrolled .header-layout {
    min-height: var(--header-compact-height);
}

.site-name {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    text-decoration: none;
}

.site-mark {
    width: auto;
    height: 2.1875rem;
    display: block;
    filter: none;
}

.site-header.is-scrolled .site-mark {
    filter: none;
}

.page-legal .site-mark,
.page-message .site-mark {
    height: 1.5625rem;
}

.page-home .site-header.is-scrolled .site-navigation,
.page-home .site-header.is-scrolled .language-navigation {
    text-shadow: none;
}

.site-navigation {
    min-width: 0;
}

.site-navigation ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    list-style: none;
}

.site-navigation ul {
    justify-content: center;
    gap: clamp(1.4rem, 4vw, 3rem);
}

.site-navigation a {
    display: inline-block;
    padding-block: 0.55rem;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.125rem;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header.is-scrolled .site-navigation a {
    font-weight: 400;
}

.language-navigation {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 0.65rem;
}

.language-navigation a,
.language-current {
    display: inline-grid;
    min-width: 1.5rem;
    min-height: 1.5rem;
    place-items: center;
    border-radius: 0.2rem;
    font-size: 1.12rem;
    line-height: 1;
    text-decoration: none;
}

.language-current {
    box-shadow: none;
}

.language-flag {
    position: relative;
    width: 1.45rem;
    height: 0.9rem;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0.08rem;
    box-shadow: none;
}

.language-current .language-flag {
    transform: scale(1.08);
}

.language-flag-de {
    background: linear-gradient(to bottom, #151515 0 33.33%, #d00 33.33% 66.66%, #ffce00 66.66% 100%);
}

.language-flag-us {
    background: repeating-linear-gradient(to bottom, #b22234 0 0.07rem, #fff 0.07rem 0.14rem);
}

.language-flag-us::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    height: 54%;
    content: "";
    background: #3c3b6e;
}

.site-main {
    flex: 1 0 auto;
}

.message-layout,
.legal-layout {
    padding-block: clamp(3rem, 8vw, 7rem);
}

.content-panel,
.legal-content {
    max-width: 52rem;
}

.content-panel {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background: var(--soft);
    border: 0.0625rem solid var(--line);
}

.content-panel h1,
.legal-content h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.lead {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.environment-note,
.legal-status {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.legal-status {
    padding: 0.75rem 1rem;
    border-left: 0.2rem solid var(--accent);
    background: var(--soft);
}

.legal-content section {
    margin-top: 2.75rem;
}

.legal-content h2 {
    font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
    max-width: 74ch;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid var(--line);
    font-weight: 700;
}

.scroll-to-top {
    position: fixed;
    z-index: 25;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    width: 3.1rem;
    height: 3.1rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 0.5rem 1.4rem rgb(24 51 77 / 28%);
    cursor: pointer;
    font-size: 1.35rem;
}

.scroll-to-top:hover {
    background: #274b6b;
}

.scroll-to-top[hidden] {
    display: none;
}

.site-footer {
    background: var(--paper);
    color: var(--muted);
    border-top: 0.0625rem solid var(--line);
    font-size: 0.75rem;
}

.footer-layout {
    min-height: 0;
    padding-block: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    line-height: 1.6;
    text-align: center;
}

.footer-layout p {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: normal;
}

.site-footer ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.site-footer li {
    display: inline-flex;
    align-items: center;
}

.site-footer li + li::before {
    margin-inline: 0.5rem;
    color: var(--muted);
    content: "|";
}

.footer-separator {
    color: var(--muted);
}

.site-footer a,
.footer-consent-button {
    font-size: 0.75rem;
}

.footer-consent-button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    cursor: pointer;
}

.consent-banner {
    position: fixed;
    z-index: 40;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: min(calc(100% - 2rem), 64rem);
    margin-inline: auto;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    border: 0.0625rem solid var(--line);
    background: rgb(255 255 255 / 98%);
    color: var(--ink);
    box-shadow: 0 0.8rem 2.5rem rgb(17 42 65 / 20%);
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner-copy strong {
    font-size: 0.95rem;
}

.consent-banner-copy p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.consent-banner-actions,
.consent-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.consent-banner-actions button {
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    border: 0.0625rem solid var(--accent);
    background: var(--paper);
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.consent-banner-actions button[data-consent-accept-all] {
    background: var(--accent);
    color: var(--paper);
}

.consent-dialog {
    width: min(calc(100% - 2rem), 38rem);
    max-width: none;
    margin: auto;
    padding: 0;
    border: 0.0625rem solid var(--line);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1.25rem 4rem rgb(17 42 65 / 24%);
}

.consent-dialog::backdrop {
    background: rgb(17 42 65 / 55%);
}

.consent-dialog-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.consent-dialog-heading,
.consent-category-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.consent-dialog h2,
.consent-dialog h3,
.consent-dialog p {
    margin-top: 0;
}

.consent-dialog h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.consent-dialog h3 {
    margin-bottom: 0;
    font-size: 1rem;
}

.consent-dialog p {
    line-height: 1.65;
}

.consent-dialog-close {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 0.0625rem solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.consent-category {
    margin-block: 1.5rem;
    padding: 1rem;
    border-left: 0.1875rem solid var(--accent);
    background: var(--soft);
}

.consent-category p {
    margin: 0.65rem 0 0;
}

.consent-category-heading small {
    margin-top: 0.45rem;
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
}

.consent-category-heading input {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.consent-category-status {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.consent-dialog-action {
    min-height: 2.75rem;
    padding: 0.7rem 1.25rem;
    border: 0.0625rem solid var(--accent);
    background: var(--accent);
    color: var(--paper);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.consent-dialog-action.is-secondary {
    background: var(--paper);
    color: var(--accent);
}

@media (max-width: 48rem) {
    :root {
        --header-top-height: 4.25rem;
        --header-compact-height: 3.5rem;
    }

    .consent-banner {
        grid-template-columns: 1fr;
    }

    .consent-banner-actions,
    .consent-dialog-actions {
        justify-content: stretch;
    }

    .consent-banner-actions button,
    .consent-dialog-action {
        flex: 1 1 10rem;
    }

    .header-layout {
        width: calc(100% - 0.75rem);
        grid-template-columns: 2.5rem minmax(0, 1fr) max-content;
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
        gap: clamp(0.25rem, 1vw, 0.625rem);
        padding-block: 0.5rem;
    }

    .site-navigation {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
        display: flex;
        align-self: stretch;
        align-items: center;
        justify-self: stretch;
    }

    .site-navigation ul {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        gap: 0;
    }

    .site-navigation li {
        min-width: 0;
        flex: 1 1 0;
    }

    .site-navigation a {
        width: 100%;
        min-height: 2.25rem;
        padding-block: 0.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(0.66rem, 2.8vw, 0.78rem);
        letter-spacing: clamp(0.0125rem, 0.08vw, 0.04rem);
        white-space: nowrap;
    }

    .language-navigation {
        grid-column: 3;
        grid-row: 1;
        gap: 0.3rem;
    }

    .footer-layout {
        padding-right: 3.5rem;
    }
}

@media (max-width: 28rem) {
    .header-layout {
        width: calc(100% - 0.75rem);
    }

    .site-navigation ul {
        gap: 0;
    }

    .language-navigation {
        gap: 0.25rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .header-layout {
        transition: none;
    }
}
