/* Gemeinsame Folium-Kopfleiste und Helix-Seitenmenü. */
.mg-p51-submenu-toggle{display:none}

/* Im Tabletbereich verwendet die Kopfzeile je nach Ausrichtung ihre eigenen Maße. */
@media (min-width:800px) and (max-width:1279.98px),
       (min-width:1280px) and (max-width:1399.98px) and (orientation:landscape) and (any-pointer:coarse) {
  #sp-header.mg-p51-header {
    --mg-p51-header-size:64px;
    --mg-p51-logo-width:clamp(135px,18vw,205px);
    --mg-p51-header-gutter:16px;
    --mg-p51-header-gap:12px;
    --mg-p51-menu-font:14px;
    --mg-p51-menu-letter-spacing:.025em;
    --mg-p51-menu-padding:7px;
    --mg-p51-menu-target:44px;
    --mg-p51-language-width:1.75rem;
    --mg-p51-contact-padding:11px;
  }

 html #sp-header#sp-header.mg-p51-header{min-height:var(--mg-p51-header-size)!important;height:auto!important;padding-inline:0!important}
 html #sp-header#sp-header.mg-p51-header .mg-p51-header-row{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:nowrap!important;gap:var(--mg-p51-header-gap)!important;min-height:var(--mg-p51-header-size)!important;max-width:none!important;padding:0 var(--mg-p51-header-gutter)!important}
 html #sp-header#sp-header.mg-p51-header #sp-logo{flex:0 0 var(--mg-p51-logo-width)!important;width:var(--mg-p51-logo-width)!important;max-width:none!important;min-width:0!important}
 html #sp-header#sp-header.mg-p51-header #sp-logo .logo,
 html #sp-header#sp-header.mg-p51-header #sp-logo .logo>a{width:100%!important;max-width:100%!important}
 html #sp-header#sp-header.mg-p51-header #sp-logo :is(img,svg.mg-executive-svg){width:100%!important;max-width:100%!important;height:auto!important}
 html #sp-header#sp-header.mg-p51-header #sp-menu{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;flex:1 1 auto!important}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end;margin:0;padding:0;gap:0!important;float:none}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li{flex:0 0 auto;float:none;margin:0!important;padding:0!important}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li>a{font-size:var(--mg-p51-menu-font)!important;letter-spacing:var(--mg-p51-menu-letter-spacing)!important;line-height:1.35!important;min-height:var(--mg-p51-menu-target)!important;padding:10px var(--mg-p51-menu-padding)!important;white-space:nowrap}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li>a.mg-menu-contact{padding-inline:var(--mg-p51-contact-padding)!important}
 #sp-header#sp-header.mg-p51-header :is(.mg-profile-menu,.mg980-header-item,.mgth-social-item,.mg-language-mobile,#offcanvas-toggler){display:none!important}
 #sp-header#sp-header.mg-p51-header .mg-language-desktop{margin-inline-start:4px}
 #sp-header#sp-header.mg-p51-header .mg-language-desktop .mg-language{min-inline-size:var(--mg-p51-language-width);min-block-size:var(--mg-p51-menu-target)}
 #sp-header#sp-header.mg-p51-header .sp-dropdown{max-width:calc(100vw - 32px)}
}

@media (min-width:800px) and (max-width:899.98px) {
  #sp-header.mg-p51-header {
    --mg-p51-menu-font:clamp(13px,calc(1vw + 5px),14px);
    --mg-p51-menu-letter-spacing:.012em;
    --mg-p51-menu-padding:clamp(4px,calc(2.65vw - 17.2px),7px);
  }
}

@media (min-width:1024px) and (max-width:1279.98px) and (orientation:landscape),
       (min-width:1280px) and (max-width:1399.98px) and (orientation:landscape) and (any-pointer:coarse) {
  #sp-header.mg-p51-header {
    --mg-p51-header-size:84px;
    --mg-p51-logo-width:clamp(234px,23.5vw,300px);
    --mg-p51-header-gutter:clamp(20px,2.2vw,28px);
    --mg-p51-header-gap:18px;
    --mg-p51-menu-font:clamp(14px,1.28vw,15.5px);
    --mg-p51-menu-padding:clamp(8px,calc(3.7vw - 30px),15px);
    --mg-p51-menu-target:48px;
    --mg-p51-language-width:44px;
    --mg-p51-contact-padding:clamp(12px,1.45vw,19px);
  }
}

#sp-header-sticky-wrapper.mg-p51-sticky-shell{height:var(--mg-p51-header-height,auto)!important}
@media (max-width:799.98px){
 #sp-header.mg-p51-header .sp-megamenu-parent{display:none!important}
 #sp-header.mg-p51-header #offcanvas-toggler{display:inline-flex!important;align-items:center;justify-content:center;min-width:48px;min-height:48px}
 #sp-header.mg-p51-header .mg-language-mobile .mg-language{min-width:44px;min-height:44px}
 html #sp-header#sp-header.mg-p51-header #sp-logo{width:clamp(150px,52vw,245px)!important;max-width:calc(100% - 108px)!important;flex-basis:auto!important}
 html #sp-header#sp-header.mg-p51-header #sp-logo img{width:100%!important;max-width:100%!important}
 body.offcanvas-init{--mg-menu-panel:min(360px,calc(100vw - 24px))}
 body.offcanvas-init .offcanvas-menu{width:var(--mg-menu-panel);overflow:auto;overscroll-behavior:contain}
 body.offcanvas-init:not(.offcanvas-active) .offcanvas-menu{visibility:hidden;pointer-events:none}
 body.offcanvas-init.offcanvas-active .offcanvas-menu{visibility:visible}
 body.ltr.offcanvs-position-right:not(.offcanvas-active) .offcanvas-menu{right:calc(-1 * var(--mg-menu-panel))}
 body.ltr.offcanvs-position-left:not(.offcanvas-active) .offcanvas-menu{left:calc(-1 * var(--mg-menu-panel))}
 body.ltr.offcanvs-position-right.offcanvas-active .body-wrapper{right:var(--mg-menu-panel)}
 body.ltr.offcanvs-position-left.offcanvas-active .body-wrapper{left:var(--mg-menu-panel)}
 body.offcanvas-init .offcanvas-menu .offcanvas-inner{padding:24px 20px max(24px,env(safe-area-inset-bottom))}
 body.offcanvas-init .offcanvas-menu .close-offcanvas{width:44px;height:44px;display:grid;place-items:center}
 body.offcanvas-init .offcanvas-menu ul.menu li>a{min-height:48px;display:flex;align-items:center}
 body.offcanvas-init .offcanvas-menu ul.menu>li:has(>a.mg-menu-contact){border-top:1px solid #dbe5eb;margin-top:10px;padding-top:12px}
 body.offcanvas-init .offcanvas-menu .mg-profile-offcanvas{margin-top:8px}
}
:is(#sp-header,.offcanvas-menu) a:is(.mg-regulatorik-suche,[href$="/regulatorik/suche"]){border-top:1px solid #dbe5eb;margin-top:4px}
#sp-header .mg-p51-whole-toggle > a:focus-visible{outline:2px solid #2b718d;outline-offset:-2px}
#sp-header .mg-p51-open>.sp-dropdown{display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;pointer-events:auto!important}
#sp-header .mg-p51-align-right>.sp-dropdown{left:auto!important;right:0!important}
@media(min-width:800px) and (max-width:1279.98px), (min-width:800px) and (pointer:coarse){
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li.mg-p51-haspopup{display:inline-flex!important;align-items:center!important;position:relative!important}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li.mg-p51-haspopup:not(.mg-p51-whole-toggle)>a{padding-right:3px!important}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li.mg-p51-haspopup>a::after,
 #sp-header#sp-header.mg-p51-header .mg-p51-native-caret{display:none!important}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li.mg-p51-whole-toggle>a::after{content:"";display:inline-block!important;width:7px;height:7px;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);margin-inline-start:7px;vertical-align:middle}
 #sp-header#sp-header.mg-p51-header .sp-megamenu-parent>li.mg-p51-open.mg-p51-whole-toggle>a::after{transform:translateY(2px) rotate(225deg)}
 #sp-header#sp-header.mg-p51-header .mg-p51-submenu-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-height:44px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
 #sp-header#sp-header.mg-p51-header .mg-p51-submenu-toggle:focus-visible{outline:3px solid #4b89a8;outline-offset:1px}
 #sp-header#sp-header.mg-p51-header .mg-p51-caret{width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin-top:-4px}
 #sp-header#sp-header.mg-p51-header .mg-p51-submenu-toggle[aria-expanded="true"] .mg-p51-caret{transform:rotate(225deg);margin-top:3px}
 #sp-header#sp-header.mg-p51-header .mg-p51-haspopup>.sp-dropdown{top:100%!important}
 #sp-header#sp-header.mg-p51-header .mg-p51-open>.sp-dropdown{display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;animation:none!important;pointer-events:auto!important}
 #sp-header#sp-header.mg-p51-header .mg-p51-align-right>.sp-dropdown{left:auto!important;right:0!important}
}
@media(min-width:800px) and (pointer:coarse){
 #sp-header#sp-header.mg-p51-header .mg-p51-haspopup:not(.mg-p51-open)>.sp-dropdown{display:none!important;visibility:hidden!important;opacity:0!important}
}
