/* Hof Maiberg Content Hub 1.0.27 */
:root{--hmc-hub-green:#3F5238;--hmc-hub-orange:#C97B19;--hmc-hub-cream:#F8F6F1;--hmc-hub-text:#2E352B;--hmc-hub-muted:#6D7469;--hmc-hub-line:#DDD8CD}
.hmc-site-topbar{width:100%;height:36px;display:flex;align-items:center;background:var(--hmc-hub-green);color:#F8F6F1;font-family:"Montserrat",Arial,sans-serif;position:relative;z-index:999}.hmc-site-topbar__inner{width:min(1540px,calc(100% - 64px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:30px}.hmc-site-topbar__items{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}.hmc-site-topbar__items--right{justify-content:flex-end}.hmc-site-topbar__item{color:#F8F6F1!important;font-size:12.5px;font-weight:500;text-decoration:none!important}.hmc-site-topbar__item--latest{color:#FFF2D8!important;font-weight:700}.hmc-site-topbar__dot{opacity:.55}
.hmc-legal-page{width:100vw;margin-left:calc(50% - 50vw);padding-bottom:100px;background:#fff;color:var(--hmc-hub-text);font-family:"Montserrat",Arial,sans-serif}.hmc-legal-shell{width:min(1060px,calc(100% - 48px));margin:0 auto}.hmc-legal-hero{padding:84px 0 82px;background:radial-gradient(circle at 88% 15%,rgba(201,123,25,.10),transparent 25%),linear-gradient(135deg,#F8F6F1,#F2EEE5);text-align:center}.hmc-legal-hero span{color:var(--hmc-hub-orange);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.hmc-legal-hero h1{max-width:850px;margin:13px auto 16px;color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(44px,5vw,65px);font-weight:500;line-height:1.05}.hmc-legal-hero p{max-width:670px;margin:0 auto;color:var(--hmc-hub-muted);font-size:14px;line-height:1.7}.hmc-legal-nav{margin:38px 0 26px;padding:10px;display:flex;gap:6px;overflow:auto;border:1px solid var(--hmc-hub-line);border-radius:12px;background:#FBFAF7}.hmc-legal-nav a{flex:0 0 auto;padding:9px 13px;border-radius:8px;color:#636B60!important;font-size:11px;font-weight:600;text-decoration:none!important}.hmc-legal-nav a:hover,.hmc-legal-nav a.is-active{background:var(--hmc-hub-green);color:#fff!important}.hmc-legal-content{padding:52px 58px;border:1px solid #E4DFD5;border-radius:18px;background:#fff;box-shadow:0 12px 42px rgba(45,53,43,.055)}.hmc-legal-content h1,.hmc-legal-content h2,.hmc-legal-content h3,.hmc-legal-content h4{color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;line-height:1.15}.hmc-legal-content h1{font-size:38px}.hmc-legal-content h2{margin-top:42px;font-size:30px}.hmc-legal-content h3{margin-top:30px;font-size:24px}.hmc-legal-content p,.hmc-legal-content li{color:#535C50;font-size:13px;line-height:1.85}.hmc-legal-content a{color:var(--hmc-hub-orange)!important}.hmc-legal-content table{width:100%;border-collapse:collapse;font-size:12px}.hmc-legal-content th,.hmc-legal-content td{padding:12px;border:1px solid var(--hmc-hub-line);text-align:left;vertical-align:top}
.hmc-news-page,.hmc-news-single,.hmc-latest-news{color:var(--hmc-hub-text);font-family:"Montserrat",Arial,sans-serif}.hmc-news-shell{width:min(1180px,calc(100% - 48px));margin:0 auto}.hmc-news-kicker{color:var(--hmc-hub-orange);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.hmc-news-hero{padding:90px 0 92px;background:radial-gradient(circle at 90% 10%,rgba(201,123,25,.11),transparent 25%),linear-gradient(135deg,#F8F6F1,#F1EDE4);text-align:center}.hmc-news-hero h1{margin:14px 0 16px;color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(50px,6vw,74px);font-weight:500;line-height:1}.hmc-news-hero p{max-width:650px;margin:0 auto;color:var(--hmc-hub-muted);font-size:15px;line-height:1.75}.hmc-news-archive{padding:85px 0 100px;background:#fff}.hmc-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.hmc-news-card{overflow:hidden;border:1px solid #E2DDD3;border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(45,53,43,.055)}.hmc-news-card__image,.hmc-latest-news__image{display:block;overflow:hidden;background:#E9E5DA;text-decoration:none!important}.hmc-news-card__image{aspect-ratio:1.45/1}.hmc-news-card__image img,.hmc-latest-news__image img{width:100%;height:100%;display:block;object-fit:cover}.hmc-news-card__image--placeholder,.hmc-latest-news__image--placeholder{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 22% 70%,rgba(201,123,25,.12),transparent 24%),linear-gradient(135deg,#F2EEE4,#E4E9DF)}.hmc-news-card__image--placeholder span,.hmc-latest-news__image--placeholder span{color:rgba(63,82,56,.38);font-family:"Cormorant Garamond",Georgia,serif;font-size:28px}.hmc-news-card__body{padding:24px 24px 27px}.hmc-news-card__meta{min-height:24px;display:flex;align-items:center;gap:9px;color:#858A82;font-size:10.5px}.hmc-news-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.hmc-news-status--upcoming{background:#E8EFE4;color:var(--hmc-hub-green)}.hmc-news-status--past{background:#EFEDE8;color:#74786F}.hmc-news-card h2{margin:14px 0 11px;font-family:"Cormorant Garamond",Georgia,serif;font-size:28px;font-weight:600;line-height:1.08}.hmc-news-card h2 a{color:var(--hmc-hub-green)!important;text-decoration:none!important}.hmc-news-card p{min-height:66px;margin:0;color:var(--hmc-hub-muted);font-size:12px;line-height:1.7}.hmc-news-read-more{display:inline-block;margin-top:17px;color:var(--hmc-hub-orange)!important;font-size:11px;font-weight:700;text-decoration:none!important}.hmc-news-pagination{margin-top:45px;display:flex;justify-content:space-between}.hmc-news-pagination a{color:var(--hmc-hub-green)!important;font-size:12px;font-weight:700;text-decoration:none!important}
.hmc-latest-news{width:100vw;margin-left:calc(50% - 50vw);padding:92px 0;background:var(--hmc-hub-cream)}.hmc-latest-news__heading{margin-bottom:35px;display:flex;align-items:flex-end;justify-content:space-between;gap:30px}.hmc-latest-news__heading h2{margin:9px 0 0;color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(38px,4vw,52px);font-weight:500}.hmc-latest-news__heading>a{color:var(--hmc-hub-green)!important;font-size:11px;font-weight:700;text-decoration:none!important}.hmc-latest-news__card{display:grid;grid-template-columns:1.05fr .95fr;min-height:410px;overflow:hidden;border:1px solid #DDD8CE;border-radius:22px;background:#fff;box-shadow:0 16px 50px rgba(45,53,43,.07)}.hmc-latest-news__image{min-height:410px}.hmc-latest-news__copy{padding:52px 50px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.hmc-latest-news__copy time{margin-top:11px;color:#858A82;font-size:11px}.hmc-latest-news__copy h3{margin:14px 0;font-family:"Cormorant Garamond",Georgia,serif;font-size:38px;font-weight:600;line-height:1.07}.hmc-latest-news__copy h3 a{color:var(--hmc-hub-green)!important;text-decoration:none!important}.hmc-latest-news__copy p{margin:0;color:var(--hmc-hub-muted);font-size:13px;line-height:1.75}
.hmc-news-single__hero{padding:78px 0 72px;background:linear-gradient(135deg,#F8F6F1,#F1EDE4)}.hmc-news-single__hero-inner{max-width:890px}.hmc-news-single__back{color:#6C7468!important;font-size:11px;font-weight:600;text-decoration:none!important}.hmc-news-single__meta{margin-top:38px;display:flex;align-items:center;gap:10px;color:#858A82;font-size:11px}.hmc-news-single__hero h1{margin:15px 0 18px;color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(48px,6vw,72px);font-weight:500;line-height:1.02}.hmc-news-single__lead{max-width:740px;margin:0;color:#697064;font-size:16px;line-height:1.7}.hmc-news-single__article{max-width:940px;padding-top:65px;padding-bottom:80px}.hmc-news-single__image{margin:0 0 45px;overflow:hidden;border-radius:20px}.hmc-news-single__image img{width:100%;height:auto;display:block}.hmc-news-single__content{max-width:760px;margin:0 auto}.hmc-news-single__content h2,.hmc-news-single__content h3{color:var(--hmc-hub-green);font-family:"Cormorant Garamond",Georgia,serif;font-weight:600}.hmc-news-single__content p,.hmc-news-single__content li{color:#50594D;font-size:14px;line-height:1.85}.hmc-news-single__content a{color:var(--hmc-hub-orange)!important}.hmc-news-button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:11px 20px;border-radius:999px;background:var(--hmc-hub-green);color:#fff!important;font-size:11px;font-weight:700;text-decoration:none!important}.hmc-news-single__external{margin-top:35px!important}.hmc-news-single__more{padding:35px 0;border-top:1px solid #E2DDD3;background:var(--hmc-hub-cream)}.hmc-news-single__more a{color:var(--hmc-hub-green)!important;font-size:12px;font-weight:700;text-decoration:none!important}
@media(max-width:1000px){.hmc-site-topbar__inner{width:calc(100% - 40px)}.hmc-site-topbar__item{font-size:11px}.hmc-news-grid{grid-template-columns:1fr 1fr}.hmc-latest-news__card{grid-template-columns:1fr}.hmc-latest-news__image{min-height:340px;aspect-ratio:1.8/1}}
@media(max-width:680px){.hmc-site-topbar{height:34px}.hmc-site-topbar__inner{width:calc(100% - 28px)}.hmc-site-topbar__items--right{display:none}.hmc-site-topbar__items:first-child .hmc-site-topbar__item:nth-of-type(n+3),.hmc-site-topbar__items:first-child .hmc-site-topbar__dot:nth-of-type(n+3){display:none}.hmc-legal-shell,.hmc-news-shell{width:calc(100% - 30px)}.hmc-legal-hero{padding:65px 0 62px}.hmc-legal-content{padding:32px 22px}.hmc-news-hero{padding:68px 0}.hmc-news-archive{padding:60px 0 75px}.hmc-news-grid{grid-template-columns:1fr}.hmc-latest-news{padding:70px 0}.hmc-latest-news__heading{align-items:flex-start;flex-direction:column}.hmc-latest-news__image{min-height:260px}.hmc-latest-news__copy{padding:34px 25px}.hmc-latest-news__copy h3{font-size:31px}.hmc-news-single__hero{padding:58px 0}.hmc-news-single__article{padding-top:45px;padding-bottom:60px}}


/* ==========================================================
 * 1.0.29 – Rechtliche Seiten im Kontaktseiten-Look
 * ========================================================== */

body.hmc-legal-managed
.entry-header:not(.site-header),
body.hmc-legal-managed
.page-header:not(.site-header){
    display:none!important;
}

/* Hauptheader und Navigation ausdrücklich schützen. */
body.hmc-legal-managed #masthead,
body.hmc-legal-managed header.site-header,
body.hmc-legal-managed .site-header-wrap,
body.hmc-legal-managed .site-main-header-wrap,
body.hmc-legal-managed .site-header-main-section,
body.hmc-legal-managed .main-navigation{
    visibility:visible!important;
    opacity:1!important;
}

.hmc-legal-page{
    position:relative;
    z-index:1;
    isolation:isolate;
    padding-bottom:0!important;
    overflow:hidden;
    background:#fff!important;
}

.hmc-legal-page *{
    box-sizing:border-box;
}

.hmc-legal-kicker{
    display:inline-block;
    color:var(--hmc-hub-orange);
    font-size:11px;
    font-weight:700;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.hmc-legal-overview{
    padding:42px 0 82px;
    background:#fff;
}

.hmc-legal-intro{
    max-width:720px;
    margin:58px auto 38px;
    text-align:center;
}

.hmc-legal-intro h2{
    margin:10px 0 12px;
    color:var(--hmc-hub-green);
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(36px,4vw,50px);
    font-weight:500;
    line-height:1.08;
}

.hmc-legal-intro p{
    margin:0;
    color:var(--hmc-hub-muted);
    font-size:13px;
    line-height:1.7;
}

.hmc-legal-topic-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.hmc-legal-topic-card{
    position:relative;
    min-height:155px;
    padding:26px 25px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    overflow:hidden;
    border:1px solid #E4DFD5;
    border-radius:18px;
    background:#fff;
    color:var(--hmc-hub-green)!important;
    box-shadow:0 10px 32px rgba(45,53,43,.05);
    text-decoration:none!important;
    transition:transform .18s ease,box-shadow .18s ease;
}

.hmc-legal-topic-card:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 38px rgba(45,53,43,.085);
}

.hmc-legal-topic-card__number{
    position:absolute;
    top:15px;
    right:18px;
    color:#EEEAE2;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:48px;
    font-weight:600;
    line-height:1;
}

.hmc-legal-topic-card strong{
    position:relative;
    z-index:2;
    padding-right:22px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:22px;
    font-weight:600;
    line-height:1.15;
}

.hmc-legal-topic-card__arrow{
    position:absolute;
    right:22px;
    bottom:25px;
    color:var(--hmc-hub-orange);
    font-size:17px;
}

.hmc-legal-sections{
    padding:80px 0 105px;
    background:var(--hmc-hub-cream);
}

.hmc-legal-section-card{
    scroll-margin-top:70px;
    margin:0 0 22px;
    padding:40px 44px 42px;
    border:1px solid #E1DCD2;
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 34px rgba(45,53,43,.045);
}

.hmc-legal-section-card:last-child{
    margin-bottom:0;
}

.hmc-legal-section-card__head{
    display:grid;
    grid-template-columns:54px 1fr;
    gap:18px;
    align-items:start;
    margin-bottom:22px;
    padding-bottom:20px;
    border-bottom:1px solid #E8E4DB;
}

.hmc-legal-section-card__head>span{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#EEF2EA;
    color:var(--hmc-hub-green);
    font-size:11px;
    font-weight:700;
}

.hmc-legal-section-card__head h2{
    margin:3px 0 0!important;
    color:var(--hmc-hub-green)!important;
    font-family:"Cormorant Garamond",Georgia,serif!important;
    font-size:30px!important;
    font-weight:600!important;
    line-height:1.12!important;
}

.hmc-legal-section-card__content{
    max-width:880px;
    color:#535C50;
}

.hmc-legal-section-card__content h3,
.hmc-legal-section-card__content h4{
    color:var(--hmc-hub-green);
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:600;
}

.hmc-legal-section-card__content h3{
    margin:29px 0 10px;
    font-size:23px;
}

.hmc-legal-section-card__content h4{
    margin:24px 0 8px;
    font-size:19px;
}

.hmc-legal-section-card__content p,
.hmc-legal-section-card__content li,
.hmc-legal-section-card__content address,
.hmc-legal-section-card__content blockquote{
    color:#535C50;
    font-size:13px;
    line-height:1.85;
}

.hmc-legal-section-card__content a{
    color:var(--hmc-hub-orange)!important;
}

.hmc-legal-section-card__content table{
    width:100%;
    display:block;
    overflow-x:auto;
    border-collapse:collapse;
    font-size:12px;
}

.hmc-legal-section-card__content th,
.hmc-legal-section-card__content td{
    padding:11px 12px;
    border:1px solid var(--hmc-hub-line);
    text-align:left;
    vertical-align:top;
}

/* Der alte Ein-Box-Renderer wird ab 1.0.29 nicht mehr verwendet. */
.hmc-legal-content{
    display:none!important;
}

@media(max-width:900px){
    .hmc-legal-topic-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:620px){
    .hmc-legal-overview{
        padding:30px 0 58px;
    }

    .hmc-legal-topic-grid{
        grid-template-columns:1fr;
    }

    .hmc-legal-topic-card{
        min-height:125px;
    }

    .hmc-legal-sections{
        padding:58px 0 75px;
    }

    .hmc-legal-section-card{
        padding:28px 21px 30px;
    }

    .hmc-legal-section-card__head{
        grid-template-columns:42px 1fr;
        gap:13px;
    }

    .hmc-legal-section-card__head>span{
        width:38px;
        height:38px;
    }

    .hmc-legal-section-card__head h2{
        font-size:25px!important;
    }
}




/* ==========================================================
 * 1.0.31 – genau eine Topbar: vorhandene Kadence-Leiste nutzen
 * ========================================================== */

/*
 * Die bestehende Kadence-Topbar erhält lediglich den HMC-Look.
 * Hauptheader, Logo, Menü und Suche werden nicht angefasst.
 */
.site-top-header-wrap.hmc-site-topbar,
.hmc-site-topbar--fallback{
    width:100%!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    visibility:visible!important;
    opacity:1!important;
    overflow:visible!important;
    background:#3F5238!important;
    color:#F8F6F1!important;
    border:0!important;
    box-shadow:none!important;
}

.site-top-header-wrap.hmc-site-topbar
> *:not(.hmc-site-topbar__inner){
    display:none!important;
}

.hmc-site-topbar__inner{
    width:min(1540px,calc(100% - 64px))!important;
    height:36px;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:30px!important;
}

.hmc-site-topbar__items{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0;
    white-space:nowrap;
}

.hmc-site-topbar__items--right{
    justify-content:flex-end!important;
    margin-left:auto;
}

/*
 * Sicherheitsregel: Der Companion ändert außerhalb des Checkouts
 * niemals die Darstellung der Hauptnavigation.
 */
body:not(.hmc-checkout-clean) #masthead,
body:not(.hmc-checkout-clean) header.site-header,
body:not(.hmc-checkout-clean) .site-header-wrap,
body:not(.hmc-checkout-clean) .site-main-header-wrap,
body:not(.hmc-checkout-clean) .site-branding,
body:not(.hmc-checkout-clean) .main-navigation{
    visibility:visible!important;
    opacity:1!important;
}

@media(max-width:680px){
    .site-top-header-wrap.hmc-site-topbar,
    .hmc-site-topbar--fallback{
        height:34px!important;
        min-height:34px!important;
    }

    .hmc-site-topbar__inner{
        width:calc(100% - 28px)!important;
        height:34px;
    }
}


/* ==========================================================
 * 1.0.32 – Header wieder über die volle Browserbreite
 * ========================================================== */

/*
 * Die bestehende Kadence-Topbar kann innerhalb eines begrenzten
 * Header-Wrappers liegen. Der grüne Hintergrund wird deshalb
 * bewusst auf die komplette Viewport-Breite gezogen.
 */
body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar{
    position:relative!important;
    left:50%!important;
    right:auto!important;
    width:100vw!important;
    max-width:none!important;
    margin-left:-50vw!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    box-sizing:border-box!important;
}

/*
 * Nur die Hintergrundfläche ist vollbreit. Die Inhalte bleiben
 * im gleichen Raster wie auf der normalen Hof-Maiberg-Seite.
 */
body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar
.hmc-site-topbar__inner{
    width:min(1540px,calc(100% - 64px))!important;
    max-width:1540px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
}

/*
 * Auch der weisse Kadence-Hauptheader soll wieder die komplette
 * Fensterbreite als Hintergrund besitzen. Die vorhandenen inneren
 * Kadence-Container bestimmen weiterhin die Position von Logo,
 * Navigation und Suche.
 */
body:not(.hmc-checkout-clean)
#masthead,
body:not(.hmc-checkout-clean)
.site-header-wrap,
body:not(.hmc-checkout-clean)
.site-main-header-wrap{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
}

/*
 * Hauptnavigation nicht in ihrer Breite beschneiden.
 * Es wird bewusst kein display/flex-Wert erzwungen, damit Kadence
 * seine Desktop-/Tablet-/Mobile-Logik selbst steuert.
 */
body:not(.hmc-checkout-clean)
.main-navigation,
body:not(.hmc-checkout-clean)
.header-navigation{
    max-width:none!important;
}

/* Header-Hintergründe über die ganze Breite */
body:not(.hmc-checkout-clean)
.site-header-wrap,
body:not(.hmc-checkout-clean)
.site-main-header-wrap{
    background-color:#fff;
}

@media(max-width:680px){
    body:not(.hmc-checkout-clean)
    .site-top-header-wrap.hmc-site-topbar
    .hmc-site-topbar__inner{
        width:calc(100% - 28px)!important;
    }
}


/* ==========================================================
 * 1.0.33 – Kadence Site-Wrapper auf volle Browserbreite
 * ========================================================== */

/*
 * Die sichtbaren grauen Seitenränder stammen vom äusseren
 * Kadence-Site-Wrapper. Dieser wird auf volle Breite gesetzt.
 *
 * Wichtig:
 * Die INNEREN Kadence-/HMC-Container behalten ihre eigenen
 * max-width-Werte. Dadurch bleibt der Inhalt schön zentriert,
 * während Hintergründe von Header, Hero und Footer wirklich
 * bis an den Browserrand laufen.
 */
body:not(.hmc-checkout-clean){
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    background:#fff!important;
}

body:not(.hmc-checkout-clean) #page,
body:not(.hmc-checkout-clean) #page.site,
body:not(.hmc-checkout-clean) .site{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    border-left:0!important;
    border-right:0!important;
    box-shadow:none!important;
    overflow:visible!important;
    background:#fff!important;
}

/*
 * Header und Footer sind volle Seitenbereiche.
 * Nur deren innere Kadence-Container bestimmen weiterhin
 * die tatsächliche Position von Logo, Menü und Inhalt.
 */
body:not(.hmc-checkout-clean) #masthead,
body:not(.hmc-checkout-clean) header.site-header,
body:not(.hmc-checkout-clean) .site-header-wrap,
body:not(.hmc-checkout-clean) .site-top-header-wrap,
body:not(.hmc-checkout-clean) .site-main-header-wrap,
body:not(.hmc-checkout-clean) .site-bottom-header-wrap,
body:not(.hmc-checkout-clean) #colophon,
body:not(.hmc-checkout-clean) footer.site-footer{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
}

/*
 * Falls Kadence den gesamten Seiteninhalt noch in einem
 * globalen max-width-Container hält, wird dieser auf den
 * von HMC verwalteten Seiten gelöst.
 */
body.hmc-contact-managed .site-content,
body.hmc-contact-managed .content-container,
body.hmc-contact-managed .site-container,
body.hmc-contact-managed .content-wrap,
body.hmc-contact-managed .content-area,
body.hmc-contact-managed .site-main,
body.hmc-contact-managed article.entry,
body.hmc-contact-managed .entry-content-wrap,
body.hmc-contact-managed .entry-content,

body.hmc-legal-managed .site-content,
body.hmc-legal-managed .content-container,
body.hmc-legal-managed .site-container,
body.hmc-legal-managed .content-wrap,
body.hmc-legal-managed .content-area,
body.hmc-legal-managed .site-main,
body.hmc-legal-managed article.entry,
body.hmc-legal-managed .entry-content-wrap,
body.hmc-legal-managed .entry-content{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
}

/*
 * Kadence setzt bei Boxed Content teilweise einen weissen
 * Kartenhintergrund / Schatten auf den eigentlichen Beitrag.
 * Unsere Kontakt-/Legal-Seiten besitzen bereits ein eigenes Layout.
 */
body.hmc-contact-managed article.entry,
body.hmc-contact-managed .entry-content-wrap,
body.hmc-legal-managed article.entry,
body.hmc-legal-managed .entry-content-wrap{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
}

/*
 * Hero-/Abschnittsflächen der HMC-Seiten dürfen nicht von
 * einem übergeordneten overflow:hidden abgeschnitten werden.
 */
body.hmc-contact-managed .site,
body.hmc-contact-managed .site-content,
body.hmc-contact-managed .content-area,
body.hmc-contact-managed .site-main,
body.hmc-legal-managed .site,
body.hmc-legal-managed .site-content,
body.hmc-legal-managed .content-area,
body.hmc-legal-managed .site-main{
    overflow:visible!important;
}

/*
 * News-/Aktuell-Seiten verwenden eigene Templates.
 * Auch dort darf der Theme-Site-Wrapper keine Box erzeugen.
 */
body.post-type-archive-hmc_news #page,
body.single-hmc_news #page,
body.post-type-archive-hmc_news .site,
body.single-hmc_news .site{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    background:#fff!important;
}

/*
 * Der bestehende HMC-Topbar-Inhalt bleibt im gewünschten Raster,
 * der Hintergrund selbst über die volle Breite.
 */
body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar{
    width:100%!important;
    max-width:none!important;
    left:auto!important;
    right:auto!important;
    margin-left:0!important;
    margin-right:0!important;
}

body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar
.hmc-site-topbar__inner{
    width:min(1540px,calc(100% - 64px))!important;
    max-width:1540px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}

/* Mobile */
@media(max-width:680px){
    body:not(.hmc-checkout-clean)
    .site-top-header-wrap.hmc-site-topbar
    .hmc-site-topbar__inner{
        width:calc(100% - 28px)!important;
    }
}


/* ==========================================================
 * 1.0.35 – nur die alte erste Kadence-Infobar entfernen
 * ========================================================== */
body:not(.hmc-checkout-clean)
[data-hmc-legacy-topbar-hidden="1"]{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
}

/*
 * Die neue dynamische HMC-Leiste bleibt immer sichtbar.
 */
body:not(.hmc-checkout-clean)
[data-hmc-site-topbar]{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
}


/* ==========================================================
 * 1.0.36 – HMC-Topbar separat, Kadence-Hauptheader unangetastet
 * ========================================================== */

/*
 * Eigene HMC-Leiste oberhalb des Kadence-Headers.
 */
body:not(.hmc-checkout-clean)
.hmc-site-topbar--standalone{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    max-width:none!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    visibility:visible!important;
    opacity:1!important;
    overflow:visible!important;
    background:#3F5238!important;
    color:#F8F6F1!important;
    border:0!important;
    box-shadow:none!important;
    z-index:1000;
}

body:not(.hmc-checkout-clean)
.hmc-site-topbar--standalone
.hmc-site-topbar__inner{
    width:min(1540px,calc(100% - 64px))!important;
    max-width:1540px!important;
    height:36px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:30px!important;
}

/*
 * WICHTIG:
 * Ab 1.0.36 erhält die Theme-eigene .site-top-header-wrap
 * NIE die Klasse .hmc-site-topbar. Frühere Regeln werden hier
 * zusätzlich neutralisiert, falls Browsercache noch Klassen trägt.
 */
body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar:not(.hmc-site-topbar--standalone){
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    visibility:visible!important;
    opacity:1!important;
    background:initial!important;
}

/*
 * Die frühere gefährliche Regel
 * ".site-top-header-wrap.hmc-site-topbar > *:not(...)"
 * darf keine Headerkinder mehr ausblenden.
 */
body:not(.hmc-checkout-clean)
.site-top-header-wrap.hmc-site-topbar
> *{
    display:revert!important;
}

/* Nur eine zweifelsfrei erkannte alte Infobar-Zeile ausblenden. */
body:not(.hmc-checkout-clean)
[data-hmc-legacy-row-hidden="1"]{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
}

/* Sicherheitsfallback: nur einzelne alte Textbausteine. */
body:not(.hmc-checkout-clean)
[data-hmc-legacy-label-hidden="1"]{
    display:none!important;
}

/*
 * Kadence-Hauptheader, Logo, Menü und Suche werden ausdrücklich
 * nicht in ihrer display-Struktur verändert.
 */
body:not(.hmc-checkout-clean) #masthead,
body:not(.hmc-checkout-clean) header.site-header,
body:not(.hmc-checkout-clean) .site-header-wrap,
body:not(.hmc-checkout-clean) .site-main-header-wrap,
body:not(.hmc-checkout-clean) .site-header-main-section,
body:not(.hmc-checkout-clean) .site-branding,
body:not(.hmc-checkout-clean) .main-navigation,
body:not(.hmc-checkout-clean) .header-navigation{
    visibility:visible!important;
    opacity:1!important;
}

/*
 * Alte 1.0.35-Markierung darf keinen übergeordneten Header mehr
 * ausblenden. Sie wird ab 1.0.36 nicht mehr gesetzt.
 */
body:not(.hmc-checkout-clean)
[data-hmc-legacy-topbar-hidden="1"]{
    display:revert!important;
    visibility:visible!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:revert!important;
    padding:revert!important;
    overflow:visible!important;
}

@media(max-width:680px){
    body:not(.hmc-checkout-clean)
    .hmc-site-topbar--standalone{
        height:34px!important;
        min-height:34px!important;
    }

    body:not(.hmc-checkout-clean)
    .hmc-site-topbar--standalone
    .hmc-site-topbar__inner{
        width:calc(100% - 28px)!important;
        height:34px!important;
    }
}
