/* 03_menu_base.css — Menü-gemeinsames inkl. Hamburger. Phase 2: aus v7 Z. 1372-1461. */

/* ===== V7.13: HAMBURGER-MENÜ (nur für Touch-Geräte) ===== */
.hamburger {
  display: none;
  background: var(--farbe2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px 10px;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--farbe5);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* Animiertes X beim Öffnen */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile-Modus (nur echte Mobilgeräte via JS-Klasse is-mobile) */
body.is-mobile .hamburger {
  display: block;
  position: fixed;
  right: 15px;
  top: 60px;
}

body.is-mobile .menu-container {
  position: relative;
}

body.is-mobile .menu-leiste {
  display: none;
  flex-direction: column;
  width: 250px;
  position: fixed;
  top: 115px;
  right: 15px;
  left: auto;
  background: var(--farbe2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 100;
}

body.is-mobile .menu-leiste.active {
  display: flex;
}

body.is-mobile .menu-leiste>li {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.is-mobile .menu-leiste>li:last-child {
  border-bottom: none;
}

body.is-mobile .menu-leiste>li>a {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

/* Submenu auf Mobile */
body.is-mobile .submenu {
  position: static;
  display: none;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.1);
}

body.is-mobile .menu-leiste>li.submenu-open>.submenu {
  display: block;
}
