/* =========================================================
   LEGAL-27
   Verwendet für:
   - Legal-Header
   - Impressum
   - Legal-Footer
   - Mobile Drawer auf Unterseiten

   INHALTSVERZEICHNIS
   ---------------------------------------------------------
   1) Basis & Startseiten-Elemente ausblenden
   2) Header Desktop
   3) Content-Grundlayout
   4) Hero
   5) Content-Card & Typografie
   6) Impressum – moderne Module
   7) Footer
   8) Scroll-to-top Button
   9) Mobile Drawer
   10) Responsive bis 1200px
   11) Responsive bis 980px
   12) Responsive bis 640px
========================================================= */


/* =========================================================
   1) BASIS & STARTSEITEN-ELEMENTE AUSBLENDEN
========================================================= */

body.page-legal {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
}

body.page-legal #mainHeader,
body.page-legal #viewport,
body.page-legal .side-nav-text,
body.page-legal .scroll-arrow-wrapper,
body.page-legal .mobile-slider-hint,
body.page-legal .mobile-menu-toggle,
body.page-legal #active-icon-top {
    display: none !important;
}


/* =========================================================
   2) HEADER DESKTOP
========================================================= */

body.page-legal .legal-header-nav {
    display: flex !important;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 92px;
    padding: 14px 28px;
    box-sizing: border-box;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(10px);
    z-index: 99999;
    gap: 16px;
}

body.page-legal .legal-header-nav .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

body.page-legal .legal-header-nav .logo img {
    display: block;
    height: 46px;
    width: auto;
}

body.page-legal .legal-header-nav .header-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

body.page-legal .legal-header-nav .slogan {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

body.page-legal .legal-header-nav .phone-box {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
    margin-top: 6px;
    white-space: nowrap;
}

/* Rechte Icon-Navigation */
body.page-legal .legal-sticky-icons {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

body.page-legal .legal-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.96;
    flex: 0 0 auto;
}

body.page-legal .legal-icon-link:hover {
    color: var(--hover-color);
    transform: translateY(-1px);
    opacity: 1;
}

body.page-legal .legal-icon-mark {
    width: 40px;
    height: 40px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--icon-url);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body.page-legal .legal-icon-label {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: currentColor;
    transition: opacity 0.2s ease, bottom 0.2s ease;
}

body.page-legal .legal-icon-link:hover .legal-icon-label {
    opacity: 1;
    bottom: -13px;
}

/* Mobile Controls im Desktop ausgeblendet */
body.page-legal .sticky-mobile-menu-toggle,
body.page-legal .legal-mobile-phone {
    display: none;
}

body.page-legal .legal-mobile-phone svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

/* Aktive Seiten werden als Aktiv gekennzeichnet */
body.page-legal .legal-icon-link.is-active {
    color: var(--hover-color);
    opacity: 1;
    transform: translateY(-1px);
}

body.page-legal .legal-icon-link.is-active .legal-icon-label {
    opacity: 1;
    bottom: -13px;
}

/* =========================================================
   3) CONTENT-GRUNDLAYOUT
========================================================= */

body.page-legal #content-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 0 !important;
    background: #ffffff;
    color: #111111;
}


/* =========================================================
   4) HERO
========================================================= */

body.page-legal .legal-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 100px 20px 60px;
    color: #ffffff;
    background:
        linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.46)),
        url('images/content/impressum.jpg') center center / cover no-repeat;
}

body.page-legal .legal-hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

body.page-legal .legal-hero h1 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 0.92;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

body.page-legal .legal-hero-impressum {
    min-height: 460px;
}

body.page-legal .legal-hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

body.page-legal .legal-hero-text {
    max-width: 760px;
    margin: 18px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}


/* =========================================================
   5) CONTENT-CARD & TYPOGRAFIE
========================================================= */

body.page-legal .legal-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

body.page-legal .legal-card-inner {
    background: #ffffff;
    border: 1px solid #ededed;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    padding: 40px 32px;
}

body.page-legal .legal-card-modern .legal-card-inner {
    padding: 48px 38px;
}

body.page-legal .legal-card h2 {
    margin: 28px 0 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #222222;
}

body.page-legal .legal-card p,
body.page-legal .legal-card li,
body.page-legal .legal-card address {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    color: #444444;
    line-height: 1.7;
    font-style: normal;
}

body.page-legal .legal-card a {
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-legal .legal-mini-label {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}


/* =========================================================
   6) IMPRESSUM – MODERNE MODULE
========================================================= */

body.page-legal .legal-top-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    margin-bottom: 34px;
}

body.page-legal .legal-highlight-box {
    padding: 30px 30px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid #ececec;
    box-shadow: 0 14px 34px rgba(0,0,0,0.05);
}

body.page-legal .legal-contact-card {
    padding: 30px 28px;
    background: #111;
    color: #fff;
    box-shadow: 0 16px 38px rgba(0,0,0,0.14);
}

body.page-legal .legal-contact-card .legal-mini-label {
    color: rgba(255,255,255,0.65);
}

body.page-legal .legal-contact-card h3 {
    margin: 0 0 18px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}

body.page-legal .legal-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-legal .legal-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

body.page-legal .legal-contact-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.page-legal .legal-contact-list span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

body.page-legal .legal-contact-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

body.page-legal .legal-contact-list a:hover {
    text-decoration: underline;
}

body.page-legal .legal-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 0 40px;
}

body.page-legal .legal-fact-card {
    padding: 24px 22px;
    background: #fafafa;
    border: 1px solid #ececec;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

body.page-legal .legal-fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

body.page-legal .legal-fact-card h3,
body.page-legal .legal-text-section h3,
body.page-legal .legal-note-modern h3 {
    margin: 0 0 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
}

body.page-legal .legal-fact-card p,
body.page-legal .legal-fact-card address {
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #444;
    font-style: normal;
}

body.page-legal .legal-text-panel {
    padding: 34px 30px;
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 30px rgba(0,0,0,0.04);
}

body.page-legal .legal-section-head {
    margin-bottom: 24px;
}

body.page-legal .legal-text-section {
    margin-bottom: 28px;
}

body.page-legal .legal-text-section:last-child {
    margin-bottom: 0;
}

body.page-legal .legal-note-modern {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    margin-top: 34px;
    padding: 24px;
    background: linear-gradient(135deg, #f4f4f4 0%, #fbfbfb 100%);
    border: 1px solid #e9e9e9;
}

body.page-legal .legal-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}

body.page-legal .legal-note-modern p {
    margin: 0;
}


/* =========================================================
   7) FOOTER
========================================================= */

body.page-legal .legal-footer {
    position: relative;
    background: #efefef;
    color: #1e1e1e;
    margin-top: 40px;
}

body.page-legal .legal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 28px;
}

body.page-legal .legal-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 56px;
    align-items: start;
}

body.page-legal .legal-footer-col h4 {
    margin: 0 0 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #111111;
}

body.page-legal .legal-footer-col p,
body.page-legal .legal-footer-col li,
body.page-legal .legal-footer-col a {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #333333;
    text-decoration: none;
}

body.page-legal .legal-footer-col a:hover {
    text-decoration: underline;
}

body.page-legal .legal-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-legal .legal-footer-col li {
    margin: 0 0 8px;
}

body.page-legal .legal-footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,0.12);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #222222;
}

body.page-legal .legal-footer-bottom a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   8) SCROLL-TO-TOP BUTTON
========================================================= */

body.page-legal .legal-scroll-top {
    position: fixed;
    right: 28px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 9999;
}

body.page-legal .legal-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.page-legal .legal-scroll-top:hover {
    background: rgba(0,0,0,0.32);
    transform: translateY(-1px);
}


/* =========================================================
   9) MOBILE DRAWER
========================================================= */

body.page-legal .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99990;
}

body.page-legal .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.page-legal .legal-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: #0b0b0b;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 99991;
    padding: 22px 18px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

body.page-legal .legal-mobile-drawer.is-open {
    transform: translateX(0);
}

body.page-legal .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.page-legal .mobile-drawer-header span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}

body.page-legal .mobile-drawer-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

body.page-legal .mobile-drawer-list {
    display: flex;
    flex-direction: column;
}

body.page-legal .legal-mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
}

body.page-legal .legal-mobile-drawer-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    background-color: #ffffff;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--icon-url);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body.page-legal .mobile-drawer-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

body.page-legal .mobile-drawer-footer-link {
    display: block;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.page-legal .mobile-drawer-footer-link:last-child {
    border-bottom: 0;
}


/* =========================================================
   10) RESPONSIVE – BIS 1200 PX
========================================================= */

@media (max-width: 1200px) {
    body.page-legal .legal-sticky-icons {
        gap: 14px;
    }

    body.page-legal .legal-footer-grid {
        gap: 36px;
    }
}


/* =========================================================
   11) RESPONSIVE – BIS 980 PX
========================================================= */

@media (max-width: 980px) {
    body.page-legal .legal-header-nav {
        display: grid !important;
        grid-template-columns: 42px 1fr 42px;
        align-items: center;
        min-height: 82px;
        padding: 12px 14px;
        gap: 10px;
    }

    body.page-legal .sticky-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }

    body.page-legal .sticky-mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 4px 0;
        background: currentColor;
        border-radius: 2px;
    }

    body.page-legal .legal-header-nav .logo {
        justify-content: center;
    }

    body.page-legal .legal-header-nav .logo img {
        height: 38px;
    }

    body.page-legal .legal-header-nav .header-center {
        display: none;
    }

    body.page-legal .legal-sticky-icons {
        display: none !important;
    }

    body.page-legal .legal-mobile-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        color: #ffffff;
        text-decoration: none;
    }

    body.page-legal .legal-top-grid {
        grid-template-columns: 1fr;
    }

    body.page-legal .legal-facts-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.page-legal .legal-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}


/* =========================================================
   12) RESPONSIVE – BIS 640 PX
========================================================= */

@media (max-width: 640px) {
    body.page-legal .legal-header-nav {
        min-height: 76px;
        padding: 10px 12px;
        gap: 10px;
    }

    body.page-legal .legal-header-nav .logo img {
        height: 34px;
    }

    body.page-legal .legal-hero {
        min-height: 220px;
        padding: 88px 18px 32px;
    }

    body.page-legal .legal-hero-impressum {
        min-height: 280px;
    }

    body.page-legal .legal-hero-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    body.page-legal .legal-card {
        padding: 28px 16px 48px;
    }

    body.page-legal .legal-card-inner,
    body.page-legal .legal-card-modern .legal-card-inner,
    body.page-legal .legal-highlight-box,
    body.page-legal .legal-contact-card,
    body.page-legal .legal-text-panel,
    body.page-legal .legal-note-modern,
    body.page-legal .legal-fact-card {
        padding: 22px 18px;
    }

    body.page-legal .legal-facts-grid {
        grid-template-columns: 1fr;
    }

    body.page-legal .legal-note-modern {
        grid-template-columns: 1fr;
    }

    body.page-legal .legal-note-icon {
        width: 48px;
        height: 48px;
    }

    body.page-legal .legal-card h2 {
        font-size: 1.7rem;
    }

    body.page-legal .legal-footer-inner {
        padding: 42px 16px 24px;
    }

    body.page-legal .legal-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.page-legal .legal-footer-bottom {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    body.page-legal .legal-scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Aktive Seiten als aktiv anzeigen */
.legal-mobile-drawer-link.is-active{
    color: var(--hover-color);
    font-weight:600;
}