/* WGRCMS-Step-0024c Exact Header Fix */

/* Header exakt kontrollieren */
.site-header{
  background:#0062a9!important;
  height:102px!important;
  min-height:102px!important;
  max-height:102px!important;
  overflow:hidden!important;
  box-shadow:0 3px 14px rgba(0,0,0,.14)!important;
}

.header-inner{
  height:102px!important;
  min-height:102px!important;
  max-height:102px!important;
  padding:0 28px!important;
  display:flex!important;
  align-items:center!important;
  gap:28px!important;
  overflow:hidden!important;
}

/* Logo NIE beschneiden */
.brand{
  flex:0 0 360px!important;
  width:360px!important;
  min-width:360px!important;
  max-width:360px!important;
  height:82px!important;
  min-height:82px!important;
  max-height:82px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  transform:none!important;
}

.brand img{
  display:block!important;
  width:330px!important;
  max-width:330px!important;
  min-width:330px!important;
  height:auto!important;
  max-height:76px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  position:static!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  clip-path:none!important;
  background:transparent!important;
}

/* Navigation stabil rechts */
.main-nav{
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:22px!important;
  margin:0!important;
  min-width:0!important;
  height:102px!important;
  overflow:hidden!important;
}

.main-nav a{
  display:flex!important;
  align-items:center!important;
  height:102px!important;
  padding:0!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:800!important;
  color:#fff!important;
  border-bottom:3px solid transparent!important;
  white-space:nowrap!important;
}

.main-nav a:hover,
.main-nav a:first-child{
  border-bottom-color:#fff!important;
}

.header-contact{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  height:102px!important;
  font-size:12px!important;
  font-weight:600!important;
  color:#fff!important;
  opacity:.95!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}

/* Alte Header-Fehler neutralisieren */
.site-header *{
  box-sizing:border-box!important;
}

/* Mobile bewusst umbrechen */
@media(max-width:1200px){
  .site-header{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .header-inner{
    height:auto!important;
    max-height:none!important;
    padding:16px 22px!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
  }
  .brand{
    flex:0 0 320px!important;
    width:320px!important;
    min-width:320px!important;
    max-width:320px!important;
    height:72px!important;
  }
  .brand img{
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
    max-height:68px!important;
  }
  .main-nav{
    order:3!important;
    width:100%!important;
    flex:0 0 100%!important;
    height:auto!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
  }
  .main-nav a{
    height:auto!important;
    padding:8px 0!important;
  }
  .header-contact{
    margin-left:auto!important;
    height:auto!important;
  }
}

@media(max-width:620px){
  .brand{
    flex:0 0 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .brand img{
    width:280px!important;
    min-width:0!important;
    max-width:280px!important;
  }
  .header-contact{
    flex-wrap:wrap!important;
    margin-left:0!important;
  }
}
