.menu-icon { display: block !important; }
.top-menu { display: none !important; }




/* =======================================================
   [A] SCHRIFTEN
======================================================= */
@font-face {
  font-family: 'Rionaldo';
  src: url('../fonts/Rionaldo Angelo.ttf') format('truetype');
}

@font-face {
  font-family: 'Gonestone';
  src: url('../fonts/Gonestone.ttf') format('truetype');
}

/* =======================================================
   [B] BASISLAYOUT
======================================================= */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Gonestone', sans-serif;
  text-align: center;
  min-height: 100vh;
  overflow-x: hidden;
  animation: fadeBody 1.5s ease-in forwards;
}

@keyframes fadeBody {
  from { opacity: 0; }
  to { opacity: 1; }
}


body, .main-header, .creative-menu, footer {
  position: relative;
  z-index: 1;
}

/* =======================================================
   [C] HEADER UND TITEL
======================================================= */
.main-header {
  margin-top: 60px;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

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

.title {
  font-family: 'Rionaldo', cursive;
  font-size: 6rem;
  font-style: italic;
  color: #e0e0e0;
  text-shadow: 0 0 4px #888, 0 0 10px #aaa;
  margin-bottom: 1.2rem;
}

/* =======================================================
   [D] DESKTOP-MENÜ
======================================================= */
.top-menu {
  display: flex;
  justify-content: center;
  gap: 10rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.8s;
  position: relative;
  z-index: 10;
}

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

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

/* Basiseffekt beim Hover über Menüpunkt */
.top-menu a:hover {
  color: #fff;
  text-shadow: 0 0 10px #70b8ff, 0 0 25px #a0e0ff;
}

/* =======================================================
   [D2] Menü ↔ Portale Synchron-Glow
======================================================= */
.top-menu a.linked-hover {
  color: #fff;
  text-shadow: 0 0 10px #70b8ff, 0 0 25px #a0e0ff;
}

.menu-card.linked-hover {
  transform: scale(1.1);
  box-shadow:
    0 0 50px rgba(0, 200, 255, 0.9),
    0 0 100px rgba(0, 240, 255, 0.5);
}



/* =======================================================
   [E] KREATIVMENÜ (PORTALE)
======================================================= */
.creative-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin: 80px auto;
  flex-wrap: wrap;
  padding: 40px 0;
  width: 100%;
  max-width: 1200px;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 1.2s;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Portal */
.menu-card {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 25px rgba(0, 180, 255, 0.4),
    0 0 60px rgba(0, 200, 255, 0.25);
  cursor: pointer;
  transform: translateZ(0);
  transition:
    box-shadow 1.8s ease-in-out,
    transform 1.4s ease-in-out;
}

.menu-card:hover,
.menu-card.linked-hover {
  box-shadow:
    0 0 60px rgba(0, 220, 255, 1),
    0 0 120px rgba(0, 240, 255, 0.8),
    0 0 180px rgba(0, 255, 255, 0.6);
  transform: scale(1.12);
  transition: box-shadow 1.2s ease, transform 0.6s ease;
}


.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseGlow 6s ease-in-out infinite;
  transition: opacity 0.7s ease, box-shadow 0.6s ease, transform 0.3s ease;
}

.menu-card:hover img {
  opacity: 1;
  box-shadow: 0 0 40px rgba(0, 220, 255, 0.4);
  animation-duration: 3s;
}

.menu-card.linked-hover img {
  opacity: 1;
  filter: brightness(1.15);
  transition: opacity 0.6s ease, filter 0.8s ease;
}

.menu-card img {
  opacity: 0.4;
  filter: brightness(0.9);
  transition: opacity 0.6s ease, filter 0.8s ease;

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(0, 180, 255, 0.6); }
  50% { box-shadow: 0 0 50px rgba(0, 220, 255, 1); }
}

.menu-card span {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.8);
  padding: 10px;
  color: #fff;
  font-weight: bold;
  transition: bottom 0.5s ease;
  border-radius: 0 0 50% 50%;
}

.menu-card:hover span {
  bottom: 0;
}

/* =======================================================
   [F] FOOTER
======================================================= */
footer {
  margin-top: 80px;
  padding: 20px;
  font-size: 0.9em;
  background-color: #000;
  color: #888;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 1.8s;
}

/* =======================================================
   [G] RESPONSIVE + BURGER-MENÜ
======================================================= */
@media (max-width: 768px) {
  /* Icon */
  .menu-icon {
    display: block;
    width: 35px;
    height: 25px;
    margin: 0 auto 10px auto;
    cursor: pointer;
    position: relative;
    z-index: 15;
  }

  .menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #a0d0ff;
    border-radius: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px #70b8ff;
  }

  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 10px; }
  .menu-icon span:nth-child(3) { top: 20px; }

  .menu-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .menu-icon.active span:nth-child(2) { opacity: 0; }
  .menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }

  /* Menü */
  .top-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition:
      max-height 1s cubic-bezier(0.25, 1, 0.3, 1),
      opacity 0.8s ease,
      transform 0.8s ease;
  }

  .top-menu.active {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

/* Grundzustand der Links */
.top-menu a {
  display: inline-block;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

/* Animation nur, wenn Menü aktiv ist */
.top-menu.active a {
  animation: fadeInLinks 0.6s ease forwards;
}

/* leichte Staffelung – wirkt natürlicher */
.top-menu.active a:nth-child(1) { animation-delay: 0.15s; }
.top-menu.active a:nth-child(2) { animation-delay: 0.35s; }

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

/* Hover-Effekt */
.top-menu a:hover,
.top-menu a:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-shadow: 0 0 10px #80c0ff, 0 0 20px #a0e0ff;
}

/* Kleines Responsives Feintuning (optional) */
.menu-card { width: 220px; height: 220px; }
.title { font-size: 3rem; }
footer { font-size: 0.8rem; }

}

/* =======================================================
   [S] Sternenfeld – volle Abdeckung + zentriert
======================================================= */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: black;
  z-index: 0 !important;
  pointer-events: none; /* Klicks gehen durch */
}

body, .main-header, .creative-menu, footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body {
    border: 3px solid lime !important;
  }
}
