/* Schlichte Oberfläche für die Funktionsphase. Das Naturtheke-Design folgt in Etappe 11. */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #222; background: #f6f6f4; }
.kopf { display: flex; align-items: center; gap: 2rem; padding: .75rem 2rem; background: #fff; border-bottom: 1px solid #ddd; }
.marke { font-weight: 600; color: #222; text-decoration: none; }
.kopf nav { display: flex; gap: 1.25rem; flex: 1; }
.kopf nav a { color: #333; text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }
.wer { color: #666; font-size: 14px; }
main { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
main.schmal { max-width: 420px; }
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
label { display: block; margin-bottom: .9rem; font-size: 14px; color: #444; }
input, select { display: block; width: 100%; margin-top: .25rem; padding: .45rem .55rem; font: inherit; border: 1px solid #bbb; border-radius: 4px; background: #fff; }
button { padding: .5rem 1.1rem; font: inherit; border: 0; border-radius: 4px; background: #2f5d3a; color: #fff; cursor: pointer; }
button:hover { background: #244a2d; }
button.link { padding: 0; background: none; color: #2f5d3a; text-decoration: underline; }
form.inline { display: inline; margin-left: .75rem; }
form.zeile, div.zeile { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
form.zeile label, div.zeile label { margin: 0; min-width: 200px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid #e3e3e3; }
th { font-size: 13px; color: #666; font-weight: 600; }
tr.inaktiv td { color: #999; }
td.aktionen { text-align: right; white-space: nowrap; }
.fehler { padding: .6rem .8rem; background: #fdecea; border-left: 3px solid #c62828; }
.erfolg { padding: .6rem .8rem; background: #e8f3ea; border-left: 3px solid #2f5d3a; }
.klein { font-size: 13px; color: #666; }
.titelzeile { display: flex; align-items: baseline; justify-content: space-between; }
a.knopf { padding: .5rem 1.1rem; border-radius: 4px; background: #2f5d3a; color: #fff; text-decoration: none; }
a.knopf:hover { background: #244a2d; }
form.filter { margin-bottom: 1rem; }
label.haken { display: flex; align-items: center; gap: .4rem; min-width: 0; }
label.haken input { width: auto; margin: 0; }
form.raster fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 0 2rem; max-width: 820px; }
fieldset[disabled] input, fieldset[disabled] select { background: #f0f0ee; color: #333; }
.hilfe { display: block; font-size: 12px; color: #777; margin-top: .2rem; }
.knoepfe { margin-top: .5rem; display: flex; gap: 1rem; align-items: center; }
.abschnitt { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #ddd; }
.warnung { padding: .6rem .8rem; background: #fff6e0; border-left: 3px solid #d39b00; }
.warnung ul { margin: .3rem 0; }
table.schmal { max-width: 520px; }
td.leer { color: #888; font-style: italic; }
th.zahl, td.zahl, .spalte.zahl { text-align: right; white-space: nowrap; }
table.bestand > tbody > tr > td { padding: 0; }
table.bestand summary { display: grid; grid-template-columns: 2.2fr 2fr 1fr 1fr 1fr 1fr 1.6fr; gap: .75rem; padding: .55rem .75rem; cursor: pointer; align-items: baseline; }
table.bestand > thead > tr { display: grid; grid-template-columns: 2.2fr 2fr 1fr 1fr 1fr 1fr 1.6fr; gap: .75rem; }
table.bestand > thead > tr > th { padding: .5rem .75rem; }
table.bestand summary:hover { background: #f3f6f3; }
table.bestand details[open] summary { background: #eef3ef; }
.details { padding: .25rem 1.5rem 1rem; background: #fafbfa; }
.details h3 { font-size: 14px; margin: 1rem 0 .4rem; }
table.innen { font-size: 13px; }
table.innen th, table.innen td { padding: .3rem .5rem; }
.marke { display: inline-block; font-size: 12px; padding: 0 .4rem; border-radius: 3px; margin: 0 .25rem .2rem 0; }
.marke.gelb { background: #fff3cd; color: #7a5a00; }
.marke.rot { background: #fde2e1; color: #9b1c1c; }
td.mhd-bald { background: #fff3cd; }
td.mhd-abgelaufen { background: #fde2e1; }
tbody.platz { border-top: 2px solid #d5d5d0; }
td.platzname { font-weight: 600; vertical-align: top; }
table.eingabe td { padding: .25rem .4rem; }
table.eingabe input, table.eingabe select { margin: 0; }
input.kurz { width: 6rem; }
input.mittel { width: 10rem; }
label.breit { flex: 1; }
form.eng label { min-width: 0; font-size: 12px; margin: 0; }
form.eng { gap: .5rem; }
dl.kopf { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem 1rem; max-width: 640px; }
dl.kopf dt { color: #666; }
dl.kopf dd { margin: 0; }
.status { font-size: 14px; font-weight: normal; padding: .1rem .5rem; border-radius: 3px; background: #e8ece9; vertical-align: middle; }
.knoepfe a.knopf + a.knopf { margin-left: .5rem; }
div.zeile { margin-bottom: 1rem; }
button.zweit { background: #e8ece9; color: #2f5d3a; }
button.zweit:hover { background: #dce3dd; }
td.vorschlag { font-size: 13px; }
.fehlertext { color: #9b1c1c; }
.s-angefordert { background: #fff3cd; }
.s-bestätigt { background: #e3eefc; }
.s-ausgeliefert { background: #e8f3ea; }
.s-erhalten { background: #d8eadb; }
.s-storniert { background: #eee; color: #777; }
.aktionen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
form.karte { background: #fff; border: 1px solid #e0e0dc; border-radius: 6px; padding: 1rem; }
form.karte h2 { margin-top: 0; font-size: 1.05rem; }
.reiter a { margin-right: 1rem; }
.reiter a.aktiv { font-weight: 600; text-decoration: none; color: #222; border-bottom: 2px solid #2f5d3a; }
table.historie { font-size: 13px; }
table.historie td { vertical-align: top; }
ul.dokumente { padding-left: 1.2rem; margin: .3rem 0 1rem; }
.export { font-size: 13px; color: #666; }
details.loeschen { display: inline-block; margin-left: .5rem; font-size: 12px; }
details.loeschen summary { cursor: pointer; color: #9b1c1c; }
td.markiert, tr.markiert td:first-child { background: #fde2e1; color: #9b1c1c; }
details.markieren summary { cursor: pointer; font-size: 12px; color: #666; }
