:root {
  --tinte: #16232f;
  --text: #1f2a33;
  --grau: #66737f;
  --linie: #dfe4e8;
  --flaeche: #f4f6f7;
  --karte: #ffffff;
  --akzent: #1f7a6d;
  --akzent-hell: #e3f1ee;
  --gefahr: #b3261e;
  --warn: #9a6700;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--text); background: var(--flaeche); }
a { color: var(--akzent); }
code { font: 13px ui-monospace, Consolas, monospace; background: var(--flaeche); padding: 1px 5px; border-radius: 3px; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; background: var(--tinte); color: #fff; }
.kopf .marke { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.kopf .marke span { font-weight: 400; opacity: .75; }
.kopf nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kopf nav a { color: #fff; text-decoration: none; opacity: .9; }
.kopf nav a:hover { opacity: 1; text-decoration: underline; }
.kopf .wer { opacity: .6; font-size: 13px; }
.kopf form { margin: 0; }
button.link { background: none; border: 0; color: #fff; opacity: .9; padding: 0; font: inherit; cursor: pointer; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 24px; margin: 4px 0 18px; }
h1 small { font-size: 15px; color: var(--grau); font-weight: 400; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 20px 0 8px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 6px; padding: 18px 20px; margin-bottom: 18px; overflow-x: auto; }
.karte.schmal { max-width: 380px; margin: 40px auto; }
.hinweis { color: var(--grau); font-size: 13px; margin: 6px 0; }
.meldung { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: var(--akzent-hell); border: 1px solid #b9ddd6; }
.meldung.fehler { background: #fbeaea; border-color: #f0c2bf; color: var(--gefahr); }
.formular { display: flex; flex-direction: column; gap: 12px; }
.formular.reihe { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.formular label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--grau); }
input, select { font: inherit; padding: 7px 9px; border: 1px solid var(--linie); border-radius: 4px; background: #fff; color: var(--text); min-width: 0; }
input[type=file] { padding: 5px; }
button, .knopf { font: inherit; padding: 8px 16px; border: 0; border-radius: 4px; background: var(--akzent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { filter: brightness(1.08); }
button.gefahr { background: var(--gefahr); padding: 5px 10px; font-size: 13px; }
.auswahl { margin-bottom: 16px; }
.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
.liste th { text-align: left; font-weight: 600; color: var(--grau); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--linie); padding: 6px 8px; }
.liste td { border-bottom: 1px solid var(--linie); padding: 8px; vertical-align: top; }
.liste .zahl { text-align: right; white-space: nowrap; }
.liste .leer { color: var(--grau); text-align: center; padding: 18px; }
.adressen { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0; }
.adressen dt { color: var(--grau); }
.adressen dd { margin: 0; word-break: break-all; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 6px; padding: 14px; color: var(--grau); text-decoration: none; font-size: 13px; }
.kachel b { display: block; font-size: 26px; color: var(--tinte); }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; align-items: center; }
.filter a { padding: 4px 10px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--karte); border: 1px solid var(--linie); font-size: 13px; }
.filter a.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.filter .trenner { width: 1px; height: 20px; background: var(--linie); margin: 0 6px; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--flaeche); white-space: nowrap; }
.s-eingegangen { background: #eef2f6; }
.s-in_pruefung { background: #fff4d6; color: var(--warn); }
.s-uebergeben { background: var(--akzent-hell); color: var(--akzent); }
.s-abgelehnt { background: #fbeaea; color: var(--gefahr); }
.s-geloescht { color: var(--grau); text-decoration: line-through; }
.marke-dublette { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #fff4d6; color: var(--warn); }
details.loeschen summary { cursor: pointer; color: var(--gefahr); font-size: 13px; list-style: none; }
details.loeschen summary::-webkit-details-marker { display: none; }
details.loeschen form { margin-top: 6px; }
@media (max-width: 640px) {
  .kopf { padding: 12px 16px; }
  .adressen { grid-template-columns: 1fr; }
}
button.klein { padding: 4px 10px; font-size: 13px; }
button.zweit { background: #fff; color: var(--akzent); border: 1px solid var(--akzent); }
textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--linie); border-radius: 4px; width: 100%; }
.pruefung { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 18px; align-items: start; }
.pruefung .vorschau iframe { width: 100%; height: 78vh; border: 1px solid var(--linie); border-radius: 4px; background: #fff; }
.pruefung .vorschau img { max-width: 100%; border: 1px solid var(--linie); }
.pruefung .info { font-size: 14px; background: var(--akzent-hell); }
.felder .feld { display: flex; gap: 10px; align-items: flex-end; }
.felder .feld > label:first-child { flex: 1; }
.felder .ok { flex-direction: row !important; align-items: center; gap: 4px !important; white-space: nowrap; padding-bottom: 8px; }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .pruefung { grid-template-columns: 1fr; } .pruefung .vorschau iframe { height: 60vh; } }
