/*
 * Startbildschirm, solange JavaScript lädt (vor React). Externe Datei statt Inline-Style → CSP-tauglich.
 * Bildet das Raster der AppShell nach (Seitenleiste am PC, Kopf-/Bottom-Bar am Handy), damit beim
 * Wechsel zur App nichts springt. Farben entsprechen den Halle-Tokens (System-Hell/Dunkel).
 */
.fw-boot {
  --b-surface: #f2f3f5;
  --b-sidebar: #e8eaee;
  --b-line: #e1e3e8;
  --b-track: #e6e8eb;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--b-surface);
}

/* wie base.css der Halle – gilt schon, bevor deren Styles geladen sind */
body {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .fw-boot {
    --b-surface: #0b0c0e;
    --b-sidebar: #1d1f24;
    --b-line: #2c3037;
    --b-track: #2c3037;
  }
}

.fw-boot__side {
  border-right: 1px solid var(--b-line);
  background: var(--b-sidebar);
}

.fw-boot__top,
.fw-boot__bottom {
  display: none;
}

.fw-boot__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.fw-boot__bar {
  display: block;
  width: min(260px, 70%);
  height: 24px;
  border-radius: 4px;
  background: var(--b-track);
  opacity: 0;
  animation: fw-boot-in 0.2s ease 0.3s forwards;
}

.fw-boot__bar + .fw-boot__bar {
  width: min(640px, 100%);
  height: 10px;
}

@keyframes fw-boot-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .fw-boot {
    display: block;
  }

  .fw-boot__side {
    display: none;
  }

  .fw-boot__top {
    display: block;
    height: calc(52px + env(safe-area-inset-top));
  }

  .fw-boot__main {
    padding: 16px;
  }

  .fw-boot__bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 64px;
    border-top: 1px solid var(--b-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw-boot__bar {
    animation: none;
    opacity: 1;
  }
}

.fw-boot__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
