/* Halteseite, solange die eigentliche Seite noch nicht live ist. Farben und Schrift wie in
   docs/design_handoff_rd/Website-Design-Spec.md. Kein JavaScript, kein Inline-CSS (CSP). */
@font-face {
  font-family: 'Saira Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/saira-condensed-700.woff2') format('woff2');
}

:root {
  --bg: #0c0e10;
  --grid: rgb(126 138 149 / 0.07);
  --ink: #e6e8ea;
  --dim: #a7afb6;
  --accent: #d4553f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, var(--bg) 100%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  animation: drift 40s linear infinite;
  color: var(--ink);
  font-family: 'Saira Condensed', 'Arial Narrow', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Raster wandert langsam diagonal */
@keyframes drift {
  to { background-position: 0 0, 64px 64px, 64px 64px; }
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
}

/* Das rote Quadrat pulsiert wie eine Statusleuchte */
.mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.35; }
}

h1 {
  margin: 0;
  max-width: 14em;
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  animation: arrive 1.2s ease-out both;
}
h1 em { font-style: normal; color: var(--accent); }

@keyframes arrive {
  from { opacity: 0; letter-spacing: 0.12em; }
}

/* Ein schwacher heller Streifen, der alle paar Sekunden über den Bildschirm läuft */
.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgb(174 185 194 / 0.035) 50%, transparent 100%);
  background-size: 100% 240px;
  background-repeat: no-repeat;
  animation: scan 9s linear infinite;
}
@keyframes scan {
  from { background-position: 0 -240px; }
  to { background-position: 0 calc(100vh + 240px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
