:root { --tinte: #1d1d1b; --grau: #6b6b66; --linie: #d9d6cf; --papier: #faf9f6; --akzent: #8c2d19; --ok: #2f6b3a; --warn: #9a6a00; --rot: #a3261d; }
* { box-sizing: border-box; }
html { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinte); background: var(--papier); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--akzent); }
h1 { font-size: 1.7rem; margin: .2em 0 .6em; } h2 { font-size: 1.2rem; margin: 1.4em 0 .5em; } h3 { font-size: 1rem; margin: 0 0 .3em; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: #fff; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.marke { color: var(--tinte); text-decoration: none; font-size: 1.1rem; } .marke b { color: var(--akzent); }
.kopf nav a { margin-left: 1.2rem; text-decoration: none; color: var(--tinte); padding: .3rem 0; border-bottom: 2px solid transparent; }
.kopf nav a.aktiv { border-color: var(--akzent); }
main { flex: 1; width: min(1100px, 100%); margin: 0 auto; padding: 1.2rem 1.2rem 3rem; }
.fuss { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-top: 1px solid var(--linie); color: var(--grau); font-size: .85rem; }
.hero p { max-width: 48em; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.kachel { display: block; padding: 1.2rem; background: #fff; border: 1px solid var(--linie); border-radius: 8px; color: inherit; text-decoration: none; }
.kachel:hover { border-color: var(--akzent); } .kachel h2 { margin-top: 0; color: var(--akzent); }
.hinweise ul { max-width: 52em; }
fieldset { border: 1px solid var(--linie); border-radius: 8px; background: #fff; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .4rem; }
.zeile { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .5rem; }
label { display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; flex: 1 1 200px; font-size: .9rem; }
label span { color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
label.hat-fehler span { color: var(--rot); font-weight: 600; }
label.breit { flex-basis: 100%; } label.breit2 { flex: 2 1 320px; }
.paar { display: flex; gap: .6rem; flex: 1 1 260px; } .paar label.kurz { flex: 0 0 6.5em; } .paar label { min-width: 0; }
label.kurz:not(.paar label) { flex: 0 1 9em; }
.betrieb-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .2rem 0 .6rem; font-size: .85rem; color: var(--grau); }
.betrieb-leiste > span:first-child { flex-basis: 100%; }
button.klein, .knopf-datei { padding: .3rem .7rem; font-size: .85rem; }
.knopf-datei { display: inline-block; border: 1px solid var(--akzent); border-radius: 6px; background: #fff; color: var(--akzent); cursor: pointer; flex: 0 0 auto; }
.knopf-datei input { display: none; }
.betrieb-hinweis { font-weight: 600; } .betrieb-hinweis.ok { color: var(--ok); } .betrieb-hinweis.warnung { color: var(--rot); }
.logo-zeile { align-items: center; } .logo-vorschau { max-height: 48px; max-width: 220px; display: none; border: 1px solid var(--linie); background: #fff; padding: 2px; }
.logo-zeile small { color: var(--grau); } label.klein-text { font-size: .85rem; color: var(--grau); margin-top: .6rem; }
.pac-container { font-family: inherit; }
label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.radio { flex-direction: row; align-items: center; gap: .5rem; flex-basis: 100%; font-size: 1rem; }
input, select, textarea { font: inherit; padding: .4rem .5rem; border: 1px solid #b9b5ac; border-radius: 4px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
label.hat-fehler input { border-color: var(--rot); }
table.positionen { width: 100%; border-collapse: collapse; margin: .6rem 0; }
table.positionen th { text-align: left; font-size: .8rem; color: var(--grau); font-weight: 500; padding: 0 .3rem .2rem; }
table.positionen td { padding: .15rem .3rem; } table.positionen input, table.positionen select { width: 100%; }
table.positionen input.zahl { text-align: right; } table.positionen td:nth-child(3) { width: 6em; } table.positionen td:nth-child(5) { width: 8em; }
.entfernen { border: none; background: none; color: var(--grau); font-size: 1.2rem; cursor: pointer; }
button { font: inherit; padding: .55rem 1.1rem; border-radius: 6px; border: 1px solid var(--akzent); cursor: pointer; }
button.primaer { background: var(--akzent); color: #fff; } button.sekundaer { background: #fff; color: var(--akzent); }
.aktionen { display: flex; gap: 1rem; justify-content: flex-end; }
.box { padding: .8rem 1rem; border-radius: 8px; margin: 0 0 1rem; } .box ul { margin: .3rem 0 0; }
.box.fehler { background: #fbe9e7; border: 1px solid #e3b3ad; } .box.ok { background: #e8f3ea; border: 1px solid #b7d4bd; }
.meldung { white-space: pre-wrap; font: inherit; margin: 0; }
details.xml pre { background: #fff; border: 1px solid var(--linie); padding: 1rem; overflow: auto; font-size: .8rem; max-height: 60vh; }
form.upload { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 2rem; }
.pruefung { list-style: none; padding: 0; } .pruefung li { padding: .3rem .6rem .3rem 1.8rem; position: relative; }
.pruefung li::before { position: absolute; left: .4rem; font-weight: 700; }
.pruefung li.ok { color: var(--ok); } .pruefung li.ok::before { content: "✓"; }
.pruefung li.fehler { color: var(--rot); } .pruefung li.fehler::before { content: "✗"; }
.pruefung li.warnung { color: var(--warn); } .pruefung li.warnung::before { content: "!"; }
.pruefung li.hinweis { color: var(--grau); } .pruefung li.hinweis::before { content: "i"; }
.parteien { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.partei { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .8rem 1rem; } .partei p { margin: .2rem 0; }
.klein { color: var(--grau); font-size: .9rem; } .notiz { background: #fff; border-left: 3px solid var(--linie); padding: .4rem .8rem; }
table.tabelle { width: 100%; border-collapse: collapse; background: #fff; margin: 1rem 0; }
table.tabelle th, table.tabelle td { padding: .45rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
table.tabelle th { font-size: .85rem; color: var(--grau); font-weight: 500; } .r { text-align: right !important; white-space: nowrap; }
table.summen { margin-left: auto; min-width: 320px; border-collapse: collapse; } table.summen td { padding: .25rem .6rem; }
table.summen tr.gesamt td { font-weight: 700; border-top: 1px solid var(--tinte); }
@media print { .kopf, .fuss, form.upload, .pruefung, button { display: none !important; } main { padding: 0; } }
