/* MW Header – setzt mw-base.css voraus. Logo via Design > Customizer > Website-Informationen. */
:root {
  --mw-header-expanded: 250px;
  --mw-header-compact: 100px;
  --mw-header-mobile: 88px;
  --mw-header-logo-height: 88px;
}
/* Platz für fixed-Header, damit sich WPBakery-Inhalte nicht darunter schieben */
body { padding-top: var(--mw-header-expanded); }
body.admin-bar { --mw-admin-offset: 32px; }
body:not(.admin-bar) { --mw-admin-offset: 0px; }
.mw-site-header {
  position: fixed;
  z-index: 10000;
  top: var(--mw-admin-offset);
  inset-inline: 0;
  height: var(--mw-header-expanded);
  background: rgba(255,255,255,.97);
  /*border-bottom: 1px solid rgba(57,92,101,.08);*/
  transition: height .28s ease, box-shadow .28s ease;
  isolation: isolate;
  margin-bottom:1.5em;
}
.mw-site-header__pattern {
  position: absolute; inset: 0; z-index: -1;
  opacity: .30;
  /* Leises Punktband, 48px Tile; horizontal endlos animiert */
  background-image: radial-gradient(circle, rgba(80,188,189,1) 1px, transparent 1.6px);
  background-size: 32px 32px;
  /*animation: mw-points-loop 22s linear infinite;*/
  pointer-events: none;
  height:150px;
  transition: all .2s ease, box-shadow .2s ease;
}

body.mw-header-is-compact .mw-site-header__pattern {
  height:50px;
  background-size: 16px 16px;
}

@keyframes mw-points-loop { from { background-position: 0 0; } to { background-position: -480px 0; } }
.mw-site-header__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3em;
  padding-block: 13px;
}
.mw-site-header__identity { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; }
.mw-site-header__logo { display: flex; align-items: center; justify-content: center; }
.mw-site-header__logo .custom-logo-link { display: block; line-height: 0; }
.mw-site-header__logo img { width: auto; max-width: min(380px, 72vw); height: var(--mw-header-logo-height); object-fit: contain; transition: height .28s ease; }
.mw-site-header__name { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--mw-primary-dark); }
.mw-site-header__claim { color: var(--mw-primary); font-size: 17.5px; line-height: 1; letter-spacing: .025em; font-weight: 600;opacity:1;
  transition: all .2s ease, box-shadow .2s ease; }

body.mw-header-is-compact .mw-site-header__claim{
  opacity:0;
}

.mw-site-header__nav { width: min(1440px,100%); }
.mw-site-header__menu { list-style: none; display: flex; gap: clamp(12px,2.5vw,50px); align-items: center; margin: 0; padding: 0; }
.mw-site-header__menu > li { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.mw-site-header__menu > li > a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 5px 12px; border-radius: 999px;
  background: var(--mw-primary); color: #fff; line-height: 1.5;
  font-size: 1.25em; font-weight: 700; white-space: nowrap;
  box-shadow: 13px 11px 12px 5px rgba(57, 92, 101, 0.25);
  transition: all .2s ease, box-shadow .2s ease;
}

body.mw-header-is-compact .mw-site-header__menu > li > a{
  font-size: 1em;
}

.mw-site-header__menu > li > a:hover,
.mw-site-header__menu > li > a:focus-visible,
.mw-site-header__menu > li.current-menu-item > a,
.mw-site-header__menu > li.current-menu-ancestor > a { background: var(--mw-primary-dark); color: #fff; }
.mw-site-header__toggle { display: none; }
/* Header schrumpft beim Scrollen; nur Logo/Abstände, Menüs bleiben intakt */
body.mw-header-is-compact .mw-site-header { height: var(--mw-header-compact); box-shadow: 0 6px 22px rgba(22,43,47,.08); }
body.mw-header-is-compact .mw-site-header__inner { flex-direction: row; justify-content: space-between; gap: 24px; padding-block: 8px; }
body.mw-header-is-compact .mw-site-header__identity { flex: 0 1 auto; }
body.mw-header-is-compact .mw-site-header__logo img { height: 48px; }
body.mw-header-is-compact .mw-site-header__name { font-size: 22px; }
body.mw-header-is-compact .mw-site-header__claim { font-size: 10px; white-space: nowrap; }
body.mw-header-is-compact .mw-site-header__nav { flex: 1 1 730px; max-width: 730px; }
/* Mobiles Menü: echte Overlay-Ebene, keine Buttons hinter Header */
.mw-mobile-menu { display: none; }
@media (max-width: 900px) {
  :root { --mw-header-expanded: var(--mw-header-mobile); --mw-header-compact: var(--mw-header-mobile); --mw-header-logo-height: 45px; }
  .mw-site-header, body.mw-header-is-compact .mw-site-header { height: var(--mw-header-mobile); }
  .mw-site-header__inner, body.mw-header-is-compact .mw-site-header__inner {
    flex-direction: row; justify-content: space-between; gap: 12px; padding-block: 10px;
  }
  .mw-site-header__identity, body.mw-header-is-compact .mw-site-header__identity { align-items: flex-start; }
  .mw-site-header__logo img, body.mw-header-is-compact .mw-site-header__logo img { height: 45px; max-width: min(255px, 65vw); }
  .mw-site-header__claim, body.mw-header-is-compact .mw-site-header__claim { font-size: 9px; white-space: normal; }
  .mw-site-header__nav { display: none; }
  .mw-site-header__toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 48px; height: 48px; flex: 0 0 48px;
    border: 0; border-radius: 50%; background: var(--mw-primary); cursor: pointer;
    position: relative; z-index: 10002;
  }
  .mw-site-header__toggle span { display: block; width: 23px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  body.mw-menu-open .mw-site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.mw-menu-open .mw-site-header__toggle span:nth-child(2) { opacity: 0; }
  body.mw-menu-open .mw-site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mw-mobile-menu {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; z-index: 9999;
    inset: calc(var(--mw-admin-offset) + var(--mw-header-mobile)) 0 0;
    overflow-y: auto; padding: 24px var(--mw-gutter) 48px;
    background: rgba(255,255,255,.99);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }
  body.mw-menu-open .mw-mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; }
  body.mw-menu-open { overflow: hidden; }
  .mw-mobile-menu__nav { width: min(100%, 440px); }
  .mw-mobile-menu__list { display: flex; flex-direction: column; gap: 18px; list-style: none; padding: 0; margin: 0; }
  .mw-mobile-menu__list li { margin: 0; padding: 0; }
  .mw-mobile-menu__list a {
    display: block; text-align: center; width: 100%; padding: 15px 24px;
    border-radius: 999px; background: var(--mw-primary); color: white;
    font-size: clamp(18px,5vw,23px); font-weight: 700; line-height: 1.35;
  }
  .mw-mobile-menu__list a:hover,
  .mw-mobile-menu__list a:focus-visible,
  .mw-mobile-menu__list .current-menu-item > a { background: var(--mw-primary-dark); color: white; }
}
@media (max-width: 782px) { body.admin-bar { --mw-admin-offset: 46px; } }
@media (max-width: 600px) { body.admin-bar { --mw-admin-offset: 0px; } }
@media (prefers-reduced-motion: reduce) {
  .mw-site-header__pattern { animation: none; }
  .mw-site-header, .mw-site-header__logo img, .mw-mobile-menu, .mw-site-header__toggle span { transition: none; }
}
