/* Kenk.io – Startseite (2f, docs/plan-2f.md): ruhig und hell wie die App, dunkel nach Einstellung des Geräts.
   Kein JavaScript, keine Fremd-Schriften. */
:root {
  --page: #f5f6f8; --surface: #ffffff; --surface-2: #f3f4f6; --ink: #0b0b0b; --ink-2: #4b4d52; --muted: #6f727a;
  --border: rgba(15, 20, 30, 0.09); --s1: #2a78d6; --s1-wash: rgba(42, 120, 214, 0.10);
  --a-recovery: #1baf7a; --a-sleep: #4a3aa7; --a-activity: #eb6834; --a-nutrition: #2a78d6; --a-heart: #e87ba4; --a-symptoms: #eda100;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0b; --surface: #161615; --surface-2: #1d1d1c; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --border: rgba(255, 255, 255, 0.08); --s1: #3987e5; --s1-wash: rgba(57, 135, 229, 0.14);
    --a-recovery: #199e70; --a-sleep: #9085e9; --a-activity: #d95926; --a-nutrition: #3987e5; --a-heart: #d55181; --a-symptoms: #c98500;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--s1); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.top { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 750 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top .spacer { flex: 1; }
.lang { color: var(--muted); font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 9px; }
.lang:hover { background: var(--surface-2); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.btn.primary { background: var(--s1); color: #fff; border-color: transparent; }
.btn:hover { filter: brightness(1.05); }

/* Einstieg */
.hero { padding: 48px 0 28px; }
.hero h1 { font: 700 clamp(32px, 6vw, 52px)/1.08 var(--font-display); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 760px; }
.hero p { color: var(--ink-2); font-size: 18px; max-width: 680px; margin: 0 0 14px; }
.hero .note { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* Bilder von Web und App (erfundene Daten aus dem Vorführ-Modus des Testservers) */
.shots { position: relative; margin: 18px 0 48px; padding-right: 8%; }
.shots picture { display: block; }
.shots img { display: block; width: 100%; height: auto; }
.shots .web img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .45); }
.shots .app { position: absolute; right: 0; bottom: -28px; width: 21%; }
.shots .app img { border-radius: 26px; border: 1px solid var(--border); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); }
.shots figcaption { margin-top: 40px; color: var(--muted); font-size: 13px; }

/* Bereiche */
h2 { font: 700 22px/1.25 var(--font-display); letter-spacing: -0.02em; margin: 44px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 16px; }
.card b { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.card b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--s1)); flex: none; }
.card span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.c-scores { --c: var(--ink); } .c-sleep { --c: var(--a-sleep); } .c-recovery { --c: var(--a-recovery); }
.c-activity { --c: var(--a-activity); } .c-heart { --c: var(--a-heart); } .c-nutrition { --c: var(--a-nutrition); }
.c-symptoms { --c: var(--a-symptoms); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; }
.steps b::before { content: counter(s); width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--s1); }

/* Text-Seiten (Impressum, Quellen) */
.doc { max-width: 760px; padding: 20px 0 40px; }
.doc h1 { font: 700 32px/1.15 var(--font-display); letter-spacing: -0.025em; margin: 10px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .muted { color: var(--muted); font-size: 14px; }
.src { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.src li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.src b { display: block; color: var(--ink); }
.src small { display: block; color: var(--muted); margin-top: 4px; }
address { font-style: normal; color: var(--ink); }

/* Zugang beantragen (#206): Formular ohne JavaScript, geht an /api/v1/access */
.access { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; margin-top: 56px; }
.access h2 { margin-top: 6px; }
.access-text p { color: var(--ink-2); margin: 0 0 12px; }
.access-text .muted { color: var(--muted); font-size: 14px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form .field > span { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.3; }  /* nicht wie .card span */
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--font); color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.field input { height: 48px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--s1); box-shadow: 0 0 0 3px var(--s1-wash); background: var(--surface); }
.form button { height: 48px; font: 600 16px/1 var(--font); cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Danke und Fehler */
.result { padding-top: 48px; }
.result .mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 18px;
  font: 700 26px/1 var(--font-display); color: #fff; }
.result .mark.ok { background: var(--a-recovery); }
.result .mark.err { background: var(--a-activity); }
.result .actions { margin-top: 24px; }

/* Fuß */
.foot { border-top: 1px solid var(--border); margin-top: 56px; padding: 22px 0 40px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .spacer { flex: 1; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 0; }
  .top .btn { padding: 8px 14px; }
  .hero { padding: 24px 0 8px; }
  .hero p { font-size: 17px; }
  .grid, .steps, .access, .form { grid-template-columns: 1fr; }
  .access { gap: 8px; margin-top: 40px; }
  .form { padding: 16px; }
  .actions .btn { flex: 1; }
  .shots { padding-right: 0; margin-bottom: 24px; }
  .shots .app { position: static; width: 56%; margin: -60px auto 0; }
  .shots figcaption { margin-top: 14px; text-align: center; }
}
.about { color: var(--ink-2); max-width: 760px; }
