:root { --gruen: #3f6b3a; --hell: #f4f6f2; --text: #1d241c; --grau: #6b7368; --fehler: #a3261d; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--hell); }
main { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
.marke { color: var(--gruen); font-weight: 700; letter-spacing: .04em; font-size: .85rem; text-transform: uppercase; }
p.leise { color: var(--grau); margin-top: .25rem; }
button { font: inherit; font-weight: 600; border: 0; border-radius: .6rem; padding: .9rem 1.2rem; width: 100%; background: var(--gruen); color: #fff; cursor: pointer; margin-top: 1rem; }
button.zweit { background: transparent; color: var(--gruen); border: 1px solid var(--gruen); }
button:disabled { opacity: .55; cursor: default; }
.karte { background: #fff; border-radius: .8rem; padding: 1.1rem 1.2rem; margin-top: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.meldung { margin-top: 1rem; padding: .8rem 1rem; border-radius: .6rem; background: #e7efe3; }
.meldung.fehler { background: #f7e3e1; color: var(--fehler); }
ul.liste { list-style: none; padding: 0; margin: .5rem 0 0; }
ul.liste li { padding: .65rem 0; border-bottom: 1px solid #edf0ea; display: flex; justify-content: space-between; gap: 1rem; }
ul.liste li:last-child { border-bottom: 0; }
.status { color: var(--grau); font-size: .9rem; }
a { color: var(--gruen); }
.marke a { text-decoration: none; }
label { display: block; margin-top: .8rem; font-size: .9rem; color: var(--grau); }
input, select { display: block; width: 100%; font: inherit; color: var(--text); margin-top: .25rem; padding: .7rem .8rem; border: 1px solid #d5dbd1; border-radius: .5rem; background: #fff; }
nav.menue { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
nav.menue a { background: #fff; padding: .6rem .9rem; border-radius: .6rem; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
textarea { display: block; width: 100%; font: inherit; color: var(--text); margin-top: .25rem; padding: .7rem .8rem; border: 1px solid #d5dbd1; border-radius: .5rem; background: #fff; resize: vertical; }
.reihe { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.abstand { display: block; margin-top: 1.2rem; }
.leistung { display: grid; grid-template-columns: 1fr 4.5rem 4rem 3.8rem 2.4rem; gap: .35rem; margin-top: .5rem; }
.leistung input { margin-top: 0; padding: .55rem .5rem; }
.leistung button.weg { margin: 0; padding: 0; background: transparent; color: var(--grau); border: 1px solid #d5dbd1; }
label.haken { display: flex; align-items: center; gap: .6rem; color: var(--text); }
label.haken input { width: auto; margin: 0; }
@media (max-width: 30rem) { .leistung { grid-template-columns: 1fr 1fr 1fr 2.4rem; } .leistung .lt { grid-column: 1 / -1; } }
nav.menue span:not([hidden]) { display: contents; }
.reihe > label, .reihe input { min-width: 0; } .reihe > label { white-space: nowrap; }
.reihe.zwei { grid-template-columns: 1fr 1fr; } #kunde { margin-top: .4rem; }
li.geraet { flex-wrap: wrap; align-items: flex-start; }
li.geraet .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.ampel { font-size: .85rem; font-weight: 600; padding: .15rem .5rem; border-radius: .4rem; white-space: nowrap; }
.ampel.rot { background: #f7e3e1; color: var(--fehler); } .ampel.gelb { background: #fbf0d0; color: #7a5a00; }
.ampel.gruen { background: #e7efe3; color: var(--gruen); } .ampel.grau { background: #eef0ec; color: var(--grau); }
button.klein { width: auto; margin: 0; padding: .3rem .7rem; font-size: .85rem; background: transparent; color: var(--gruen); border: 1px solid var(--gruen); }
form.erledigt { flex-basis: 100%; }
li.aufgabe .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0; }
#vorschlaege { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; } button.vorschlag { text-align: left; }
input[type=file] { padding: .5rem; font-size: .9rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .4rem; margin-top: .6rem; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .4rem; display: block; }
.ls-karte { margin-top: .6rem; padding: .7rem .9rem; border-radius: .6rem; background: #e7efe3; display: flex; flex-direction: column; gap: .4rem; }
.ls-karte.warnung { background: #fbf0d0; color: #7a5a00; } .ls-karte.rot { background: #f7e3e1; color: var(--fehler); }
.ls-karte .knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; } .ls-karte b { display: block; }
.galerie a.lieferschein img { outline: 2px solid var(--gruen); }
/* Verträge und Unterschrift */
main.breit { max-width: 46rem; }
li.vertrag { flex-wrap: wrap; } li.vertrag .rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.vertrag-detail { flex-basis: 100%; background: var(--hell); border-radius: .6rem; padding: .6rem .8rem; }
.link-box { word-break: break-all; font-size: .85rem; background: #fff; border: 1px dashed #c9cfc5; border-radius: .5rem; padding: .5rem; margin-top: .4rem; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; } .knopfreihe a, .knopfreihe button { width: auto; margin-top: .4rem; }
a.knopf { display: inline-block; background: var(--gruen); color: #fff; text-decoration: none; padding: .5rem .9rem; border-radius: .5rem; font-weight: 600; font-size: .9rem; }
#seiten canvas { width: 100%; height: auto; display: block; border-radius: .4rem; margin-top: .6rem; box-shadow: 0 0 0 1px #e4e2da; }
#pad { width: 100%; height: 190px; background: #fff; border: 2px dashed #c9cfc5; border-radius: .7rem; touch-action: none; display: block; margin-top: .4rem; }
.gross { font-size: 3rem; text-align: center; margin: 0; }
a.pdflink { display: inline-block; margin-top: .6rem; font-weight: 600; }
.belehrung { max-height: 14rem; overflow-y: auto; white-space: pre-wrap; background: #f6f6f2; border: 1px solid #ddd; border-radius: .5rem; padding: .7rem .8rem; margin: .5rem 0 .8rem; font-size: .9rem; }
