:root {
  --primary: #FF4D4D;           /* Weihnachtsrot */
  --primary-light: #C9F1FF;     /* Eisblau */
  --primary-dark: #B30000;      /* Dunkelrot */
  --accent: #00FF88;            /* Neon-Weihnachtsgrün */
  --background: #1A1A1A;        /* Dunkles Anthrazit */
  --background-glass: rgba(26, 26, 26, 0.85);
  --foreground: #C9F1FF;        /* Eisblau */
  --muted: #C9F1FF;             /* Eisblau */
  --box-bg: rgba(255, 77, 77, 0.28); /* Weihnachtsrot transparent */
  --box-radius: 14px;
  --shadow: 0 4px 24px rgba(0, 255, 136, 0.18); /* Neon-Weihnachtsgrün Schatten */
  --transition: 0.3s ease;
  --font-family: 'Segoe UI', Arial, sans-serif;
}

/* ===========================
   Navigation Container
   =========================== */
.neo-nav {
  max-width: 900px;
  margin: 36px auto;
  background: linear-gradient(135deg, rgba(26,26,26,0.65) 60%, rgba(255,77,77,0.18) 100%);
  border-radius: var(--box-radius);
  box-shadow:
    0 4px 24px rgba(0,255,136,0.18),
    0 0 0 1.5px rgba(201,241,255,0.12) inset,
    0 1.5px 24px rgba(255,77,77,0.10) inset;
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 0 32px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px) saturate(1.2);
  z-index: 10;
  transition: box-shadow 0.3s, transform 0.3s;
}

.neo-nav:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 8px 30px rgba(0,255,136,0.3),
    0 0 0 2px rgba(201,241,255,0.2) inset,
    0 3px 36px rgba(255,77,77,0.15) inset;
}

/* Neon-Rahmen */
.neo-nav .neon-top,
.neo-nav .neon-bottom,
.neo-nav .neon-left,
.neo-nav .neon-right {
  position: absolute;
  background: linear-gradient(90deg, #B30000, #00FF88, #FF4D4D);
  border-radius: 2px;
  filter: blur(1.5px) brightness(1.3);
  opacity: 0.85;
  animation: neon-move 3s linear infinite alternate;
  z-index: 2;
  pointer-events: none;
}
.neo-nav .neon-top { top: 0; left: 10%; right: 10%; height: 4px; animation-name: neon-move-horizontal; }
.neo-nav .neon-bottom { bottom: 0; left: 10%; right: 10%; height: 4px; animation-name: neon-move-horizontal; animation-direction: reverse; }
.neo-nav .neon-left { top: 10%; bottom: 10%; left: 0; width: 4px; background: linear-gradient(180deg, #B30000, #00FF88, #FF4D4D); animation-name: neon-move-vertical; }
.neo-nav .neon-right { top: 10%; bottom: 10%; right: 0; width: 4px; background: linear-gradient(180deg, #B30000, #00FF88, #FF4D4D); animation-name: neon-move-vertical; animation-direction: reverse; }

@keyframes neon-move-horizontal { 0% { left:10%; right:10%; } 100% { left:0; right:0; } }
@keyframes neon-move-vertical { 0% { top:10%; bottom:10%; } 100% { top:0; bottom:0; } }

/* Tagline */
.neo-nav .nav-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 8px 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(255,77,77,0.12), 0 1px 2px rgba(0,0,0,0.25);
  user-select: none;
  perspective: 700px;
  transition: text-shadow 0.5s, color 0.5s;
}
.neo-nav .nav-tagline span:first-child { font-size: 2.1rem; margin-bottom: 2px; text-shadow: 0 2px 8px rgba(255,77,77,0.18), 0 1px 2px rgba(0,0,0,0.25); }
.neo-nav .nav-tagline span:last-child { font-size: 1.1rem; font-weight: 600; color: var(--primary-light); margin-bottom: 6px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }

/* Navigation Liste & Links */
.neo-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  align-items: center;
  z-index: 3;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.neo-nav li { position: relative; }
.neo-nav a, .neo-nav .dropdown-toggle {
  position: relative;
  overflow: hidden;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0));
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.25s;
  outline-offset: 4px;
  user-select: none;
  box-shadow: 0 2px 12px rgba(26,26,26,0.08);
}
.neo-nav a::before, .neo-nav .dropdown-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  border-radius: 16px;
}
.neo-nav a:hover::before, .neo-nav .dropdown-toggle:hover::before,
.neo-nav a:focus-visible::before, .neo-nav .dropdown-toggle:focus-visible::before { opacity: 0.3; }
.neo-nav a[aria-current="page"], .neo-nav a.active, .neo-nav .dropdown-toggle[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--foreground);
  box-shadow: 0 6px 24px rgba(255, 77, 77, 0.7);
  transform: scale(1.07);
  border-color: var(--accent);
}
.neo-nav .dropdown-toggle::after { content: " ▼"; font-size: 0.85em; color: var(--accent); transition: transform 0.25s; margin-left: 4px; }
.neo-nav .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-180deg); }

/* Dropdown-Menüs */
.neo-nav ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(10px) saturate(1.2);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 40px rgba(0,255,136,0.5);
  padding: 14px 0;
  min-width: 260px;
  display: none;
  flex-direction: column;
  z-index: 1100;
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(-14px); } to { opacity:1; transform: translateY(0); } }
.neo-nav li:focus-within > ul.dropdown,
.neo-nav li:hover > ul.dropdown,
.neo-nav .dropdown-toggle[aria-expanded="true"] + ul.dropdown { display: flex; }
.neo-nav ul.dropdown li { margin: 0; }
.neo-nav ul.dropdown a {
  padding: 14px 28px;
  display: block;
  font-size: 1.05rem;
  color: var(--primary-light);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  border: 1.2px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.neo-nav ul.dropdown a:hover,
.neo-nav ul.dropdown a:focus-visible { background: var(--accent); color: var(--background); border-color: var(--accent); outline: none; }

/* ===========================
   Hamburger Menu
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 15;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 1024px) {
  .neo-nav .nav-list { flex-direction: column; gap: 1rem; align-items: center; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease; }
  .neo-nav .nav-list.open { max-height: 1000px; opacity: 1; }
  .hamburger { display: flex; position: absolute; top: 18px; right: 24px; }
  .neo-nav a, .neo-nav .dropdown-toggle { width: 100%; justify-content: center; }
  .neo-nav ul.dropdown { position: static; min-width: 100%; border-radius: 0 0 16px 16px; box-shadow: none; }
}

@media (max-width: 768px) {
  .neo-nav { padding: 0 16px; }
  .neo-nav .nav-tagline span:first-child { font-size: 1.6rem; }
  .neo-nav .nav-tagline span:last-child { font-size: 1rem; }
  .neo-nav a, .neo-nav .dropdown-toggle { font-size: 1rem; padding: 12px 10px; }
  .neo-nav ul.dropdown a { font-size: 0.95rem; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .neo-nav .nav-tagline span:first-child { font-size: 1.3rem; }
  .neo-nav .nav-tagline span:last-child { font-size: 0.9rem; }
  .neo-nav a, .neo-nav .dropdown-toggle { font-size: 0.95rem; padding: 10px 8px; width: 100%; text-align: center; }
  .neo-nav ul.dropdown a { font-size: 0.9rem; padding: 10px 12px; }
}

@media (max-width: 600px) {
  .neo-nav { max-width: 100vw; width: 100vw; margin: 0; border-radius: 0; padding: 0 8px; }
}