/* ============================================================================
   zertura.de — Coming soon, reduziert auf das Wesentliche:
   Prüfmarke, Messraster, ein grüner Prüfstrahl von oben nach unten.
   Einthemig dunkel, jede Farbe ausdrücklich gesetzt, keine externen Ressourcen.
   Die ausführliche Fassung liegt unter assets/soon-ausfuehrlich.css.
   ========================================================================== */

:root {
  color-scheme: dark;

  --tiefe:   #0A1219;
  --linie:   #1E2C3A;
  --linie-2: #2B3E51;
  --txt:     #E9F1F8;
  --muted:   #8EA1B5;
  --muted-2: #64798F;
  --pruef:   #1FB47F;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tiefe);
  color: var(--txt);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* senkrecht scrollbar lassen, damit auf flachen
                           Fenstern nichts abgeschnitten wird */
}

.mono { font-family: var(--mono); }

/* Überschrift nur für Vorlese- und Suchprogramme */
.verborgen {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--pruef); outline-offset: 3px; }

/* ── Messraster ───────────────────────────────────────────────────────── */
.raster {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 160, 200, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 160, 200, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(115% 95% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(115% 95% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 85%);
}

/* ── Prüfstrahl: läuft langsam von oben nach unten ────────────────────── */
.scan {
  position: fixed; left: 0; right: 0; top: 0; height: 200px; z-index: 0;
  pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom,
              transparent,
              rgba(31, 180, 127, 0.06) 60%,
              rgba(31, 180, 127, 0.15));
  border-bottom: 1px solid rgba(31, 180, 127, 0.28);
}
.is-bewegt .scan { animation: strahl 12s cubic-bezier(.45, 0, .55, 1) 0.8s infinite; }
@keyframes strahl {
  0%   { opacity: 0; transform: translateY(-200px); }
  7%   { opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh); }
}

/* ── Bühne ────────────────────────────────────────────────────────────── */
.buehne {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3vmin, 30px);
  padding: 40px 24px 72px;
}

/* ── „Coming soon" — hellt auf, während der Strahl darüberläuft ──────────
   Gleiche Dauer, gleiche Verzögerung und gleiche Beschleunigungskurve wie
   .scan: dadurch entspricht jeder Prozentwert hier derselben Position des
   Strahls. Das Fenster 58–82 % liegt dort, wo er den Schriftzug erreicht. */
.bald {
  margin: 0;
  font-size: clamp(10.5px, 1.6vmin, 13px);
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase; font-weight: 600;
  color: var(--muted-2); opacity: 0.3;
}
.is-bewegt .bald { animation: enthuellen 12s cubic-bezier(.45, 0, .55, 1) 0.8s infinite; }
@keyframes enthuellen {
  0%, 56%   { opacity: 0.3; color: var(--muted-2); text-shadow: none; }
  64%       { opacity: 1;   color: var(--pruef);   text-shadow: 0 0 20px rgba(31, 180, 127, 0.45); }
  72%       { opacity: 1;   color: var(--pruef);   text-shadow: 0 0 20px rgba(31, 180, 127, 0.45); }
  84%, 100% { opacity: 0.3; color: var(--muted-2); text-shadow: none; }
}

/* ── Prüfmarke ────────────────────────────────────────────────────────── */
.siegel { margin: 0; width: 100%; display: flex; justify-content: center; }
.siegel__svg { width: clamp(240px, 52vmin, 440px); height: auto; display: block; }

.siegel__skala line { stroke: var(--linie-2); stroke-width: 1.4; }
.siegel__skala line.lang { stroke: var(--muted-2); stroke-width: 1.8; }
.siegel__skala line.hell { stroke: var(--pruef); }
.is-bewegt .siegel__skala line { opacity: 0; animation: tick 0.5s ease forwards; }
@keyframes tick { to { opacity: 1; } }

.siegel__ring2 { stroke: var(--linie); stroke-width: 1.2; }
.siegel__ring {
  stroke: var(--pruef); stroke-width: 2.2; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 160px 160px;
}
.is-bewegt .siegel__ring { animation: ziehen 1.5s cubic-bezier(.35, 0, .25, 1) 0.35s forwards; }
@keyframes ziehen { to { stroke-dashoffset: 0; } }

.siegel__schild { stroke: var(--linie-2); stroke-width: 1.6; fill: rgba(22, 34, 46, 0.75); }
.siegel__haken { stroke: var(--pruef); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.is-bewegt .siegel__haken { animation: ziehen 0.55s cubic-bezier(.3, .8, .3, 1) 1.75s forwards; }

.siegel__wort {
  fill: var(--muted-2); font-size: 11px; letter-spacing: 0.34em;
  text-anchor: middle; font-weight: 600;
}
.is-bewegt .siegel__wort { opacity: 0; animation: tick 0.6s ease 2.25s forwards; }

@media (max-width: 560px) {
  .buehne { padding: 32px 18px 76px; }
  .siegel__svg { width: min(78vw, 320px); }
}

/* Ohne Bewegung: alles im Endzustand, kein Strahl */
@media (prefers-reduced-motion: reduce) {
  .scan { display: none; }
  .bald { opacity: 0.65; color: var(--muted); }
  .siegel__ring, .siegel__haken { stroke-dashoffset: 0; }
  .siegel__skala line, .siegel__wort { opacity: 1; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  .raster, .scan { display: none; }
  body { background: #fff; }
  .siegel__wort { fill: #333; }
}
