/* Grundlage aller Seiten. Farb- und Masswerte gehoeren in diese Datei, nicht in die
   Seiten-Stylesheets. */

@font-face {
  font-family: "Plex Mono";
  src: url("/assets/schrift/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/schrift/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/schrift/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --grund: #08090b;
  --tafel: #0d0f12;
  --tafel-hell: #12151a;
  --linie: #1c2027;
  --linie-2: #282e36;
  --text: #e8eaec;
  --gedaempft: #99a1ab;
  --schwach: #6b7480;
  --akzent: #ffae35;
  --akzent-dunkel: rgba(255, 174, 53, 0.16);
  --warn: #e2604a;

  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rand: 28px;
  --kopf-hoehe: 56px;
  --fuss-hoehe: 42px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background: var(--grund);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.hintergrund {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hintergrund::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 18%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 30% 18%, #000 30%, transparent 85%);
}
.hintergrund::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 70% at 50% 0%, rgba(255, 174, 53, 0.045), transparent 60%);
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* --- Kopfzeile --- */
.kopf {
  position: relative;
  z-index: 2;
  flex: none;
  height: var(--kopf-hoehe);
  border-bottom: 1px solid var(--linie);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--rand);
}
.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.zeichen {
  width: 26px;
  height: 26px;
  border: 1px solid var(--linie-2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--akzent);
  transition: border-color 0.16s;
}
.marke:hover .zeichen {
  border-color: var(--akzent);
}
.wort {
  font-size: 12px;
  letter-spacing: 0.34em;
  font-weight: 500;
}
.punkt {
  width: 5px;
  height: 5px;
  background: var(--akzent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 174, 53, 0.12);
}
.uhr {
  margin-left: auto;
  font-size: 11px;
  color: var(--schwach);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* --- Fusszeile --- */
.fuss {
  position: relative;
  z-index: 1;
  flex: none;
  border-top: 1px solid var(--linie);
  min-height: var(--fuss-hoehe);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px var(--rand);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--schwach);
}

/* --- Wiederkehrende Bausteine --- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--linie-2);
  padding: 13px 22px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.knopf:hover,
.knopf:focus-visible {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #0a0a0a;
}
.knopf .pfeil {
  color: var(--akzent);
  transition: color 0.16s;
}
.knopf:hover .pfeil,
.knopf:focus-visible .pfeil {
  color: #0a0a0a;
}

.tafel {
  border: 1px solid var(--linie);
  background: var(--tafel);
}
.tafel > .kopfzeile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--linie);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--gedaempft);
}
.tafel > .kopfzeile .rechts {
  margin-left: auto;
  color: var(--schwach);
  letter-spacing: 0.14em;
}
.reihe {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(28, 32, 39, 0.6);
  font-size: 11.5px;
}
.reihe:last-child {
  border-bottom: 0;
}
.reihe dt,
.reihe .kennung {
  font-weight: 400;
  color: var(--schwach);
  letter-spacing: 0.14em;
  width: 92px;
  flex: none;
}
.reihe dd,
.reihe .wert {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.reihe .einheit {
  margin-left: auto;
  color: var(--gedaempft);
  letter-spacing: 0.14em;
  font-size: 10.5px;
}

@media (max-width: 640px) {
  :root {
    --rand: 16px;
  }
  .wort {
    letter-spacing: 0.24em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
