:root {
  --text: #1c2430;
  --leise: #5f6b7a;
  --linie: #e3e7ec;
  --flaeche: #f6f7f9;
  --karte: #ffffff;
  --akzent: #1f4e79;
  --rot: #c62828;
  --rot-hell: #fdecec;
  --gelb: #b7791f;
  --gelb-hell: #fff6e0;
  --gruen: #2e7d32;
  --gruen-hell: #e9f6ea;
  --grau: #9aa5b1;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--flaeche);
}
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: 1.5rem 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: 0 0 1rem; }
h2.teil { margin: 2.25rem 0 .75rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); }

.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 2; }
.kopf-innen { max-width: 820px; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { font-weight: 650; text-decoration: none; color: var(--text); }
.marke span { color: var(--akzent); }
.abmelden { display: flex; align-items: center; gap: .75rem; margin: 0; }
.wer { color: var(--leise); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45vw; }

.seite { max-width: 820px; margin: 0 auto; padding: 0 1rem 4rem; }
.fuss { max-width: 820px; margin: 0 auto; padding: 1rem; color: var(--leise); font-size: .8rem; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }
.karte.schmal { max-width: 440px; margin: 3rem auto; }
.klein { font-size: .85rem; color: var(--leise); }
.meldung { background: var(--gruen-hell); border: 1px solid #cfe8d1; border-radius: var(--radius); padding: .75rem 1rem; margin-top: 1rem; }
.fehler { background: var(--rot-hell); border: 1px solid #f5c6c6; border-radius: var(--radius); padding: .75rem 1rem; }
.testcode { background: var(--gelb-hell); border: 1px dashed var(--gelb); border-radius: var(--radius); padding: .75rem 1rem; }

label { display: block; font-weight: 550; margin: 0 0 .3rem; }
input[type=text], input[type=email], input:not([type]), textarea {
  width: 100%; font: inherit; color: inherit; padding: .6rem .7rem;
  border: 1px solid #cfd6de; border-radius: 8px; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
input:disabled, textarea:disabled { background: var(--flaeche); color: var(--leise); }
textarea { resize: vertical; min-height: 4.5rem; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px;
  padding: .6rem 1.1rem; background: var(--akzent); color: #fff; margin-top: .75rem;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .45; cursor: default; }
button.leise { background: transparent; color: var(--akzent); border: 1px solid #cfd6de; font-weight: 500; }
.abmelden button { margin: 0; padding: .35rem .8rem; }

.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1rem; align-items: end; }
.raster button { margin: 0; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 600; padding: 0; margin-bottom: .4rem; }
.antraege label, .janein label, label.ok, label.weg { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin-right: 1.25rem; }
.aktionen { display: flex; gap: .75rem; flex-wrap: wrap; }
.aktionen form { margin: 0; }
.filter { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .9rem; color: var(--leise); }
.filter a { padding: .25rem .7rem; border: 1px solid var(--linie); border-radius: 99px; text-decoration: none; }
.filter a.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }

.stand { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; position: sticky; top: 3.4rem; z-index: 1; padding: .5rem 0; background: var(--flaeche); }
.stand-chip { padding: .45rem .8rem; border-radius: 99px; font-size: .9rem; border: 1px solid var(--linie); background: var(--karte); }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .8rem; margin: .1rem .2rem .1rem 0; border: 1px solid var(--linie); }
.c-rot { border-color: #f1b5b5; background: var(--rot-hell); }
.c-gelb { border-color: #f0d79a; background: var(--gelb-hell); }
.c-gruen { border-color: #bfe0c2; background: var(--gruen-hell); }
.legende { font-size: .8rem; color: var(--leise); display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.punkt { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.punkt.rot { background: var(--rot); } .punkt.gelb { background: var(--gelb); }
.punkt.gruen { background: var(--gruen); } .punkt.grau { background: var(--grau); }

.feld { border-left: 4px solid var(--grau); padding: .2rem 0 .2rem .9rem; margin: 0 0 1.2rem; }
.feld.rot { border-left-color: var(--rot); }
.feld.gelb { border-left-color: var(--gelb); }
.feld.gelb input, .feld.gelb textarea { background: var(--gelb-hell); }
.feld.gruen { border-left-color: var(--gruen); }
.feld-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.feld-kopf label { margin: 0; }
.einheit { font-weight: 400; color: var(--leise); }
.status { font-size: .75rem; white-space: nowrap; color: var(--leise); }
.feld.rot .status { color: var(--rot); } .feld.gelb .status { color: var(--gelb); } .feld.gruen .status { color: var(--gruen); }
.marken { margin: .15rem 0 .4rem; }
.marken span { display: inline-block; font-size: .7rem; padding: 0 .45rem; border-radius: 99px; background: #eef2f7; color: var(--leise); margin-right: .25rem; }
.belege { margin-top: .5rem; }
.beleg { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.beleg button { margin: 0; padding: .15rem .6rem; font-size: .8rem; }
label.datei { font-weight: 400; font-size: .85rem; color: var(--leise); margin-top: .4rem; }
label.datei input { display: block; margin-top: .25rem; font-size: .85rem; }

.eintrag { border: 1px dashed var(--linie); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
.abschnitt-fuss { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--linie); margin-top: 1rem; padding-top: .25rem; }
.uebergabe { border-color: var(--akzent); }

table.liste { width: 100%; border-collapse: collapse; font-size: .95rem; }
.liste th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); padding: .4rem .5rem; border-bottom: 1px solid var(--linie); }
.liste td { padding: .7rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }

@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  .karte { padding: 1rem; }
  .stand { top: 3.2rem; }
  .wer { display: none; }
}
