:root{--fb24-nav-navy:#0a345e;--fb24-nav-blue:#168fc5;--fb24-nav-text:#17354d;--fb24-nav-border:#e7edf2;--fb24-nav-shadow:0 12px 34px rgba(15,47,75,.13)}
body.fb24-nav-active header.wp-block-template-part,body.fb24-nav-active .wp-site-blocks>header,body.fb24-nav-active .wp-site-blocks>.wp-block-template-part:first-child{display:none!important}
#fb24-global-header,#fb24-global-header *{box-sizing:border-box}
#fb24-global-header{position:relative;z-index:99990;width:100%;background:#fff;border-bottom:1px solid #eef2f5;font-family:inherit}
.fb24-nav-shell{width:min(100% - 44px,1420px);min-height:86px;margin:0 auto;display:flex;align-items:center;gap:38px}
.fb24-nav-brand{flex:0 0 auto;display:flex;align-items:center;margin-right:auto}.fb24-nav-brand .custom-logo-link{display:flex;align-items:center;line-height:0}.fb24-nav-brand .custom-logo{display:block;width:auto;height:auto;max-width:225px;max-height:58px}.fb24-nav-text-logo{color:var(--fb24-nav-navy);font-weight:800;font-size:24px;text-decoration:none}
.fb24-primary-navigation{align-self:stretch;display:flex;align-items:stretch}.fb24-nav-list,.fb24-nav-submenu{list-style:none!important;margin:0!important;padding:0!important}.fb24-nav-list{display:flex;align-items:stretch;gap:4px}.fb24-nav-item{position:relative;margin:0!important;padding:0!important}.fb24-nav-link-row{height:100%;display:flex;align-items:center}.fb24-nav-link{display:flex;align-items:center;min-height:86px;padding:0 13px;color:var(--fb24-nav-text)!important;text-decoration:none!important;font-size:15px;line-height:1.2;font-weight:500;white-space:nowrap;transition:color .18s ease,background .18s ease}.fb24-nav-link:hover,.fb24-nav-link:focus{color:var(--fb24-nav-blue)!important}.fb24-nav-has-children>.fb24-nav-link-row>.fb24-nav-link{padding-right:5px}.fb24-nav-toggle{width:27px;height:38px;margin-right:3px;border:0!important;padding:0!important;background:transparent!important;color:var(--fb24-nav-text)!important;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:none!important}.fb24-nav-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.fb24-nav-submenu{position:absolute;left:0;top:calc(100% - 8px);min-width:250px;background:#fff;border:1px solid var(--fb24-nav-border);border-radius:8px;box-shadow:var(--fb24-nav-shadow);padding:8px!important;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:100}.fb24-nav-submenu .fb24-nav-link-row{height:auto}.fb24-nav-submenu .fb24-nav-link{width:100%;min-height:0;padding:11px 13px;border-radius:5px;font-size:14px;line-height:1.35;white-space:normal}.fb24-nav-submenu .fb24-nav-link:hover,.fb24-nav-submenu .fb24-nav-link:focus{background:#f3f8fb;color:var(--fb24-nav-blue)!important}.fb24-nav-has-children:hover>.fb24-nav-submenu,.fb24-nav-has-children:focus-within>.fb24-nav-submenu,.fb24-nav-has-children.fb24-submenu-open>.fb24-nav-submenu{opacity:1;visibility:visible;transform:translateY(0)}.fb24-nav-has-children.fb24-submenu-open>.fb24-nav-link-row .fb24-nav-toggle svg{transform:rotate(180deg)}
.fb24-mobile-menu-button{display:none;width:46px;height:46px;padding:10px!important;border:0!important;border-radius:5px;background:transparent!important;box-shadow:none!important;cursor:pointer}.fb24-mobile-menu-button span{display:block;width:25px;height:2px;margin:5px auto;background:var(--fb24-nav-navy);transition:transform .2s ease,opacity .2s ease}
@media(max-width:1180px){.fb24-nav-shell{width:min(100% - 30px,1420px);gap:16px}.fb24-nav-brand .custom-logo{max-width:190px}.fb24-nav-link{padding-left:9px;padding-right:9px;font-size:14px}.fb24-nav-has-children>.fb24-nav-link-row>.fb24-nav-link{padding-right:2px}}
@media(max-width:980px){.fb24-nav-shell{min-height:76px;position:relative}.fb24-nav-brand .custom-logo{max-width:205px;max-height:52px}.fb24-mobile-menu-button{display:block;margin-left:auto}.fb24-primary-navigation{display:none;position:absolute;left:-15px;right:-15px;top:100%;height:auto;background:#fff;border-top:1px solid var(--fb24-nav-border);box-shadow:0 16px 30px rgba(15,47,75,.13);max-height:calc(100vh - 76px);overflow:auto;padding:10px 15px 18px}.fb24-primary-navigation.fb24-mobile-open{display:block}.fb24-nav-list{display:block}.fb24-nav-link-row{min-height:52px;border-bottom:1px solid #edf2f5}.fb24-nav-link{min-height:52px;flex:1;padding:0 8px;font-size:16px;font-weight:600}.fb24-nav-toggle{flex:0 0 48px;width:48px;height:48px;margin:0}.fb24-nav-submenu{display:none;position:static;min-width:0;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;border-radius:0;padding:3px 0 8px 14px!important;background:#f8fafc}.fb24-nav-has-children.fb24-submenu-open>.fb24-nav-submenu{display:block}.fb24-nav-submenu .fb24-nav-link-row{border:0}.fb24-nav-submenu .fb24-nav-link{min-height:44px;padding:10px 12px;font-size:15px;font-weight:500}.fb24-mobile-menu-button[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}.fb24-mobile-menu-button[aria-expanded=true] span:nth-child(2){opacity:0}.fb24-mobile-menu-button[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}}
@media(max-width:480px){.fb24-nav-shell{width:calc(100% - 24px)}.fb24-nav-brand .custom-logo{max-width:180px}}


/* === 1.0.1 Logo deutlich größer und besser lesbar === */
.fb24-nav-shell{
  min-height:104px!important;
}
.fb24-nav-brand .custom-logo{
  width:auto!important;
  height:auto!important;
  max-width:310px!important;
  max-height:78px!important;
}
.fb24-nav-link{
  min-height:104px!important;
}
@media(max-width:1180px){
  .fb24-nav-brand .custom-logo{
    max-width:275px!important;
    max-height:70px!important;
  }
}
@media(max-width:980px){
  .fb24-nav-shell{min-height:86px!important}
  .fb24-nav-brand .custom-logo{
    max-width:245px!important;
    max-height:64px!important;
  }
}
@media(max-width:480px){
  .fb24-nav-brand .custom-logo{
    max-width:220px!important;
    max-height:58px!important;
  }
}


/* === 1.0.2 Logo wirklich groß und gut lesbar === */
#fb24-global-header .fb24-nav-shell{
  width:min(100% - 40px, 1500px)!important;
  min-height:128px!important;
  gap:28px!important;
}
#fb24-global-header .fb24-nav-brand{
  flex:0 0 390px!important;
  width:390px!important;
}
#fb24-global-header .fb24-nav-brand .custom-logo-link{
  width:100%!important;
  display:block!important;
}
#fb24-global-header .fb24-nav-brand img.custom-logo,
#fb24-global-header .fb24-nav-brand .custom-logo{
  display:block!important;
  width:380px!important;
  max-width:380px!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:left center!important;
}
#fb24-global-header .fb24-nav-link{
  min-height:128px!important;
  padding-left:10px!important;
  padding-right:10px!important;
}

@media(max-width:1280px){
  #fb24-global-header .fb24-nav-shell{min-height:112px!important}
  #fb24-global-header .fb24-nav-brand{flex-basis:320px!important;width:320px!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:310px!important;
    max-width:310px!important;
  }
  #fb24-global-header .fb24-nav-link{
    min-height:112px!important;
    font-size:13px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header .fb24-nav-shell{min-height:94px!important}
  #fb24-global-header .fb24-nav-brand{flex:0 1 285px!important;width:auto!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:280px!important;
    max-width:100%!important;
  }
}
@media(max-width:480px){
  #fb24-global-header .fb24-nav-brand{flex-basis:235px!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:230px!important;
  }
}


/* === 1.0.3: kompakter Header + professionelle Dropdowns === */

/* Logo bleibt groß, Header wird kompakter */
#fb24-global-header .fb24-nav-shell{
  min-height:104px!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-brand{
  display:flex!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-brand img.custom-logo,
#fb24-global-header .fb24-nav-brand .custom-logo{
  width:380px!important;
  max-width:380px!important;
  max-height:82px!important;
  object-fit:contain!important;
}
#fb24-global-header .fb24-primary-navigation{
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-list{
  align-items:center!important;
}
#fb24-global-header .fb24-nav-link-row{
  height:auto!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:104px!important;
}

/* Dropdown: keine geerbten Flex-/Höhenwerte mehr */
#fb24-global-header .fb24-nav-submenu{
  top:calc(100% - 14px)!important;
  min-width:255px!important;
  width:max-content!important;
  max-width:320px!important;
  padding:7px!important;
  margin:0!important;
}
#fb24-global-header .fb24-nav-submenu > .fb24-nav-item{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
#fb24-global-header .fb24-nav-submenu > .fb24-nav-item > .fb24-nav-link-row{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
#fb24-global-header .fb24-nav-submenu .fb24-nav-link{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:auto!important;
  min-height:46px!important;
  padding:11px 14px!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.35!important;
  white-space:nowrap!important;
  border-radius:5px!important;
}
#fb24-global-header .fb24-nav-submenu .fb24-nav-link:hover,
#fb24-global-header .fb24-nav-submenu .fb24-nav-link:focus{
  background:#f2f7fa!important;
}

/* feine Trennung zwischen Einträgen */
#fb24-global-header .fb24-nav-submenu > .fb24-nav-item + .fb24-nav-item{
  border-top:1px solid #edf2f5!important;
}

@media(max-width:1280px){
  #fb24-global-header .fb24-nav-shell{min-height:100px!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:330px!important;
    max-width:330px!important;
    max-height:76px!important;
  }
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:100px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header .fb24-primary-navigation{
    display:none!important;
  }
  #fb24-global-header .fb24-primary-navigation.fb24-mobile-open{
    display:block!important;
  }
  #fb24-global-header .fb24-nav-submenu{
    width:100%!important;
    max-width:none!important;
  }
  #fb24-global-header .fb24-nav-submenu .fb24-nav-link{
    white-space:normal!important;
  }
}


/* === 1.0.4 – exakt an freigegebener Header-Vorlage orientiert === */
#fb24-global-header{
  background:#fff!important;
  border-bottom:1px solid #eef2f5!important;
}
#fb24-global-header .fb24-nav-shell{
  width:min(100% - 48px, 1540px)!important;
  min-height:122px!important;
  margin:0 auto!important;
  gap:34px!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-brand{
  flex:0 0 430px!important;
  width:430px!important;
  margin-right:auto!important;
}
#fb24-global-header .fb24-nav-brand .custom-logo-link{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-brand img.custom-logo,
#fb24-global-header .fb24-nav-brand .custom-logo{
  width:420px!important;
  max-width:420px!important;
  height:auto!important;
  max-height:92px!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block!important;
}

#fb24-global-header .fb24-primary-navigation{
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
}
#fb24-global-header .fb24-nav-list{
  align-items:center!important;
  gap:6px!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:122px!important;
  padding:0 12px!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:500!important;
  color:#16364f!important;
}
#fb24-global-header .fb24-nav-toggle{
  width:24px!important;
  height:38px!important;
  margin-right:2px!important;
}
#fb24-global-header .fb24-nav-toggle svg{
  width:13px!important;
  height:13px!important;
}

/* Hero direkt an den Header anschließen – keinen künstlichen Weißraum lassen */
body.fb24-nav-active .wp-site-blocks,
body.fb24-nav-active main,
body.fb24-nav-active .wp-block-post-content,
body.fb24-nav-active .entry-content{
  margin-top:0!important;
}
body.fb24-nav-active .wp-site-blocks > *:first-child,
body.fb24-nav-active main > *:first-child,
body.fb24-nav-active .wp-block-post-content > *:first-child,
body.fb24-nav-active .entry-content > *:first-child{
  margin-top:0!important;
}
body.fb24-nav-active #fb24-global-header + *,
body.fb24-nav-active #fb24-global-header ~ main{
  margin-top:0!important;
}
#fb24-global-header{
  margin-bottom:0!important;
}

/* Dropdown optisch kompakt und hochwertig */
#fb24-global-header .fb24-nav-submenu{
  top:calc(100% - 12px)!important;
  min-width:255px!important;
  padding:8px!important;
  border:1px solid #e5ebef!important;
  border-radius:7px!important;
  box-shadow:0 12px 32px rgba(16,45,70,.12)!important;
}
#fb24-global-header .fb24-nav-submenu .fb24-nav-link{
  min-height:46px!important;
  padding:11px 14px!important;
  font-size:14px!important;
  line-height:1.35!important;
}
#fb24-global-header .fb24-nav-submenu > .fb24-nav-item + .fb24-nav-item{
  border-top:1px solid #edf2f5!important;
}

/* Tablet */
@media(max-width:1320px){
  #fb24-global-header .fb24-nav-shell{
    width:min(100% - 36px, 1480px)!important;
    min-height:112px!important;
    gap:22px!important;
  }
  #fb24-global-header .fb24-nav-brand{
    flex-basis:360px!important;
    width:360px!important;
  }
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:350px!important;
    max-width:350px!important;
    max-height:82px!important;
  }
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:112px!important;
    padding:0 8px!important;
    font-size:14px!important;
  }
}

/* Mobil */
@media(max-width:980px){
  #fb24-global-header .fb24-nav-shell{
    min-height:94px!important;
  }
  #fb24-global-header .fb24-nav-brand{
    flex:0 1 300px!important;
    width:auto!important;
  }
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:295px!important;
    max-width:100%!important;
    max-height:72px!important;
  }
}
@media(max-width:480px){
  #fb24-global-header .fb24-nav-brand{
    flex-basis:245px!important;
  }
  #fb24-global-header .fb24-nav-brand img.custom-logo,
  #fb24-global-header .fb24-nav-brand .custom-logo{
    width:240px!important;
  }
}


/* === 1.0.5 – Header wirklich nach der freigegebenen Vorlage === */

/* Full-width Header-Innenbereich statt schmaler Theme-Breite */
#fb24-global-header .fb24-nav-shell{
  width:100%!important;
  max-width:none!important;
  min-height:122px!important;
  padding:0 32px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:0!important;
}

/* Eigenes, sauber zugeschnittenes Logo: sichtbar groß wie in der Vorlage */
#fb24-global-header .fb24-nav-brand{
  flex:0 0 430px!important;
  width:430px!important;
  margin:0 72px 0 0!important;
}
#fb24-global-header .fb24-nav-own-logo-link{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:100%!important;
  text-decoration:none!important;
}
#fb24-global-header .fb24-nav-own-logo{
  display:block!important;
  width:410px!important;
  max-width:410px!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:left center!important;
}

/* Navigation über den restlichen Header verteilen */
#fb24-global-header .fb24-primary-navigation{
  flex:1 1 auto!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
#fb24-global-header .fb24-nav-list{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:122px!important;
  padding:0 11px!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:1.2!important;
}

/* Den sichtbaren Weißraum zwischen Header und Seiteninhalt konsequent entfernen */
body.fb24-nav-active{
  --wp--style--block-gap:0px;
}
body.fb24-nav-active #fb24-global-header{
  margin:0!important;
  padding:0!important;
}
body.fb24-nav-active #fb24-global-header + .wp-site-blocks,
body.fb24-nav-active .wp-site-blocks{
  margin-top:0!important;
  padding-top:0!important;
}
body.fb24-nav-active .wp-site-blocks > main,
body.fb24-nav-active main.wp-block-group,
body.fb24-nav-active main{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}
body.fb24-nav-active main > .wp-block-post-content,
body.fb24-nav-active .wp-block-post-content,
body.fb24-nav-active .entry-content{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}
body.fb24-nav-active .wp-block-post-content > :first-child,
body.fb24-nav-active .entry-content > :first-child,
body.fb24-nav-active main > :first-child{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* Desktop-Dropdowns kompakt halten */
#fb24-global-header .fb24-nav-submenu{
  top:calc(100% - 12px)!important;
  min-width:255px!important;
  width:max-content!important;
  max-width:330px!important;
}
#fb24-global-header .fb24-nav-submenu .fb24-nav-link{
  min-height:46px!important;
  padding:11px 14px!important;
  font-size:14px!important;
}

/* Etwas kleinere Desktops */
@media(max-width:1320px){
  #fb24-global-header .fb24-nav-shell{
    min-height:110px!important;
    padding:0 24px!important;
  }
  #fb24-global-header .fb24-nav-brand{
    flex-basis:350px!important;
    width:350px!important;
    margin-right:35px!important;
  }
  #fb24-global-header .fb24-nav-own-logo{
    width:335px!important;
    max-width:335px!important;
  }
  #fb24-global-header .fb24-nav-list{
    gap:3px!important;
  }
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:110px!important;
    padding:0 7px!important;
    font-size:14px!important;
  }
}

/* Mobile bleibt mit Burger-Menü sauber responsiv */
@media(max-width:980px){
  #fb24-global-header .fb24-nav-shell{
    min-height:92px!important;
    padding:0 16px!important;
  }
  #fb24-global-header .fb24-nav-brand{
    flex:0 1 300px!important;
    width:auto!important;
    margin-right:auto!important;
  }
  #fb24-global-header .fb24-nav-own-logo{
    width:285px!important;
    max-width:100%!important;
  }
  #fb24-global-header .fb24-primary-navigation{
    display:none!important;
  }
  #fb24-global-header .fb24-primary-navigation.fb24-mobile-open{
    display:block!important;
  }
}
@media(max-width:480px){
  #fb24-global-header .fb24-nav-brand{
    flex-basis:245px!important;
  }
  #fb24-global-header .fb24-nav-own-logo{
    width:235px!important;
  }
}


/* === 1.0.6 – Abstand zwischen Navigation/Header und Seiteninhalt minimiert === */

/* Header selbst kompakter */
#fb24-global-header .fb24-nav-shell{
  min-height:104px!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:104px!important;
}

/* Logo unverändert groß lassen */
#fb24-global-header .fb24-nav-own-logo{
  width:410px!important;
  max-width:410px!important;
}

/* Alle typischen WordPress-Abstände direkt nach dem Header entfernen */
body.fb24-nav-active #fb24-global-header{
  margin-bottom:0!important;
}
body.fb24-nav-active .wp-site-blocks{
  margin-top:0!important;
  padding-top:0!important;
}
body.fb24-nav-active .wp-site-blocks > main,
body.fb24-nav-active main,
body.fb24-nav-active .wp-block-post-content,
body.fb24-nav-active .entry-content{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}
body.fb24-nav-active .wp-site-blocks > main > :first-child,
body.fb24-nav-active main > :first-child,
body.fb24-nav-active .wp-block-post-content > :first-child,
body.fb24-nav-active .entry-content > :first-child{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* Falls das Theme einen Block-Gap vor dem ersten Inhaltsblock setzt */
body.fb24-nav-active .wp-site-blocks{
  --wp--style--block-gap:0px!important;
  gap:0!important;
}

/* Spezifische häufige Theme-Wrapper */
body.fb24-nav-active .site-main,
body.fb24-nav-active .site-content,
body.fb24-nav-active #primary,
body.fb24-nav-active #content{
  margin-top:0!important;
  padding-top:0!important;
}

/* Mobil/Tablet ebenfalls kompakt */
@media(max-width:1320px){
  #fb24-global-header .fb24-nav-shell{
    min-height:98px!important;
  }
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:98px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header .fb24-nav-shell{
    min-height:88px!important;
  }
}


/* === 1.0.7 – finaler Abstand-Fix === */

/* Header kompakt, Logo bleibt in der gewünschten Größe */
#fb24-global-header .fb24-nav-shell{
  min-height:96px!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:96px!important;
}

/* Der sichtbare Leerraum kommt vom ersten Inhalts-/Template-Wrapper.
   Deshalb alle Block-Abstände zwischen unserem Header und dem eigentlichen Inhalt neutralisieren. */
body.fb24-nav-active{
  margin-top:0!important;
}
body.fb24-nav-active > .wp-site-blocks{
  padding-top:0!important;
  margin-top:0!important;
}
body.fb24-nav-active .wp-site-blocks{
  gap:0!important;
  row-gap:0!important;
}
body.fb24-nav-active .wp-site-blocks > *,
body.fb24-nav-active .wp-site-blocks > main,
body.fb24-nav-active .wp-site-blocks main,
body.fb24-nav-active main,
body.fb24-nav-active #main,
body.fb24-nav-active #primary,
body.fb24-nav-active #content,
body.fb24-nav-active .site-main,
body.fb24-nav-active .site-content,
body.fb24-nav-active .wp-block-post-content,
body.fb24-nav-active .entry-content{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}

/* WordPress kann am ersten Block margin-block-start / blockGap setzen */
body.fb24-nav-active .wp-block-post-content > :first-child,
body.fb24-nav-active .entry-content > :first-child,
body.fb24-nav-active main > :first-child,
body.fb24-nav-active #main > :first-child,
body.fb24-nav-active #primary > :first-child,
body.fb24-nav-active #content > :first-child{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* Leere Spacer direkt am Seitenanfang ausblenden */
body.fb24-nav-active main > .wp-block-spacer:first-child,
body.fb24-nav-active .wp-block-post-content > .wp-block-spacer:first-child,
body.fb24-nav-active .entry-content > .wp-block-spacer:first-child{
  display:none!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}

/* Logo nicht durch CSS-Filter/Rendering-Effekte verfälschen */
#fb24-global-header .fb24-nav-own-logo{
  image-rendering:auto!important;
  filter:none!important;
  transform:none!important;
}

/* Tablet/Mobil proportional */
@media(max-width:1320px){
  #fb24-global-header .fb24-nav-shell{min-height:94px!important}
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:94px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header .fb24-nav-shell{min-height:86px!important}
}


/* === 1.0.8 – WordPress-Header-Template vollständig aus dem Layout nehmen === */

/*
 * Nicht nur den sichtbaren Inhalt verstecken:
 * Der komplette Template-Part samt äußerem Block-Spacing wird aus dem
 * Dokumentfluss genommen. Die Vorlage selbst bleibt im Backend erhalten.
 */
body.fb24-nav-active header.wp-block-template-part,
body.fb24-nav-active .wp-site-blocks > header.wp-block-template-part,
body.fb24-nav-active .wp-site-blocks > .wp-block-template-part:first-child,
body.fb24-nav-active header.wp-block-template-part + .wp-block-spacer{
  display:none!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  margin-block:0!important;
  padding:0!important;
  padding-block:0!important;
  border:0!important;
}

/* Block-Theme-Gap nach dem alten Header ebenfalls neutralisieren */
body.fb24-nav-active .wp-site-blocks{
  display:block!important;
  gap:0!important;
  row-gap:0!important;
  column-gap:0!important;
  margin:0!important;
  padding-top:0!important;
}
body.fb24-nav-active .wp-site-blocks > main:first-of-type,
body.fb24-nav-active .wp-site-blocks > main,
body.fb24-nav-active .wp-site-blocks > .wp-block-group:not(header):first-of-type{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}

/* Das Plugin selbst darf keinerlei Abstand nach unten erzeugen */
#fb24-global-header{
  margin:0!important;
  margin-bottom:0!important;
}
#fb24-global-header + *,
#fb24-global-header ~ .wp-site-blocks,
#fb24-global-header ~ main{
  margin-top:0!important;
}

/* Der Startseiten-Fix aus V3.0.7 nutzt -54px.
   Da der Abstand nun im Header korrekt entfernt wird, neutralisieren wir
   dieses negative Margin gezielt, damit der Hero nicht unter den Header rutscht. */
body.fb24-nav-active .fb24h100-breakout{
  margin-top:0!important;
}


/* === 1.0.9 – echter Template-Part-Ersatz + scharfes Logo === */

/* Kein zweiter Header mehr vor der WordPress-Seite:
   unsere Navigation ersetzt den vorhandenen Header direkt an seiner Originalposition. */
body.fb24-nav-active .wp-site-blocks{
  gap:0!important;
  row-gap:0!important;
}

/* Der Startseiten-Negativabstand ist jetzt überflüssig. */
body.fb24-nav-active .fb24h100-breakout{
  margin-top:0!important;
}

/* WordPress-Site-Logo in Originalqualität verwenden */
#fb24-global-header .fb24-nav-brand{
  overflow:visible!important;
}
#fb24-global-header .fb24-nav-brand .custom-logo-link{
  display:flex!important;
  align-items:center!important;
  width:auto!important;
  height:auto!important;
  overflow:visible!important;
  line-height:0!important;
}
#fb24-global-header .fb24-nav-brand img.custom-logo{
  display:block!important;
  width:420px!important;
  max-width:420px!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  image-rendering:auto!important;
  filter:none!important;
  transform:none!important;
}

/* Genug Höhe, damit die Unterzeile nicht abgeschnitten wird */
#fb24-global-header,
#fb24-global-header .fb24-nav-shell{
  min-height:108px!important;
  overflow:visible!important;
}
#fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
  min-height:108px!important;
}

@media(max-width:1320px){
  #fb24-global-header .fb24-nav-brand img.custom-logo{
    width:350px!important;
    max-width:350px!important;
  }
  #fb24-global-header,
  #fb24-global-header .fb24-nav-shell{
    min-height:102px!important;
  }
  #fb24-global-header .fb24-nav-list > .fb24-nav-item > .fb24-nav-link-row > .fb24-nav-link{
    min-height:102px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header .fb24-nav-brand img.custom-logo{
    width:285px!important;
    max-width:100%!important;
  }
  #fb24-global-header,
  #fb24-global-header .fb24-nav-shell{
    min-height:92px!important;
  }
}


/* === 1.0.10 – Navigation zuverlässig sichtbar + alter WP-Header ohne Restabstand === */

/* Unser Plugin-Header MUSS sichtbar bleiben */
#fb24-global-header{
  display:block!important;
  position:relative!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:auto!important;
  min-height:108px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#fff!important;
  z-index:99990!important;
}

/* Nur den ALTEN WordPress-Header entfernen */
body.fb24-nav-active .wp-site-blocks > header.wp-block-template-part,
body.fb24-nav-active .wp-site-blocks > .wp-block-template-part[role="banner"],
body.fb24-nav-active .wp-site-blocks > .wp-block-template-part:first-child:not(#fb24-global-header){
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Kein Restabstand zwischen Plugin-Header und Seiteninhalt */
body.fb24-nav-active .wp-site-blocks{
  margin-top:0!important;
  padding-top:0!important;
  gap:0!important;
  row-gap:0!important;
}
body.fb24-nav-active .wp-site-blocks > main,
body.fb24-nav-active main,
body.fb24-nav-active .wp-block-post-content,
body.fb24-nav-active .entry-content{
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  padding-block-start:0!important;
}

/* Startseite 3.0.7 nicht mehr negativ verschieben */
body.fb24-nav-active .fb24h100-breakout{
  margin-top:0!important;
}

/* Logo vollständig anzeigen */
#fb24-global-header .fb24-nav-brand,
#fb24-global-header .fb24-nav-brand .custom-logo-link{
  overflow:visible!important;
}
#fb24-global-header .fb24-nav-brand img.custom-logo{
  width:420px!important;
  max-width:420px!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  image-rendering:auto!important;
  filter:none!important;
}

@media(max-width:1320px){
  #fb24-global-header{min-height:102px!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo{
    width:350px!important;
    max-width:350px!important;
  }
}
@media(max-width:980px){
  #fb24-global-header{min-height:92px!important}
  #fb24-global-header .fb24-nav-brand img.custom-logo{
    width:285px!important;
    max-width:100%!important;
  }
}


/* === 1.0.11 – Mobile Navigation stabilisiert === */
@media (max-width:980px){
  html.fb24-menu-open, body.fb24-menu-open{overflow:hidden!important;}
  #fb24-global-header{z-index:2147483000!important; isolation:isolate!important;}
  #fb24-global-header .fb24-nav-shell{
    width:100%!important; min-height:82px!important; height:82px!important;
    padding:0 14px!important; gap:10px!important; position:relative!important;
  }
  #fb24-global-header .fb24-nav-brand{
    flex:1 1 auto!important; width:auto!important; min-width:0!important; max-width:calc(100% - 58px)!important;
    margin:0!important; overflow:hidden!important;
  }
  #fb24-global-header .fb24-nav-brand .custom-logo-link{display:flex!important; align-items:center!important; max-width:100%!important;}
  #fb24-global-header .fb24-nav-brand img.custom-logo{
    width:auto!important; max-width:100%!important; height:auto!important; max-height:64px!important; object-fit:contain!important;
  }
  #fb24-global-header .fb24-mobile-menu-button{
    display:flex!important; flex:0 0 48px!important; width:48px!important; height:48px!important;
    align-items:center!important; justify-content:center!important; flex-direction:column!important;
    margin:0 0 0 auto!important; position:relative!important; z-index:3!important; touch-action:manipulation!important;
  }
  #fb24-global-header .fb24-mobile-menu-button span{flex:0 0 auto!important;}
  #fb24-global-header .fb24-primary-navigation{
    display:none!important; position:fixed!important; left:0!important; right:0!important;
    top:var(--fb24-mobile-nav-top,82px)!important; bottom:0!important; width:100%!important; height:auto!important;
    max-height:none!important; margin:0!important; padding:8px 14px 24px!important;
    overflow-y:auto!important; overflow-x:hidden!important; overscroll-behavior:contain!important; -webkit-overflow-scrolling:touch!important;
    background:#fff!important; border-top:1px solid var(--fb24-nav-border)!important; z-index:2147482999!important;
  }
  #fb24-global-header .fb24-primary-navigation.fb24-mobile-open{display:block!important;}
  #fb24-global-header .fb24-nav-list{display:block!important; width:100%!important;}
  #fb24-global-header .fb24-nav-item{width:100%!important;}
  #fb24-global-header .fb24-nav-link-row{display:flex!important; width:100%!important; min-height:52px!important; height:auto!important;}
  #fb24-global-header .fb24-nav-link{min-height:52px!important; height:auto!important; white-space:normal!important;}
  #fb24-global-header .fb24-nav-toggle{display:flex!important; flex:0 0 52px!important; width:52px!important; height:52px!important; touch-action:manipulation!important;}
  #fb24-global-header .fb24-nav-submenu{
    display:none!important; position:static!important; width:100%!important; min-width:0!important;
    opacity:1!important; visibility:visible!important; transform:none!important; pointer-events:auto!important;
  }
  #fb24-global-header .fb24-nav-has-children:hover > .fb24-nav-submenu,
  #fb24-global-header .fb24-nav-has-children:focus-within > .fb24-nav-submenu{display:none!important;}
  #fb24-global-header .fb24-nav-has-children.fb24-submenu-open > .fb24-nav-submenu{display:block!important;}
}
@media (max-width:480px){
  #fb24-global-header .fb24-nav-shell{height:76px!important; min-height:76px!important; padding:0 12px!important;}
  #fb24-global-header .fb24-nav-brand img.custom-logo{max-height:56px!important;}
  #fb24-global-header .fb24-primary-navigation{top:var(--fb24-mobile-nav-top,76px)!important; padding-left:12px!important; padding-right:12px!important;}
}
