/* Header kompakter beim Scrollen (html.sm-scrolled wird vom bestehenden Skript gesetzt) */
html body .elementor-location-header .elementor-element-da0b231{transition:padding .25s ease}
html body .elementor-location-header img.e-20d68ff-ace4{transition:width .25s ease}
html.sm-scrolled body .elementor-location-header .elementor-element-da0b231{padding-block:.35rem}
html.sm-scrolled body .elementor-location-header img.e-20d68ff-ace4{width:104px}
@media (max-width:767px){html.sm-scrolled body .elementor-location-header img.e-20d68ff-ace4{width:84px}}

/* Avatar Tim-Luca im Termin-Button: aus dem weit gefassten Originalfoto (Kopf + Schultern). Avatar von Tobias bleibt unverändert. */
@media (min-width:768px){
html body [data-elementor-type="header"] a.sm-btn-primaer[href*="/kontakt/#termin"]::after{background-size:cover;background-position:50% 40%;filter:brightness(1.08)}
}

/* Footer: weicher Verlauf ohne Schnitt – startet in der Farbe der Sektion darüber, wird Grün-Tint, läuft unten in die Wiese-Farbe */
html body footer.elementor-location-footer .elementor-element-d69b1f2{background-image:linear-gradient(180deg,var(--sm2-vor-footer,#FAFBF7) 0,#F1F5E3 260px,#F1F5E3 calc(100% - 140px),#CCDB8A 100%)}

/* === Mobiles Menü (25.11.2026): Panel aus dem <details> gelöst (script-menue.js), damit Safari/iOS es zuverlässig zeigt; Schalter als Hamburger-Icon === */
html body .elementor-location-header .e-accordion-item-base::details-content{transition:none}
html body .sm-menue-panel{position:absolute;left:0;right:0;top:100%;z-index:50;background:#fff;border-radius:0 0 var(--sm-radius-l,26px) var(--sm-radius-l,26px);box-shadow:0 24px 60px rgba(35,74,39,.16);max-height:calc(100vh - 5.5rem);max-height:calc(100dvh - 5.5rem);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html body .sm-menue-panel:not(.ist-offen){display:none!important}
@media (min-width:1025px){html body .sm-menue-panel{display:none!important}}
@media (max-width:1024px){
html body .elementor-location-header .elementor-element-b10c0008 summary{padding:0;-webkit-tap-highlight-color:transparent}
html body .elementor-location-header .elementor-element-b10c0008 summary p.sm-btn{position:relative;display:block;width:48px;height:48px;min-width:0;min-height:0;padding:0!important;margin:0;font-size:0!important;line-height:0!important;letter-spacing:0;color:transparent!important;overflow:hidden;border-radius:12px}
html body .elementor-location-header .elementor-element-b10c0008 summary p.sm-btn::before,
html body .elementor-location-header .elementor-element-b10c0008 summary p.sm-btn::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:2.5px;margin:-1.25px 0 0 -11px;border-radius:2px;background:var(--sm-gruen-tiefe,#234A27);transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
html body .elementor-location-header .elementor-element-b10c0008 summary p.sm-btn::before{box-shadow:0 -7px 0 var(--sm-gruen-tiefe,#234A27),0 7px 0 var(--sm-gruen-tiefe,#234A27)}
html body .elementor-location-header .elementor-element-b10c0008 summary p.sm-btn::after{opacity:0}
html body .elementor-location-header .elementor-element-b10c0008.sm-menue-offen summary p.sm-btn::before{box-shadow:none;transform:rotate(45deg)}
html body .elementor-location-header .elementor-element-b10c0008.sm-menue-offen summary p.sm-btn::after{opacity:1;transform:rotate(-45deg)}
}
/* Kontakt-Button ausblenden, solange das mobile Menü offen ist */
html body:has(.sm-menue-panel.ist-offen) .sm-chat{display:none}
