/* Coaching-Seiten pro Person. Gestaltung angelehnt an Apple: Systemschrift, viel Weissraum,
   Karten ohne Rahmen, ein Akzent. Gilt für supplements und ski-row, nicht fürs Dashboard. */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --sunk: #f0f0f2;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-soft: #e8f2fd;
  --good: #248a3d;
  --warn: #b25000;
  --bad: #d70015;
  --bad-soft: #fdecee;
  --cold: #0071e3;
  --warm: #b25000;
  --shade: rgba(0, 113, 227, .08);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1c1c1e; --sunk: #2c2c2e; --ink: #f5f5f7; --ink-soft: #d1d1d6;
    --ink-mute: #98989d; --line: #38383a; --accent: #2997ff; --accent-soft: #0b2a4a;
    --good: #30d158; --warn: #ff9f0a; --bad: #ff453a; --bad-soft: #3a1416;
    --cold: #2997ff; --warm: #ff9f0a; --shade: rgba(41, 151, 255, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1c1c1e; --sunk: #2c2c2e; --ink: #f5f5f7; --ink-soft: #d1d1d6;
  --ink-mute: #98989d; --line: #38383a; --accent: #2997ff; --accent-soft: #0b2a4a;
  --good: #30d158; --warn: #ff9f0a; --bad: #ff453a; --bad-soft: #3a1416;
  --cold: #2997ff; --warm: #ff9f0a; --shade: rgba(41, 151, 255, .12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 80px; display: flex; flex-direction: column; gap: 56px; }
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.015em; text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; max-width: 68ch; color: var(--ink-soft); }
strong, b { color: var(--ink); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--sunk); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }

/* Navigation: schmale, durchscheinende Leiste wie apple.com */
.sitenav {
  position: sticky; top: 0; z-index: 10; margin: 0 -16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 12px 16px;
  font-size: 13px; letter-spacing: -.01em;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.sitenav a { color: var(--ink-soft); }
.sitenav a:hover { color: var(--ink); text-decoration: none; }
.sitenav a.on { color: var(--ink); font-weight: 600; }
.sitenav .grp { color: var(--ink-mute); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; }
.sitenav .grp:first-child { margin-left: 0; }

/* Kopf */
header, .masthead { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.meta, .kicker { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--ink-mute); }
.meta b { color: var(--ink-soft); font-weight: 600; }
.lede, .standfirst { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.38; color: var(--ink-mute); max-width: 40ch; }

/* Abschnittskopf */
section { display: flex; flex-direction: column; gap: 20px; }
.sec-head, .shead { display: flex; flex-direction: column; gap: 6px; }
.sec-head .rule { display: none; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: -.01em; }
.part { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.part-n { font-size: 14px; font-weight: 600; color: var(--ink-mute); }

/* Tagesbrett */
.board { display: grid; gap: 16px; grid-template-columns: 1fr; }
.panel { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-bottom: 12px; margin-bottom: 4px; }
.panel-head h2 { font-size: 1.6rem; }
.panel-head span { font-size: 14px; color: var(--ink-mute); }
.slot-label { font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.slot-label i { font-style: normal; font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--sunk); }
.row:last-of-type { border-bottom: 0; }
.row .what { min-width: 0; }
.row .what small { display: block; font-size: 14px; color: var(--ink-mute); line-height: 1.35; margin-top: 2px; }
.row .amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.row.idle .what, .row.idle .amt { color: var(--ink-mute); font-weight: 400; }
.sum { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Regeln und Listen */
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rules li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 10px; color: var(--ink-soft); }

/* Karten */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.card-dose { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.card-prod { font-size: 13px; color: var(--ink-mute); }
.card p { font-size: 16px; }
.card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0 8px; font-size: 15px; color: var(--ink-soft); }
.who { font-size: 12px; font-weight: 600; color: var(--ink-mute); background: var(--sunk); padding: 2px 8px; border-radius: 999px; }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.tl { display: grid; grid-template-columns: 6rem 1fr; gap: 0 16px; padding: 18px 24px; border-bottom: 1px solid var(--sunk); }
.tl:last-child { border-bottom: 0; }
.tl-date { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.tl-date small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-mute); }
.tl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-what { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.tl-detail { font-size: 15px; color: var(--ink-soft); }
.tl.is-key .tl-date { color: var(--accent); }
.tl.is-warn .tl-date { color: var(--warn); }
.tl.is-race { background: var(--accent-soft); }
.tl.is-race .tl-what { font-size: 1.1rem; }
@media (max-width: 480px) { .tl { grid-template-columns: 1fr; gap: 4px; } }

/* Offen und Nein-Liste */
.open, .nope { background: var(--card); border-radius: var(--radius); padding: 22px 24px; }
.open ul, .nope ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.open li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0 10px; color: var(--ink-soft); }
.open .num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.nope li { color: var(--ink-soft); padding-left: 1.4rem; position: relative; }
.nope li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--bad); }

/* Tabellen */
.table-scroll, .scroll { overflow-x: auto; background: var(--card); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 26rem; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--sunk); }
th { font-size: 12px; font-weight: 600; color: var(--ink-mute); }
td.num, th.num, td .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tr.mark td { background: var(--accent-soft); font-weight: 600; }
td .sub { color: var(--ink-mute); font-size: 14px; }

/* Hinweise und Figuren (Ski und Row) */
.callout { background: var(--card); border-radius: var(--radius); padding: 20px 24px; color: var(--ink-soft); }
.callout.warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.note { font-size: 15px; color: var(--ink-mute); }
figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.figbox, .panel-fig { background: var(--card); border-radius: var(--radius); padding: 20px; color: var(--ink); }
figcaption { font-size: 14px; color: var(--ink-mute); max-width: 68ch; }

footer, .colophon { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-mute); padding-top: 20px; border-top: 1px solid var(--line); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Persönliche Startseite: Porträt neben dem Titel, auf dem Handy darunter */
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding-top: 32px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.1fr 1fr; } }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero-img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3 / 2; }
section > p { max-width: 68ch; }
section > h3 { margin-top: 8px; }
.link-card { color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.link-card:hover { text-decoration: none; transform: translateY(-2px); }
.link-card .card-prod { font-size: 15px; color: var(--accent); }
html { scroll-padding-top: 56px; scroll-behavior: smooth; }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
