:root {
  --grund: #faf9f6; --flaeche: #ffffff; --text: #1a1a1a; --leise: #6b6a65; --linie: #e6e4dd;
  --akzent: #2e5e8e; --rot: #c0392b; --gruen: #2f7a4b; --gelb: #9a6a00;
  --radius: 10px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #1b1b1a; --flaeche: #242423; --text: #ecebe6; --leise: #a19f97; --linie: #3a3a37;
          --akzent: #8db6dd; --rot: #f08a7e; --gruen: #7fc79a; --gelb: #e0b95c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--akzent); }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
        padding: 16px 24px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.marke { font-weight: 600; font-size: 18px; }
.kunde { color: var(--leise); font-weight: 400; margin-left: 8px; }
.werkzeuge { display: flex; gap: 8px; align-items: center; }
.reiter { display: flex; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid var(--linie); overflow-x: auto; }
.reiter button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; color: var(--leise); cursor: pointer; }
.reiter button.aktiv { color: var(--text); border-bottom-color: var(--akzent); }
main { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.erklaerung { color: var(--leise); margin: 0 0 20px; }
.hinweis { color: var(--leise); }
.hinweis.fehler { color: var(--rot); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.karte-kopf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--leise); }
.status { font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--linie); color: var(--text); }
.status[data-status="entwurf"] { color: var(--gruen); }
.status[data-status="fehler"] { color: var(--rot); }
.status[data-status="test"], .status[data-status="neu verarbeiten"] { color: var(--gelb); }
.titel { margin: 8px 0 4px; font-size: 17px; }
.begruendung { color: var(--leise); font-size: 14px; margin: 0 0 12px; }
.post { white-space: pre-wrap; border-left: 3px solid var(--akzent); padding: 4px 0 4px 14px; margin: 12px 0; }
.bilder { display: flex; gap: 8px; flex-wrap: wrap; }
.bilder img { max-width: 220px; max-height: 150px; border-radius: 6px; border: 1px solid var(--linie); object-fit: cover; }
.mehr { margin: 12px 0; font-size: 14px; }
.mehr pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--leise); }
.aktionen { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
button { font: inherit; background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button.leise { background: none; color: var(--akzent); border: 1px solid var(--linie); }
button:disabled { opacity: .6; cursor: default; }
select, input, textarea { font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
.abschnitt { margin-bottom: 28px; }
.abschnitt h3 { margin: 0 0 8px; }
.gespeichert { color: var(--leise); font-size: 14px; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr.warnung td { color: var(--rot); }
.tabelle td a { word-break: break-all; }
.rollbar { overflow-x: auto; }
.formular { display: grid; gap: 10px; margin-top: 28px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; }
.formular h3 { margin: 0; }
.formular label { display: grid; gap: 4px; font-size: 14px; color: var(--leise); }
.formular button { justify-self: start; }
.linkfeld { width: 100%; margin-top: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
@media (max-width: 600px) { .kopf, .reiter { padding-left: 16px; padding-right: 16px; } }
