/* SG BVK – gemeinsamer Website-Header */
/* Nur Navigation und bestehende Header-Anordnung */

/* Dunkelblaue Leiste */
#sgbvk-fleet-inspector .sg-global-nav {
  position: relative;
  z-index: 30;
  width: 100%;
  background: #07283d;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Breite wie auf der Startseite */
#sgbvk-fleet-inspector .sg-global-nav-inner {
  width: min(100%, 1160px);
  min-height: 62px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* SG BVK Logo */
#sgbvk-fleet-inspector .sg-global-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

#sgbvk-fleet-inspector .sg-global-brand img {
  display: block;
  width: 115px;
  height: auto;
  max-height: 33px;
  object-fit: contain;
  object-position: left center;
}

/* Menüpunkte */
#sgbvk-fleet-inspector .sg-global-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}

#sgbvk-fleet-inspector .sg-global-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  color: #f5f9fc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: color .2s ease;
}

#sgbvk-fleet-inspector .sg-global-links a:hover {
  color: #a8eb11;
}

/* Aktive Seite: Fuhrpark */
#sgbvk-fleet-inspector .sg-global-links .sg-global-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: #a8eb11;
  border-radius: 3px;
}

/* Grüner Button wie auf der Startseite */
#sgbvk-fleet-inspector .sg-global-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #a8eb11;
  color: #07283d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  transition: background .2s ease;
}

#sgbvk-fleet-inspector .sg-global-cta:hover {
  background: #c0f344;
}

/* Den vorhandenen Swoosh nur unter die neue Leiste setzen.
   Form und SVG bleiben unverändert. */
#sgbvk-fleet-inspector::before {
  top: 62px !important;
}

/* Das Logo ist bereits oben in der neuen Navigation.
   Keine zweite Darstellung darunter. */
#sgbvk-fleet-inspector .fi-header > .fi-logo {
  display: none !important;
}

/* Vorhandene Inspektor-Steuerung rechts beibehalten */
#sgbvk-fleet-inspector .fi-header {
  grid-template-columns:
    minmax(0, 1fr) auto 54px !important;
}

#sgbvk-fleet-inspector .fi-header > .fi-tabs {
  grid-column: 2;
}

#sgbvk-fleet-inspector .fi-header > .fi-main-menu {
  grid-column: 3;
}

/* Tablet: Navigation kompakter */
@media (max-width: 1050px) {
  #sgbvk-fleet-inspector .sg-global-nav-inner {
    gap: 14px;
    padding: 8px 18px;
  }

  #sgbvk-fleet-inspector .sg-global-links {
    gap: 12px;
  }

  #sgbvk-fleet-inspector .sg-global-links a {
    font-size: 12px;
  }

  #sgbvk-fleet-inspector .sg-global-cta {
    padding: 10px;
    font-size: 12px;
  }
}

/* Smartphone: Logo, kompakte Navigation und Anfrage */
@media (max-width: 760px) {
  #sgbvk-fleet-inspector .sg-global-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 10px 15px 8px;
  }

  #sgbvk-fleet-inspector .sg-global-brand img {
    width: 110px;
  }

  #sgbvk-fleet-inspector .sg-global-cta {
    grid-column: 2;
    grid-row: 1;
    min-height: 34px;
  }

  #sgbvk-fleet-inspector .sg-global-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #sgbvk-fleet-inspector .sg-global-links::-webkit-scrollbar {
    display: none;
  }

  #sgbvk-fleet-inspector .sg-global-links a {
    font-size: 12px;
    min-height: 34px;
  }

  #sgbvk-fleet-inspector::before {
    top: 101px !important;
  }

  #sgbvk-fleet-inspector .fi-header {
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }

  #sgbvk-fleet-inspector .fi-header > .fi-tabs {
    grid-column: 1;
  }

  #sgbvk-fleet-inspector .fi-header > .fi-main-menu {
    grid-column: 2;
  }
}