/* WGRCMS-Step-0047b Fixed Header Hard Fix */
:root{
  --wgr-fixed-header-height:94px;
}

/* Header wirklich fest oben */
.site-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:2147483000!important;
  height:var(--wgr-fixed-header-height)!important;
  min-height:var(--wgr-fixed-header-height)!important;
  background:#015da8!important;
  box-shadow:0 4px 20px rgba(0,42,86,.24)!important;
  transform:none!important;
}

/* Platz für fixed Header schaffen */
body{
  padding-top:var(--wgr-fixed-header-height)!important;
}

/* Header-Inhalt sauber halten */
.header-inner{
  height:var(--wgr-fixed-header-height)!important;
}

/* Hero darf nicht zusätzlich Abstand erzeugen */
.hero{
  margin-top:0!important;
}

/* Scroll-Ziele */
html{
  scroll-padding-top:calc(var(--wgr-fixed-header-height) + 16px)!important;
}

/* Scroll-Zustand */
.site-header.wgr-scrolled{
  --wgr-fixed-header-height:82px;
}

/* Body Padding folgt per JS genauer, CSS Fallback bleibt */

/* Admin nicht beeinflussen */
body:has(.wgr-admin-sidebar){
  padding-top:0!important;
}

/* Mobile */
@media(max-width:980px){
  :root{
    --wgr-fixed-header-height:150px;
  }

  .site-header{
    height:auto!important;
    min-height:0!important;
  }

  .header-inner{
    height:auto!important;
  }
}
