/* AKH Zentrale – angelehnt an das Shopify-Admin-Design (Polaris): grauer Grund, weiße Karten,
   schwarze Hauptknöpfe, Menü links. Sachlich, keine Emojis. Eigener Stil-Code, nichts von Shopify eingebunden. */
:root {
  --grund: #f1f1f1;
  --karte: #ffffff;
  --leiste: #1a1a1a;
  --menue: #ebebeb;
  --menue-aktiv: #fafafa;
  --rand: #e3e3e3;
  --rand-stark: #8a8a8a;
  --text: #303030;
  --leise: #616161;
  --sehr-leise: #8a8a8a;
  --schwarz: #303030;
  --schwarz-hover: #1a1a1a;
  --fokus: #005bd3;
  --rot: #8e1f0b;     --rot-grund: #fedad9;   --rot-stark: #c70a24;
  --gruen: #0c5132;   --gruen-grund: #cdfee1; --gruen-stark: #047b5d;
  --gelb: #4f4700;    --gelb-grund: #ffef9d;
  --orange: #5e4200;  --orange-grund: #ffd6a4;
  --blau: #00527c;    --blau-grund: #e0f0ff;
  --grau-grund: #e3e3e3;
  --schatten: 0 1px 0 0 rgba(26,26,26,.07), inset 0 -1px 0 0 rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.06);
  --schatten-hoch: 0 4px 12px -2px rgba(26,26,26,.12), 0 0 0 1px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-klein: 8px;
  --kopf-hoehe: 56px;
  --menue-breite: 240px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text);
       font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--fokus); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Rahmen: Kopfleiste, Menü links, Inhalt ---------- */
.kopf { position: sticky; top: 0; z-index: 30; height: var(--kopf-hoehe); display: flex; align-items: center; gap: 12px;
        background: var(--leiste); color: #e3e3e3; padding: 0 16px 0 20px; }
.marke { color: #fff; font-weight: 650; font-size: 16px; letter-spacing: .2px; margin-right: auto; }
.marke:hover { text-decoration: none; }
.marke span { font-weight: 450; color: #b5b5b5; }
.wer { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.wer form { margin: 0; }
.avatar { width: 28px; height: 28px; border-radius: 8px; background: #36fba1; color: #1a1a1a; font-weight: 650;
          display: inline-flex; align-items: center; justify-content: center; font-size: 13px; text-transform: uppercase; }
.kopf .knopf.leise { color: #e3e3e3; border-color: #4a4a4a; background: #303030; box-shadow: none; }
.kopf .knopf.leise:hover { background: #3d3d3d; }

.menue-schalter { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menue-knopf { display: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; flex-direction: column;
               justify-content: center; align-items: center; gap: 4px; margin: 0; }
.menue-knopf span { display: block; width: 16px; height: 2px; background: #e3e3e3; border-radius: 2px; }
.menue-knopf:hover { background: #303030; }

.seitenmenue { position: fixed; top: var(--kopf-hoehe); left: 0; bottom: 0; width: var(--menue-breite);
               background: var(--leiste); padding: 8px 10px; overflow-y: auto; z-index: 20; }
.seitenmenue ul { list-style: none; margin: 0; padding: 0; }
.seitenmenue a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 2px 0; border-radius: 8px;
                 color: #e3e3e3; font-size: 13px; font-weight: 550; }
.seitenmenue a:hover { background: #2b2b2b; text-decoration: none; }
.seitenmenue a.aktiv { background: #303030; color: #fff; font-weight: 650; }
.seitenmenue a.offen { color: #fff; font-weight: 650; }
.seitenmenue .symbol { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
                       stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.unterpunkte a { padding-left: 36px; font-weight: 450; color: #b5b5b5; }
.unterpunkte a.aktiv { color: #fff; }
.menue-schleier { display: none; }

.inhalt { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
body.mit-menue .inhalt { margin-left: var(--menue-breite); max-width: none; padding-left: 32px; padding-right: 32px; }
body.mit-menue .inhalt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
body.ohne-menue .inhalt { padding-top: 48px; }

@media (max-width: 900px) {
  .menue-knopf { display: inline-flex; }
  .seitenmenue { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--schatten-hoch); }
  .menue-schalter:checked ~ .seitenmenue { transform: none; }
  .menue-schalter:checked ~ .menue-schleier { display: block; position: fixed; inset: var(--kopf-hoehe) 0 0 0;
                                              background: rgba(0,0,0,.35); z-index: 15; }
  body.mit-menue .inhalt { margin-left: 0; padding-left: 16px; padding-right: 16px; }
  .wer-name { display: none; }
}

/* ---------- Überschriften, Karten ---------- */
h1 { font-size: 20px; font-weight: 700; margin: 4px 0 16px; color: #1a1a1a; letter-spacing: -.2px; }
h2 { font-size: 14px; font-weight: 650; margin: 0 0 8px; color: #1a1a1a; }
h3 { font-size: 13px; font-weight: 650; margin: 18px 0 8px; color: var(--leise); }
.abschnitt { margin: 28px 0 10px; color: #1a1a1a; font-size: 14px; font-weight: 650; }
.karte { background: var(--karte); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--schatten); }
.karte.schmal { max-width: 400px; margin: 0 auto 16px; padding: 24px; }
.karte.hinweis { background: var(--blau-grund); box-shadow: inset 0 0 0 1px #a8d7ff; }
.klein { font-size: 13px; color: var(--leise); }
.zurueck { margin: 0 0 4px; font-size: 13px; }
.zurueck a { color: var(--leise); }
.zurueck a::before { content: "\2190\00a0"; }
code { background: #f1f1f1; padding: 1px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }

/* ---------- Übersicht: Kacheln ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kachel { position: relative; display: block; background: var(--karte); border-radius: var(--radius); padding: 16px;
          color: var(--text); min-height: 104px; box-shadow: var(--schatten); transition: box-shadow .15s; }
.kachel:hover { box-shadow: var(--schatten-hoch); text-decoration: none; }
.kachel h2 { font-size: 15px; margin-bottom: 4px; padding-right: 76px; }
.kachel p { margin: 0; color: var(--leise); font-size: 13px; }
.kachel.gedimmt h2 { color: var(--leise); }
.marke-klein { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 550; padding: 2px 8px;
               border-radius: 8px; background: var(--grau-grund); color: var(--leise); }
.marke-klein.aus { background: var(--rot-grund); color: var(--rot); }

/* ---------- Formulare ---------- */
label { display: block; margin: 0 0 14px; font-size: 13px; color: var(--text); font-weight: 450; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 8px 12px; font: inherit; font-size: 15px;
                border: 1px solid var(--rand-stark); border-radius: var(--radius-klein); background: #fdfdfd; color: var(--text); }
input:hover, select:hover { border-color: #616161; }
input:focus, select:focus { outline: 2px solid var(--fokus); outline-offset: 1px; border-color: var(--rand-stark); }
fieldset { border: 1px solid var(--rand); border-radius: var(--radius-klein); padding: 10px 14px; margin: 0 0 14px; }
legend { font-size: 13px; color: var(--leise); padding: 0 4px; }
label.haken { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
label.haken input { width: auto; margin: 0; accent-color: #303030; }
input.link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
         background: linear-gradient(180deg, #4a4a4a 0%, #303030 60%); color: #fff; border: 0; border-radius: var(--radius-klein);
         padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.3;
         box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 #000, 0 1px 1px rgba(0,0,0,.2); }
.knopf:hover { background: #1a1a1a; text-decoration: none; }
.knopf:active { box-shadow: inset 0 2px 1px rgba(0,0,0,.6); }
.knopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.knopf.voll { width: 100%; padding: 10px 14px; }
.knopf.leise { background: #fff; color: var(--text); font-weight: 550; padding: 6px 12px; font-size: 13px;
               box-shadow: inset 0 -1px 0 0 #b5b5b5, 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 0 rgba(0,0,0,.08); }
.knopf.leise:hover { background: #f7f7f7; }
.knopf.warnung { color: var(--rot-stark); }
a.knopf { text-decoration: none; }
.knopfzeile { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Meldungen, Plaketten ---------- */
.meldung { padding: 10px 14px; border-radius: var(--radius-klein); font-size: 14px; }
.meldung.fehler { background: var(--rot-grund); color: var(--rot); }
.meldung.ok { background: var(--gruen-grund); color: var(--gruen); }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }
.status, .pille { display: inline-block; font-size: 12px; font-weight: 550; padding: 2px 8px; border-radius: 8px;
                  background: var(--grau-grund); color: var(--leise); margin: 2px 4px 2px 0; line-height: 1.5; }
.status.an, .pille.gruen { background: var(--gruen-grund); color: var(--gruen); }
.status.aus { background: var(--rot-grund); color: var(--rot); }
.pille.gelb { background: var(--gelb-grund); color: var(--gelb); }
.pille.blau { background: var(--blau-grund); color: var(--blau); }

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.tabelle th { background: #f7f7f7; color: var(--leise); font-weight: 550; font-size: 12px; }
.tabelle tbody tr:hover td { background: #fafafa; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.karte > .tabelle:first-child, .karte > .tabellen-rahmen:first-child { margin-top: -4px; }
tr.gedimmt td { color: var(--sehr-leise); }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 220px; height: 220px; }
@media (max-width: 640px) {
  .tabelle { display: block; overflow-x: auto; }
  h1 { font-size: 18px; }
}

/* ---------- Versandpreise ---------- */
.feldraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; align-items: end; }
.tabellen-rahmen { overflow-x: auto; margin-bottom: 14px; }
.tabelle.preise td { vertical-align: top; }
.tabelle.preise input { margin: 0 0 6px; padding: 6px 8px; font-size: 14px; min-width: 80px; }
.tabelle.preise td.paar { min-width: 110px; }
tr.warnzeile td { background: #fff8db; }
.probe-ergebnis { margin-top: 10px; }
.angebot { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius-klein);
           margin-top: 8px; background: #f7f7f7; box-shadow: inset 0 0 0 1px var(--rand); }

/* ---------- Packen ---------- */
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.titelzeile h1 { margin-bottom: 12px; }
.feldraster.drei { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.notiz { margin-top: 12px; padding: 12px 14px; background: var(--gelb-grund); color: var(--gelb); border-radius: var(--radius-klein);
         font-size: 16px; font-weight: 600; }
.scanbereich input#scanfeld { font-size: 22px; padding: 14px; }
.scanmeldung { margin: 6px 0 14px; padding: 18px; border-radius: var(--radius); font-size: 20px; font-weight: 650; text-align: center; }
.scanmeldung.leer, .scanmeldung.info { background: #f1f1f1; color: var(--leise); }
.scanmeldung.ok { background: var(--gruen-stark); color: #fff; }
.scanmeldung.falsch, .scanmeldung.zuviel, .scanmeldung.unbekannt, .scanmeldung.fehler, .scanmeldung.gesperrt { background: var(--rot-stark); color: #fff; }
.position { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rand); }
.position:last-child { border-bottom: 0; }
.position .bild img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-klein); background: #f1f1f1; }
.position .bild { width: 72px; height: 72px; border-radius: var(--radius-klein); background: #f1f1f1; box-shadow: inset 0 0 0 1px var(--rand); }
.position .optionen { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.position .zaehler { font-size: 22px; font-weight: 700; min-width: 70px; text-align: right; }
.position.erledigt { opacity: .55; } .position.erledigt .zaehler { color: var(--gruen-stark); }
.posknoepfe { grid-column: 2 / 4; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.posknoepfe select { width: auto; margin: 0; padding: 5px 8px; font-size: 13px; }
.foto-knopf { display: inline-block; margin: 0; cursor: pointer; color: var(--text); background: #fff; padding: 6px 12px;
              border-radius: var(--radius-klein); font-size: 13px; font-weight: 550;
              box-shadow: inset 0 -1px 0 0 #b5b5b5, 0 0 0 1px rgba(0,0,0,.08); }
.paketzeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.verlauf { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--leise); }
.verlauf li { padding: 6px 0; border-bottom: 1px solid var(--rand); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf li.durchgestrichen { text-decoration: line-through; }
.fotoraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fotoraster img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-klein); }
.fotoraster figure { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Startseite: Zahlen (nur Admin) ---------- */
.umschalter { display: inline-flex; background: #e3e3e3; border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.umschalter a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--text); }
.umschalter a:hover { text-decoration: none; background: #ebebeb; }
.umschalter a.aktiv { background: #fff; box-shadow: var(--schatten); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.kennzahl { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--rand); }
.kennzahl:last-child { border-right: 0; }
.kennzahl strong { font-size: 22px; font-weight: 700; color: #1a1a1a; letter-spacing: -.3px; }
.kennzahl-titel { font-size: 12px; font-weight: 550; color: var(--leise); }
.trend { font-size: 12px; font-weight: 600; color: var(--leise); }
.trend.hoch { color: var(--gruen-stark); } .trend.runter { color: var(--rot-stark); }
.hinweiszeile { margin: -8px 0 18px; }
.hinweise { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hinweis-karte { margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
a.hinweis-karte:hover { box-shadow: var(--schatten-hoch); text-decoration: none; }
.hinweis-karte .gross { font-size: 28px; font-weight: 700; color: #1a1a1a; }
.hinweis-karte h2 { margin: 6px 0 2px; font-size: 14px; }
.hinweis-karte p { margin: 0; }
.hinweis-karte.mit-bild { flex-direction: row; justify-content: space-between; gap: 12px; }
.hinweis-karte.mit-bild img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; }
.pille.rot { background: var(--rot-grund); color: var(--rot); }
.balkenzeile { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; }
.balken { height: 6px; background: #f1f1f1; border-radius: 99px; overflow: hidden; }
.balken span { display: block; height: 100%; background: #303030; border-radius: 99px; }
.mini-bild { width: 44px; }
.mini-bild img { width: 36px; height: 46px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 640px) { .kennzahl { border-right: 0; border-bottom: 1px solid var(--rand); } }

/* ---------- Sendungen ---------- */
.umschalter.filter { flex-wrap: wrap; margin-bottom: 12px; }
.umschalter .zahl { color: var(--leise); font-weight: 450; margin-left: 2px; }
.suchzeile { margin: 0 0 12px; }
.suchzeile input { margin: 0; max-width: 460px; }
.pille.grau { background: var(--grau-grund); color: var(--leise); }
.rot-text { color: var(--rot-stark); }
