.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all .4s var(--e);
}

.nav.stuck {
  background: rgba(31, 55, 84, .97);
  backdrop-filter: blur(16px);
  padding: .6rem 0;
  box-shadow: 0 1px 24px rgba(0, 0, 0, .15);
}

.nav.stuck .brand-mark {
  padding: 0.38rem;
}

.nav.stuck .brand-mark img {
  height: clamp(36px, 4.2vw, 48px);
}

/* Rechtstexte & Co.: sofort dunkle Leiste – sonst weiße Menü-Schrift auf hellem Seitenhintergrund */
body:has(main.legal-page) .nav {
  background: rgba(31, 55, 84, .97);
  backdrop-filter: blur(16px);
  padding: .6rem 0;
  box-shadow: 0 1px 24px rgba(0, 0, 0, .15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.98;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--og);
  outline-offset: 4px;
}

/* Logo-Größe / Kachel: .brand-mark in base.css */

.nav-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.2;
}

.nav-logo-sub {
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .5;
}

/* ── Menu links ── */

.nm {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nm a {
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  font-weight: 500;
  transition: color .25s;
}

.nm a:hover {
  color: var(--og);
}

.nb {
  background: var(--or) !important;
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 5px;
  font-weight: 600 !important;
}

.nb:hover {
  background: var(--od) !important;
}

/* ── Burger ── */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: 0;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Mobile ── */

@media (max-width: 900px) {
  .nm {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 55, 84, .98);
    backdrop-filter: blur(14px);
    padding: 1rem 2rem;
    gap: .6rem;
  }

  .nav.open .nm {
    display: flex;
  }

  .burger {
    display: flex;
  }
}
