:root {
    --color-navy: #0a2447;
    --color-navy-soft: #18395f;
    --color-blue: #39a9ff;
    --color-sky: #d9eefc;
    --color-paper: #ffffff;
    --color-paper-soft: #f6f8fb;
    --color-ink: #122033;
    --color-ink-muted: #4d5c70;
    --color-border: rgba(10, 36, 71, 0.12);
    --shadow-card: 0 18px 44px rgba(8, 22, 44, 0.12);
    --shadow-soft: 0 10px 28px rgba(8, 22, 44, 0.08);
    --radius-card: 1.5rem;
    --radius-button: 1rem;
    --radius-hero: 0;
    --shell-width: 1180px;
    --header-height: 6rem;
    --hero-image: linear-gradient(135deg, #264b7c 0%, #162a46 48%, #0b1930 100%);
    --font-ui: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--color-ink);
    background:
        radial-gradient(circle at top, rgba(57, 169, 255, 0.1), transparent 34%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

body.modal-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
}

.skip-link {
    left: 1rem;
    top: 1rem;
    z-index: 50;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--color-paper);
    color: var(--color-navy);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.shell {
    width: min(calc(100% - 2rem), var(--shell-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(10, 36, 71, 0.08);
}

.site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
}

.brand__mark {
    width: clamp(10rem, 12vw, 234px);
    color: var(--color-navy);
}

.brand__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    line-height: 0.9;
    color: var(--color-navy);
    letter-spacing: -0.04em;
}

.sr-only {
    /* nur für screen reader */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-nav {
    justify-self: center;
}

.site-nav__panel {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.8vw, 3rem);
}

.site-nav__link {
    position: relative;
    padding: 0.25rem 0;
    text-decoration: none;
    font-weight: 700;
    color: var(--color-navy);
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.65rem;
    height: 0.18rem;
    border-radius: 99px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle,
.header-cta,
.button,
.modal__close {
    border: 0;
    cursor: pointer;
}

.menu-toggle,
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #14345e 0%, #0a2345 100%);
    color: var(--color-paper);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.header-cta {
    padding: 5px 10px;
    font-weight: 700;
}

.header-cta__icon,
.info-card__icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.header-cta__icon svg,
.info-card__icon svg {
    width: 75%;
    height: 75%;
    fill: #FFF;
}

.info-card__icon-map svg,
.info-card__icon-kontakt svg {
    width: 60%;
    height: 61%;
}

.header-cta__icon svg path,
.info-card__icon svg path {
    fill: #FFF !important;
}

.menu-toggle {
    display: none;
    width: 4rem;
    height: 4rem;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    display: block;
    width: 1.4rem;
    height: 0.16rem;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__icon {
    position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle__icon::before {
    top: -0.45rem;
}

.menu-toggle__icon::after {
    top: 0.45rem;
}

.menu-open .menu-toggle__icon {
    background: transparent;
}

.menu-open .menu-toggle__icon::before {
    transform: translateY(0.45rem) rotate(45deg);
}

.menu-open .menu-toggle__icon::after {
    transform: translateY(-0.45rem) rotate(-45deg);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: clamp(35rem, 70vh, 44rem);
}

.hero__slider,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__slider {
    background: #112948;
}

.hero__slide-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__slide-layer--current {
    background-image: var(--hero-image);
}

.hero__slide-layer--next {
    background-image: var(--hero-image-next, var(--hero-image));
    opacity: 0;
    transition: opacity 1s ease;
}

.hero__slider.is-transitioning .hero__slide-layer--next {
    opacity: 1;
}

.hero__slider--fallback::before {
    content: "Sliderbilder hier ablegen";
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__overlay {
    background: #051D3A;
    background: linear-gradient(90deg, rgba(5, 29, 58, 1) 0%, rgba(5, 29, 58, 1) 20%, rgba(5, 29, 58, 0.67) 45%, rgba(5, 29, 58, 0) 55%, rgba(5, 29, 58, 0) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding: 4.5rem 0;
    text-shadow: 0 0.25rem 0.3rem rgb(0 0 0 / 60%);
}

.hero__copy {
    max-width: 40rem;
    color: var(--color-paper);
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(217, 238, 252, 0.92);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero__accent {
    width: 4.25rem;
    height: 0.25rem;
    margin: 2rem 0 1.7rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #2c93ff 0%, #80d2ff 100%);
}

.hero p {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.65rem;
    padding: 0.9rem 1.35rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible,
.modal__close:hover,
.modal__close:focus-visible {
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(180deg, #14345e 0%, #0a2345 100%);
    color: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-paper);
}

.button--full {
    width: 100%;
}

.cards-section {
    margin-top: -4rem;
    padding: 0 0 3.5rem;
    position: relative;
    z-index: 2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.info-card__title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card__title h2 {
    margin: 0;
    font-size: clamp(1rem, 1.5rem, 1.5rem);
    color: var(--color-navy);
    text-transform: uppercase;
}

.info-card__icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(180deg, #17365f 0%, #0a2345 100%);
    color: var(--color-paper);
}

.media-placeholder {
    position: relative;
    min-height: 11rem;
    border-radius: 1.1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #e3ecf7 0%, #cad7e6 100%);
    border: 1px solid rgba(10, 36, 71, 0.08);
}

.media-placeholder::before,
.media-placeholder::after {
    content: "";
    position: absolute;
}

.media-placeholder--cars::before {
    inset: auto 8% 13% 8%;
    height: 32%;
    border-radius: 999px 999px 1.1rem 1.1rem;
    background: linear-gradient(180deg, #101a29 0%, #2c3747 100%);
    box-shadow: 0 18px 28px rgba(4, 16, 30, 0.22);
}

.media-placeholder--cars::after {
    inset: 20% 16% auto 16%;
    height: 30%;
    border-radius: 45% 45% 18% 18%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(160, 179, 204, 0.92));
    box-shadow: 0 0 0 0.45rem rgba(14, 31, 55, 0.85);
}

.media-placeholder--contact {
    background:
        linear-gradient(125deg, rgba(10, 36, 71, 0.86), rgba(10, 36, 71, 0.05)),
        linear-gradient(180deg, #e8eef7 0%, #cfd9e7 100%);
}

.media-placeholder--contact::before,
.media-placeholder--contact::after {
    width: 7rem;
    height: 1.1rem;
    top: 50%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3d3b5, #e2ad80);
}

.media-placeholder--contact::before {
    left: calc(50% - 6rem);
    transform: translateY(-50%) rotate(22deg);
}

.media-placeholder--contact::after {
    right: calc(50% - 6rem);
    transform: translateY(-50%) rotate(-22deg);
}

.media-placeholder--map {
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        repeating-linear-gradient(45deg, #dce9f4 0 1rem, #f5f8fb 1rem 2rem);
}

.media-placeholder--map::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent 18%, rgba(54, 91, 131, 0.18) 18% 20%, transparent 20% 54%, rgba(54, 91, 131, 0.18) 54% 56%, transparent 56%),
        linear-gradient(180deg, transparent 22%, rgba(54, 91, 131, 0.18) 22% 24%, transparent 24% 62%, rgba(54, 91, 131, 0.18) 62% 64%, transparent 64%);
}

.media-placeholder--map::after {
    width: 2rem;
    height: 2rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 1rem 1rem 1rem 0;
    background: linear-gradient(180deg, #1a4e8b 0%, #0a2345 100%);
}

.info-card p,
.contact-block,
.meta-list,
.purchase-note {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--color-ink-muted);
}

.contact-block h3 {
    margin: 0 0 0.9rem;
    color: var(--color-navy);
    font-size: 1.75rem;
}

.contact-list,
.meta-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.contact-list div,
.meta-list div {
    display: grid;
    grid-template-columns: minmax(0, 7rem) 1fr;
    gap: 0.35rem 0.85rem;
}

.contact-list dt,
.meta-list dt {
    font-weight: 700;
    color: var(--color-navy);
}

.contact-list dd,
.meta-list dd {
    margin: 0;
}

.contact-list a {
    color: var(--color-ink);
}

.purchase-note {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-weight: 700;
    color: #204b87;
}

.site-footer {
    padding: 2rem 0;
    background: linear-gradient(180deg, #0d294f 0%, #081c37 100%);
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__inner,
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

.footer-nav a {
    text-decoration: none;
}

.footer-nav a+a::before {
    content: "|";
    margin: 0 1rem 0 0.1rem;
    color: rgba(255, 255, 255, 0.35);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 39, 0.72);
    backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 56rem);
    max-height: calc(100dvh - 2.5rem);
    border-radius: 1.6rem;
    background: var(--color-paper);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal__content {
    padding: 2rem;
}

.modal__content h2 {
    margin: 0 0 1rem;
    color: var(--color-navy);
    font-size: clamp(1.2rem, 1.6rem, 1.6rem);
}

.modal__content p {
    margin: 1rem 0 0;
    color: var(--color-ink-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal__map-frame {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-paper-soft);
    margin-bottom: 20px;
}

.location-map {
    display: block;
    width: 100%;
    height: min(60vh, 24rem);
}

.location-map .leaflet-control-attribution {
    font-size: 0.72rem;
}

.location-map__marker {
    display: block;
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50% 50% 50% 0;
    background: #0a2345;
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(10, 35, 69, 0.34);
    transform: rotate(-45deg);
}

.location-map__marker::after {
    content: "";
    position: absolute;
    inset: 0.56rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

.modal__external-link {
    color: #204b87;
    font-weight: 700;
}

.modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: var(--color-paper-soft);
    color: var(--color-navy);
    font-size: 1.8rem;
    line-height: 1;
}

@media (max-width: 760px) {
    .modal {
        place-items: end center;
        padding: 0.75rem;
    }

    .modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        border-radius: 1.25rem;
    }

    .modal__content {
        padding: 1.25rem;
        padding-top: 3.5rem;
    }

    .location-map {
        height: min(36vh, 16rem);
    }
}

.legal-page {
    min-height: 100vh;
    padding: 3rem 0 5rem;
}

.legal-page__inner {
    width: min(calc(100% - 2rem), 54rem);
    margin: 0 auto;
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: #204b87;
    font-weight: 700;
}

.legal-page h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--color-navy);
}

.legal-page p {
    margin: 0 0 1rem;
    color: var(--color-ink-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

:focus-visible {
    outline: 3px solid rgba(57, 169, 255, 0.95);
    outline-offset: 3px;
}


@media (max-width: 1024px) {
    .hero__overlay {
        background: #051d3a57;
        background: linear-gradient(90deg, rgba(5, 29, 58, 1) 0%, rgba(5, 29, 58, 1) 10%, rgba(5, 29, 58, 0.67) 35%, rgba(5, 29, 58, 0) 58%, rgba(5, 29, 58, 0) 100%);
    }
}

@media (max-width: 960px) {
    :root {
        --header-height: 5.5rem;
    }

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

    .site-nav {
        justify-self: end;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav__panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        width: min(20rem, calc(100vw - 2rem));
        padding: 1rem;
        border: 1px solid rgba(10, 36, 71, 0.1);
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-card);
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.5rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .menu-open .site-nav__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav__link {
        padding: 0.5rem 0.5rem;
        border-radius: 0.85rem;
        font-size: 1.3rem;
        text-transform: uppercase;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-nav__link:hover,
    .site-nav__link:focus-visible {
        background: rgba(10, 36, 71, 0.06);
    }

    .cards-grid {
        grid-template-columns: minmax(340px, 400px);
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(calc(100% - 1.25rem), var(--shell-width));
    }

    .site-header__inner {
        gap: 0.75rem;
    }

    .brand__text {
        font-size: 2.6rem;
    }

    .header-cta {
        width: 4rem;
        height: 4rem;
        padding: 0;
    }

    .header-cta span:last-child {
        display: none;
    }

    .hero {
        min-height: 38rem;
    }

    .hero__overlay {
        background: linear-gradient(90deg, rgba(5, 29, 58, 1) 0%, rgba(5, 29, 58, 0.8) 15%, rgba(5, 29, 58, 0.67) 35%, rgba(5, 29, 58, 0) 58%, rgba(5, 29, 58, 0) 100%);
    }

    .hero__content {
        align-items: flex-start;
        padding: 3rem 0 4.2rem;
    }

    .hero__copy {
        max-width: 28rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        line-height: 1.02;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-section {
        margin-top: -2.5rem;
    }

    .info-card {
        padding: 1.1rem;
    }

    .contact-list div,
    .meta-list div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .site-footer__inner,
    .footer-nav {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
