/* 04_menu_leiste.css — horizontale Menüleiste (v7-Standard). Phase 2: aus v7 Z. 957-1028 + 1061-1068. */

.menu-container {
  position: sticky;
  top: 50px;
  background: var(--farbe2);
  color: var(--farbe5);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-leiste {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  /* V7.12: Kein Umbruch - Viewport skaliert */
}

.menu-leiste>li {
  position: relative;
}

.menu-leiste>li>a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--farbe5);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.menu-leiste>li>a:hover {
  background: rgba(0, 0, 0, 0.1);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--farbe4);
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.menu-leiste>li:hover>.submenu {
  display: block;
}

.submenu li {
  position: relative;
}

.submenu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--farbe5);
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
}

.submenu li a:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ===== WEBSEITE-MODUS (Tab-Style) — nur bei body.seitentyp-webseite aktiv ===== */
body.seitentyp-webseite .menu-leiste li a.active {
  background: transparent;
  color: var(--farbe1);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
