/* === Navigation: Hamburger + Fullscreen Overlay === */

/* Hamburger-Button: fixed oben rechts, über allem */
.nav-toggle {
  position: fixed;
  top: var(--pf-control-top, 1.2rem);
  right: 1.2rem;
  z-index: 1100;
  width: var(--pf-control-size, 36px);
  height: var(--pf-control-size, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(14, 14, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: opacity 0.4s ease, background 0.25s ease, border-color 0.25s ease;
  /* Erscheint erst nach Hero-Animation (via JS .nav-ready) */
}

.nav-toggle:hover {
  background: rgba(20, 20, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.52);
}

.nav-toggle.nav-ready {
  opacity: 1;
}

/* 3 Linien */
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  margin: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

/* X beim Öffnen */
.site-nav.open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Fullscreen-Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1099;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.site-nav.open .nav-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Links */
.nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 1.2rem 0;
}

.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 9vw, 110px);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.nav-links a:hover {
  opacity: 0.4;
}

/* Aktive Seite leicht markiert */
.nav-links a.nav-active {
  opacity: 0.5;
}
