/* Kompakte Navigation in den Stein- und Goldtönen der Website. */
/* Keine flächige Abdunklung hinter der Navigation. */
body > .hero-bg-wrap + div {
  display: none;
}
/* Das Startbild gehört ausschließlich zur Startseite. */
body:has(#page-start:not(.active)) > .hero-bg-wrap {
  visibility: hidden;
}
body > nav {
  position: fixed;
  left: 0;
  right: 0;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  top: 8px;
  background: #22211f;
  border: 1px solid rgba(184, 151, 90, .28);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .10), 0 8px 20px -5px rgba(0, 0, 0, .24);
}
/* Der jeweilige Seitenhintergrund reicht bis ganz oben unter die Navigation.
   Der transparente Abstand hält Überschriften außerhalb der Leiste. */
body > .page > :first-child {
  border-top: 70px solid transparent;
  background-clip: border-box;
}
body > nav .nav-inner {
  max-width: none;
  min-height: 52px;
  height: auto;
  padding: 6px 10px;
  justify-content: center;
}
body > nav .nav-right { margin: 0; min-width: 0; }
body > nav .nav-links { align-items: center; gap: 6px; }
body > nav .menu-close-li { display: none !important; }
body > nav .nav-links li a {
  padding: 8px 14px;
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--cream);
  border-radius: 10px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
body > nav .nav-links li a:hover { background: rgba(184, 151, 90, .10); color: var(--cream); }
body > nav .nav-links li a.active { background: rgba(184, 151, 90, .18); color: var(--goldl); }
body > nav .nav-links li a.active::after { content: none; }
body > nav #lang-toggle {
  margin-left: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(184, 151, 90, .28);
  border-radius: 10px;
  opacity: 1 !important;
}
body > nav .hamburger span { background: var(--goldl); }
body > nav .nav-back-btn,
body > nav .nav-back-btn:hover,
body > nav .nav-back-btn:focus {
  background: rgba(184, 151, 90, .18);
  color: var(--goldl);
  border-radius: 12px;
}
/* Touch-Browser können :hover nach dem Tippen festhalten.
   Eine hellere Fläche deshalb nur während des tatsächlichen Drückens. */
body > nav .nav-back-btn:active {
  background: rgba(184, 151, 90, .32);
}
@media (hover: none), (pointer: coarse) {
  body > nav .nav-back-btn { transition: none; }
}
body > nav .search-btn { color: var(--goldl); }
body > nav :is(a, button):focus-visible { outline: 2px solid var(--goldl); outline-offset: 3px; }

@media (max-width: 800px) {
  body > nav {
    width: calc(100% - 24px);
    max-width: none;
    margin: 0 auto;
    top: 8px;
    border: 1px solid rgba(184, 151, 90, .28);
    border-radius: 16px;
    background: #22211f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .10), 0 8px 20px -5px rgba(0, 0, 0, .24);
  }
  body > nav .nav-inner { min-height: 52px; padding: 4px 12px; justify-content: space-between; }
  body > nav .nav-left { width: auto; overflow: visible; }
  body > nav .nav-back-btn { display: flex !important; min-height: 44px; }
  body > nav .nav-back-btn.on-start { display: none !important; }
  body > nav .nav-right { margin-left: auto; }
  body > nav .hamburger { display: flex !important; min-width: 44px; min-height: 44px; padding: 10px; margin: 0; border: 0; }
  body > nav .nav-links {
    display: none !important;
    position: fixed;
    inset: 70px 12px auto;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
    background: #22211f;
    border: 1px solid rgba(184, 151, 90, .28);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(30, 26, 18, .15);
  }
  body > nav .nav-links.mobile-open { display: flex !important; }
  body > nav .nav-links li { width: 100%; border: 0; text-align: left; }
  body > nav .nav-links li a { padding: 13px 16px; font-size: .95rem; }
  body > nav #lang-toggle { margin: 4px 0 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body > nav .nav-links li a { transition: none; }
}
