:root {
  --grund: #f5f3ee; --flaeche: #ffffff; --linie: #e3dfd6; --text: #1b2430; --leise: #6b7480;
  --akzent: #1f6f78; --plus: #1d7a46; --minus: #b3362f; --warn: #a86a00;
  --radius: 14px; --knopftext: #ffffff; --schatten: 0 1px 2px rgba(20,30,40,.06), 0 4px 16px rgba(20,30,40,.05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #0f1720; --flaeche: #17212c; --linie: #263342; --text: #e6eaef; --leise: #8e9aa8;
          --akzent: #5bb7bf; --plus: #4fc283; --minus: #ef7a71; --warn: #e3a64a; --schatten: none; --knopftext: #0f1720; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: .4rem 0 .3rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.leise { color: var(--leise); } .klein { font-size: .85rem; }
.plus { color: var(--plus); } .minus { color: var(--minus); }

.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: calc(env(safe-area-inset-top) + .6rem) 1rem .6rem; background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-weight: 650; }
.oben { display: flex; gap: .25rem; }
.oben a { text-decoration: none; color: var(--leise); padding: .35rem .7rem; border-radius: 999px; font-size: .95rem; }
.oben a.an { color: var(--text); background: var(--flaeche); box-shadow: var(--schatten); }
.unten { display: none; }
.inhalt { max-width: 980px; margin: 0 auto; padding: 1rem 1rem 6rem; }

@media (max-width: 760px) {
  .oben { display: none; }
  .unten { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--flaeche); border-top: 1px solid var(--linie); padding: .35rem 0 calc(env(safe-area-inset-bottom) + .35rem); }
  .unten a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .7rem; color: var(--leise); text-decoration: none; }
  .unten a.an { color: var(--akzent); }
  .unten svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  h1 { font-size: 1.4rem; }
}

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--schatten); margin: 0 0 1rem; }
.leer { color: var(--leise); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.index-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.index-kopf h2 { margin: 0; }
.stand { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.zahlen { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .9rem; margin: .2rem 0 .6rem; font-variant-numeric: tabular-nums; }
.kurve { width: 100%; margin: .2rem 0 .6rem; }
.prognosen { display: grid; gap: .3rem; margin: 0 0 .4rem; }
.prognosen div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--linie); padding-top: .3rem; }
.prognosen dt { color: var(--leise); } .prognosen dd { margin: 0; font-variant-numeric: tabular-nums; }

.leiste { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
select, input, button { font: inherit; }
select, input { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); border-radius: 10px; padding: .5rem .7rem; }
button { background: var(--akzent); color: var(--knopftext); border: 0; border-radius: 10px; padding: .65rem 1rem; font-weight: 600; cursor: pointer; }
button.zweit { background: transparent; color: var(--akzent); border: 1px solid var(--linie); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }

.bericht { overflow-wrap: anywhere; }
.bericht h1 { font-size: 1.5rem; }
.bericht h2 { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--linie); }
.bericht blockquote { margin: .6rem 0; padding: .6rem .9rem; border-left: 3px solid var(--warn); background: var(--flaeche); border-radius: 0 10px 10px 0; }
.bericht ul { padding-left: 1.2rem; }
.bericht table, .tabelle table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bericht table { display: block; overflow-x: auto; }
.tabelle { overflow-x: auto; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th { color: var(--leise); font-weight: 600; }

.feed { list-style: none; padding: 0; margin: 0; }
.meldung .zeit { font-size: .8rem; color: var(--leise); margin-bottom: .25rem; }
.meldung.kurs { border-left: 4px solid var(--akzent); }
.meldung.nachricht { border-left: 4px solid var(--warn); }
.meldung.nachricht-gefiltert { opacity: .6; }
.liste { padding-left: 1.1rem; }

body.login { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-karte { width: min(100%, 360px); display: grid; gap: .5rem; text-align: left; }
.login-karte h1 { margin: .2rem 0 0; }
.login-karte .fehler { color: var(--minus); margin: 0; }
.login-karte button { margin-top: .4rem; }
