
/* Zentrale, seitenübergreifende Header-Gestaltung. Das Mega-Menü wird nur
   inhaltlich erweitert; seine abgestimmte Desktop-Gestaltung bleibt bestehen. */
.dm-global-header .dmh-panel,.dm-global-header .dmh-checks{background:linear-gradient(145deg,var(--dm-shell-menu-start,#24475b),var(--dm-shell-menu-end,#18364b));border-color:#b6c9d04d;border-top-color:#d2b57099;box-shadow:inset 0 1px #e0ebf03b,0 24px 45px #08223559}
:root{--dmh-deep:var(--dm-shell-bg,#10283d);--dmh-gold:#d9b46a;--dmh-gold-light:#f2dea5;--dmh-sans:Outfit,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--dmh-serif:Georgia,"Times New Roman",serif}
body.dm-global-header-active>.site-header,body.dm-global-header-active>.seo-header.homepage-header,body.dm-global-header-active>.mk-unified-header{display:none!important}
.dm-global-header{position:absolute;inset:0 0 auto;z-index:1000;display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;height:74px;align-items:center;gap:clamp(12px,1.8vw,26px);padding:0 clamp(15px,2.8vw,40px);border-bottom:1px solid rgba(242,222,165,.13);background:var(--dm-shell-bg,#10283d);color:#fff;backdrop-filter:blur(16px);font:16px/1 var(--dmh-sans);box-sizing:border-box;transition:background .3s ease,box-shadow .3s ease}
.dm-global-header.is-scrolled{position:fixed;background:var(--dm-shell-bg,#10283d);box-shadow:0 12px 30px rgba(0,0,0,.22)}
.dm-global-header *{box-sizing:border-box}.dm-global-header a{color:inherit}
.dmh-brand{display:inline-flex;flex:0 0 auto;align-items:center;gap:11px;color:#fff;text-decoration:none}.dmh-brand img{display:block;width:46px;height:46px;flex:0 0 auto;object-fit:cover;border:2px solid rgba(242,222,165,.62);border-radius:50%}.dmh-brand-copy{display:grid;line-height:1.12}.dmh-brand-copy strong{color:var(--dmh-gold-light);font:700 17.28px/1.12 var(--dmh-serif);letter-spacing:.015em;white-space:nowrap}.dmh-brand-copy small{margin-top:4px;color:#aec0d8;font:400 10.88px/1.12 var(--dmh-sans);letter-spacing:.02em;white-space:nowrap}
.dmh-nav{display:flex;height:100%;min-width:0;align-items:center;justify-content:center;gap:clamp(14px,1.55vw,25px)}
.dmh-nav>a,.dmh-summary{position:relative;color:#e5edf6!important;font:650 calc(.25vw + 10.88px)/1 var(--dmh-sans);text-decoration:none;white-space:nowrap;transition:color .2s ease}
.dmh-nav>a,.dmh-nav>.dmh-mega,.dmh-nav>.dmh-mega>.dmh-summary{display:inline-flex;height:100%;align-items:center}
.dmh-nav>a:hover,.dmh-summary:hover,.dmh-mega[open]>.dmh-summary{color:var(--dmh-gold-light)!important}
.dmh-mega{position:relative}.dmh-summary{position:relative;gap:6px;padding:0;border:0;background:transparent;color:#e5edf6;font:650 calc(.25vw + 10.88px)/1 var(--dmh-sans);list-style:none;cursor:pointer;white-space:nowrap}.dmh-summary::-webkit-details-marker{display:none}.dmh-summary b{color:var(--dmh-gold-light);font-size:12px;transition:transform .25s}.dmh-mega[open]>.dmh-summary b{transform:rotate(180deg)}
.dmh-panel{position:fixed;top:73px;left:50%;z-index:30;width:min(1100px,calc(100vw - 48px));max-height:calc(100vh - 86px);overflow-y:auto;overscroll-behavior:contain;padding:25px 28px 28px;border:1px solid rgba(232,201,106,.25);border-top-color:rgba(232,201,106,.48);border-radius:0 0 22px 22px;background:linear-gradient(145deg,rgba(13,23,40,.99),rgba(20,38,63,.99));box-shadow:0 28px 65px rgba(0,0,0,.38);transform:translateX(-50%)}.dmh-panel-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.1)}.dmh-panel-head small,.dmh-panel-head strong{display:block}.dmh-panel-head small{margin-bottom:3px;color:var(--dmh-gold);font-size:10.56px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.dmh-panel-head strong{color:#fff;font:600 23.2px/1.15 var(--dmh-serif)}.dmh-panel-head>a{color:var(--dmh-gold-light);font-size:12.48px;font-weight:650;text-decoration:none}.dmh-panel-head>a:hover{color:#fff}.dmh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 34px}.dmh-group{min-width:0}.dmh-group h3{margin:0 0 8px;color:var(--dmh-gold);font:700 11.04px/1.3 var(--dmh-sans);letter-spacing:.1em;text-transform:uppercase}.dmh-group a,.dmh-checks a{display:block;padding:4px 0;color:#dce5f0;font-size:13.12px;line-height:1.4;text-decoration:none;transition:color .2s ease,transform .2s ease}.dmh-group a:hover,.dmh-checks a:hover{color:#fff3bd;transform:translateX(3px)}.dmh-group--checks{padding:15px 17px;border:1px solid rgba(232,201,106,.18);border-radius:14px;background:rgba(232,201,106,.06)}.dmh-checks{position:absolute;top:calc(100% - 1px);left:50%;width:235px;padding:8px;border:1px solid rgba(232,201,106,.28);border-radius:12px;background:linear-gradient(145deg,rgba(13,23,40,.99),rgba(20,38,63,.99));box-shadow:0 20px 45px rgba(0,0,0,.38);transform:translateX(-50%)}.dmh-checks a{padding:9px 11px}
.dmh-actions{display:flex;height:100%;flex:0 0 auto;align-items:center;gap:13px}.dmh-phone{color:#fff!important;font:750 13.44px/1 var(--dmh-sans);letter-spacing:.01em;text-decoration:none;white-space:nowrap}.dmh-phone:hover{color:var(--dmh-gold-light)!important}.dmh-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 19px;border:1px solid var(--dmh-gold-light);border-radius:999px;background:linear-gradient(135deg,#d5b24a,#f0d878);color:var(--dmh-deep)!important;font:800 13.12px/1 var(--dmh-sans);text-decoration:none;white-space:nowrap;box-shadow:0 7px 18px rgba(217,180,106,.18);transition:.25s}.dmh-cta:hover{background:linear-gradient(135deg,#e2c25f,#f7e59c);transform:translateY(-2px);box-shadow:0 10px 24px rgba(217,180,106,.3)}.dmh-cta svg{width:16px;height:16px;fill:currentColor}
.dmh-mobile{display:none;position:relative}.dmh-mobile>summary{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;padding:0;border:0;border-radius:10px;background:transparent;color:var(--dmh-gold-light);list-style:none;cursor:pointer}.dmh-mobile>summary::-webkit-details-marker{display:none}.dmh-mobile-menu{position:absolute;top:50px;right:-18px;display:grid;width:min(330px,calc(100vw - 28px));max-height:calc(100vh - 76px);overflow:auto;padding:12px 18px 20px;border:1px solid rgba(242,222,165,.18);border-radius:0 0 14px 14px;background:var(--dmh-deep);box-shadow:0 24px 50px rgba(0,0,0,.42)}.dmh-mobile-menu>a,.dmh-mobile-menu summary{display:flex;align-items:center;justify-content:space-between;padding:13px 1px;border-bottom:1px solid rgba(219,229,241,.13);color:#edf3fa;font-size:14.08px;text-decoration:none;list-style:none;cursor:pointer}.dmh-mobile-menu summary::-webkit-details-marker{display:none}.dmh-mobile-links{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;padding:4px 0 12px}.dmh-mobile-links a{padding:7px 0;color:#c8d4e3;font-size:12.32px;text-decoration:none}.dmh-mobile-contact{margin-top:12px!important;justify-content:center!important;border:1px solid var(--dmh-gold)!important;border-radius:999px;background:linear-gradient(135deg,#d5b24a,#f0d878);color:var(--dmh-deep)!important;font-weight:800}
/* Drei farbgleiche Striche werden beim Öffnen zu einem zentrierten X. */
.dmh-burger{display:flex;width:20px;flex-direction:column;gap:4px}
.dmh-burger>span{display:block;width:20px;height:2px;border-radius:999px;background:currentColor;transform-origin:center;transition:transform .36s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
.dmh-mobile[open] .dmh-burger>span:first-child{transform:translateY(6px) rotate(45deg)}
.dmh-mobile[open] .dmh-burger>span:nth-child(2){opacity:0;transform:scaleX(.45)}
.dmh-mobile[open] .dmh-burger>span:last-child{transform:translateY(-6px) rotate(-45deg)}
@media(prefers-reduced-motion:reduce){.dmh-burger>span{transition:none}}
/* Der globale Offen-Zustand für FAQ-Details darf den mobilen Menüknopf nicht einrahmen. */
.dm-global-header .dmh-mobile[open]{border:0!important;box-shadow:none!important;background:transparent!important}
.dm-global-header .dmh-mobile>summary:focus-visible{outline:2px solid var(--dmh-gold-light)!important;outline-offset:2px}
.dm-global-header .dmh-mobile-menu details[open]{border:0!important;box-shadow:none!important;background:transparent!important}
.dm-global-header .dmh-mobile-menu details>summary:focus-visible{outline:0!important;text-decoration:underline;text-decoration-color:var(--dmh-gold-light);text-underline-offset:5px}
.dm-global-header .dmh-mobile-menu>a:not(.dmh-mobile-contact):hover,
.dm-global-header .dmh-mobile-menu>a:not(.dmh-mobile-contact):focus-visible,
.dm-global-header .dmh-mobile-links a:hover,
.dm-global-header .dmh-mobile-links a:focus-visible,
.dm-global-header .dmh-mobile-menu details>summary:hover,
.dm-global-header .dmh-mobile-menu details>summary:focus-visible{color:var(--dmh-gold-light)!important}
/* Auf Tablets bleibt die Menübox kompakt. Auf Handys sitzt sie bündig
   über die ganze Breite direkt unter dem Header. */
@media(max-width:850px){
  .dm-global-header:has(.dmh-mobile[open]){z-index:1000003}
  .dmh-mobile-menu{position:absolute;top:calc(100% + 10px);right:-21px;width:min(430px,calc(100vw - 16px));height:min(640px,calc(100dvh - 76px));max-height:none;overflow-x:hidden;overflow-y:auto;box-sizing:border-box}
  .dmh-mobile-menu>details,.dmh-mobile-links{min-width:0;max-width:100%;box-sizing:border-box}
  .dmh-mobile-menu summary,.dmh-mobile-links a{min-width:0;overflow-wrap:anywhere}
  .dmh-mobile-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:500px){.dmh-mobile-menu{width:100vw;border-left:0;border-right:0;border-radius:0}.dmh-mobile-links{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1380px) and (min-width:851px){.dm-global-header{gap:10px;padding:0 14px}.dmh-nav{gap:12px}.dmh-nav>a,.dmh-summary{font-size:11.84px}.dmh-brand-copy strong{font-size:15.04px}.dmh-brand-copy small{font-size:9.76px}.dmh-brand img{width:42px;height:42px}.dmh-actions{gap:9px}.dmh-phone{font-size:11.52px}.dmh-cta{padding:10px 14px;font-size:11.84px}.dmh-panel{width:calc(100vw - 34px)}.dmh-grid{gap:19px 24px}.dmh-group a{font-size:12.16px}}
@media(max-width:850px){.dm-global-header{grid-template-columns:max-content 1fr;height:67px;padding:0 21px}.dmh-brand img{width:33px;height:33px}.dmh-brand-copy strong{font-size:12.48px}.dmh-brand-copy small{font-size:9.28px}.dmh-nav,.dmh-phone,.dmh-cta{display:none}.dmh-actions{justify-self:end;margin-left:auto}.dmh-mobile{display:block}}
@media(max-width:430px){.dmh-mobile-links{grid-template-columns:1fr}.dmh-brand-copy small{display:none}}

/* Gemeinsame Schutzregeln für echte responsive Seitenbreiten. Sie greifen
   nur an den vorhandenen Tablet-/Mobil-Breakpoints und verändern das
   Desktop-Layout nicht. */
html,body{max-width:100%;overflow-x:hidden}
body{overflow-x:clip}
main,section,.wrap,.container{min-width:0;max-width:100%}
img,video,canvas,iframe{max-width:100%}
.hero-layout,.hero-inner,.hero-content,.hero-copy,.hero-card,.hero-visual,.bu-calc{min-width:0;max-width:100%}
@media(max-width:960px){
  body .hero-layout,body .hero-inner{grid-template-columns:minmax(0,1fr)!important}
  body .hero-layout>*,body .hero-inner>*{min-width:0;max-width:100%}
  body .hero-card,body .bu-calc{width:100%}
}
body:has(#bu-rechner) .hero h1{hyphens:manual!important;-webkit-hyphens:manual!important;word-break:normal!important;overflow-wrap:normal!important}
@media(min-width:961px) and (max-width:1350px){body:has(#bu-rechner) .hero h1{font-size:clamp(52px,5vw,64px)!important}}
