:root {
  --grund: #f5f6f4; --flaeche: #ffffff; --text: #1d2420; --leise: #5f6b64; --linie: #d9ded9;
  --akzent: #1f6f4a; --akzent-text: #ffffff; --bar: #b5651d; --online: #2456a6; --fehler: #b3261e; --ok: #1f6f4a;
  --rund: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #141816; --flaeche: #1e2421; --text: #e8ece9; --leise: #9aa79f; --linie: #333b37;
    --akzent: #3fa877; --akzent-text: #0c1410; --bar: #e0954f; --online: #6c9bea; --fehler: #f08a83; --ok: #5cc493; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--grund); color: var(--text); font-size: 16px; line-height: 1.4; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
.breit { max-width: 1100px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0; }
.leise { color: var(--leise); font-size: .9rem; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zeile > input { flex: 1; min-width: 0; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; }
button, .gross, input, select { font: inherit; }
button, label.gross { cursor: pointer; border-radius: var(--rund); border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); padding: 10px 14px; }
button:focus-visible, label:focus-visible, input:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
input, select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); }
.gross { display: block; text-align: center; font-size: 1.3rem; font-weight: 700; padding: 22px 16px; }
.primaer, label.gross.primaer { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.bar { background: var(--bar); color: #fff; border-color: var(--bar); }
.online { background: var(--online); color: #fff; border-color: var(--online); }
.klein { background: transparent; border: none; color: var(--akzent); padding: 6px 0; text-decoration: underline; font-size: .95rem; }
.liste-knoepfe { display: grid; gap: 10px; margin-top: 16px; }
.liste-knoepfe button { font-size: 1.2rem; padding: 18px; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips button { padding: 10px 14px; border-radius: 999px; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--grund); border-color: var(--text); }
.adresse { font-size: 1.15rem; font-weight: 600; margin: 2px 0 0; word-break: break-word; }
.meldung { margin-top: 12px; padding: 12px 14px; border-radius: var(--rund); background: var(--flaeche); border: 1px solid var(--linie); }
.meldung.ok { border-color: var(--ok); color: var(--ok); }
.meldung.fehler { border-color: var(--fehler); color: var(--fehler); }
.hinweis { color: var(--fehler); margin: 0; }
.summe { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.pill { padding: 6px 12px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--flaeche); border: 1px solid var(--linie); }
.pill.bar { background: transparent; color: var(--bar); border-color: var(--bar); }
.pill.online { background: transparent; color: var(--online); border-color: var(--online); }
.touren { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.touren li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.touren li > div { min-width: 0; }
.touren .ort { font-weight: 600; overflow-wrap: anywhere; }
.tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag.bar { color: var(--bar); background: none; border: none; }
.tag.online { color: var(--online); background: none; border: none; }
.tabelle-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); font-weight: 600; }
td.zahl, th.zahl { text-align: right; }
tfoot td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: none; }
td.adr { white-space: normal; min-width: 180px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kennzahl { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.abschnitt { margin-top: 28px; }

.navi { display: block; margin-top: 10px; font-size: 1rem; padding: 14px; text-decoration: none; overflow-wrap: anywhere; }
.touren li button { flex-shrink: 0; }
