/* =============================================================
   CMS - LIVE CUSTOM CSS (volle Monitorbreite)
   ============================================================= */

* { box-sizing: border-box !important; }

body {
    margin: 0;
    padding: 0;
    font-family: "sans serif ms", Arial, Sans-Serif;
    background: #000;
    color: #fff;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1000;
    object-fit: cover;
}

/* Volle Bildschirmbreite – skaliert mit Monitor-Auflösung */
.site-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    padding-left: clamp(6px, 1.2vw, 24px) !important;
    padding-right: clamp(6px, 1.2vw, 24px) !important;
    padding-bottom: 30px !important;
    position: relative !important;
    overflow-x: clip !important;
    z-index: 10;
    box-sizing: border-box !important;
}

.site-wrapper > .header-container,
.site-wrapper > .cms-subnav-zone,
.site-wrapper > .main-grid,
.site-wrapper > #cms-footer-zone {
    width: 100% !important;
    max-width: min(100%, var(--layout-max, 1400px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.header-container {
    width: 100% !important;
    max-width: min(100%, var(--layout-max, 1400px)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    overflow-x: clip !important;
}

body.cms-layout-classic .site-wrapper > .header-container,
body.cms-layout-classic-3col .site-wrapper > .header-container,
body.cms-layout-classic .site-wrapper > .cms-subnav-zone,
body.cms-layout-classic-3col .site-wrapper > .cms-subnav-zone,
body.cms-layout-classic .site-wrapper > .main-grid,
body.cms-layout-classic-3col .site-wrapper > .main-grid,
body.cms-layout-classic .site-wrapper > #cms-footer-zone,
body.cms-layout-classic-3col .site-wrapper > #cms-footer-zone {
    max-width: min(100%, 1400px) !important;
}

#cms-footer-zone {
    flex-shrink: 0 !important;
    display: block !important;
    clear: both !important;
}

.header-banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1600 / 308 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: block !important;
}

/* Layout-Struktur kommt aus dem aktiven Template (layout.css, nav-slots.css). */

.main-grid {
    display: flex !important;
    width: 100% !important;
    max-width: min(100%, var(--layout-max, 1400px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: clamp(8px, 1vw, 16px) !important;
    align-items: flex-start !important;
    flex-grow: 1 !important;
    box-sizing: border-box !important;
}

body.cms-layout-classic .main-grid,
body.cms-layout-classic-3col .main-grid {
    max-width: min(100%, 1400px) !important;
}

.side-col {
    flex: 0 1 clamp(200px, 18vw, 340px) !important;
    width: clamp(200px, 18vw, 340px) !important;
    max-width: clamp(200px, 18vw, 340px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(8px, 1vw, 16px) !important;
}

.center-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(8px, 1vw, 16px) !important;
}

.box-header, .content-header {
    height: auto !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    text-transform: uppercase;
}

.panel-box, .content-box-middle {
    width: 100% !important;
    max-width: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 150, 255, 0.2);
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.panel-box::after, .content-box-middle::after {
    content: "" !important;
    display: block !important;
    height: 25px !important;
    background-size: 100% 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

.main-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px !important;
    margin-top: -30px !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    display: block !important;
    z-index: 50;
    box-sizing: border-box !important;
}

#stat-left, #stat-right {
    display: flex !important;
    width: clamp(180px, 16vw, 320px) !important;
    max-width: calc(50vw - 20px) !important;
    height: 32px !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #0096ff !important;
    box-shadow: 0 0 10px #0096ff !important;
    position: fixed !important;
    bottom: 10px !important;
    z-index: 999999 !important;
    color: #ffffff !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

#stat-left { left: 10px !important; }
#stat-right { right: 10px !important; }

.footer-copyright-clean {
    margin-top: 38px;
    text-align: center;
    color: #ffffff;
    font-size: clamp(11px, 1vw, 14px);
    text-transform: uppercase;
}

.footer-frame,
.footer-frame img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 1024px) {
    .main-grid {
        flex-direction: column !important;
    }

    .side-col,
    .center-col {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-container {
        margin-top: 0 !important;
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px 8px !important;
    }

    #stat-left,
    #stat-right {
        width: auto !important;
        max-width: calc(50vw - 16px) !important;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .site-wrapper {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    #stat-left,
    #stat-right {
        display: none !important;
    }
}
