/* LAIV Go-live Navigation 31.10.2026: Einheitliches Layout fuer 4 gepruefte Seiten. */
.header { z-index:1000!important; }
.header .wrap.head {
  box-sizing:border-box; width:calc(100% - 36px)!important; max-width:1920px!important;
  min-width:0; margin-left:auto!important; margin-right:auto!important;
  display:flex; align-items:center; gap:14px!important; position:relative;
}
.header .brand {flex:0 0 205px!important; min-width:0!important; max-width:205px!important;}
.header .brand img {width:100%!important; max-width:100%!important; height:auto;}
.header .nav {min-width:0;gap:clamp(7px,.65vw,15px)!important;margin-left:auto;}
.header .nav > a, .header .nav .nav-drop-toggle {font-size:13px!important;white-space:nowrap;}
.header .nav .nav-dropdown {position:relative;min-width:0;}
.header .head-actions {display:flex!important;align-items:center;gap:9px;flex-shrink:0;min-width:0;margin-left:auto;}
/* Gleicher MyLAIV-Knopf auch im NEWS-Header. */
.header .head-actions .laiv-my-link {
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;
  min-height:42px;padding:8px 13px;border:1px solid #0b8792;border-radius:10px;
  background:#f0fafb;color:#075b68;text-decoration:none;
  font:800 14px/1.2 Arial,Helvetica,sans-serif;
}
/* Funktionslose Suchlupe bis zur spaeteren Suchfunktion ausblenden. */
.header .head-actions .search {display:none!important;}
.header .head-actions .member {min-height:44px!important;padding:0 12px!important;font-size:13px!important;white-space:nowrap;flex-shrink:0;}
/* Alte hover- und Fokusregeln nicht mehr zum Oeffnen verwenden. */
.header .nav-dropdown::after {display:none!important;}
.header .nav-dropdown:not(.open) > .nav-dropdown-menu,
.header .nav-dropdown:not(.open) > .nav-menu {
  display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
.header .nav-dropdown.open > .nav-dropdown-menu {
  display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
.header .nav-dropdown.open > .nav-menu {
  display:grid!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
.header .nav-dropdown.open > .nav-dropdown-menu,
.header .nav-dropdown.open > .nav-menu {
  top:calc(100% + 5px);left:0;right:auto;transform:none!important;z-index:1100!important;
  max-height:min(60vh,500px);overflow-y:auto;overscroll-behavior:contain;
}
.header .nav-dropdown:last-of-type > .nav-dropdown-menu,
.header .nav-dropdown:last-of-type > .nav-menu {left:auto;right:0;}
.header .nav-dropdown .nav-caret {transform:none!important;}
.header .nav-dropdown.open .nav-caret {transform:rotate(180deg)!important;}
.header .mobile-toggle {cursor:pointer;flex-shrink:0;}
/* Bei kompakter Ansicht die Desktop-Leiste konsequent ausschalten. */
@media (max-width:1760px) {
  .header .wrap.head {min-height:78px;}
  .header .wrap.head > .nav {display:none!important;}
  .header .mobile-toggle {display:inline-flex!important;align-items:center;justify-content:center;margin-left:0!important;
    background:#fff;border:1px solid #cadce3;border-radius:10px;color:#133e56;
    min-height:44px;padding:8px 14px;font:800 14px/1.2 Arial,Helvetica,sans-serif;}
  .header .head-actions {display:flex!important;margin-left:auto!important;}
  /* Wissen hat ein eigenes kompaktes Menü (.mobile-panel). */
  body.nav-open .header.laiv11f-wissen .wrap.head > .nav {display:none!important;}
  /* Die anderen Seiten verwenden das vorhandene .nav als ausgeklapptes Menü. */
  body.nav-open .header:not(.laiv11f-wissen) .wrap.head > .nav {
    display:flex!important;position:absolute!important;top:calc(100% - 1px)!important;
    left:auto!important;right:0!important;width:min(440px, calc(100vw - 36px))!important;margin:0!important;
    padding:12px 16px 16px!important;flex-direction:column!important;
    align-items:stretch!important;gap:3px!important;background:#fff!important;
    border:1px solid #d9e7ed!important;border-radius:0 0 14px 14px!important;
    box-shadow:0 16px 32px rgba(8,45,67,.18)!important;
    z-index:1200!important;max-height:min(76vh,700px)!important;
    overflow-y:auto!important;overscroll-behavior:contain;
  }
  body.nav-open .header:not(.laiv11f-wissen) .nav .nav-dropdown {display:block!important;width:100%;}
  body.nav-open .header:not(.laiv11f-wissen) .nav > a,
  body.nav-open .header:not(.laiv11f-wissen) .nav .nav-drop-toggle {
    display:block!important;text-align:left!important;font-size:15px!important;
    width:100%!important;padding:11px 10px!important;line-height:1.3;
  }
  body.nav-open .header:not(.laiv11f-wissen) .nav .nav-dropdown.open > .nav-dropdown-menu,
  body.nav-open .header:not(.laiv11f-wissen) .nav .nav-dropdown.open > .nav-menu {
    position:static!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:3px 0 10px!important;transform:none!important;max-height:min(42vh,360px)!important;
    overflow-y:auto!important;border-radius:12px;box-shadow:0 6px 16px rgba(8,45,67,.12)!important;
  }
  body.nav-open .header:not(.laiv11f-wissen) .nav .nav-dropdown-menu::before {display:none!important;}
  .header.laiv11f-wissen .mobile-panel {display:none!important;}
  .header.laiv11f-wissen .mobile-panel.open {
    display:block!important;max-height:75vh;overflow-y:auto;
    background:#fff;border-top:1px solid #e1edf1;box-shadow:0 12px 22px rgba(7,48,72,.12);
  }
}
@media (min-width:1761px){
  .header .wrap.head > .nav {display:flex!important;}
  .header .mobile-toggle {display:none!important;}
  .header.laiv11f-wissen .mobile-panel {display:none!important;}
}
@media (max-width:1020px){
  .header .head-actions .member {display:none!important;}
}
@media (max-width:580px){
  .header .wrap.head {width:calc(100% - 24px)!important;gap:8px!important;}
  .header .brand {flex:0 1 158px!important;max-width:158px!important;}
  .header .head-actions .laiv-my-link {font-size:12px!important;padding:7px 9px!important;min-height:38px!important;}
  .header .mobile-toggle {font-size:13px!important;padding:7px 9px!important;min-height:38px!important;}
}
