/* --- Navigation allgemein --- */

/* Language switcher */
.lang-wrap { display:flex; align-items:center; gap:.5rem; }
.lang-select {
  padding:.45rem .6rem; border:1px solid var(--border); border-radius:10px; background:#fff;
}
.visually-hidden { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
@media (max-width: 768px){
  .lang-wrap { order: 3; } /* Switcher bleibt sichtbar neben Burger */
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  padding: .4rem .6rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-alt);
}

/* --- Burger-Button --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation für das "X" */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Mobile Menü Styling --- */
@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
  }

  .nav.show { display: flex; }

  .nav a {
    padding: .6rem;
    width: 100%;
    border-radius: 8px;
  }

  .nav a:hover {
    background: var(--bg-alt);
  }
}
