@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Roboto:wght@400;700&display=swap');

:root {
  --yellow: #FFD43B;
  --dark-bg: #121212;
  --dark-bg-alt: #1E1E1E;
  --text-light: #E0E0E0;
  --shadow-dark: rgba(0,0,0,0.7);
  --btn-primary-bg: linear-gradient(145deg, #ffdc4b, #f2c02e);
  --btn-primary-shadow: #e6ba00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#background-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,180,50,0.4), rgba(50,20,0,0.7));
  filter: blur(40px);
  pointer-events: none;
  z-index: -10;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -9;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: var(--dark-bg-alt);
  box-shadow: 0 3px 8px var(--shadow-dark);
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Orbitron', monospace;
  color: var(--yellow);
  font-size: 2.5rem;
  user-select: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.nav-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--yellow);
  color: #222;
  outline: none;
}

.nav-link.active {
  background-color: var(--yellow);
  color: #222;
  pointer-events: none;
}

/* Dropdown Menü */

.has-submenu {
  position: relative;
}

/* Erstes Level Dropdown - vertikal unter dem Menüpunkt */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-bg-alt);
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.8);
  min-width: 160px;
  z-index: 150;
  white-space: nowrap;
}

/* Zweites Level Dropdown - seitlich rechts vom Untermenü */
.submenu .submenu {
  display: none; /* Ändere hier: standardmäßig versteckt */
  position: absolute;
  top: 0;
  left: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.8);
  min-width: 160px;
}

/* Dropdown sichtbar bei Hover/Fokus */
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}

/* Zweites Level Dropdown sichtbar bei Hover/Fokus auf übergeordnetem Untermenü */
.submenu .has-submenu:hover > .submenu,
.submenu .has-submenu:focus-within > .submenu {
  display: block;
}

/* Auf Desktop: .submenu.open wird ignoriert */
@media (min-width: 901px) {
  .submenu.open {
    display: none !important;
    max-height: none !important;
  }
}

.submenu li {
  margin: 0;
}

.sub-link {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--yellow);
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sub-link:hover,
.sub-link:focus {
  background-color: #ffeb3b;
  color: #222;
  outline: none;
}

/* Hamburger Menü */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Responsive für Mobile */

@media (max-width: 900px) {
  .main-nav ul {
    display: none !important;
    flex-direction: column;
    background: var(--dark-bg-alt);
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 1000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .main-nav ul.open {
    display: flex !important;
  }
  .nav-toggle {
    display: flex;
  }
  /* Keine Hover Dropdowns auf Mobile */
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: none;
  }
  /* Dropdowns als statische, einklappbare Blöcke */
  .submenu {
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .submenu.open {
    max-height: 500px;
    display: block !important;
  }
  .has-submenu > a::after {
    content: ' ▼';
    font-size: 0.8rem;
  }
}

/* Buttons */

.btn-3d {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border: none;
  text-decoration: none;
  color: #2e2e2e;
  background: var(--btn-primary-bg);
  box-shadow:
    inset 0 -8px 16px #e5c30f,
    0 14px 26px #e6ba00;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
}

.btn-3d:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 0 -10px 20px #ffeb3b,
    0 18px 32px #ffec4a;
}

.btn-3d:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Hero Section */

.hero {
  text-align: center;
  margin: 4rem 0;
  color: var(--yellow);
  text-shadow: 0 0 15px #ffd54f;
}

.hero h2 {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #fff8b2;
}

/* Feature Cards */

.feature-section {
  display: none;
}

.feature-section.active {
  display: block;
}

.feature-card {
  background: var(--dark-bg-alt);
  border-radius: 14px;
  box-shadow:
    0 8px 12px rgba(0,0,0,0.7),
    inset 0 0 12px #ffde59aa;
  padding: 1.8rem 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--yellow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 15px 25px rgba(255, 215, 0, 0.9),
    inset 0 0 18px #ffe95daa;
}

.feature-card h3, .feature-card h4 {
  font-family: 'Orbitron', monospace;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff1aa;
}

/* Footer */

footer {
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.9rem;
  color: #888;
  user-select: none;
}

/* Responsive */

@media (max-width: 900px) {
  .hero h2 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}
