/*
 * BCS Media · Legal Pages — CI-Stylesheet v1.5.6
 * Tokens: Meissen-Blau #0F3460 · Kobalt #0047AB · Gold #C9A962 · Cream #FBF9F7 · Rot #D9531E
 * Fonts:  Rajdhani 700 (Headlines) · EB Garamond italic (Overlines) · Open Sans 400/600 (Body)
 *
 * v1.5.0: ARCHITEKTUR — Plugin rendert allen rechtlichen Inhalt SELBST aus
 *         data/<seite>.php. Jede Sektion = ein Eintrag mit heading + body.
 *         Einheitliches Sektions-Styling (.bcs-lp-section) auf allen vier
 *         Legal-Pages. Kein the_content()-Aufruf im Standardfall, kein
 *         Elementor-Inhalt mehr noetig. CSS-Force-Hide ENTFERNT (haette
 *         legitime Inhalte verstecken koennen).
 * v1.4.0: Saubere Basis v1.3.0 + Divider Gold -> Kobalt-Blau.
 * v1.3.0: PLUGIN STANDALONE — eigener Baer, CSS ohne Dependency.
 *
 * Siehe LESSONS_LEARNED.md im Plugin-Stamm fuer wiederholte Fehlerquellen.
 */

/* ── CI-Tokens ───────────────────────────────────────────── */
:root {
    --bcs-meissen  : #0F3460;
    --bcs-kobalt   : #0047AB;
    --bcs-kobalt-d : #003890;
    --bcs-gold     : #C9A962;
    --bcs-gold-dark: #B8964D;
    --bcs-cream    : #FBF9F7;
    --bcs-cream-d  : #F0EDE8;
    --bcs-rot      : #D9531E;
    --bcs-rot-d    : #B23E13;
    --bcs-text     : #1A1A1A;
    --bcs-subtext  : #6B6B6B;
}

/* ══════════════════════════════════════════════════════════
   WRAPPER
   ══════════════════════════════════════════════════════════ */

.bcs-legal-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   INTRO (.bcs-si) — selbst-tragend
   Baer, Gold-Overline, Gold-Divider, Headline, Gold-Divider, Body.
   ══════════════════════════════════════════════════════════ */

.bcs-legal-wrap .bcs-si {
    padding: 96px clamp(20px, 5vw, 64px) 56px;
    background-color: var(--bcs-cream);
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

.bcs-legal-wrap .bcs-si__baer {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.bcs-legal-wrap .bcs-si__overline {
    font-family: 'EB Garamond', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: clamp(17px, 1.6vw, 20px) !important;
    color: var(--bcs-gold) !important;
    line-height: 1.55 !important;
    margin: 0 auto 20px !important;
    max-width: 64ch;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bcs-legal-wrap .bcs-si__divider {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bcs-gold), transparent);
    border: 0;
    margin: 20px auto;
}

.bcs-legal-wrap .bcs-si__headline {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(34px, 4.5vw, 52px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.005em !important;
    color: var(--bcs-meissen) !important;
    text-transform: uppercase !important;
    margin: 0 auto 24px !important;
    text-wrap: balance;
    max-width: 32ch;
}

.bcs-legal-wrap .bcs-si__body {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(15px, 1.4vw, 18px) !important;
    line-height: 1.75 !important;
    color: rgba(15, 52, 96, 0.72) !important;
    max-width: 78ch;
    margin: 0 auto 8px !important;
}

.bcs-legal-wrap .bcs-si__body--last {
    margin-bottom: 0 !important;
}

.bcs-legal-wrap .bcs-si__stand {
    font-family: 'EB Garamond', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: var(--bcs-subtext) !important;
    margin: 4px auto 0 !important;
    letter-spacing: 0.02em;
}

.bcs-legal-si.bcs-si {
    padding-top: 96px !important;
    padding-bottom: 40px !important;
}

/* ══════════════════════════════════════════════════════════
   INHALTSBEREICH (Container fuer Plugin-Sektionen)
   ══════════════════════════════════════════════════════════ */

.bcs-legal-content {
    background: var(--bcs-cream);
    padding: 40px clamp(20px, 5vw, 64px) 32px;
    flex: 1;
}

.bcs-legal-content__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   PLUGIN-SEKTIONEN (.bcs-lp-section)
   Nummer (Kobalt) + Heading (Meissen) + Kobalt-Trennlinie + Body
   Einheitliches Aussehen auf allen vier Legal-Pages.
   ══════════════════════════════════════════════════════════ */

.bcs-lp-section {
    margin: 0 0 44px 0;
    text-align: left;
}

.bcs-lp-section:first-child {
    margin-top: 0;
}

.bcs-lp-section:last-child {
    margin-bottom: 0;
}

.bcs-lp-section__heading {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--bcs-meissen) !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.bcs-lp-section__number {
    color: var(--bcs-meissen);
    font-weight: 700;
    flex: 0 0 auto;
}

.bcs-lp-section__divider {
    width: 40px;
    height: 2px;
    background: var(--bcs-meissen);
    border: 0;
    margin: 0 0 10px 0;
}

.bcs-lp-section__body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.82;
    color: var(--bcs-text);
}

.bcs-lp-section__body p {
    margin: 0 0 12px 0;
}

.bcs-lp-section__body p:last-child {
    margin-bottom: 0;
}

.bcs-lp-section__body strong,
.bcs-lp-section__body b {
    color: var(--bcs-meissen);
    font-weight: 600;
}

.bcs-lp-section__body a {
    color: var(--bcs-meissen);
    text-decoration: none;
}

.bcs-lp-section__body a:hover {
    color: var(--bcs-kobalt);
}

.bcs-lp-section__body ul,
.bcs-lp-section__body ol {
    padding-left: 22px;
    margin: 8px 0 16px;
}

.bcs-lp-section__body li {
    margin-bottom: 6px;
}

.bcs-lp-section__body em {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: var(--bcs-subtext);
}

/* ══════════════════════════════════════════════════════════
   PAGE-CLOSING (.bcs-pc) — selbst-tragend, Variant Light (Cream)
   Baer, Overline, Headline, Subtext, 2 Pill-Buttons, Telefon.
   ══════════════════════════════════════════════════════════ */

.bcs-legal-wrap .bcs-pc {
    position: relative;
    width: 100%;
    padding: 80px clamp(20px, 5vw, 64px);
    overflow: hidden;
    text-align: center;
    isolation: isolate;
    background: var(--bcs-cream);
    color: var(--bcs-meissen);
    box-sizing: border-box;
}

.bcs-legal-wrap .bcs-pc__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.bcs-legal-wrap .bcs-pc__baer {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 22px;
    filter: drop-shadow(0 8px 24px rgba(201, 169, 98, 0.25));
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bcs-legal-wrap .bcs-pc:hover .bcs-pc__baer {
    transform: translateY(-4px);
}

.bcs-legal-wrap .bcs-pc__overline {
    font-family: 'EB Garamond', serif !important;
    font-style: italic !important;
    font-weight: 500 !important;
    font-size: clamp(17px, 1.6vw, 20px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em;
    color: var(--bcs-gold) !important;
    margin: 0 0 16px 0 !important;
    text-wrap: balance;
}

.bcs-legal-wrap .bcs-pc__headline {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.01em;
    color: var(--bcs-meissen) !important;
    margin: 0 0 20px 0 !important;
    text-wrap: balance;
    max-width: 22ch;
}

.bcs-legal-wrap .bcs-pc__subtext {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(15px, 1.4vw, 18px) !important;
    line-height: 1.65 !important;
    color: rgba(15, 52, 96, 0.72) !important;
    margin: 0 0 32px 0 !important;
    max-width: 56ch;
    text-wrap: pretty;
}

.bcs-legal-wrap .bcs-pc__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.bcs-legal-wrap .bcs-pc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease, color 250ms ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.bcs-legal-wrap .bcs-pc__btn:hover { transform: translateY(-2px); }
.bcs-legal-wrap .bcs-pc__btn:active { transform: translateY(0); }

.bcs-legal-wrap .bcs-pc__btn--primary {
    background: var(--bcs-kobalt);
    color: var(--bcs-cream) !important;
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.35);
}
.bcs-legal-wrap .bcs-pc__btn--primary:hover {
    background: #0055CC;
    box-shadow: 0 12px 32px rgba(0, 71, 171, 0.45);
}

.bcs-legal-wrap .bcs-pc__btn--shop {
    background: var(--bcs-rot);
    color: var(--bcs-cream) !important;
    box-shadow: 0 8px 24px rgba(217, 83, 30, 0.35);
}
.bcs-legal-wrap .bcs-pc__btn--shop:hover {
    background: var(--bcs-rot-d);
    box-shadow: 0 12px 32px rgba(217, 83, 30, 0.45);
}

.bcs-legal-wrap .bcs-pc__phone {
    margin: 24px 0 0 0 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em;
    color: var(--bcs-meissen);
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.bcs-legal-wrap .bcs-pc__phone-prefix {
    font-family: 'EB Garamond', serif !important;
    font-style: italic;
    opacity: 0.85;
}

.bcs-legal-wrap .bcs-pc__phone-link {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.02em;
    color: var(--bcs-meissen) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(15, 52, 96, 0.4);
    padding-bottom: 1px;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.bcs-legal-wrap .bcs-pc__phone-link:hover {
    opacity: 1;
    border-bottom-color: var(--bcs-meissen);
}

.bcs-legal-pc.bcs-pc {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
}

/* ══════════════════════════════════════════════════════════
   AGB-SEITE (ID 8238) — Elementor-Hero + Mini-Footer ausblenden
   Plugin liefert eigenen Hero/CTA. Wenn die WP-Seite zusaetzlich
   eigene Hero/Footer-Sections im Elementor-Editor hat, kollidiert
   das. Daher: erste und letzte Top-Section auf der AGB-Seite haerten.
   Gilt NUR fuer AGB, weil dort the_content()-Fallback aktiv ist.
   ══════════════════════════════════════════════════════════ */
.page-id-8238 .bcs-legal-content .elementor > section:first-child,
.page-id-8238 .bcs-legal-content .elementor > .elementor-section:first-child,
.page-id-8238 .bcs-legal-content .elementor > .elementor-top-section:first-child,
.page-id-8238 .bcs-legal-content .elementor > .e-con:first-child,
.page-id-8238 .bcs-legal-content > .elementor > section:first-child,
.page-id-8238 .bcs-legal-content > .elementor > .elementor-section:first-child,
.page-id-8238 .bcs-legal-content > .elementor > .elementor-top-section:first-child,
.page-id-8238 .bcs-legal-content > .elementor > .e-con:first-child,
.page-id-8238 .bcs-legal-content .elementor > section:last-child,
.page-id-8238 .bcs-legal-content .elementor > .elementor-section:last-child,
.page-id-8238 .bcs-legal-content .elementor > .elementor-top-section:last-child,
.page-id-8238 .bcs-legal-content .elementor > .e-con:last-child,
.page-id-8238 .bcs-legal-content > .elementor > section:last-child,
.page-id-8238 .bcs-legal-content > .elementor > .elementor-section:last-child,
.page-id-8238 .bcs-legal-content > .elementor > .elementor-top-section:last-child,
.page-id-8238 .bcs-legal-content > .elementor > .e-con:last-child {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bcs-legal-si.bcs-si {
        padding-top: 56px !important;
        padding-bottom: 28px !important;
    }

    .bcs-legal-content {
        padding: 28px 20px 20px;
    }

    .bcs-legal-pc.bcs-pc {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .bcs-lp-section {
        margin-bottom: 36px;
    }
}

@media (max-width: 680px) {
    .bcs-legal-wrap .bcs-si {
        padding-left: 16px;
        padding-right: 16px;
    }
    .bcs-legal-wrap .bcs-pc {
        padding-left: 16px;
        padding-right: 16px;
    }
    .bcs-legal-wrap .bcs-pc__ctas {
        flex-direction: column;
        gap: 12px;
    }
    .bcs-legal-wrap .bcs-pc__btn {
        width: 100%;
        max-width: 360px;
        padding: 18px 24px;
    }
    .bcs-legal-wrap .bcs-pc__headline {
        max-width: 18ch;
    }
    .bcs-legal-wrap .bcs-pc__phone {
        flex-direction: column;
        gap: 4px;
        margin-top: 20px !important;
    }
}
