:root {
  --grund: #f6f7f5; --karte: #ffffff; --text: #1b1f1c; --leise: #6b736d; --linie: #d9ddd9;
  --gruen: #1f8a4c; --gruen-hell: #dff3e6; --gelb: #f2b600; --gelb-hell: #fff4cc;
  --rot: #c62828; --rot-hell: #fde3e3; --blau: #1d5fa8; --grau: #e9ecea;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text); }
body { font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 150px; }
#kopf { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #1f6f3f; color: #fff; }
#kopf .titel { color: #fff; font-weight: 700; text-decoration: none; }
#kopf-info { flex: 1; font-size: 14px; opacity: .9; }
#hinweisband { background: var(--gelb-hell); border-bottom: 2px solid var(--gelb); padding: 10px 12px; font-size: 16px; }
main { padding: 12px; max-width: 760px; margin: 0 auto; }
h1 { font-size: 24px; margin: 6px 0 12px; } h2 { font-size: 20px; margin: 18px 0 8px; }
button, .knopf { font: inherit; border: 0; border-radius: 12px; padding: 14px 16px; min-height: 56px;
  background: var(--gruen); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.zweit, .knopf.zweit { background: var(--grau); color: var(--text); }
button.rot { background: var(--rot); } button.blau { background: var(--blau); }
button.klein { min-height: 40px; padding: 8px 12px; font-size: 16px; }
#kopf button.klein { background: #fff; color: #1f6f3f; }
button:disabled { opacity: .45; }
.breit { width: 100%; } .reihe { display: flex; gap: 10px; flex-wrap: wrap; } .reihe > * { flex: 1; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.leise { color: var(--leise); font-size: 15px; }
.fortschritt { height: 22px; background: var(--grau); border-radius: 11px; overflow: hidden; }
.fortschritt > div { height: 100%; background: var(--gruen); }
.gross { font-size: 30px; font-weight: 700; color: var(--gruen); }
input, select, textarea { font: inherit; width: 100%; padding: 12px; border: 2px solid var(--linie);
  border-radius: 10px; background: #fff; min-height: 52px; }
input:focus, textarea:focus { border-color: var(--gruen); outline: none; }
input.abw { background: var(--gelb-hell); border-color: var(--gelb); }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.bisher { color: var(--leise); font-size: 15px; font-weight: 400; }
.feld3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
/* Liste */
.zeile { display: flex; gap: 10px; align-items: flex-start; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 12px; padding: 8px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.zeile img, .zeile .ohnebild { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--grau); flex: none; }
.zeile .ohnebild { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--leise); }
.zeile .mitte { flex: 1; min-width: 0; }
.zeile .name { font-weight: 600; }
.zeile .schicht { font-size: 14px; color: #3d4540; margin-top: 2px; }
.status { flex: none; font-size: 26px; width: 34px; text-align: center; }
.fertig .status { color: var(--gruen); }
/* Torben 02.11.: neutral = unbearbeitet, gelb = in Bearbeitung, gruen = komplett fertig */
.zeile.angefangen { background: var(--gelb-hell); border-color: var(--gelb); }
.zeile.fertig { background: var(--gruen-hell); border-color: var(--gruen); }
.wahl-kamera { aspect-ratio: 4/3; max-height: 34vh; }
.wahl-liste { margin-top: 8px; }
.wahl-eintrag { display: block; width: 100%; text-align: left; font-weight: 400; background: var(--karte); color: var(--text);
  border: 1px solid var(--linie); margin: 0 0 6px; min-height: 48px; }
.wahl-eintrag.angefangen { background: var(--gelb-hell); border-color: var(--gelb); }
.wahl-eintrag.fertig { background: var(--gruen-hell); border-color: var(--gruen); }
.marke { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--grau); margin-right: 4px; }
.marke.test { background: #6a1b9a; color: #fff; } .marke.abg { background: var(--gelb-hell); color: #7a5b00; }
.marke.lq { background: #ffe0b2; } .marke.shopify { background: #e3f2fd; color: #0d47a1; } .marke.gruen { background: var(--gruen-hell); color: var(--gruen); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chip { border: 2px solid var(--linie); background: #fff; color: var(--text); border-radius: 20px; padding: 6px 12px;
  min-height: 40px; font-size: 15px; font-weight: 600; }
.chip.an { background: var(--gruen); border-color: var(--gruen); color: #fff; }
/* Assistent */
.schritte { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0 10px; }
.schritte button { min-height: 36px; padding: 4px 8px; font-size: 13px; background: var(--grau); color: var(--text); flex: none; }
.schritte button.akt { background: var(--blau); color: #fff; } .schritte button.ok { background: var(--gruen-hell); color: var(--gruen); }
.kamera { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; max-height: 56vh; width: 100%; margin: 0 auto; }
.kamera .ausloeser { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; }
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kamera .ansicht { position: absolute; top: 8px; left: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff;
  padding: 8px 12px; border-radius: 10px; font-size: 20px; font-weight: 700; }
.ausloeser { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 6px solid var(--gruen);
  min-height: 0; padding: 0; margin: 10px auto; display: block; }
.ausloeser:active { background: var(--gruen-hell); }
.streifen { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.streifen div { flex: none; width: 64px; text-align: center; font-size: 11px; }
.streifen img, .streifen span.leer { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; background: var(--grau); border: 2px solid transparent; }
.streifen .akt img, .streifen .akt span.leer { border-color: var(--blau); }
.ampel { padding: 14px; border-radius: 12px; font-weight: 700; font-size: 20px; margin: 10px 0; }
.ampel.gruen { background: var(--gruen-hell); color: var(--gruen); } .ampel.gelb { background: var(--gelb-hell); color: #7a5b00; }
.ampel.rot { background: var(--rot-hell); color: var(--rot); } .ampel.grau { background: var(--grau); }
.nav-unten { display: flex; gap: 10px; margin-top: 14px; } .nav-unten > * { flex: 1; }
.janein { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.janein button { background: var(--grau); color: var(--text); } .janein button.an { background: var(--blau); color: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { border-bottom: 1px solid var(--linie); padding: 6px 4px; text-align: left; vertical-align: top; }
th { background: var(--grau); position: sticky; top: 52px; }
.tabelle { overflow-x: auto; }
details { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 10px; }
details > summary { padding: 14px 12px; font-weight: 700; cursor: pointer; }
details > div { padding: 0 12px 12px; }
.abhaken { display: flex; gap: 10px; align-items: flex-start; }
.abhaken input[type=checkbox] { width: 32px; height: 32px; min-height: 0; flex: none; margin-top: 4px; }
.erledigt { background: var(--gruen-hell); }
/* fest */
#leiste { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--linie); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
#leiste a { flex: 1; text-align: center; padding: 16px 2px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
#leiste a.akt { color: var(--gruen); box-shadow: inset 0 4px 0 var(--gruen); }
#mikro { position: fixed; right: 14px; bottom: 76px; z-index: 30; width: 72px; height: 72px; border-radius: 50%;
  font-size: 30px; padding: 0; background: var(--blau); box-shadow: 0 4px 12px rgba(0,0,0,.3); flex-direction: column; gap: 0; }
#mikro span { font-size: 10px; max-width: 66px; overflow: hidden; white-space: nowrap; }
#mikro.laeuft { background: var(--rot); animation: puls 1s infinite; }
@keyframes puls { 50% { transform: scale(1.08); } }
#toast { position: fixed; left: 12px; right: 12px; bottom: 160px; z-index: 40; background: #222; color: #fff; padding: 14px; border-radius: 12px; text-align: center; }
#dialog { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 12px; }
#dialog[hidden] { display: none; }
#dialog .karte { max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; }
audio { width: 100%; }
