:root {
  --rot: #b3261e; --rot-dunkel: #8c1d17; --text: #1f1f1f; --leise: #5f5f5f; --rand: #d9d4cf;
  --grund: #f7f4f1; --karte: #ffffff; --ok: #1e6b35; --warn: #8a5a00;
  font-size: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
       background: var(--grund); line-height: 1.5; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
        padding: .75rem 1rem; background: var(--karte); border-bottom: 3px solid var(--rot); }
.marke { font-weight: 700; font-size: 1.15rem; color: var(--rot); text-decoration: none; }
.abmelden { display: flex; align-items: center; gap: .5rem; margin: 0; }
.wer { color: var(--leise); font-size: .9rem; }
main { max-width: 46rem; margin: 0 auto; padding: 1rem; }
.fuss { text-align: center; color: var(--leise); font-size: .8rem; padding: 2rem 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h1 small { display: block; font-size: 1rem; color: var(--leise); font-weight: 400; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
a { color: var(--rot-dunkel); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.schmal { max-width: 26rem; margin: 2rem auto; }
.leer { color: var(--leise); }
.zeile-titel { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
label { display: block; margin: .75rem 0; font-weight: 600; }
label.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .4rem 0; cursor: pointer; }
label.haken input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; }
.optional, .hinweis { color: var(--leise); font-weight: 400; font-size: .9rem; }
.warnung { color: var(--warn); }
.frage { margin: 1rem 0 .25rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; font-weight: 400;
  border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
input:focus, textarea:focus { outline: 3px solid #f2b8b5; border-color: var(--rot); }
button, .knopf { display: inline-block; padding: .7rem 1.1rem; min-height: 44px; font: inherit; font-weight: 600;
  color: #fff; background: var(--rot); border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
button:hover, .knopf:hover { background: var(--rot-dunkel); }
.zweit { background: #fff; color: var(--rot-dunkel); border: 1px solid var(--rot); }
.zweit:hover { background: #fbeceb; }
button.leise, a.leise { background: none; color: var(--leise); padding: .4rem .5rem; min-height: 0; font-weight: 400;
  text-decoration: underline; border: 0; }
.fehler { background: #fbeceb; border: 1px solid #f2b8b5; color: var(--rot-dunkel); padding: .75rem 1rem; border-radius: 8px; }
.fehler ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.ok { color: var(--ok); font-weight: 600; }
.offen { color: var(--warn); }
.formular fieldset { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; margin: 0 0 1rem; padding: .5rem 1.25rem 1rem; }
.formular legend { font-weight: 700; padding: 0 .4rem; color: var(--rot-dunkel); }
.grenzen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .25rem .75rem; }
label.grenze { margin: .25rem 0; font-weight: 400; }
label.grenze small { color: var(--leise); }
.mit-einheit { display: flex; align-items: center; gap: .35rem; }
.mit-einheit input { margin-top: 0; max-width: 6rem; }
.aktionen { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.aktionen form { margin: 0; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li a { display: block; background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: .9rem 1.1rem;
  margin-bottom: .6rem; text-decoration: none; color: var(--text); }
.liste li a:hover { border-color: var(--rot); }
.liste strong { display: block; }
.liste span { display: block; color: var(--leise); }
.liste small { color: var(--leise); }
.kontrolle .gross { font-size: 1.15rem; }
.probieren { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.probieren label { margin: 0; }
details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--rot-dunkel); }
pre { background: var(--grund); padding: .75rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; }
.einstellungen dt { font-weight: 600; margin-top: .6rem; }
.einstellungen dd { margin: 0; }
.marke-zeichen { font-family: ui-monospace, monospace; background: #fbeceb; color: var(--rot-dunkel); padding: 0 .3rem; border-radius: 4px; }
.schluessel span { display: inline-block; margin-right: .75rem; white-space: nowrap; }
.hochladen { border: 1px dashed var(--rand); border-radius: 8px; padding: .25rem .9rem .9rem; margin: .5rem 0 1rem; background: #fcfbfa; }
.hochladen input[type=file] { display: block; margin-top: .4rem; font: inherit; font-weight: 400; max-width: 100%; }
.ausgelesen { margin-top: .75rem; background: #edf6ef; border: 1px solid #b9dcc2; color: #1d4d2a; padding: .6rem .8rem; border-radius: 8px; }
.ausgelesen ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zeilen { list-style: none; padding: 0; margin: .4rem 0 1rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.zeilen li { display: flex; gap: .6rem; }
.zeilen .nr { flex: none; width: 2.2rem; text-align: right; color: var(--leise); }
[hidden] { display: none !important; }
@media (max-width: 30rem) {
  :root { font-size: 16px; }
  main { padding: .75rem; }
  .karte, .formular fieldset { padding-left: .9rem; padding-right: .9rem; }
  .aktionen > * { flex: 1 1 100%; text-align: center; }
  .aktionen button { width: 100%; }
}
