/* ══════════════════════════════════════════════════════
   Geteilte Hauptnavigation — identisch auf allen Seiten.
   Muss NACH dem seiteneigenen <style> geladen werden.
   ══════════════════════════════════════════════════════ */

body > nav:not(.post-nav) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 3rem;
  background: rgba(0, 62, 44, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  transition: padding 0.3s;
}

body > nav:not(.post-nav) .nav-logo { flex-shrink: 0; display: block; line-height: 0; }
body > nav:not(.post-nav) .nav-logo img { height: 54px; width: auto; transition: height 0.3s; display: block; }

body > nav:not(.post-nav) .nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
body > nav:not(.post-nav) .nav-links > li { position: static; }
body > nav:not(.post-nav) .nav-links a,
body > nav:not(.post-nav) .nav-mega-toggle {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(251, 247, 236, 0.82);
  text-decoration: none; white-space: nowrap;
  transition: color 0.25s;
}
body > nav:not(.post-nav) .nav-links a:hover { color: var(--gold, #C9A961); }
body > nav:not(.post-nav) .nav-insta {
  color: var(--gold, #C9A961) !important;
  display: inline-flex; align-items: center; gap: 5px; line-height: 1;
}
body > nav:not(.post-nav) .nav-insta svg { display: block; margin-top: -1px; }

body > nav:not(.post-nav) .nav-cta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green, #003E2C);
  background: var(--gold, #C9A961);
  padding: 0.65rem 1.4rem;
  border: none; cursor: pointer; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.25s, transform 0.2s;
}
body > nav:not(.post-nav) .nav-cta:hover { background: var(--gold-light, #dfc07a); transform: translateY(-1px); }

/* ── Mega-Menu ───────────────────────────────────────── */
.nav-mega { position: static; }
.nav-mega-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: none; padding: 0; cursor: pointer;
}
.nav-mega-toggle:hover,
.nav-mega.open .nav-mega-toggle { color: var(--gold, #C9A961); }
.nav-mega-toggle svg { width: 10px; height: 10px; transition: transform 0.2s; flex-shrink: 0; }
.nav-mega.open .nav-mega-toggle svg { transform: rotate(180deg); }

.nav-mega-panel {
  position: fixed; top: 86px; left: 0; right: 0;
  background: #002a1f;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  padding: 2.6rem 3rem 2.8rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 99;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 86px);
  overflow-y: auto;
}
.nav-mega.open .nav-mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

.nav-mega-inner {
  max-width: 1280px; margin: 0 auto;
  column-count: 4; column-gap: 2.6rem;
}
.nav-mega-col { break-inside: avoid; margin-bottom: 1.9rem; display: inline-block; width: 100%; }
.nav-mega-col h4 {
  font-family: 'Didot', serif;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold, #C9A961);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.24);
}
.nav-mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.42rem; }
.nav-mega-col a {
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.8rem !important; font-weight: 300 !important;
  letter-spacing: 0.01em !important; text-transform: none !important;
  color: rgba(251, 247, 236, 0.82) !important;
  text-decoration: none; display: block;
  transition: color 0.18s, padding-left 0.18s;
}
.nav-mega-col a:hover { color: var(--gold, #C9A961) !important; padding-left: 6px; }

/* ── Hamburger ───────────────────────────────────────── */
body > nav:not(.post-nav) .hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
body > nav:not(.post-nav) .hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--beige, #FBF7EC); transition: transform 0.25s, opacity 0.25s;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1280px) {
  body > nav:not(.post-nav) { padding: 1rem 2rem; }
  body > nav:not(.post-nav) .nav-links { gap: 1.1rem; }
  body > nav:not(.post-nav) .nav-links a,
  body > nav:not(.post-nav) .nav-mega-toggle { font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav-mega-inner { column-count: 3; }
}

@media (max-width: 1024px) {
  body > nav:not(.post-nav) .nav-links,
  body > nav:not(.post-nav) .nav-cta { display: none; }
  body > nav:not(.post-nav) .hamburger { display: flex; }
}

@media (max-width: 1024px) {
  /* Mobile: Nav-Links als Overlay, Mega-Menu als Accordion darin */
  body > nav:not(.post-nav).menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap;
    gap: 1.1rem;
    position: fixed; top: 78px; left: 0; right: 0;
    max-height: calc(100vh - 78px); overflow-y: auto;
    background: #002a1f;
    border-top: 1px solid rgba(201, 169, 97, 0.25);
    padding: 1.8rem 1.5rem 2.5rem;
    z-index: 99;
  }
  body > nav:not(.post-nav).menu-open .nav-links a,
  body > nav:not(.post-nav).menu-open .nav-mega-toggle { font-size: 0.78rem; letter-spacing: 0.14em; }
  body > nav:not(.post-nav).menu-open .nav-links > li { width: 100%; }

  .nav-mega-panel {
    position: static; max-height: none; overflow: visible;
    background: transparent; border: none; box-shadow: none;
    padding: 0; transform: none;
    display: none;
  }
  .nav-mega.open .nav-mega-panel { display: block; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-mega-inner { column-count: 1; padding: 1.2rem 0 0.4rem; }
  .nav-mega-col { margin-bottom: 1.4rem; }
  .nav-mega-col h4 { font-size: 0.66rem; }
  .nav-mega-col a { font-size: 0.85rem !important; }
}

@media (max-width: 768px) {
  body > nav:not(.post-nav) { padding: 0.85rem 1.4rem; }
  body > nav:not(.post-nav) .nav-logo img { height: 46px; }
  body > nav:not(.post-nav).menu-open .nav-links { top: 66px; max-height: calc(100vh - 66px); }
}
