/* Hintergrund, bevor die App geladen ist (Kaltstart, Rückkehr in die Web-App): kein weißer oder schwarzer Blitz.
   Farben wie --bg in src/styles.css. */
html { background: #fbf6ef; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { background: #14161c; } }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { background: #14161c; color-scheme: dark; }

/* Startbild: App-Symbol mit drei Punkten, solange JS und Sitzung laden. Steht im statischen HTML, damit es sofort
   da ist; React zeigt dasselbe Markup (src/app/App.tsx), bis die Sitzung bekannt ist. */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; }
/* Nur das statische Startbild blendet ein (kurz verzögert, damit schnelle Starts nichts zeigen). React übernimmt
   ohne erneutes Einblenden. */
.splash[data-boot] { animation: splash-in 0.35s ease-out 0.12s both; }
.splash-logo { display: block; border-radius: 18px; box-shadow: 0 10px 28px rgba(20, 22, 28, 0.18); }
.splash-dots { display: flex; gap: 7px; }
.splash-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c7673; animation: splash-dot 1.1s ease-in-out infinite; }
.splash-dots i:nth-child(2) { animation-delay: 0.15s; }
.splash-dots i:nth-child(3) { animation-delay: 0.3s; }
html[data-theme="dark"] .splash-dots i { background: #7fd0c8; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .splash-dots i { background: #7fd0c8; } }
@keyframes splash-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes splash-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .splash[data-boot], .splash-dots i { animation: none; } .splash-dots i { opacity: 0.6; } }
