:root {
    --blue: #00559f;
    --blue-dark: #003c73;
    --yellow: #ffea00;
    --ink: #142033;
    --muted: #667085;
    --soft: #f3f7fb;
    --line: #dce7f2;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(10, 35, 65, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--white);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    max-width: 860px;
}

.skip {
    position: absolute;
    top: 10px;
    left: -999px;
    z-index: 100;
    padding: 10px;
    background: var(--white);
}

.skip:focus {
    left: 10px;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.topbar__inner {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand img {
    height: 64px;
    width: auto;
    display: block;
}

.mainnav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.mainnav a {
    color: var(--ink);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
}

.mainnav a:hover,
.mainnav a.active {
    color: var(--blue);
    background: var(--soft);
    text-decoration: none;
}

.phone-pill {
    padding: 10px 16px;
    color: var(--white);
    font-weight: 800;
    white-space: nowrap;
    background: var(--blue);
    border-radius: 999px;
}

.phone-pill:hover {
    background: var(--blue-dark);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px;
    background: var(--ink);
    border-radius: 5px;
}

/* Hero allgemein */
.hero {
    position: relative;
    min-height: 430px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, #082f57, var(--blue));
}

.hero--slider {
    min-height: 430px;
}

.hero--subpage {
    min-height: 430px;
}

.hero__media,
.hero-slider,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero__media {
    background:
        linear-gradient(90deg, rgba(0, 38, 79, 0.86), rgba(0, 85, 159, 0.62)),
        url('/assets/img/hero-placeholder.svg') center / cover no-repeat;
}

.hero-slider {
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 3200ms ease;
}

.hero-slider .slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 38, 79, 0.88), rgba(0, 85, 159, 0.62));
}

.hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-block: 72px;
}

.hero h1 {
    max-width: 980px;
    margin: 0.1em 0 0.25em;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.04;
}

.hero p {
    max-width: 780px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head p.eyebrow {
    color: #1F66AD;
}

.container.split .eyebrow {
    color: #1F66AD;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    color: #0f2a44;
    font-weight: 900;
    background: var(--yellow);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn--ghost {
    color: var(--blue);
    background: var(--white);
}

/* Content */
.section {
    padding: 82px 0;
}

.section--soft {
    background: var(--soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card,
.highlight,
.info-box,
.contact-form {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.card a {
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.highlight {
    display: grid;
    gap: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.highlight strong {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.highlight span {
    color: #d9ecff;
    font-weight: 700;
}

.checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 34px;
    font-weight: 700;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 0.85rem;
    background: #1F66AD;
    border-radius: 50%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.consent {
    grid-template-columns: auto 1fr !important;
    align-items: start;
    font-weight: 600 !important;
}

.consent input {
    width: auto;
    margin-top: 7px;
}

.map-placeholder {
    padding: 40px;
    font-weight: 800;
    text-align: center;
    background: var(--soft);
    border: 1px dashed var(--blue);
    border-radius: 20px;
}

.legal h2 {
    margin-top: 34px;
}

/* Footer */
.footer {
    padding-top: 60px;
    color: #d8e7f6;
    background: #0d243b;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer h3 {
    margin-top: 0;
    color: var(--white);
}

.footer a {
    color: var(--white);
}

.footer ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-logo {
    display: block;
    width: auto;
    height: 54px;
    margin-bottom: 18px;
}

.footer__bottom {
    padding: 18px;
    margin-top: 40px;
    color: #a9bdd1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .topbar__inner {
        height: 76px;
    }

    .brand img {
        height: 52px;
    }

    .nav-toggle {
        display: block;
    }

    .mainnav {
        position: absolute;
        top: 84px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: var(--white);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .mainnav.open {
        display: flex;
    }

    .phone-pill {
        display: none;
    }

    .cards,
    .split,
    .contact-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero--slider,
    .hero--subpage {
        min-height: 390px;
    }

    .hero__content {
        padding-block: 64px;
    }

    .section {
        padding: 58px 0;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand img {
        height: 45px;
    }

    .topbar__inner {
        gap: 10px;
    }

    .hero,
    .hero--slider,
    .hero--subpage {
        min-height: 360px;
    }

    .hero__content {
        padding-block: 54px;
    }

    .cards {
        gap: 16px;
    }

    .card,
    .highlight,
    .info-box,
    .contact-form {
        padding: 22px;
    }
}
