body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #0a0a16, #050510);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 15, 35, 0.6);
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 20px 10px;
  border-radius: 0 0 20px 20px;
  transition: background 0.3s ease;
}

header img {
  max-height: 100px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.header-content video.header-video {
  max-width: 300px;
  width: 80%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Hover-Effekt für Video im Header */
.header-content video.header-video {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.header-content video.header-video:hover {
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.8), 0 0 60px rgba(0, 150, 255, 0.3);
  transform: scale(1.03);
}

/* Optional: subtiler Lichtreflex, der durchs Video läuft */
.header-content video.header-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 100%);
  transform: skewX(-25deg);
}

.header-content video.header-video:hover::after {
  animation: shine 1.5s forwards;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: linear-gradient(90deg, #0a0f25, #0d152f);
  color: #66cfff;
  padding: 12px 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  border-top: 1px solid rgba(0,170,255,0.2);
  border-bottom: 1px solid rgba(0,170,255,0.2);
  text-shadow: 0 0 8px rgba(0,170,255,0.7);
  animation: ticker 25s linear infinite;
}

/* Laufbewegung */
@keyframes ticker {
  0% { text-indent: 100%; }
  100% { text-indent: -100%; }
}

/* Leichter Glow-Effekt */
.ticker::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.2), transparent);
  animation: ticker-glow 3s linear infinite;
}

@keyframes ticker-glow {
  0% { left: -20%; opacity: 0.5; }
  50% { left: 60%; opacity: 0.8; }
  100% { left: 120%; opacity: 0.5; }
}


@keyframes ticker {
  0% { text-indent: 100%; }
  100% { text-indent: -100%; }
}

#search {
  display: block;
  margin: 20px auto;
  padding: 10px;
  width: 80%;
  max-width: 400px;
  background: #1a1a2a;
  border: none;
  border-radius: 10px;
  color: #e0e0e0;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 90%;
  margin: auto;
}

.portal-button {
  position: relative;
  background: linear-gradient(145deg, #1b1b2f, #0d0d18);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: #e6f6ff;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.portal-button p {
  font-size: 1rem;
  color: #d7e9ff;
  letter-spacing: 0.3px;
}

/* Leuchtender Glow beim Hover */
.portal-button:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 20px rgba(0, 170, 255, 0.6),
    0 0 35px rgba(0, 150, 255, 0.4);
}

/* Sanfter Lichtreflex-Effekt (wie beim Video) */
.portal-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.05) 100%);
  transform: skewX(-25deg);
}

.portal-button:hover::after {
  animation: shine 1.2s forwards;
}

/* Gleiche Shine-Animation wie beim Video */
@keyframes shine {
  100% {
    left: 125%;
  }
}

footer {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: #777;
  margin-top: auto;
}

/* ============ RESPONSIVE ANPASSUNGEN ============ */

@media (max-width: 900px) {
  header img, header video {
    max-width: 70%;
    height: auto;
  }

  h1 {
    font-size: 1.6rem;
  }

  .portal-button {
    padding: 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px 5px;
  }

  .ticker {
    font-size: 1rem;
    padding: 8px 0;
  }

  h1 {
    font-size: 1.3rem;
  }

  #search {
    width: 90%;
    font-size: 1rem;
  }

  .button-container {
    grid-template-columns: 1fr; /* eine Spalte */
  }

  .portal-button {
    padding: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.1rem;
  }

  .ticker {
    font-size: 0.9rem;
  }

  .portal-button {
    padding: 10px;
    font-size: 0.85rem;
  }
}
/* Zurück-zum-Portal Button */
.back-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: linear-gradient(145deg, #1b1b2f, #0d0d18);
  color: #bde8ff;
  padding: 8px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: white;
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.7);
  transform: scale(1.05);
}
