/* ═══════════════════════════════════════════════════════════
   kita-nav.css · Styles für <kita-nav>
   Setzt die Design-Tokens aus style.css voraus.
   ═══════════════════════════════════════════════════════════ */

kita-nav {
  display: block;
  /* Platzhalter für die fixed Nav + Topbar (Topbar ~30px + Nav 70px) */
  padding-top: calc(30px + 70px);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.kn-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: var(--amber-dk);
  color: var(--white);
  text-align: center;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 600;
}

/* Nav sitzt direkt unter der Topbar */
.kn-nav {
  position: fixed;
  top: 30px; /* Höhe der Topbar */
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--nav);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(255,255,255,.08);
}

.kn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
}

/* ── Logo ───────────────────────────────────────────────────── */
.kn-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.2;
}
.kn-logo-icon {
  font-size: 2rem;
}
.kn-logo small {
  display: block;
  font-family: 'NeutrafaceTextBook', sans-serif;
  font-weight: 400;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

/* ── Desktop-Links ──────────────────────────────────────────── */
.kn-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kn-links a {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.kn-links a:hover,
.kn-links a.active {
  color: var(--amber-lt);
}

/* ── Action-Buttons ─────────────────────────────────────────── */
.kn-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.kn-btn-members {
  display: none; /* sichtbar nach Login via JS */
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.2rem;
  font-size: .88rem;
  font-family: 'NeutrafaceTextBook', sans-serif;
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.35);
  background: transparent;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.kn-btn-members:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.kn-btn-auth {
  padding: .5rem 1.3rem;
  font-size: .88rem;
  font-family: 'NeutrafaceTextBook', sans-serif;
  font-weight: 700;
  border-radius: var(--r-pill);
  border: none;
  background: var(--amber);
  color: var(--brown);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  display: inline-block;
}
.kn-btn-auth:hover {
  background: var(--amber-dk);
}

/* ── Hamburger-Button ───────────────────────────────────────── */
.kn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.kn-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.kn-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.kn-hamburger.open span:nth-child(2) { opacity: 0; }
.kn-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile-Menü ────────────────────────────────────────────── */
.kn-mobile {
  display: none;
  flex-direction: column;
  background: var(--nav);
  border-top: 1.5px solid rgba(255,255,255,.08);
  padding: .5rem 0 1rem;
  /* Fixed unter der Nav */
  position: fixed;
  top: calc(30px + 70px);
  left: 0;
  right: 0;
  z-index: 199;
}
.kn-mobile a {
  display: flex;
  align-items: center;
  padding: .7rem clamp(1.2rem, 5vw, 3rem);
  font-weight: 600;
  font-size: .93rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s, background .15s;
}
.kn-mobile a:hover {
  color: var(--amber-lt);
  background: rgba(255,255,255,.05);
}
.kn-mobile a:last-child {
  border-bottom: none;
  margin-top: .25rem;
  color: var(--amber-lt);
  font-weight: 700;
}
.kn-mobile.open {
  display: flex;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .kn-links,
  .kn-actions .kn-btn-dark {
    display: none;
  }
  .kn-hamburger {
    display: flex;
  }
}
