/* regio-logistik (wie kundentracking): Gruen #89B71A nur fuer Flaechen/Linien, Text Dunkelgrau #39393A. */
:root {
  --gruen: #89B71A; --gruen-hell: #eef5dc; --gruen-dunkel: #4d6a0a; --grau: #39393A; --grau-mittel: #6b6b6d;
  --grau-hell: #f4f4f2; --linie: #dcdcd8; --weiss: #fff; --rot: #9b1c14; --rot-hell: #fbeae8; --gelb-hell: #fff5d6; --gelb: #7a5a00;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grau-hell); color: var(--grau); font-family: Calibri, Carlito, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.4; }
a { color: var(--grau); text-decoration-color: var(--gruen); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; border-left: 4px solid var(--gruen); padding-left: .5rem; margin: 1.4rem 0 .6rem; }
.kopf { background: var(--weiss); border-bottom: 3px solid var(--gruen); padding: .6rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.kopf img.logo { height: 40px; width: auto; display: block; }
.kopf .titel { font-weight: 700; font-size: 1.1rem; }
.kopf .titel small { display: block; font-weight: 400; font-size: .85rem; color: var(--grau-mittel); }
.kopf nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.kopf nav a { white-space: nowrap; text-decoration: none; padding: .35rem .7rem; border-radius: var(--radius); font-weight: 700; }
.kopf nav a.aktiv, .kopf nav a:hover { background: var(--gruen-hell); }
.modus { font-weight: 700; padding: .2rem .6rem; border-radius: var(--radius); font-size: .9rem; white-space: nowrap; }
.modus.datei { background: var(--gelb-hell); color: var(--gelb); border: 1px solid #e6cf85; }
.modus.senden { background: var(--gruen-hell); color: var(--gruen-dunkel); border: 1px solid var(--gruen); }
.inhalt { max-width: 1240px; margin: 0 auto; padding: 1rem 16px 3rem; }
.unter { color: var(--grau-mittel); margin: 0 0 1rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1rem; }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--gruen); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; display: block; }
.kachel .wert { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.kachel .text { color: var(--grau-mittel); margin-top: .3rem; }
.kachel.achtung { border-top-color: var(--rot); background: var(--rot-hell); }
.hinweis { border-left: 4px solid var(--rot); background: var(--rot-hell); padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.hinweis.ok { border-left-color: var(--gruen); background: var(--gruen-hell); }
.hinweis.gelb { border-left-color: #d9b44a; background: var(--gelb-hell); }
table { width: 100%; border-collapse: collapse; background: var(--weiss); }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; color: var(--grau-mittel); font-weight: 700; background: var(--grau-hell); white-space: nowrap; }
tr:hover td { background: #fafaf6; }
td.zahl { text-align: right; white-space: nowrap; }
.nr { font-family: Consolas, "Liberation Mono", monospace; font-size: .92rem; white-space: nowrap; }
.klein { font-size: .85rem; color: var(--grau-mittel); }
.zeit { white-space: nowrap; }
.marke { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--linie); background: var(--grau-hell); }
.marke.ok { background: var(--gruen-hell); border-color: var(--gruen); color: var(--gruen-dunkel); }
.marke.fehler { background: var(--rot-hell); border-color: var(--rot); color: var(--rot); }
.marke.warten { background: var(--gelb-hell); border-color: #e6cf85; color: var(--gelb); }
.marke.datei { background: var(--gelb-hell); border-color: #e6cf85; color: var(--gelb); }
.st { display: inline-block; padding: .05rem .5rem; border-radius: var(--radius); font-size: .85rem; white-space: nowrap; background: var(--grau-hell); }
.st.delivered { background: var(--gruen); color: var(--grau); font-weight: 700; }
.st.out_for_delivery { background: var(--gruen-hell); }
.st.exception, .st.returned { background: var(--rot-hell); color: var(--rot); font-weight: 700; }
form.filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
form.filter label { display: flex; flex-direction: column; font-size: .85rem; color: var(--grau-mittel); gap: .15rem; }
input, select { font: inherit; color: var(--grau); border: 1px solid #b9b9b4; border-radius: var(--radius); padding: .4rem .6rem; background: var(--weiss); }
button, .knopf { font: inherit; font-weight: 700; color: var(--grau); background: var(--gruen); border: 1px solid var(--gruen-dunkel); border-radius: var(--radius); padding: .4rem .9rem; cursor: pointer; text-decoration: none; display: inline-block; }
.knopf.zweit { background: var(--weiss); border-color: var(--linie); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--grau); outline-offset: 2px; }
pre.json { background: #1f2420; color: #e8efe0; padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: .85rem; line-height: 1.45; max-height: 70vh; }
dl.felder { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.felder dt { color: var(--grau-mittel); }
dl.felder dd { margin: 0; overflow-wrap: anywhere; }
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.zeitleiste li { position: relative; padding: 0 0 .9rem 1.4rem; border-left: 2px solid var(--linie); margin-left: .4rem; }
.zeitleiste li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--gruen); }
.zeitleiste li.gemeldet::before { background: var(--gruen); }
.zeitleiste li:last-child { border-left-color: transparent; }
.blaettern { display: flex; gap: .5rem; justify-content: space-between; margin-top: .8rem; }
.leer { color: var(--grau-mittel); padding: 1rem; text-align: center; }
@media (max-width: 760px) {
  .kopf { gap: .4rem 1rem; }
  .kopf nav { order: 3; flex-basis: 100%; }
  .kopf .titel { flex: 1; }
  .raster { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kachel .wert { font-size: 1.8rem; }
  table.liste thead { display: none; }
  table.liste, table.liste tbody, table.liste tr, table.liste td { display: block; width: 100%; }
  table.liste tr { border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: .6rem; background: var(--weiss); padding: .3rem 0; }
  table.liste td { border: 0; padding: .2rem .8rem .2rem 8.6rem; position: relative; overflow-wrap: anywhere; min-height: 1.6rem; }
  table.liste td::before { content: attr(data-l); position: absolute; left: .8rem; top: .25rem; width: 7.4rem; color: var(--grau-mittel); font-size: .85rem; }
  table.liste td .nr, table.liste td .marke, table.liste td .st { white-space: normal; }
  table.liste td.zahl { text-align: left; }
  dl.felder { grid-template-columns: 1fr; gap: 0 1rem; }
  dl.felder dd { margin-bottom: .4rem; }
}
.kopf form.wer { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin: 0; }
.kopf form.wer span { color: var(--grau-mittel); overflow-wrap: anywhere; }
.kopf form.wer button { padding: .25rem .7rem; font-size: .9rem; }
body.anmelden { min-height: 100vh; }
.anmeldung { max-width: 400px; margin: 0 auto; padding: 3rem 16px; }
.anmeldung img.logo { height: 48px; width: auto; display: block; margin-bottom: 1.2rem; }
.anmeldung form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.anmeldung label { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; }
.anmeldung input { width: 100%; }
.anmeldung button { align-self: flex-start; }
@media (max-width: 760px) {
  .kopf form.wer { order: 4; flex-basis: 100%; justify-content: space-between; }
}
