/* Runwise Design-System (Artefakt „Runwise“, tokens.json). Schrift Manrope, Ersatz system-ui.
   Kundeninstanzen können die Farben später je Gesellschaft überschreiben (nur diese Variablen). */
:root {
  --brand-navy: #0B2A5B;
  --accent-cyan: #0EA5E9;
  --nacht: #0E1726;
  --hell: #F5F7FA;
  --surface-0: #FFFFFF;
  --surface-100: #F5F7FA;
  --ink: #0B2A5B;
  --text: #1F2937;
  --muted: #4B5563;
  --border: #E5E7EB;
  --link: #0369A1;
  --positiv: #15803D;
  --warnung: #B45309;
  --fehler: #B91C1C;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-100);
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3 { color: var(--ink); margin: 0 0 var(--space-3); }
h1 { font-size: 28px; line-height: 34px; font-weight: 800; }
h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
p { margin: 0 0 var(--space-3); }
a { color: var(--link); }

.kopf {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + var(--space-3)) var(--space-4) var(--space-3);
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}
.marke { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); font-weight: 700; }
.marke-runwise { font-weight: 800; }
.netz { font-size: 12px; line-height: 16px; font-weight: 700; padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--nacht); color: #fff; }

.inhalt { max-width: 640px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-12); }
.leise { color: var(--muted); }
.klein { font-size: 14px; line-height: 22px; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.karte {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.karte-dunkel { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.karte-dunkel h2, .karte-dunkel h3 { color: #fff; }

.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-6); }
.kachel {
  display: flex; flex-direction: column; gap: var(--space-2);
  min-height: 116px; padding: var(--space-4);
  background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.kachel svg { width: 28px; height: 28px; stroke: var(--accent-cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kachel small { font-weight: 500; color: var(--muted); font-size: 14px; line-height: 20px; }
.kachel[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-pill);
  background: var(--brand-navy); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.knopf:disabled { opacity: .5; cursor: default; }
.knopf-zweit { background: transparent; color: var(--brand-navy); border: 1.5px solid var(--brand-navy); }
.karte-dunkel .knopf { background: #fff; color: var(--brand-navy); }
.knopf-breit { width: 100%; }

form { display: grid; gap: var(--space-4); }
label { display: grid; gap: var(--space-1); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
label { min-width: 0; }
input {
  width: 100%; min-width: 0;
  font: inherit; font-weight: 500; color: var(--text);
  min-height: 48px; padding: 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-0);
}
input:focus-visible, .knopf:focus-visible, .kachel:focus-visible { outline: 3px solid var(--accent-cyan); outline-offset: 2px; }
.zeile { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-3); }

.meldung { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4); background: var(--hell); border-left: 4px solid var(--accent-cyan); }
.meldung-ok { border-left-color: var(--positiv); }
.meldung-fehler { border-left-color: var(--fehler); }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.liste li:last-child { border-bottom: 0; }
.status { font-weight: 700; white-space: nowrap; }
.status-ok { color: var(--positiv); }
.status-fehler { color: var(--fehler); }

.anmelden { text-align: center; padding-top: var(--space-12); }
.anmelden img { width: 72px; height: 72px; margin-bottom: var(--space-4); }
