/* =======================================================
   BURGERMENU.CSS — Mobile Navigation Styles
   York & Nova 2025
======================================================= */

.burger {
  display: none;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 28px;
  cursor: pointer;
  z-index: 100;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation beim Öffnen */
.burger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Menücontainer (mobile sichtbar) */
@media (max-width: 900px) {
  .burger {
    display: flex;
    z-index: 999;
  }

  .top-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75vw;
    max-width: 320px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 12px rgba(0,0,0,0.4);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 90;
  }

  .top-menu.open {
    transform: translateX(0);
    opacity: 1;
  }

  .top-menu a {
    display: block;
    width: 100%;
    font-size: 1.4rem;
    margin: 1rem 0;
    color: #fff7e0;
    text-shadow: 0 0 8px rgba(255, 200, 100, 0.4);
  }

  .top-menu a:hover {
    text-shadow:
      0 0 10px rgba(255,240,200,0.9),
      0 0 25px rgba(255,220,130,0.7);
  }
}

/* =======================================================
   OVERLAY für Mobile-Menü
======================================================= */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 80;
}

.menu-overlay.visible {
  display: block;
  opacity: 1;
}
