.impressum-page {
    --legal-ink: #203129;
    --legal-muted: #607068;
    --legal-green: #143c2b;
    --legal-green-deep: #09261b;
    --legal-gold: #c5a85a;
    min-height: 100vh;
    color: var(--legal-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(197, 168, 90, 0.15), transparent 30rem),
        radial-gradient(circle at 92% 24%, rgba(47, 108, 80, 0.12), transparent 34rem),
        linear-gradient(145deg, #edf1ec 0%, #f8f6ef 55%, #e9efeb 100%);
}

.impressum-page::before {
    z-index: 0;
    background:
        linear-gradient(rgba(20, 60, 43, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 60, 43, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: none;
}

.impressum-page::after {
    display: none;
}

.impressum-page main {
    position: relative;
    z-index: 1;
}

.impressum-page .skip-to-content {
    background: var(--legal-green-deep);
    color: #fff;
}

.legal-shell {
    width: min(100% - 40px, 1160px);
    margin: 0 auto;
    padding: 24px 0 64px;
}

.legal-toolbar,
.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-toolbar {
    min-height: 48px;
    margin-bottom: 22px;
}

.legal-back,
.legal-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(20, 60, 43, 0.18);
    color: var(--legal-green);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.legal-back {
    gap: 10px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

.legal-back span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.legal-language {
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.38);
}

.legal-back:hover,
.legal-language:hover {
    border-color: rgba(20, 60, 43, 0.42);
    color: var(--legal-green-deep);
    background: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transform: translateY(-1px);
}

.legal-back:hover span {
    transform: translateX(-3px);
}

.legal-back:focus-visible,
.legal-language:focus-visible,
.legal-jump-nav a:focus-visible,
.legal-card a:focus-visible,
.legal-footer a:focus-visible {
    outline: 3px solid rgba(197, 168, 90, 0.8);
    outline-offset: 3px;
}

.legal-hero {
    position: relative;
    isolation: isolate;
    min-height: 370px;
    padding: clamp(36px, 7vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 18%, rgba(215, 188, 105, 0.26), transparent 28%),
        radial-gradient(circle at 72% 105%, rgba(92, 151, 120, 0.28), transparent 42%),
        linear-gradient(135deg, #123f2c 0%, #0b2f21 55%, #071f17 100%);
    box-shadow: 0 28px 70px rgba(11, 44, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
}

.legal-hero::after {
    position: absolute;
    right: clamp(-80px, -4vw, -20px);
    bottom: clamp(-120px, -7vw, -50px);
    z-index: -1;
    width: clamp(240px, 38vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 44px rgba(255, 255, 255, 0.025),
        0 0 0 88px rgba(255, 255, 255, 0.018);
    content: "";
}

.legal-eyebrow {
    margin: 0 0 20px;
    color: #dbc882;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 620;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.legal-intro {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 350;
    line-height: 1.55;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.legal-jump-nav {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid rgba(20, 60, 43, 0.13);
    border-radius: 16px;
    background: rgba(246, 248, 244, 0.82);
    box-shadow: 0 10px 30px rgba(23, 52, 40, 0.08);
    scrollbar-width: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.legal-jump-nav::-webkit-scrollbar {
    display: none;
}

.legal-jump-label {
    flex: 0 0 auto;
    padding: 0 8px;
    color: var(--legal-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-jump-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--legal-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.legal-jump-nav a:hover {
    color: var(--legal-green-deep);
    background: rgba(20, 60, 43, 0.08);
    text-decoration: none;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.legal-card {
    min-width: 0;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(24, 66, 47, 0.13);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.83);
    box-shadow: 0 18px 50px rgba(30, 57, 45, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    scroll-margin-top: 96px;
}

.legal-card--wide {
    grid-column: 1 / -1;
}

.legal-card-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(24, 66, 47, 0.12);
}

.legal-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 168, 90, 0.34);
    border-radius: 50%;
    background: rgba(197, 168, 90, 0.1);
    color: #8a7333;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.legal-card h2 {
    margin: 1px 0 8px;
    color: var(--legal-green-deep);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 620;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.legal-lead {
    max-width: 760px;
    margin: 0;
    color: var(--legal-muted);
    font-size: 14px;
    line-height: 1.55;
}

.legal-card-content {
    padding-top: 26px;
    color: #35463e;
    font-size: 15px;
    line-height: 1.72;
}

.legal-card-content p,
.legal-card-content address {
    margin: 0 0 18px;
}

.legal-card-content p:last-child,
.legal-card-content address:last-child {
    margin-bottom: 0;
}

.legal-card-content address {
    color: #273a31;
    font-style: normal;
}

.legal-card-content address strong {
    color: var(--legal-green-deep);
    font-size: 18px;
    font-weight: 650;
}

.legal-label {
    color: #7a6840;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-card-content a {
    color: #165d42;
    font-weight: 580;
    text-decoration: underline;
    text-decoration-color: rgba(22, 93, 66, 0.32);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-card-content a:hover {
    color: #0a3d2a;
    text-decoration-color: currentColor;
}

.legal-subsections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
}

.legal-subsections section {
    padding: 22px 0;
    border-top: 1px solid rgba(24, 66, 47, 0.11);
}

.legal-subsections section:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
}

.legal-subsections h3 {
    margin: 0 0 9px;
    color: var(--legal-green);
    font-size: 16px;
    font-weight: 670;
    line-height: 1.35;
}

.legal-subsections p {
    margin: 0;
    color: #526159;
    font-size: 14px;
    line-height: 1.7;
}

.legal-footer {
    margin-top: 24px;
    padding: 22px 4px 0;
    border-top: 1px solid rgba(24, 66, 47, 0.14);
    color: var(--legal-muted);
    font-size: 13px;
}

.legal-footer a {
    color: var(--legal-green);
    font-weight: 650;
    text-decoration: none;
}

.legal-footer a:hover {
    color: var(--legal-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
    .legal-shell {
        width: min(100% - 24px, 1160px);
        padding-top: 14px;
        padding-bottom: 40px;
    }

    .legal-toolbar {
        margin-bottom: 14px;
    }

    .legal-back,
    .legal-language {
        min-height: 42px;
        font-size: 13px;
    }

    .legal-back {
        padding: 0 13px;
    }

    .legal-hero {
        min-height: 0;
        padding: 34px 26px 38px;
        border-radius: 22px;
    }

    .legal-hero h1 {
        font-size: clamp(38px, 11.8vw, 52px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .legal-intro {
        margin-top: 22px;
        font-size: 16px;
    }

    .legal-meta {
        margin-top: 26px;
    }

    .legal-jump-nav {
        top: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 14px 0;
        border-radius: 14px;
    }

    .legal-jump-label {
        display: none;
    }

    .legal-jump-nav a {
        min-width: 0;
        text-align: center;
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .legal-card--wide {
        grid-column: auto;
    }

    .legal-card {
        padding: 26px 22px;
        border-radius: 19px;
        scroll-margin-top: 82px;
    }

    .legal-card-heading {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 13px;
        padding-bottom: 21px;
    }

    .legal-index {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

    .legal-card h2 {
        font-size: 25px;
    }

    .legal-card-content {
        padding-top: 21px;
        font-size: 14px;
        line-height: 1.68;
    }

    .legal-subsections {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-subsections section,
    .legal-subsections section:nth-child(-n + 2) {
        padding: 19px 0;
        border-top: 1px solid rgba(24, 66, 47, 0.11);
    }

    .legal-subsections section:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .legal-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .impressum-page {
        background: #fff;
    }

    .impressum-page::before,
    .legal-toolbar,
    .legal-jump-nav {
        display: none;
    }

    .legal-shell {
        width: 100%;
        padding: 0;
    }

    .legal-hero,
    .legal-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .legal-hero {
        min-height: 0;
        color: #000;
        background: #fff;
        border-color: #bbb;
    }

    .legal-hero h1,
    .legal-eyebrow,
    .legal-intro,
    .legal-meta span {
        color: #000;
    }
}
