/* Laufcoach – eigene Stile neben Tailwind. Dunkel ist Standard (html.dark), hell über html ohne .dark. */
@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #F5F7F8; --card: #FFFFFF; --text: #101518; --muted: #5B6670; --line: #E3E8EB; --grid: rgba(16,21,24,.08); }
html.dark { --bg: #101518; --card: #1A2126; --text: #F5F7F8; --muted: #9AA5AC; --line: #26303A; --grid: rgba(255,255,255,.07); }
html { background: var(--bg); color-scheme: light; }
html.dark { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
.zahl { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.01em; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; }
.leise { color: var(--muted); }
.linie { border-color: var(--line); }
.feld { display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); color: var(--text); font-size: 1rem; }
.feld:focus { outline: 2px solid #FC4C02; outline-offset: 1px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: .75rem; font-weight: 600; background: #FC4C02; color: #fff; }
.knopf-zweit { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: .75rem; font-weight: 600; border: 1px solid var(--line); color: var(--text); }
/* Sportfarben als Hintergrund- und Textklassen */
.sport-laufen { --sport: #FC4C02; } .sport-rudern { --sport: #0093E7; } .sport-rad { --sport: #00F19F; } .sport-kraft { --sport: #FFDE00; } .sport-sonst { --sport: #9AA5AC; } .sport-schwimmen { --sport: #38BDF8; } .sport-ski { --sport: #C084FC; }
.sport-punkt { width: .65rem; height: .65rem; border-radius: 9999px; background: var(--sport); display: inline-block; }
.sport-symbol { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .9rem; background: color-mix(in srgb, var(--sport) 18%, transparent); color: var(--sport); font-size: 1.4rem; flex: none; }
.sport-symbol .svg { width: 1.4rem; height: 1.4rem; background: currentColor; -webkit-mask: var(--svg) no-repeat center / contain; mask: var(--svg) no-repeat center / contain; }
.sport-rand { border-left: 4px solid var(--sport); }
/* Ampel */
.ampel { display: inline-block; width: .8rem; height: .8rem; border-radius: 9999px; }
.ampel-gut { background: #16EC06; box-shadow: 0 0 10px rgba(22,236,6,.6); } .ampel-mittel { background: #FFDE00; box-shadow: 0 0 10px rgba(255,222,0,.6); } .ampel-schlecht { background: #FF0026; box-shadow: 0 0 10px rgba(255,0,38,.6); } .ampel-leer { background: var(--line); }
/* Kennzahl-Kachel */
.kachel { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: .8rem .9rem; }
.kachel .titel { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kachel .wert { font-size: 1.6rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.kachel .einheit { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }
/* Tab-Leiste unten (Handy), oben am Rechner */
.tabs-unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs-unten a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0 .4rem; font-size: .66rem; color: var(--muted); }
.tabs-unten a i { font-size: 1.45rem; line-height: 1; }
.tabs-unten a.aktiv { color: #FC4C02; }
main.mit-tabs { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .tabs-unten { display: none; } main.mit-tabs { padding-bottom: 2rem; } }
.kopf-oben { display: none; }
@media (min-width: 768px) { .kopf-oben { display: flex; } }
.kopf-handy { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top); }
@media (min-width: 768px) { .kopf-handy { display: none; } }
/* Wischkarten */
.wischen { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
.wischen > * { scroll-snap-align: start; flex: 0 0 82%; }
@media (min-width: 640px) { .wischen > * { flex-basis: 48%; } }
table.tabelle th { color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
table.tabelle td, table.tabelle th { padding: .45rem .5rem; border-top: 1px solid var(--line); }
table.tabelle tr:first-child td, table.tabelle thead th { border-top: none; }
a.link { color: #FC4C02; text-decoration: underline; text-underline-offset: 2px; }
