/* Shared Header / Nav */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

/* Schiebt nav-links + Startnext nach rechts */
.nav-links {
  margin-left: auto;
}

.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nav-logo-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: -0.24rem;
  transition: color 0.2s;
}

.nav-logo-sub:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-mark {
  display: block;
  width: auto;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.nav-btn-primary {
  background: #D1353B;
  color: #ffffff !important;
}

.nav-btn-primary:hover {
  background: #B3282F;
  transform: translateY(-1px);
}

.nav-btn-secondary {
  background: #16213E;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.12);
}

.nav-btn-secondary:hover {
  background: #20304f;
  border-color: rgba(255,255,255,0.25);
}

/* ── Hamburger toggle – hidden on desktop ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
  /* Touch-Target min. 44×44px: 10px + 24px + 10px = 44px */
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .nav-logo-mark {
    height: 34px;
  }

  .nav-logo-sub {
    margin-top: -0.16rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 280px);
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 76px 24px 24px;
    gap: 0;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 105;
  }

  .nav-links.is-open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Startnext: immer im Header sichtbar, nicht im Slide-out */
  .nav-startnext {
    margin-left: auto;
    margin-top: 0;
    width: auto;
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
  }
}
