/* Grundeinstellungen */
:root {
    --blue: #1f3d78;
    --blue-dark: #152b59;
    --red: #d73545;
    --red-dark: #b92736;
    --text: #263244;
    --muted: #657184;
    --light: #f4f7fb;
    --white: #ffffff;
    --border: #dfe5ee;
    --shadow: 0 14px 35px rgba(23, 43, 82, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

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

a {
    color: inherit;
}

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

/* Kopfbereich */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 14px rgba(20, 43, 89, 0.05);
}

.header-content {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--blue-dark);
    text-decoration: none;
}

.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 3px;
    background: var(--red);
    transition: right 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    right: 0;
}

/* Hero */
.hero {
    min-height: 590px;
    display: grid;
    place-items: center;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(21, 43, 89, 0.97), rgba(31, 61, 120, 0.9)),
        radial-gradient(circle at 85% 20%, rgba(215, 53, 69, 0.65), transparent 35%);
    overflow: hidden;
}

.hero-content {
    padding: 100px 0;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow,
.eyebrow-light {
    color: #ff9ca5;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.08;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto;
    color: #e3eaf7;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--red);
    color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--red-dark);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--white);
    color: var(--blue-dark);
}

/* Inhaltsbereiche */
.section {
    padding: 92px 0;
}

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

.section-heading {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}

.section h2,
.legal-page h1 {
    margin: 0 0 18px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.section-heading > p:last-child {
    color: var(--muted);
}

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

.card {
    position: relative;
    min-height: 245px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(23, 43, 82, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-number {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 800;
}

.card h3 {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 1.3rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 65px;
}

.license-box {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.license-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
}

.license-box h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
}

.license-box p {
    margin: 0 0 8px;
}

.license-number {
    color: var(--red);
    font-weight: 800;
}

/* Kontakt */
.contact-section {
    color: var(--white);
    background: var(--blue-dark);
}

.contact-section h2 {
    color: var(--white);
}

.contact-section > .container > div:first-child > p:last-child {
    color: #d9e2f2;
}

.contact-card {
    padding: 34px;
    color: var(--text);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    font-style: normal;
}

.contact-card h3 {
    margin-top: 0;
    color: var(--blue-dark);
}

.contact-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.contact-list li > span:first-child {
    color: var(--muted);
}

.contact-list a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

/* Footer */
.site-footer {
    padding: 24px 0;
    color: #d9e2f2;
    background: #0e1f41;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    margin: 0;
}

.footer-content nav {
    display: flex;
    gap: 22px;
}

.footer-content a {
    color: var(--white);
    text-decoration: none;
}

.footer-content a:hover,
.footer-content a:focus-visible {
    text-decoration: underline;
}

/* Rechtliche Unterseiten */
.legal-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.legal-header .header-content {
    min-height: 90px;
}

.back-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.legal-page {
    width: min(850px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.legal-page h2 {
    margin: 34px 0 10px;
    color: var(--blue-dark);
    font-size: 1.35rem;
}

.legal-page h3 {
    margin: 25px 0 8px;
    color: var(--blue-dark);
    font-size: 1.08rem;
}

.legal-page p,
.legal-page ul {
    margin-top: 0;
}

.legal-note {
    margin-bottom: 32px;
    padding: 18px 20px;
    color: #5d4b0b;
    background: #fff8d8;
    border: 1px solid #f1dda0;
    border-radius: 10px;
}

/* Responsive Darstellung */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
    }

    .header-content {
        flex-direction: column;
        padding: 15px 0;
    }

    .brand-text {
        display: none;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 75px 0;
    }

    .section {
        padding: 70px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 440px) {
    .container,
    .legal-page {
        width: min(100% - 28px, 1120px);
    }

    .main-nav {
        gap: 12px;
        font-size: 0.86rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .card,
    .contact-card,
    .license-box {
        padding: 24px;
    }

    .contact-list li {
        flex-direction: column;
        gap: 2px;
    }
}
