.ebc-legal-page {
    --ebc-navy: #0b2947;
    --ebc-blue: #123f68;
    --ebc-red: #c8202f;
    --ebc-text: #26384a;
    --ebc-muted: #657789;
    --ebc-border: #dce5ed;
    --ebc-soft: #f5f8fb;

    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 64px;
    color: var(--ebc-text);
}

.ebc-legal-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 46px;
    margin-bottom: 26px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #092845 0%, #123f68 100%);
    box-shadow: 0 16px 44px rgba(11, 41, 71, .14);
}

.ebc-legal-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: var(--ebc-red);
}

.ebc-legal-eyebrow {
    margin-bottom: 8px;
    color: #f2a7ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ebc-legal-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
}

.ebc-legal-lead {
    margin: 10px 0 0;
    color: #dce9f4;
    font-size: 16px;
}

.ebc-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ebc-legal-card,
.ebc-legal-wide-card {
    position: relative;
    padding: 30px 32px;
    border: 1px solid var(--ebc-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 50, 77, .055);
}

.ebc-legal-card {
    min-height: 250px;
}

.ebc-legal-card::before,
.ebc-legal-wide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 46px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--ebc-red);
}

.ebc-legal-card-kicker {
    margin-bottom: 7px;
    color: var(--ebc-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ebc-legal-card h2,
.ebc-legal-wide-card h2 {
    margin: 0 0 22px;
    color: var(--ebc-navy);
    font-size: 22px;
    line-height: 1.25;
}

.ebc-legal-card address {
    margin: 0;
    color: var(--ebc-text);
    font-style: normal;
    line-height: 1.75;
}

.ebc-legal-divider {
    height: 1px;
    margin: 23px 0;
    background: var(--ebc-border);
}

.ebc-legal-data {
    margin: 0;
}

.ebc-legal-data > div {
    display: grid;
    grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f6;
}

.ebc-legal-data > div:first-child {
    padding-top: 0;
}

.ebc-legal-data > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ebc-legal-data dt {
    color: var(--ebc-muted);
    font-size: 13px;
    font-weight: 600;
}

.ebc-legal-data dd {
    margin: 0;
    color: var(--ebc-navy);
    font-weight: 700;
}

.ebc-legal-page a {
    color: #145a91;
    text-decoration: none;
    text-underline-offset: 3px;
}

.ebc-legal-page a:hover,
.ebc-legal-page a:focus {
    color: var(--ebc-red);
    text-decoration: underline;
}

.ebc-legal-wide-card {
    margin-top: 20px;
    background:
        linear-gradient(180deg, #fff 0%, var(--ebc-soft) 100%);
}

.ebc-legal-wide-card p {
    max-width: 880px;
    margin: 0;
    line-height: 1.75;
}

.ebc-legal-footer-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 4px 0;
    color: var(--ebc-muted);
    font-size: 12px;
}

.ebc-legal-status-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16834c;
    box-shadow: 0 0 0 4px rgba(22, 131, 76, .10);
}

@media (max-width: 800px) {
    .ebc-legal-page.ebc-privacy-page {
        width: 100%;
    }

    .ebc-legal-page {
        padding: 12px 14px 42px;
    }

    .ebc-legal-hero {
        padding: 30px 24px;
        border-radius: 14px;
    }

    .ebc-legal-grid {
        grid-template-columns: 1fr;
    }

    .ebc-legal-card,
    .ebc-legal-wide-card {
        min-height: 0;
        padding: 25px 22px;
    }

    .ebc-legal-data > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* =========================================================
   Datenschutz
   ========================================================= */

/*
 * Datenschutz: Astra-Layout nur auf dieser Seite vollständig
 * freigeben. Die eigentliche Legal-Seite bleibt zentriert.
 */
body.ebc-privacy-active #content.site-content,
body.ebc-privacy-active #content.site-content > .ast-container,
body.ebc-privacy-active #primary.content-area,
body.ebc-privacy-active main#main.site-main,
body.ebc-privacy-active article.ast-article-single,
body.ebc-privacy-active .entry-content.clear {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.ebc-privacy-active #content.site-content > .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.ebc-privacy-active #primary.content-area,
body.ebc-privacy-active main#main.site-main,
body.ebc-privacy-active article.ast-article-single,
body.ebc-privacy-active .entry-content.clear {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.ebc-privacy-active .ebc-legal-page.ebc-privacy-page {
    width: calc(100% - 80px) !important;
    max-width: 1720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}


.ebc-privacy-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 26px;
    overflow: hidden;
    border: 1px solid var(--ebc-border);
    border-radius: 14px;
    background: var(--ebc-border);
}

.ebc-privacy-summary-item {
    padding: 19px 20px;
    background: #fff;
}

.ebc-privacy-summary-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--ebc-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ebc-privacy-summary-item strong {
    display: block;
    color: var(--ebc-navy);
    font-size: 14px;
    line-height: 1.45;
}

.ebc-privacy-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.ebc-privacy-nav-inner {
    position: sticky;
    top: 28px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 24px 20px;
    border: 1px solid var(--ebc-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 50, 77, .05);
}

.ebc-privacy-nav-kicker {
    margin-bottom: 5px;
    color: var(--ebc-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ebc-privacy-nav-title {
    margin-bottom: 18px;
    color: var(--ebc-navy);
    font-size: 16px;
    font-weight: 800;
}

.ebc-privacy-nav nav {
    display: flex;
    flex-direction: column;
}

.ebc-privacy-nav nav a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 0;
    border-bottom: 1px solid #edf2f6;
    color: #46596b;
    font-size: 12px;
    line-height: 1.35;
}

.ebc-privacy-nav nav a:last-child {
    border-bottom: 0;
}

.ebc-privacy-nav nav a span {
    color: var(--ebc-red);
    font-size: 10px;
    font-weight: 800;
}

.ebc-privacy-nav nav a:hover,
.ebc-privacy-nav nav a:focus {
    color: var(--ebc-navy);
    text-decoration: none;
}

.ebc-privacy-document {
    padding: 38px 42px;
    border: 1px solid var(--ebc-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 50, 77, .05);
}

.ebc-privacy-document > h1:first-child {
    display: none;
}

.ebc-privacy-document h2 {
    scroll-margin-top: 30px;
    margin: 48px 0 18px;
    padding: 20px 0 0;
    border-top: 1px solid var(--ebc-border);
    color: var(--ebc-navy);
    font-size: 24px;
    line-height: 1.3;
}

.ebc-privacy-document h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ebc-privacy-document h3 {
    margin: 30px 0 12px;
    color: var(--ebc-blue);
    font-size: 18px;
}

.ebc-privacy-document p,
.ebc-privacy-document li {
    color: #425466;
    font-size: 15px;
    line-height: 1.75;
}

.ebc-privacy-document p {
    margin: 0 0 16px;
}

.ebc-privacy-document ul,
.ebc-privacy-document ol {
    margin: 0 0 18px 22px;
}

.ebc-privacy-document strong {
    color: var(--ebc-navy);
}

.ebc-privacy-document a {
    word-break: break-word;
}

.ebc-privacy-document > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 1050px) {
    .ebc-privacy-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebc-privacy-layout {
        grid-template-columns: 1fr;
    }

    .ebc-privacy-nav-inner {
        position: static;
        max-height: none;
    }

    .ebc-privacy-nav nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }
}

@media (max-width: 800px) {
    .ebc-privacy-summary {
        grid-template-columns: 1fr;
    }

    .ebc-privacy-document {
        padding: 26px 22px;
    }

    .ebc-privacy-nav nav {
        grid-template-columns: 1fr;
    }

    .ebc-privacy-document h2 {
        font-size: 21px;
    }
}


/* =========================================================
   AGB
   ========================================================= */

.ebc-terms-page .ebc-terms-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0 26px;
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ebc-terms-page .ebc-terms-summary > div {
    padding: 18px 22px;
    min-width: 0;
    border-right: 1px solid #d8e0e8;
}

.ebc-terms-page .ebc-terms-summary > div:last-child {
    border-right: 0;
}

.ebc-terms-page .ebc-terms-summary span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #61758a;
}

.ebc-terms-page .ebc-terms-summary strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #0b2f50;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.ebc-terms-page .ebc-terms-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ebc-terms-page .ebc-terms-nav {
    position: sticky;
    top: 24px;
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    background: #fff;
    padding: 22px 20px;
    min-width: 0;
}

.ebc-terms-page .ebc-terms-nav-title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #0b2f50;
}

.ebc-terms-page .ebc-terms-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ebc-terms-page .ebc-terms-nav-links a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #e7edf2;
    font-size: 14px;
    line-height: 1.35;
    color: #3f5f78;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.ebc-terms-page .ebc-terms-nav-links a:last-child {
    border-bottom: 0;
}

.ebc-terms-page .ebc-terms-document {
    min-width: 0;
}

@media (max-width: 1050px) {
    .ebc-terms-page .ebc-terms-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebc-terms-page .ebc-terms-summary > div:nth-child(2) {
        border-right: 0;
    }

    .ebc-terms-page .ebc-terms-layout {
        grid-template-columns: 1fr;
    }

    .ebc-terms-page .ebc-terms-nav {
        position: static;
    }
}

@media (max-width: 650px) {
    .ebc-terms-page .ebc-terms-summary {
        grid-template-columns: 1fr;
    }

    .ebc-terms-page .ebc-terms-summary > div {
        border-right: 0;
        border-bottom: 1px solid #d8e0e8;
    }

    .ebc-terms-page .ebc-terms-summary > div:last-child {
        border-bottom: 0;
    }
}
