/* ================================
   Landing Page - Video/GIF Hintergrund
   ================================ */

/* Video Background */
.video-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg,
    #0a2e4a 0%,
    #1a4a6e 30%,
    #2d5a7b 60%,
    #4A90A4 100%
  );
}

.video-background video,
.video-background .bg-gif {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* GIF nur anzeigen wenn Video fehlschlägt */
.video-background video:not([src=""]) ~ .bg-gif {
  display: none;
}

/* Overlay für bessere Lesbarkeit */
.video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 74, 0.4);
  pointer-events: none;
}

/* Landing Container Override */
.landing-page {
  position: relative;
  z-index: 1;
}

.landing-page .landing-container {
  background: transparent;
}

.landing-page .landing-header {
  margin-bottom: 1.5rem;
}

/* Enlarged Logo */
.landing-page .landing-logo {
  max-width: 400px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  }
  100% {
    filter: drop-shadow(0 4px 30px rgba(214, 158, 46, 0.4));
  }
}

/* Card with Glass Effect */
.landing-page .landing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Beta Badge Enhancement */
.landing-page .beta-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 0.375rem 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(214, 158, 46, 0.4);
}

/* Footer with better contrast */
.landing-page .landing-info {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.landing-page .landing-info p {
  margin-bottom: 0.5rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .landing-page .landing-logo {
    animation: none;
  }

  .video-background video {
    display: none;
  }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  .video-background {
    background: linear-gradient(180deg,
      #0a1628 0%,
      #122a45 30%,
      #1a3a5c 60%,
      #234b6d 100%
    );
  }

  .video-background::after {
    background: rgba(10, 22, 40, 0.5);
  }

  .landing-page .landing-card {
    background: rgba(37, 37, 64, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* ===== MANUELLER DARK MODE (data-theme="dark") ===== */
[data-theme="dark"] .video-background {
  background: linear-gradient(180deg,
    #0a1628 0%,
    #122a45 30%,
    #1a3a5c 60%,
    #234b6d 100%
  );
}

[data-theme="dark"] .video-background::after {
  background: rgba(10, 22, 40, 0.5);
}

[data-theme="dark"] .landing-page .landing-card {
  background: rgba(37, 37, 64, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== MANUELLER LIGHT MODE (ueberschreibt System-Dark-Mode) ===== */
[data-theme="light"] .video-background {
  background: linear-gradient(180deg,
    #0a2e4a 0%,
    #1a4a6e 30%,
    #2d5a7b 60%,
    #4A90A4 100%
  );
}

[data-theme="light"] .video-background::after {
  background: rgba(10, 46, 74, 0.4);
}

[data-theme="light"] .landing-page .landing-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}
