:root {
    --page-width: 1180px;
    --surface: rgba(244, 239, 210, 0.96);
    --surface-muted: rgba(159, 173, 165, 0.96);
    --surface-dark: #46544d;
    --text: #121512;
    --muted: #46524c;
    --border: rgba(26, 32, 28, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(242, 230, 172, 0.22), rgba(17, 23, 20, 0.28)),
        url("/images/background/Zugschiene-1500px.jpg")
        center top / cover fixed no-repeat;
}

a {
    color: inherit;
}

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

.legal-hero {
    margin-bottom: 24px;
    padding: 28px 34px;
    background:
        linear-gradient(
            90deg,
            rgba(251, 246, 209, 0.96),
            rgba(240, 230, 170, 0.88)
        );
    border-left: 7px solid var(--surface-dark);
    border-radius: 11px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
}

.legal-eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.legal-hero > p:last-child {
    margin: 9px 0 0;
    font-weight: 600;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(245px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.contact-card,
.legal-content {
    border: 4px solid #0a0c0b;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.contact-card {
    position: sticky;
    top: 102px;
    padding: 28px;
    background: var(--surface-muted);
}

.contact-card h2 {
    margin: 7px 0 16px;
    font-size: 1.55rem;
}

.contact-card address {
    margin: 0;
    font-style: normal;
    line-height: 1.7;
}

.contact-label {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.contact-group {
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
}

.contact-group a {
    display: block;
    width: fit-content;
    margin-top: 9px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-group p {
    margin: 9px 0 0;
}

.legal-content {
    overflow: hidden;
    background: var(--surface);
}

.legal-section {
    padding: 29px 34px;
}

.legal-section + .legal-section {
    border-top: 2px solid var(--border);
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal-section p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.72;
}

.legal-section p + p {
    margin-top: 15px;
}

.legal-note {
    background: rgba(91, 108, 99, 0.12);
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    .legal-page {
        width: min(100% - 28px, 820px);
        padding-top: 30px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .legal-page {
        width: calc(100% - 18px);
        padding: 20px 0 45px;
    }

    .legal-hero {
        padding: 22px 19px;
        border-left-width: 5px;
    }

    .contact-card,
    .legal-content {
        border-width: 4px;
        border-radius: 14px;
    }

    .contact-card,
    .legal-section {
        padding: 22px 19px;
    }

    .legal-section p {
        font-size: 0.97rem;
        line-height: 1.65;
    }
}

.translation-note {
    background: rgba(126, 145, 135, 0.18);
}

.translation-note a {
    font-weight: 700;
    overflow-wrap: anywhere;
}
