/* base.css – Farben, Grundlayout, Strichfigur */

:root {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #181b22;
  --surface-2: #222631;
  --text: #f1f3f7;
  --muted: #8b93a3;
  --line: #2c313d;
  --work: #ff5a1f;        /* Belastung: kräftig */
  --rest: #2f9bd0;        /* Pause: ruhig */
  --fig: #f4f6fa;
  --fig-back: #6f7787;
  --step: #2a303c;
  --step-top: #3c4456;
  --ground: #353b48;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eceef3;
  --text: #14171c;
  --muted: #5e6675;
  --line: #d9dde5;
  --fig: #14171c;
  --fig-back: #9ba2ae;
  --step: #d3d8e1;
  --step-top: #bcc3cf;
  --ground: #c4cad4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
button, select, input, textarea { font: inherit; color: inherit; }
button {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); cursor: pointer;
}
button:active { transform: scale(0.97); }
a { color: var(--rest); }

/* Strichfigur */
svg.sf { display: block; width: 100%; height: auto; overflow: visible; }
.sf polyline, .sf line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sf .sf-front { stroke: var(--fig); }
.sf .sf-front line, .sf .sf-front polyline { stroke: var(--fig); }
.sf .sf-back polyline { stroke: var(--fig-back); }
.sf .sf-head { fill: var(--fig); stroke: none; }
.sf .sf-ground { stroke: var(--ground); stroke-width: 2; }
.sf .sf-step rect { fill: var(--step); }
.sf .sf-step .sf-step-top { fill: var(--step-top); }
