/* =========================================================
   Header (Desktop ≥ 1100px) + Mega-Menü
========================================================= */
#masthead.gb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  transition: transform .35s var(--gb-ease), box-shadow .3s;
  will-change: transform;
}
.admin-bar #masthead.gb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead.gb-header { top: 46px; } }
.gb-header-spacer { height: var(--gb-header-h); }
body.gb-compact #masthead.gb-header { box-shadow: 0 8px 30px -18px rgba(35, 38, 41, .45); }

.gb-mh, .gb-mm { display: none; }

/* Obere Leiste */
.gb-topbar { background: var(--gb-navy); color: #fff; font-size: 12.5px; }
.gb-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 20px; }
.gb-topbar__text { color: rgba(255, 255, 255, .92); }
.gb-topbar__right { display: flex; align-items: center; gap: 34px; }
.gb-topbar__menu { display: flex; gap: 28px; }
.gb-topbar a { color: rgba(255, 255, 255, .92); }
.gb-topbar a:hover { color: var(--gb-azure); }
.gb-topbar__phone { display: inline-flex; align-items: center; gap: 6px; }
.gb-topbar__phone .gb-ico { font-size: 11px; }

/* Logo-Zeile */
.gb-headmain__inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 30px; }
.gb-headmain__logo img { width: 236px; height: auto; }
.gb-headmain__right { display: flex; align-items: center; gap: 0; }
.gb-headinfo { display: flex; flex-direction: column; gap: 4px; padding: 0 26px; line-height: 1.25; }
.gb-headinfo + .gb-headinfo { border-left: 1px solid var(--gb-line); }
.gb-headinfo__label { font-size: 11.5px; color: #6B7785; }
.gb-headinfo__value { font-size: 19px; color: var(--gb-sky); letter-spacing: -.01em; }
.gb-headinfo__value--sm { font-size: 12.5px; letter-spacing: 0; }
a.gb-headinfo:hover .gb-headinfo__value { color: var(--gb-sky-dark); }
.gb-headmain__right .gb-btn { margin-left: 18px; min-height: 46px; gap: 26px; font-size: 14.5px; }

/* Navigation */
.gb-navbar { position: relative; }
.gb-navbar__inner { display: flex; align-items: center; border-top: 1px solid var(--gb-line); min-height: 52px; position: static; }
.gb-navbar__mark, .gb-navbar__cta {
  flex: 0 0 auto; overflow: hidden; max-width: 0; opacity: 0; pointer-events: none;
  transition: max-width .35s var(--gb-ease), opacity .25s, margin .35s var(--gb-ease);
}
.gb-navbar__mark img { width: 30px; height: auto; }
.gb-navbar__cta { min-height: 40px; padding: 0 16px; gap: 12px; font-size: 13.5px; }
body.gb-compact .gb-navbar__mark { max-width: 60px; opacity: 1; pointer-events: auto; margin-right: 34px; }
body.gb-compact .gb-navbar__cta { max-width: 260px; opacity: 1; pointer-events: auto; margin-left: 34px; }
body.gb-compact .gb-navbar__inner { border-top-color: transparent; }

.gb-nav { flex: 1; }
.gb-nav__list { display: flex; justify-content: space-between; align-items: stretch; }
.gb-nav__item { position: static; display: flex; }
.gb-nav__item.has-drop { position: relative; }
.gb-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 6px; color: var(--gb-charcoal) !important; font-size: 14.5px; letter-spacing: 0;
  position: relative;
}
.gb-nav__link .gb-ico { font-size: 12px; margin-top: 4px; transition: transform .25s var(--gb-ease); color: var(--gb-sky-light); }
.gb-nav__link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px; background: var(--gb-azure);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--gb-ease);
}
.gb-nav__item:hover > .gb-nav__link, .gb-nav__item.is-open > .gb-nav__link { color: var(--gb-sky) !important; }
.gb-nav__item.is-open > .gb-nav__link .gb-ico { transform: rotate(180deg); }
.gb-nav__item.is-current > .gb-nav__link::after, .gb-nav__item.is-open > .gb-nav__link::after { transform: scaleX(1); }
.gb-nav__item:first-child .gb-nav__link { padding-left: 0; }
.gb-nav__item:first-child .gb-nav__link::after { left: 0; }
.gb-nav__item:last-child .gb-nav__link { padding-right: 0; }

/* Mega-Panel */
.gb-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--gb-line);
  box-shadow: 0 30px 50px -30px rgba(35, 38, 41, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s var(--gb-ease), visibility 0s linear .22s;
  z-index: 5;
}
.gb-nav__item.is-open > .gb-mega { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
/* uitgelijnd met de header-container (zoals DirectClinics): tekst | links | vast contactblok */
.gb-mega__inner.container {
  display: grid; gap: 0 48px; align-items: stretch;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) 340px;
}
.gb-mega__intro, .gb-mega__links { padding-top: 36px; padding-bottom: 40px; }
.gb-mega__intro { padding-left: 0; }
.gb-mega__intro .gb-kicker { margin-bottom: 18px; }
.gb-mega__title { font-size: 22px; line-height: 1.18; color: var(--gb-charcoal); letter-spacing: -.022em; margin-bottom: 14px; }
.gb-mega__title .gb-serif { font-family: var(--gb-serif); font-weight: 400; }
.gb-mega__text { color: var(--gb-muted); font-size: 14.5px; line-height: 1.75; max-width: 320px; }
.gb-mega__intro .gb-btn { margin-top: 22px; }
.gb-mega__links { display: block; }
.gb-mega__links--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.gb-mega__links--2 li:nth-child(2) .gb-mega__link { padding-top: 6px; }
.gb-mega__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--gb-line);
  color: var(--gb-charcoal) !important; font-size: 15px; font-weight: 400;
  transition: color .2s, padding .25s var(--gb-ease);
}
.gb-mega__links li:first-child .gb-mega__link { padding-top: 6px; }
.gb-mega__link .gb-ico { font-size: 13px; color: var(--gb-charcoal); transition: transform .25s var(--gb-ease); }
.gb-mega__link:hover, .gb-mega__link.is-current { color: var(--gb-sky) !important; padding-left: 6px; }
.gb-mega__link:hover .gb-ico { transform: translateX(3px); color: var(--gb-sky); }
.gb-mega__sub a { display: block; padding: 6px 0 6px 14px; font-size: 14px; color: var(--gb-muted); }
/* Vast contactblok rechts */
.gb-mega__contact {
  align-self: stretch; margin: 24px 0; padding: 28px 30px;
  background: var(--gb-grey); border-radius: var(--gb-radius-lg);
}
.gb-mega__contact-title { font-family: var(--gb-serif); font-size: 22px; line-height: 1.2; color: var(--gb-charcoal); margin-bottom: 18px; }
.gb-mega__contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--gb-charcoal) !important; font-size: 15px; line-height: 1.45; }
.gb-mega__contact-row .gb-ico { color: var(--gb-sky); font-size: 17px; margin-top: 2px; }
a.gb-mega__contact-row:hover { color: var(--gb-sky) !important; }
.gb-mega__contact-row--note { color: var(--gb-muted) !important; font-size: 14px; }
.gb-mega__contact-links { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gb-line-2); }
.gb-mega__contact-links a { color: var(--gb-sky); font-size: 14.5px; }
.gb-mega__contact-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Einfaches Dropdown (ohne Mega) */
.gb-drop {
  position: absolute; top: 100%; left: -18px; min-width: 260px; padding: 10px;
  background: #fff; border-radius: var(--gb-radius-lg); box-shadow: var(--gb-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; z-index: 5;
}
.gb-nav__item.is-open > .gb-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.gb-drop__link { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--gb-radius); color: var(--gb-charcoal) !important; font-size: 14.5px; }
.gb-drop__link:hover { background: var(--gb-grey); color: var(--gb-sky) !important; }
.gb-drop--sub { display: none; }

@media (max-width: 1299.98px) {
  .gb-mega__inner.container { gap: 0 36px; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) 300px; }
  .gb-mega__contact { padding: 24px 24px; }
  .gb-headinfo { padding: 0 18px; }
}

/* =========================================================
   Mobiel (< 1100px) - zelfde werking als DirectClinics
========================================================= */
@media (max-width: 1099.98px) {
  .gb-dh { display: none; }
  .gb-mh { display: block; }
  .gb-mm { display: flex; }

  .gb-mh__top {
    background: var(--gb-navy); color: rgba(255, 255, 255, .92);
    font-size: 12px; text-align: center;
    max-height: 34px; overflow: hidden; transition: max-height .3s ease, opacity .25s ease;
  }
  .gb-mh__top p { line-height: 34px; padding: 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.gb-m-scrolled .gb-mh__top { max-height: 0; opacity: 0; }
  .gb-mh__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 10px 18px; min-height: 66px; border-bottom: 1px solid var(--gb-line); }
  .gb-mh__logo img { width: 172px; height: auto; }
  .gb-mh__actions { display: flex; align-items: center; gap: 2px; }
  .gb-mh__call { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--gb-sky); }
  .gb-mh__call .gb-ico { font-size: 21px; }
  .gb-mh__toggle {
    width: 46px; height: 46px; padding: 11px; border: 0; background: transparent; cursor: pointer;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  }
  .gb-mh__toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--gb-sky); transition: transform .25s ease, opacity .2s ease; }
  .gb-mh__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .gb-mh__toggle.is-open span:nth-child(2) { opacity: 0; }
  .gb-mh__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Menüpaneel */
  .gb-mm {
    position: fixed; inset: 0; z-index: 990;
    flex-direction: column; background: #fff;
    padding-top: var(--gb-mm-top, 100px);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  body.gb-menu-open { overflow: hidden; }
  body.gb-menu-open .gb-mm { opacity: 1; visibility: visible; transform: none; }
  .gb-mm__body { flex: 1 1 auto; position: relative; overflow: hidden; }
  .gb-mm__panels { position: absolute; inset: 0; }
  .gb-mm__panel {
    position: absolute; inset: 0; overflow-y: auto; padding: 10px 22px 22px; background: #fff;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .gb-mm__panel.is-active { transform: translateX(0); }
  .gb-mm__panel.is-past { transform: translateX(-100%); }

  .gb-m-nav .gb-m-item { border-bottom: 1px solid var(--gb-line); }
  .gb-m-row { display: flex; align-items: center; justify-content: space-between; }
  .gb-m-link { flex: 1; display: block; padding: 11px 2px; color: var(--gb-charcoal) !important; font-size: 15px; letter-spacing: 0; }
  .gb-m-link.is-current { color: var(--gb-sky) !important; }
  .gb-m-open { width: 46px; height: 46px; border: 0; background: transparent; color: var(--gb-sky); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .gb-m-open .gb-ico { font-size: 22px; }
  .gb-m-sub { display: none; }
  .gb-m-nav--meta { margin-top: 18px; }
  .gb-m-nav--meta .gb-m-item { border-bottom: 0; }
  .gb-m-nav--meta .gb-m-link { font-size: 15px; padding: 8px 2px; color: var(--gb-muted) !important; font-weight: 400; }

  .gb-mm-subhead { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--gb-line); margin-bottom: 4px; }
  .gb-mm-back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gb-grey); color: var(--gb-sky); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
  .gb-mm-back .gb-ico { font-size: 20px; }
  .gb-mm-subhead h3 { margin: 0; font-family: var(--gb-serif); font-weight: 400; font-size: 21px; color: var(--gb-charcoal); }
  .gb-m-all .gb-m-link { color: var(--gb-sky) !important; }

  .gb-mm__foot { flex: 0 0 auto; }
  .gb-mm__cta { display: flex; gap: 12px; padding: 14px 22px 14px; }
  .gb-mm__plan {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--gb-radius-pill);
    background: var(--gb-sky); color: #fff !important; font-size: 15px;
  }
  .gb-mm__call { width: 84px; border-radius: var(--gb-radius-pill); background: var(--gb-azure); color: var(--gb-charcoal) !important; display: inline-flex; align-items: center; justify-content: center; }
  .gb-mm__call .gb-ico { font-size: 22px; }
  .gb-mm__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; background: var(--gb-navy); }
  .gb-mm__bottom a, .gb-mm__lang-toggle { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-size: 13.5px; background: none; border: 0; padding: 0; }
  .gb-mm__lang .gb-m-sub { display: none; }
}

@media (max-width: 400px) {
  .gb-mh__logo img { width: 150px; }
}
