:root {
  --grund: #f5f6f4;
  --flaeche: #ffffff;
  --text: #1d2420;
  --leise: #5d6862;
  --linie: #dfe3df;
  --akzent: #1f5f8b;
  --akzent-text: #ffffff;
  --warn-grund: #fff4d6;
  --warn-text: #6b4b00;
  --fehlt: #fffaf0;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #151917;
    --flaeche: #1e2421;
    --text: #e8ece9;
    --leise: #a3ada7;
    --linie: #333b37;
    --akzent: #5aa6d6;
    --akzent-text: #0c1a24;
    --warn-grund: #3a3115;
    --warn-text: #f3d98a;
    --fehlt: #2a2618;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--grund);
  color: var(--text);
}
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }

.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.25rem; background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.kopf nav { display: flex; align-items: center; gap: 1rem; }
.kopf nav form { margin: 0; }
.wer { color: var(--leise); font-size: .9rem; }

main { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.schmal { max-width: 520px; }
.mitte { margin: 3rem auto; text-align: center; }
.klein { font-size: .85rem; color: var(--leise); }
.hinweis { background: var(--flaeche); border-left: 4px solid var(--akzent); padding: .6rem .9rem; border-radius: 6px; }
.warnung { background: var(--warn-grund); color: var(--warn-text); padding: .4rem .7rem; border-radius: 6px; margin: 0; font-size: .9rem; }
.zurueck { margin: 0 0 .3rem; font-size: .9rem; }

.knopf, button {
  font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--akzent);
  background: var(--akzent); color: var(--akzent-text); padding: .45rem .9rem; text-decoration: none;
  display: inline-block;
}
.knopf.gross { padding: .7rem 1.4rem; font-weight: 600; }
button.leise { background: transparent; color: var(--akzent); border-color: var(--linie); }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.liste a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; text-decoration: none; color: var(--text); }
.liste a:hover .titel { color: var(--akzent); }
.liste .meta { color: var(--leise); font-size: .9rem; white-space: nowrap; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem 1rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--leise); }
input:not([type=checkbox]), select {
  font: inherit; color: var(--text); background: var(--grund); border: 1px solid var(--linie);
  border-radius: 6px; padding: .4rem .55rem;
}
.zeile-oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.zeile-oben h2 { margin: 0; }
.zahl { background: var(--grund); border: 1px solid var(--linie); border-radius: 99px; padding: 0 .55rem; font-size: .85rem; margin-left: .3rem; }

.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
th { font-size: .8rem; color: var(--leise); font-weight: 600; }
.eng { width: 1%; white-space: nowrap; text-align: center; }
td select { padding: .15rem .3rem; }
tr.fehlt td { background: var(--fehlt); }
.unter { display: block; font-size: .78rem; color: var(--leise); }

.aktionen { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .kopf { padding: .6rem 1rem; }
  .kopf nav { gap: .6rem; }
  .wer { display: none; }
  main { padding: 1rem 1rem 2rem; }
  .liste a { flex-direction: column; gap: 0; }
}
