/*
 * VMX Globale Hauptnavigation — style-vmx-nav.css
 * Eingefügt nach <header> auf allen Produkt-, Ratgeber- und Ortsseiten.
 * Startseite ausgenommen (hat eigene Nav in style-vmx-startseite.css).
 * Version: 1.0 — Session 11
 */

/* ── Nav-Leiste ── */
.vmx-gnav {
  background: #fffdf7;
  border-bottom: 1px solid rgba(45, 106, 79, .14);
  box-shadow: 0 1px 4px rgba(45, 106, 79, .07);
}

.vmx-gnav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

/* ── Desktop-Links ── */
.vmx-gnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.vmx-gnav-links a {
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.vmx-gnav-links a:hover {
  color: #2d6a4f;
  border-bottom-color: #40916c;
}

.vmx-gnav-links a.vmx-gnav-active,
.vmx-gnav-links a[aria-current="page"] {
  color: #2d6a4f;
  border-bottom-color: #40916c;
}

/* ── Hamburger-Button ── */
.vmx-gnav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.vmx-gnav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2d6a4f;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Mobile-Dropdown ── */
.vmx-gnav-mobile {
  background: #fff;
  border-top: 1px solid rgba(45, 106, 79, .1);
  box-shadow: 0 4px 16px rgba(45, 106, 79, .1);
  padding: 8px 0;
}

.vmx-gnav-mobile[hidden] { display: none; }

.vmx-gnav-mobile a {
  display: block;
  padding: 11px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 106, 79, .07);
}

.vmx-gnav-mobile a:last-child { border-bottom: none; }

.vmx-gnav-mobile a:hover,
.vmx-gnav-mobile a.vmx-gnav-active,
.vmx-gnav-mobile a[aria-current="page"] {
  background: #f0faf3;
  color: #2d6a4f;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .vmx-gnav-links  { display: none; }
  .vmx-gnav-burger { display: flex; }
}

@media (min-width: 769px) {
  .vmx-gnav-mobile { display: none !important; }
}
