/* Trendrecherche: ruhig, dicht, mobil zuerst. Systemschrift, eine Akzentfarbe, Zustandsfarben nur für Zustände. */
:root {
  --grund: #f5f4f0;
  --flaeche: #ffffff;
  --text: #1c1e1f;
  --leise: #5c6166;
  --linie: #dedbd3;
  --akzent: #1f4f4b;
  --akzent-hell: #e3eeec;
  --gut: #2d6a3a;
  --gut-hell: #e6f1e8;
  --warn: #7a5200;
  --warn-hell: #fbf0d6;
  --schlecht: #962d2d;
  --schlecht-hell: #f9e6e3;
  --radius: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--akzent); }
h1 { font-size: 1.45rem; line-height: 1.25; margin: .4rem 0 .3rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: .2rem 0 .3rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.kopf { position: sticky; top: 0; z-index: 5; background: var(--flaeche); border-bottom: 1px solid var(--linie);
        padding: env(safe-area-inset-top) .9rem 0; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.marke { display: flex; gap: .5rem; align-items: center; font-weight: 650; text-decoration: none; color: var(--text); }
.reiter { display: flex; gap: .25rem; }
.reiter a { flex: 1; text-align: center; padding: .6rem .4rem; text-decoration: none; color: var(--leise);
            border-bottom: 3px solid transparent; font-weight: 550; }
.reiter a[aria-current="page"] { color: var(--akzent); border-bottom-color: var(--akzent); }

.inhalt { max-width: 760px; margin: 0 auto; padding: .9rem .9rem 3rem; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1rem; margin: .8rem 0; }
.karte.schmal { max-width: 380px; margin: 2rem auto; }
.leise { color: var(--leise); }
.klein { font-size: .86rem; }
.zurueck { margin: 0; font-size: .9rem; }

.zaehler { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0 0 .4rem; }
.zaehler div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .5rem .7rem; }
.zaehler dt { font-size: .78rem; color: var(--leise); }
.zaehler dd { margin: 0; font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.zaehler .warn { background: var(--warn-hell); border-color: #ecd9a6; }
@media (min-width: 640px) { .zaehler { grid-template-columns: repeat(4, 1fr); } }

.filter { display: flex; gap: .4rem; margin: .6rem 0; flex-wrap: wrap; }
.filter a { padding: .35rem .8rem; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none;
            color: var(--text); background: var(--flaeche); }
.filter a[aria-current="page"] { background: var(--akzent); border-color: var(--akzent); color: #fff; }

.liste { list-style: none; margin: .6rem 0; padding: 0; }
.eintrag { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); margin: .45rem 0; }
.eintrag > a { display: block; padding: .7rem .85rem; text-decoration: none; color: inherit; }
.eintrag.raus { opacity: .6; }
.eintrag-kopf { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.punkte-reihe { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.punkte { white-space: nowrap; font-size: .85rem; font-weight: 650; padding: .1rem .5rem; border-radius: 6px;
          background: var(--akzent-hell); color: var(--akzent); font-variant-numeric: tabular-nums; }
.punkte.ko { background: var(--schlecht-hell); color: var(--schlecht); }
.punkte.nicht_bewertet, .punkte.offen { background: #eeece7; color: var(--leise); font-weight: 500; }
.marken { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.marke-klein { font-size: .76rem; padding: .05rem .45rem; border-radius: 5px; background: #f0eee9; color: var(--leise); }
.marke-klein.warn { background: var(--warn-hell); color: var(--warn); }
.marke-klein.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.marke-klein.entscheidung { background: var(--akzent-hell); color: var(--akzent); }

.hinweis-etsy, .warnung, .hinweis, .meldung { border-radius: var(--radius); padding: .6rem .8rem; margin: .6rem 0; font-size: .92rem; }
.hinweis-etsy { background: var(--akzent-hell); border: 1px solid #b9d3cf; }
.warnung { background: var(--schlecht-hell); border: 1px solid #e8b9b2; color: #5d1c1c; font-weight: 550; }
.hinweis { background: #f0eee9; border: 1px solid var(--linie); }
.meldung { background: var(--gut-hell); border: 1px solid #b7d4bd; }
.fehler { color: var(--schlecht); font-weight: 600; }
.gut { color: var(--gut); font-weight: 600; }

.rechnung { font-size: .9rem; color: var(--leise); margin: .2rem 0; }
.posten { list-style: none; padding: 0; margin: .3rem 0; font-size: .92rem; }
.posten li { padding: .15rem 0; font-variant-numeric: tabular-nums; }
.posten .plus { color: var(--gut); }
.posten .minus { color: var(--schlecht); }
.posten .ko { color: var(--schlecht); font-weight: 650; }
.bewertung + .bewertung { border-top: 1px solid var(--linie); margin-top: .6rem; padding-top: .6rem; }

.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th, .tabelle td { text-align: left; padding: .35rem .3rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 550; color: var(--leise); width: 55%; }
.klasse-abgewiesen td, .klasse-struktur_geaendert td, .klasse-login_noetig td { color: var(--schlecht); font-weight: 600; }
.klasse-nicht_erreichbar td { color: var(--warn); }
.klasse-gesperrt td { color: var(--leise); }

blockquote { margin: .4rem 0; padding: .35rem .7rem; background: #f7f6f2; border-radius: 6px; color: var(--leise); font-size: .9rem; font-style: italic; }
.beleg { border-top: 1px solid var(--linie); padding-top: .4rem; margin-top: .4rem; }
.beleg p { margin: .2rem 0; overflow-wrap: anywhere; }
.beleg.zitat_fehlt strong, .beleg.nicht_pruefbar strong { color: var(--warn); }
.beleg.geprueft strong { color: var(--gut); }

.reihe { margin: .5rem 0 .9rem; }
.reihe figcaption { font-size: .88rem; font-weight: 550; }
.linie { width: 100%; height: 64px; color: var(--akzent); background: #fafaf8; border-radius: 6px; }
details summary { cursor: pointer; color: var(--akzent); font-size: .9rem; padding: .2rem 0; }

.formular { display: grid; gap: .45rem; margin: .5rem 0; }
.formular label { font-size: .9rem; font-weight: 550; }
.formular input[type=password], .formular input:not([type]), .formular input[type=text] {
  font: inherit; padding: .6rem .7rem; border: 1px solid #c9c5bb; border-radius: 8px; background: #fff; min-height: 44px; }
.wahl { border: 0; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.wahl legend { font-size: .9rem; font-weight: 550; margin-bottom: .3rem; }
.wahl label { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--linie); border-radius: 8px;
              padding: .45rem .7rem; min-height: 44px; font-weight: 500; }
.knopf { display: inline-block; font: inherit; font-weight: 600; background: var(--akzent); color: #fff; border: 0;
         border-radius: 8px; padding: .65rem 1rem; min-height: 44px; text-decoration: none; cursor: pointer; }
.leise-knopf { font: inherit; background: none; border: 1px solid var(--linie); border-radius: 8px; padding: .4rem .7rem;
               color: var(--leise); cursor: pointer; min-height: 36px; }
.knopf:focus-visible, .leise-knopf:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7fb3ad; outline-offset: 2px; }
.sam { width: 100%; font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .7rem; border: 1px solid #c9c5bb;
       border-radius: 8px; background: #fff; }
.bericht { white-space: pre-wrap; overflow-wrap: anywhere; background: #fafaf8; padding: .6rem; border-radius: 6px; }
