/* Labs-Landing — "Datenblatt"-Ästhetik.
   Tokens: --accent wird pro Test in index.html überschrieben. */

:root {
  --paper: #fafaf7;
  --ink: #16181d;
  --muted: #5b6470;
  --line: #d8dad5;
  --accent: #1f3fae;        /* Default: tiefes Ultramarin */
  --accent-ink: #ffffff;
  --sans: system-ui, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; }

html { color-scheme: light; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Kopf: Doppellinie wie auf einem Formblatt */
.masthead {
  padding: 22px 0 10px;
  border-bottom: 3px double var(--ink);
  margin-bottom: 44px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero h1 {
  font-size: clamp(28px, 5.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 650;
  max-width: 17ch;
}

.subline {
  margin-top: 14px;
  font-size: 19px;
  color: var(--muted);
  max-width: 48ch;
}

/* Formular */
.signup { margin-top: 36px; }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-row { display: flex; gap: 8px; flex-wrap: wrap; }

.field-row input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.field-row button {
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.field-row button:hover { filter: brightness(1.08); }
.field-row button:disabled { opacity: 0.6; cursor: wait; }

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
}
.consent input { margin-top: 3px; }
.consent a { color: inherit; }

.cta-hint {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.form-msg { margin-top: 10px; font-size: 14px; color: #a4262c; min-height: 1.2em; }

/* Leistungs-"Datenblatt": Hairline-Zeilen, Mono-Labels */
.specs { margin-top: 52px; }

.specs dl { border-top: 1px solid var(--ink); }

.spec-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.spec-row dd { max-width: 52ch; }
.spec-row dd a { color: var(--accent); font-weight: 600; }

.note { margin-top: 28px; }
.note p { font-size: 14.5px; color: var(--muted); max-width: 52ch; }

/* Fuß */
.foot {
  margin-top: 72px;
  padding-top: 14px;
  border-top: 3px double var(--ink);
  font-size: 13px;
  color: var(--muted);
}
.foot nav { margin-top: 6px; }
.foot a { color: inherit; }

@media (max-width: 480px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

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

/* Produkt-Vorschau ("So sieht es aus") */
.preview { margin-top: 52px; }

.preview-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }

.sheet-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 13.5px;
}

.sheet-table th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 8px 10px;
  white-space: nowrap;
}

.sheet-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.chip.due  { background: #f4cccc; color: #a4262c; font-weight: 700; }
.chip.warn { background: #fff2cc; color: #7a5a20; }
.chip.ok   { background: #d9ead3; color: #2e5e2e; }
.chip.new  { background: var(--accent); color: var(--accent-ink); }

.preview-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Report-Vorschau (Förder-Radar-Stil) */
.report-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-item h3 { font-size: 16px; margin: 6px 0 4px; }
.report-item p { font-size: 14.5px; max-width: 60ch; }
.report-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.prov {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.prov a { color: var(--muted); }
