/* Aufbau und Farben lehnen sich an Sendcloud an, damit sich das Lager nicht umgewöhnen muss. */
:root {
  --navy: #112857; --navy-dunkel: #0d1f47; --blau: #1b7fdc; --blau-hell: #e4f1fd; --blau-rand: #8cc4f2;
  --flaeche: #f1f4f9; --linie: #dfe5ee; --text: #112857; --grau: #5c6b85; --gruen: #12a37f; --rot: #c8372d; --gelb: #f0a020;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; color: var(--text); background: var(--flaeche); display: flex; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }

/* Seitenleiste */
.seite { width: 184px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 10px 8px; position: sticky; top: 0; height: 100vh; }
.marke { font-size: 19px; padding: 6px 8px 18px; display: flex; align-items: center; gap: 8px; }
.marke-zeichen { background: var(--blau); border-radius: 7px; font-weight: 700; font-size: 13px; padding: 4px 6px; }
.nav { display: flex; align-items: center; gap: 9px; color: #fff; padding: 7px 9px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.nav:hover { background: var(--navy-dunkel); text-decoration: none; }
.nav.aktiv { background: var(--blau); }
.nav.unter { font-weight: 400; padding-left: 36px; }
.nav.unter.aktiv { background: var(--navy-dunkel); font-weight: 600; }
.wer { margin-top: auto; font-size: 13px; opacity: .75; padding: 8px; }

/* Hauptbereich */
main { flex: 1; min-width: 0; padding: 0 26px 60px; }
.modus { margin: 0 -26px; padding: 9px 26px; font-weight: 600; font-size: 14px; }
.modus.demo { background: #fff3d6; color: #6b4a00; border-bottom: 1px solid #f0cf7a; }
.modus.sandbox { background: #e4f1fd; color: #0c4f8f; border-bottom: 1px solid var(--blau-rand); }
.modus.live { background: #e3f6ef; color: #0b6b53; border-bottom: 1px solid #9cdcc8; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 14px; }
h1 { font-size: 22px; margin: 0; }

.tabs { display: flex; gap: 8px; }
.tabs a { padding: 9px 13px; border-radius: 8px 8px 0 0; background: #e6ebf3; color: var(--grau); font-weight: 600; font-size: 14px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.aktiv { background: #fff; color: var(--text); }
.karte { background: #fff; border-radius: 0 10px 10px 10px; box-shadow: 0 1px 2px rgba(17, 40, 87, .06); }
.leiste { display: flex; align-items: center; gap: 10px; padding: 16px; flex-wrap: wrap; }
.leiste[hidden] { display: none; }
.leiste.filter { border-top: 1px solid var(--linie); }
.platz { flex: 1; }
.gewaehlt { color: var(--grau); font-size: 14px; }

.knopf { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--navy); border-radius: 8px; padding: 7px 13px; font-weight: 600; cursor: pointer; }
.knopf:hover { background: var(--flaeche); }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.voll { background: var(--navy); color: #fff; justify-content: center; }
.knopf.voll:hover:not(:disabled) { background: var(--navy-dunkel); }
.knopf.voll.rot { background: var(--rot); border-color: var(--rot); }
.knopf.rund { padding: 7px 8px; }
.knopf.klein { padding: 6px 7px; }
.pille { display: inline-flex; align-items: center; gap: 7px; background: var(--blau-hell); border: 1px solid var(--blau-rand); border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
span.pille { cursor: default; }
.pille.aus { background: #fff; border-color: var(--linie); color: var(--grau); }
.pille select { border: 0; background: transparent; font-weight: 600; cursor: pointer; outline: 0; }
.suche { position: relative; }
.suche input { width: 250px; border: 1px solid var(--grau); border-radius: 8px; padding: 7px 40px 7px 11px; }
.suche svg { position: absolute; right: 0; top: 0; height: 100%; width: 36px; padding: 9px; background: var(--navy); color: #fff; border-radius: 0 8px 8px 0; }

.auswahl { position: relative; }
.menue { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(17, 40, 87, .22); padding: 10px; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.menue[hidden] { display: none; }
.menue label { display: flex; gap: 8px; align-items: center; padding: 4px; cursor: pointer; }
.menue button.eintrag { text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.menue button.eintrag:hover { background: var(--flaeche); }
.menue button.eintrag.rot { color: var(--rot); }
.menue button.eintrag:disabled { color: #a9b2c3; cursor: default; background: none; }
.menue.rechts { left: auto; right: 0; }

/* Tabelle */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--grau); font-weight: 600; padding: 14px 10px; }
td { padding: 14px 10px; vertical-align: top; }
tbody tr.zeile:nth-child(4n+1) { background: #f6f8fb; }
tbody tr.zeile.gesperrt td:not(.aktionen) { opacity: .62; }
td.wahl, th.wahl { width: 44px; padding-left: 20px; }
td.aktionen { white-space: nowrap; text-align: right; padding-right: 16px; position: relative; }
td.aktionen .knopf { margin-left: 4px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--navy); }
.klein { font-size: 13px; color: var(--grau); }
.stark { font-weight: 600; }
.dhl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dhl::before { content: "DHL"; background: #ffcc00; color: #d40511; font-size: 9px; font-weight: 800; font-style: italic; border-radius: 4px; padding: 3px 3px; line-height: 1; }
.flagge { font-size: 12px; font-weight: 700; background: #e6ebf3; border-radius: 4px; padding: 1px 5px; margin-right: 6px; }
.punkt { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--gruen); color: #fff; align-items: center; justify-content: center; }
.punkt.warn { background: var(--gelb); }
.punkt svg { width: 12px; height: 12px; stroke-width: 3; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status.grau { color: var(--grau); }
.express { margin-left: 8px; background: var(--rot); color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: .04em; }
.zoll { margin-left: 8px; background: #1b3a4b; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: .04em; }
.zollknopf { display: block; margin-top: 6px; font-size: 13px; padding: 4px 10px; }
.druckopt { padding: 24px 28px; max-width: 720px; line-height: 1.5; }
.druckopt h3 { margin: 0 0 8px; font-size: 18px; }
.druckopt .feld { margin: 16px 0; }
.druckopt .feld b { display: block; margin-bottom: 6px; }
.druckopt select { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #c3ceda; border-radius: 8px; background: #fff; }
.druckopt ol { padding-left: 20px; }
.druckopt li { margin: 6px 0; }
.hinweis { margin-top: 4px; font-size: 13px; color: #8a5a00; }
.demo-marke { font-size: 11px; font-weight: 700; background: #fff3d6; color: #6b4a00; border-radius: 4px; padding: 1px 5px; margin-left: 6px; text-transform: uppercase; }

tr.details td { padding: 6px 20px 22px; background: #fff; border-bottom: 1px solid var(--linie); }
.detail-raster { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr 1.6fr; gap: 26px; }
.detail-raster h3 { font-size: 14px; margin: 10px 0; padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.detail-raster .feld { margin-bottom: 9px; }
.detail-raster .feld b { display: block; font-size: 13px; }
.gewicht { display: flex; align-items: center; gap: 8px; }
.gewicht input { width: 96px; border: 1px solid var(--navy); border-radius: 8px; padding: 7px 10px; }
.artikel { display: flex; gap: 10px; align-items: center; padding: 5px 0; }
.artikel img, .artikel .ohne-bild { width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--linie); border-radius: 6px; background: #fff; flex: none; }
.artikel .menge { font-weight: 700; min-width: 30px; text-align: center; }
.artikel .menge.mehr { background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 6px; }

.leer { padding: 60px 20px; text-align: center; color: var(--grau); }
.fehlerkasten { margin: 16px; padding: 12px 14px; border-radius: 8px; background: #fde9e7; color: #8f241c; }

.meldungen { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: 440px; }
.meldung { background: var(--navy); color: #fff; padding: 11px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.meldung.fehler { background: var(--rot); }
.schleier { position: fixed; inset: 0; background: rgba(13, 31, 71, .45); display: flex; align-items: center; justify-content: center; z-index: 60; }
.schleier[hidden] { display: none; }
.dialog { background: #fff; border-radius: 10px; padding: 22px; width: min(440px, 92vw); }
.dialog h2 { margin: 0 0 8px; font-size: 18px; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 1100px) { .detail-raster { grid-template-columns: 1fr 1fr; } .seite { width: 150px; } }
