/* Umbau-Portal Holl AG – mobil zuerst: große Tastflächen, gut lesbar in der Werkstatt. Keine Inline-Styles (CSP). */
:root {
  --grund: #f3f5f7; --flaeche: #ffffff; --text: #16212b; --leise: #5b6875; --linie: #d6dce2;
  --marke: #14324a; --akzent: #ffd23f; --gruen: #1b7f3b; --gruen-hell: #e3f4e8; --gelb: #8a5a00; --gelb-hell: #fff3cf;
  --rot: #b3261e; --rot-hell: #fde7e5; --info: #2b5c88; --info-hell: #e4eef7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #10161c; --flaeche: #1a232c; --text: #e8edf2; --leise: #9aa7b4; --linie: #33404c;
    --marke: #0c1f2e; --gruen: #6fd08a; --gruen-hell: #173524; --gelb: #f1c45a; --gelb-hell: #3a2f10;
    --rot: #ff8a80; --rot-hell: #44201d; --info: #8fbde6; --info-hell: #1b2f42;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--info); }
h1 { font-size: 1.45rem; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 0; }
p { margin: .4rem 0; }
[hidden] { display: none !important; }

.kopf { background: var(--marke); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 16px; }
.marke { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; }
.marke small { display: block; font-weight: 400; opacity: .8; font-size: .8rem; }
.logo { background: var(--akzent); color: #14324a; width: 2.2rem; height: 2.2rem; border-radius: .5rem; display: grid; place-items: center; font-weight: 800; }
.kopf nav { display: flex; gap: .2rem; flex-wrap: wrap; flex: 1; }
.kopf nav a { color: #fff; text-decoration: none; padding: .5rem .7rem; border-radius: .4rem; }
.kopf nav a:hover { background: rgba(255,255,255,.15); }
.wer { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.link { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; padding: .4rem 0; }

main { max-width: 960px; margin: 0 auto; padding: 16px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .8rem; padding: 1rem; margin: 0 0 1rem; display: block; }
.karte.schmal { max-width: 28rem; margin: 2rem auto; }
.karte.breit { overflow-x: auto; }
.liste { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .liste { grid-template-columns: 1fr 1fr; } }
.liste .karte { margin: 0; }
.auftrag { color: inherit; text-decoration: none; }
.auftrag:hover { border-color: var(--info); }
.zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.abschnitt { margin: 1.4rem 0 .7rem; }
.fin, .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.fin { font-size: 1.05rem; margin: .2rem 0; overflow-wrap: anywhere; }
.klein { font-size: .85rem; color: var(--leise); }
progress { width: 100%; height: .6rem; accent-color: var(--gruen); margin-top: .4rem; }

.chip { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 1rem; background: var(--info-hell); color: var(--info); }
.chip.gruen { background: var(--gruen-hell); color: var(--gruen); }
.chip.gelb, .chip.wartet { background: var(--gelb-hell); color: var(--gelb); }
.chip.rot, .chip.fehler { background: var(--rot-hell); color: var(--rot); }
.chip.leer { background: var(--grund); color: var(--leise); }
.punkt { border-left-width: .45rem; }
.ampel-gruen { border-left-color: var(--gruen); }
.ampel-gelb, .ampel-wartet { border-left-color: #e0a100; }
.ampel-rot, .ampel-fehler { border-left-color: var(--rot); }
.punkt img { width: 100%; max-height: 22rem; object-fit: contain; background: #000; border-radius: .5rem; margin: .5rem 0; display: block; }
.gruende { margin: .4rem 0; padding-left: 1.2rem; }
.gruende li { margin: .2rem 0; }
.nachweise { list-style: none; padding: 0; margin: 0; }
.nachweise li { padding: .5rem .7rem; border-radius: .5rem; margin: .35rem 0; }
.nachweise .ok { background: var(--gruen-hell); }
.nachweise .offen { background: var(--rot-hell); }
.banner { background: var(--info-hell); color: var(--text); border-radius: .6rem; padding: .7rem .9rem; margin: 0 0 1rem; }
.banner.rot { background: var(--rot-hell); }

.knopf { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 2.9rem; padding: .5rem 1.1rem; border: 2px solid var(--marke); border-radius: .6rem; background: var(--marke); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
@media (prefers-color-scheme: dark) { .knopf { background: #2b5c88; border-color: #2b5c88; } }
.knopf.zweit { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.gross { min-height: 3.6rem; width: 100%; font-size: 1.1rem; }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.knopf:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.foto-knopf { margin-top: .6rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }
.aktionen form { margin: 0; }
.aktionen .gross { flex: 1 1 14rem; }

.stapel { display: grid; gap: .9rem; }
.raster { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .raster { grid-template-columns: 1fr 1fr; } .nur-anderes { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; } }
label { display: grid; gap: .25rem; font-size: .9rem; color: var(--leise); }
input, select, textarea { font: inherit; font-size: 1.05rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: .5rem; padding: .65rem .7rem; width: 100%; min-height: 2.9rem; }
input:disabled, select:disabled, textarea:disabled { background: var(--grund); }
.haken { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1rem; }
.haken input { width: 1.5rem; height: 1.5rem; min-height: 0; }
.dok { display: grid; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--linie); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
td { padding: .45rem .5rem; border-top: 1px solid var(--linie); vertical-align: top; overflow-wrap: anywhere; }
summary { cursor: pointer; padding: .3rem 0; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 1.2rem 0; }
