/* Corporate Identity: Tinte auf Papier, Struktur aus Haarlinien und Nummern.
   Ein gruener Moment pro Flaeche. Keine Verlaeufe, keine Schatten, kein Glas. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  --tinte: #0A0A0A;
  --papier: #F5F4F0;
  --weiss: #FFFFFF;
  --tanne: #0F3B2E;
  --signal: #4FBE86;
  --blatt: #1F8A5B;
  --linie: rgba(10, 10, 10, 0.14);
  --linie-stark: rgba(10, 10, 10, 0.30);
  --gedaempft: rgba(10, 10, 10, 0.55);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.meta, .eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--gedaempft);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Kapsel-Knopf ─────────────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--tinte);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
  white-space: nowrap;
}
.knopf:hover { background: var(--tinte); color: var(--papier); }
.knopf[aria-pressed="true"] { background: var(--tanne); border-color: var(--tanne); color: var(--weiss); }
.knopf:disabled { opacity: 0.35; cursor: default; }
.knopf.klein { padding: 7px 14px; font-size: 10px; }

/* ── Kopfzeile ────────────────────────────────────────────────────────── */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf .marke { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.kopf nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }

/* ── Eingabefelder ────────────────────────────────────────────────────── */
.feld {
  width: 100%;
  padding: 12px 14px;
  background: var(--weiss);
  border: 1px solid var(--linie-stark);
  border-radius: 4px;
  outline: none;
}
.feld:focus { border-color: var(--tinte); }
label.beschriftung {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gedaempft);
}

/* ── Karte ────────────────────────────────────────────────────────────── */
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 20px;
}

.hinweis {
  border-left: 2px solid var(--tinte);
  padding: 10px 0 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.hinweis.fehler { border-color: #8B1E1E; }

@media (max-width: 640px) {
  .kopf { padding: 12px 16px; gap: 12px; }
}
