/* DevClear Ladeseite. Farben, Schriften, Wortmarke, Verlaufsschrift und Einstiegs-Schein wie auf der Website
   (tobiasbrock-de: src/styles/tokens.css, global.css .wortmarke, typografie.css, einstieg.css, .schrift-verlauf).
   Schriften selbst gehostet, OFL, siehe /lizenzen/. */
@font-face {
  font-family: "Sora";
  src: url("/schrift/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/schrift/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/schrift/fira-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --tinte: #18191B;
  --papier: #F2F2F0;
  --zweittext: #B3B5B9;
  --akzent: #6B4EFF;
  --schein: #A64DFF;
  --haar: rgba(242, 242, 240, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--tinte); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--tinte);
  color: var(--papier);
  font: 400 18px/1.6 "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.netz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Schein wie im Einstieg der Website (violett oben links, Akzent rechts),
   dazu unten links Dunkel, damit der Text vor dem Netz lesbar bleibt. */
.schein {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(24, 25, 27, 0.9) 0%, rgba(24, 25, 27, 0.6) 38%, rgba(24, 25, 27, 0) 72%),
    radial-gradient(ellipse at 0% 0%, rgba(166, 77, 255, 0.24), rgba(166, 77, 255, 0) 52%),
    radial-gradient(ellipse at 100% 70%, rgba(107, 78, 255, 0.22), rgba(107, 78, 255, 0) 55%);
}

.seite {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 56px);
  padding-left: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 4vw, 56px), env(safe-area-inset-right));
  pointer-events: none;
}

.seite a { pointer-events: auto; }

/* Wortmarke genau wie im Kopf der Website, gemessen am Website-Stand vom 16.11.2026:
   Sora 600, 22 px (768–1023 px Breite: 18 px, unter 768 px: 20 px), Abstand -0.02em,
   Zeichen 1.25em in Textfarbe, 0.5em Luft. */
.kopf {
  display: flex;
  align-items: center;
}

.wortmarke {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--papier);
  font-family: "Sora", "Fira Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wortmarke svg {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.5em;
  flex: none;
  overflow: visible;
}

/* Beim Laden zeichnet sich das Zeichen in Schein-Violett und füllt sich dann in Textfarbe. Danach steht es wie auf der Website. */
.zeichen-flaeche {
  fill: currentColor;
  animation: flaeche 700ms var(--ease-out) 900ms both;
}

.zeichen-linie {
  fill: none;
  stroke: var(--schein);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: zeichnen 1100ms var(--ease-out) 100ms forwards, linie-weg 600ms var(--ease-out) 1400ms forwards;
}

.wort { animation: rein 700ms var(--ease-out) 500ms both; }

/* Während der Entschlüsselung halten die echten Buchstaben die Breite, darüber laufen Zeichen. */
.wort .buchstabe { display: inline-block; position: relative; }
.wort .buchstabe.offen { color: transparent; }
.wort .rausch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: var(--schein);
}

.inhalt {
  align-self: end;
  max-width: 72rem;
  padding-top: 16vh;
}

.rubrik {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--zweittext);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: rein 700ms var(--ease-out) 650ms both;
}

.rubrik::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--schein);
  box-shadow: 0 0 12px var(--schein);
  animation: blinken 1100ms steps(2, jump-none) infinite;
}

/* Überschrift wie der Einstieg der Website: Sora 400, -0.035em, zweiter Teil im Verlauf. */
h1 {
  margin: 0;
  font-family: "Sora", "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(3.25rem, 11.5vw, 9.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  animation: rein 800ms var(--ease-out) 720ms both;
}

.verlauf {
  background-image: linear-gradient(100deg, #866FFC, #B56EFC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.unter {
  max-width: 40ch;
  margin: 22px 0 0;
  color: var(--zweittext);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  animation: rein 800ms var(--ease-out) 800ms both;
}

.countdown {
  display: flex;
  margin-top: clamp(28px, 6vh, 56px);
  animation: rein 800ms var(--ease-out) 880ms both;
}

.countdown[hidden] { display: none; }

.einheit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 clamp(14px, 3.2vw, 40px);
  border-left: 1px solid var(--haar);
}

.einheit:first-child {
  padding-left: 0;
  border-left: 0;
}

.zahl {
  display: block;
  min-width: 2ch;
  font-family: "Sora", "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.name {
  color: var(--zweittext);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ziel {
  margin: 22px 0 0;
  color: var(--zweittext);
  font-size: 15px;
  animation: rein 800ms var(--ease-out) 940ms both;
}

.fuss {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(40px, 7vh, 64px);
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--zweittext);
  font-size: 13px;
}

/* 404 */
.zurueck {
  color: var(--papier);
  text-decoration: underline;
  text-decoration-color: var(--schein);
  text-underline-offset: 0.25em;
}
.zurueck:focus-visible,
.wortmarke:focus-visible {
  outline: 2px solid var(--papier);
  outline-offset: 4px;
}

@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes linie-weg { to { opacity: 0; } }
@keyframes flaeche { from { opacity: 0; } to { opacity: 1; } }
@keyframes rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blinken { 0% { opacity: 1; } 100% { opacity: 0.25; } }

/* Weniger Bewegung: alles steht, nur sanfte Einblendung ohne Weg. */
@media (prefers-reduced-motion: reduce) {
  .zeichen-linie { display: none; }
  .zeichen-flaeche,
  .wort,
  .rubrik,
  h1,
  .unter,
  .countdown,
  .ziel { animation: flaeche 300ms ease both; }
  .rubrik::before { animation: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .wortmarke { font-size: 18px; }
}

@media (max-width: 767px) {
  .wortmarke { font-size: 20px; }
}

@media (max-width: 480px) {
  .inhalt { padding-top: 10vh; }
  .einheit { padding: 0 12px; }
}
