/* ========================================
   IMPRESSUM
======================================== */

.legal-hero {
    position: relative;

    min-height: 360px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: #ffffff;
    background: #0a1018;
}

.legal-hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(38, 80, 159, 0.45),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #080d14 0%,
            #101b2d 60%,
            #173b77 100%
        );
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 9, 16, 0.78),
            rgba(4, 9, 16, 0.15)
        );
}

.legal-hero-content {
    position: relative;
    z-index: 2;

    padding-top: 75px;
    padding-bottom: 75px;
}

.legal-eyebrow {
    margin: 0 0 10px;

    color: var(--brand-blue);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.legal-hero .legal-eyebrow {
    color: #ffffff;
}

.legal-hero h1 {
    margin: 0;

    font-size: clamp(
        50px,
        7vw,
        82px
    );

    line-height: 0.95;

    letter-spacing: -0.05em;

    text-transform: uppercase;
}

.legal-hero-content > p:last-child {
    max-width: 620px;

    margin: 22px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 17px;
}


/* ========================================
   LAYOUT
======================================== */

.legal-section {
    padding-top: 35px;
    padding-bottom: 45px;
}

.legal-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 25px;

    align-items: start;
}


/* ========================================
   KARTEN
======================================== */

.legal-main {
    display: grid;
    gap: 18px;
}

.legal-card {
    padding: 35px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        var(--radius-medium);

    background: #ffffff;

    box-shadow:
        var(--shadow-small);
}

.legal-card h2 {
    margin: 0;

    font-size: 26px;

    letter-spacing: -0.02em;
}

.legal-card address {
    margin-top: 16px;

    color: var(--text-muted);

    font-size: 16px;

    font-style: normal;

    line-height: 1.7;
}

.legal-description {
    margin: 14px 0 0;

    color: var(--text-muted);

    font-size: 15px;
}


/* ========================================
   KONTAKT
======================================== */

.legal-contact-list {
    margin-top: 22px;

    border-top:
        1px solid
        var(--border-color);
}

.legal-contact-row {
    padding: 17px 0;

    display: grid;

    grid-template-columns:
        180px
        1fr;

    gap: 20px;

    border-bottom:
        1px solid
        var(--border-color);
}

.legal-contact-label {
    color: var(--text-muted);

    font-size: 14px;

    font-weight: 700;
}

.legal-contact-row a {
    color: var(--brand-blue);

    font-size: 15px;

    font-weight: 700;

    text-decoration: none;
}

.legal-contact-row a:hover {
    text-decoration: underline;
}


/* ========================================
   GESCHÄFTSFÜHRER
======================================== */

.legal-persons {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.legal-person {
    padding: 18px 20px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        10px;

    background: #f6f8fb;

    font-size: 16px;

    font-weight: 700;
}


/* ========================================
   REGISTERDATEN
======================================== */

.legal-data-grid {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.legal-data-grid > div {
    padding: 20px;

    border-radius: 10px;

    background: #f5f7fa;
}

.legal-data-grid span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 12px;
}

.legal-data-grid strong {
    font-size: 16px;
}


/* ========================================
   UST-ID
======================================== */

.legal-highlight {
    margin-top: 20px;

    padding: 20px 24px;

    border-left:
        4px solid
        var(--brand-blue);

    border-radius: 8px;

    color: var(--brand-blue-dark);

    background:
        var(--brand-blue-light);

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 0.03em;
}


/* ========================================
   SIDEBAR
======================================== */

.legal-sidebar {
    position: sticky;

    top: 100px;

    display: grid;

    gap: 18px;
}

.legal-sidebar-card {
    padding: 28px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        var(--radius-medium);

    background: #ffffff;

    box-shadow:
        var(--shadow-small);
}

.legal-sidebar-card h3 {
    margin: 0;

    font-size: 20px;
}

.legal-sidebar-card address {
    margin-top: 14px;

    color: var(--text-muted);

    font-size: 14px;

    font-style: normal;

    line-height: 1.7;
}


/* BLAUE KARTE */

.legal-sidebar-blue {
    color: #ffffff;

    border: none;

    background:
        linear-gradient(
            135deg,
            var(--brand-blue-dark),
            var(--brand-blue)
        );
}

.legal-sidebar-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: var(--brand-blue);

    background: #ffffff;

    font-size: 24px;

    font-weight: 900;
}

.legal-sidebar-blue h2 {
    margin: 0;

    color: #ffffff;

    font-size: 25px;
}

.legal-sidebar-blue p {
    margin: 12px 0 22px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 14px;
}


/* ========================================
   RECHTLICHE NAVIGATION
======================================== */

.legal-navigation {
    margin-top: 16px;

    display: grid;

    gap: 8px;
}

.legal-navigation a {
    padding: 13px 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-radius: 8px;

    color: var(--text-dark);

    background: #f4f6f9;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}

.legal-navigation a:hover,
.legal-navigation a.active {
    color: #ffffff;

    background: var(--brand-blue);
}


/* ========================================
   CTA
======================================== */

.legal-contact-cta {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--brand-blue-dark),
            var(--brand-blue)
        );
}

.legal-contact-cta-inner {
    min-height: 190px;

    padding-top: 35px;
    padding-bottom: 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.legal-cta-small {
    margin: 0 0 5px;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;
}

.legal-contact-cta h2 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    line-height: 1.06;
}

.legal-contact-cta p:not(.legal-cta-small) {
    max-width: 650px;

    margin: 12px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );
}

.legal-cta-buttons {
    flex: 0 0 auto;

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 960px) {

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .legal-sidebar-blue {
        grid-column: 1 / -1;
    }

    .legal-contact-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* ========================================
   SMARTPHONE
======================================== */

@media (max-width: 640px) {

    .legal-hero {
        min-height: 320px;
    }

    .legal-hero h1 {
        font-size: 50px;
    }

    .legal-card {
        padding: 25px 20px;
    }

    .legal-contact-row {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .legal-persons {
        grid-template-columns: 1fr;
    }

    .legal-data-grid {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        grid-template-columns: 1fr;
    }

    .legal-sidebar-blue {
        grid-column: auto;
    }

    .legal-contact-cta-inner {
        min-height: 260px;
    }

    .legal-cta-buttons {
        width: 100%;

        flex-direction: column;
    }

    .legal-cta-buttons .button {
        width: 100%;
    }

}