/* Lokale Schriftarten statt Google Fonts für DSGVO-Konformität */
@import url('/static/css/local-fonts.css');

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(220deg, #0B1A2E 0%, #1B2A4B 50%, #1A2E3A 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loading-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.loading-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, #417690, #1DB954);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s infinite linear;
  background-size: 200% auto;
}

.galaxy-spinner {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: radial-gradient(circle, rgba(65, 118, 144, 0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite, rotate 20s linear infinite;
  position: relative;
  box-shadow: 0 0 40px 10px rgba(65, 118, 144, 0.4);
}

.galaxy-spinner::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background-image: 
    radial-gradient(2px 2px at 40px 60px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 20px 50px, #417690, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 30px 100px, #1DB954, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 60px, #FF1E6F, rgba(0,0,0,0));
  background-size: 200px 200px;
  animation: rotate 60s linear infinite reverse;
}

.loading-status {
  margin-top: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(65, 118, 144, 0.15);
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
}

/* Animationen */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Passende Hintergrundpartikel wie im Music Player */
.stars-loading,
.particles-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particles-loading .particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(1px);
  animation: float 15s ease-in-out infinite;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
}

.particle-1 { width: 10px; height: 10px; background: #fff; left: 20vw; top: 30vh; animation-delay: 0s; }
.particle-2 { width: 16px; height: 16px; background: #417690; left: 60vw; top: 80vh; animation-delay: 2s; }
.particle-3 { width: 8px; height: 8px; background: #1DB954; left: 80vw; top: 40vh; animation-delay: 4s; }
.particle-4 { width: 12px; height: 12px; background: #FF1E6F; left: 10vw; top: 70vh; animation-delay: 1s; }