/* Statischer Boot-Splash: sofort sichtbar, bevor das App-Bundle ausgeführt ist.
   React ersetzt #root beim ersten Commit und entfernt ihn automatisch. */
#app-splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #f7f9fc;
  color: #0d2a4a;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

html.dark #app-splash {
  background: #0d1b2a;
  color: #e6edf5;
}

#app-splash .splash-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(13, 42, 74, 0.18);
  border-top-color: #2f6df6;
  animation: app-splash-spin 0.75s linear infinite;
}

html.dark #app-splash .splash-spinner {
  border-color: rgba(230, 237, 245, 0.2);
  border-top-color: #7aa7ff;
}

#app-splash .splash-brand {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

#app-splash .splash-msg {
  font-size: 13px;
  opacity: 0.7;
}

#app-splash-reload {
  display: none;
  margin-top: 4px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: #2f6df6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes app-splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-splash .splash-spinner {
    animation: none;
  }
}
