/* =======================================================
   MENU.CSS — Hauptnavigation (adaptiv, fließend)
   Optimierte Version (York & Nova 2025)
======================================================= */

/* =========================
   [1] Grundlayout Desktop
========================= */
.top-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 1.8rem 0 3rem 0; /* Luft nach oben & unten */
  opacity: 0;
  animation: fadeInMenu 1.2s ease-out forwards;
  animation-delay: 0.6s;
  position: relative;
  z-index: 10;
}

.top-menu a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #aaa;
  font-size: 1.4rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

/* Hover-Glow */
.top-menu a:hover,
.top-menu a.active {
  color: #fff;
  text-shadow:
    0 0 10px #70b8ff,
    0 0 20px #a0d0ff,
    0 0 35px #b0e0ff;
}

/* =======================================================
   [2] Glow-Linie unter Menüpunkten
======================================================= */
.top-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #89caff, #d0f2ff, transparent);
  border-radius: 2px;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    width 0.5s ease,
    opacity 0.3s ease,
    filter 0.5s ease;
}

.top-menu a:hover::after {
  width: 100%;
  opacity: 1;
  filter: brightness(1.3);
}

.top-menu a:active::after {
  filter: brightness(1.6);
  transition: none;
}

/* =======================================================
   [3] Sanftes Auftauchen
======================================================= */
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   [4] Responsive Design (bis 900px)
======================================================= */
@media (max-width: 900px) {
  .top-menu {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 1.2rem 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
    animation: floatIn 1.2s ease-out forwards;
  }

  .top-menu a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    color: #ddd;
    border-radius: 12px;
    transition:
      background 0.3s ease,
      color 0.3s ease,
      text-shadow 0.3s ease;
  }

  .top-menu a:hover {
    background: rgba(0, 255, 255, 0.08);
    color: #fff;
    text-shadow:
      0 0 8px #70b8ff,
      0 0 18px #a0d0ff;
  }

  @keyframes floatIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =======================================================
   [5] Synchroner Glow bei Hover (zwischen Menü & Cards)
======================================================= */
.menu-link.active-sync,
.menu-card.active-sync {
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(0, 220, 255, 0.8));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.menu-link.active-sync {
  color: #8ff;
  text-shadow: 0 0 8px rgba(100, 255, 255, 0.8);
}

.menu-card.active-sync {
  filter: brightness(1.3) drop-shadow(0 0 12px rgba(0, 220, 255, 0.8));
  transform: scale(1.05);
}

/* =======================================================
   [6] Menü-Styling (Headerbereich)
======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 12px 0;
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* Entfernt übermäßige Höhe / Abstand */
.top-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

/* Schrift & Stil */
.top-menu a {
  font-family: 'Rionaldo', 'Gonestone', cursive;
  font-size: 4.6rem;
  letter-spacing: 0.05em;
  color: #f0f0f0;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 18px rgba(200, 220, 255, 0.2);
  transition: all 0.3s ease;
}

.top-menu a:hover {
  color: #ffffff;
  text-shadow:
    0 0 10px #ffffff,
    0 0 24px rgba(120, 200, 255, 0.7);
}

/* Aktiver Menüpunkt */
.top-menu a.active {
  color: #a8e0ff;
  text-shadow:
    0 0 10px #70b8ff,
    0 0 24px rgba(160, 220, 255, 0.8);
}

/* =======================================================
   [7] Mobile Feinanpassung (unter 768px)
======================================================= */
@media (max-width: 768px) {
  .top-menu {
    gap: 1rem;
  }

  .top-menu a {
    font-size: 1rem;
  }
}
/* =======================================================
   [8] BURGER-MENÜ – global für alle Seiten
   York & Nova 2025
======================================================= */

/* Basiscontainer für Mobile-Menü */
.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 bei aktivem Menü */
.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);
}

/* Mobile Menüfläche */
@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%);
    transition: transform 0.4s ease;
    z-index: 90;
  }

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

  .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);
  }
}
