/**
 * Herzfunk(t) – Layout & Grid
 */

body:has(.herzfunk-site) {
    background: var(--herzfunk-page-bg, #fefee2) !important;
    background-image: none !important;
}

body:has(.herzfunk-site) .site-wrapper {
    background: var(--herzfunk-page-bg, #fefee2);
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.herzfunk-site) .site-wrapper > .header-container,
body:has(.herzfunk-site) .site-wrapper > .cms-subnav-zone,
body:has(.herzfunk-site) .site-wrapper > .main-grid,
body:has(.herzfunk-site) .site-wrapper > #cms-footer-zone {
    max-width: 100% !important;
}

.herzfunk-site .main-grid {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: var(--gap-columns, 24px) !important;
}

.herzfunk-site .side-col {
    align-self: stretch !important;
}

.herzfunk-site.layout-center-only .main-grid,
.herzfunk-site.layout-no-left.layout-no-right .main-grid {
    flex-direction: column !important;
}

.herzfunk-site.layout-center-only .herzfunk-center,
.herzfunk-site.layout-no-left.layout-no-right .herzfunk-center {
    width: 100% !important;
    max-width: 100% !important;
}

body:has(.herzfunk-site) .header-container {
    border-radius: 0 !important;
}

/* Ohne Rahmen: PanelRenderer nutzt .panel-bare-stack (kein .panel-box-Wrapper) */
body:has(.herzfunk-site) .panel-bare-stack {
    border: none !important;
    box-shadow: none !important;
}

body:has(.herzfunk-site) .panel-bare-stack.panel-custom-appearance {
    overflow: hidden;
}
