/* Auftragssystem Ulmer Strickdesign – eine CSS-Datei, ruhig, eine Akzentfarbe (wie das Portal) */
:root {
  --bg: #f3f5f8; --flaeche: #ffffff; --flaeche-2: #f7f8fb; --linie: #e1e5ec; --linie-stark: #ccd3de;
  --text: #1a1f2b; --gedimmt: #5d6576; --blass: #8a92a3;
  --akzent: #1e40af; --akzent-hover: #1e3a8a; --akzent-weich: #e5ecfb; --akzent-text: #fff;
  --fehler: #b42318; --fehler-weich: #fdecea; --warn: #8a5a00; --warn-weich: #fff4dc; --ok: #1d7a46; --ok-weich: #e6f4ec;
  --radius: 12px; --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04);
  --schatten-gross: 0 12px 40px rgba(16,24,40,.14);
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; }
kbd { font-family: var(--mono); font-size: 11px; background: var(--flaeche-2); border: 1px solid var(--linie-stark); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.klein { font-size: 13px; }
.gedimmt { color: var(--gedimmt); }
.blass { color: var(--blass); }
.mono { font-family: var(--mono); font-size: .92em; }
.zentriert { text-align: center; }
.rechts { text-align: right; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.stark { font-weight: 650; }

/* ---------- Kopf ---------- */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none !important; }
.marke-zeichen { width: 30px; height: 30px; border-radius: 8px; background: var(--akzent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.hauptnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.hauptnav::-webkit-scrollbar { display: none; }
.hauptnav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--radius-klein); color: var(--gedimmt); font-weight: 550; white-space: nowrap; text-decoration: none; }
.hauptnav a:hover { background: var(--flaeche-2); color: var(--text); }
.hauptnav a.aktiv { background: var(--akzent-weich); color: var(--akzent); }
.zaehler { background: var(--akzent); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 2px; }
.ich { position: relative; }
.ich summary { list-style: none; cursor: pointer; }
.ich summary::-webkit-details-marker { display: none; }
.kuerzel-kreis { width: 34px; height: 34px; border-radius: 50%; background: var(--flaeche-2); border: 1px solid var(--linie-stark); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ich-menue { position: absolute; right: 0; top: 44px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-gross); padding: 14px; width: 260px; display: grid; gap: 10px; }
.ich-menue select { width: 100%; }
.vorschau-hinweis { background: var(--warn-weich); color: var(--warn); font-size: 12.5px; text-align: center; padding: 5px 12px; border-bottom: 1px solid #f3e2b8; }

/* ---------- Seite ---------- */
main { padding: 22px 20px 60px; }
.seite { max-width: 1280px; margin: 0 auto; }
.seite--schmal { max-width: 760px; }
.seitenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.seitenkopf-titel { display: grid; gap: 6px; }
.seitenkopf-titel .zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--gedimmt); font-size: 13px; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.karte + .karte, .karte + .raster, .raster + .karte { margin-top: 16px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.karte-inhalt { padding: 16px 18px; }
.karte-inhalt--eng { padding: 0; }
.raster { display: grid; gap: 16px; }
.raster-2 { grid-template-columns: 1fr 1fr; }
.raster-seite { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: var(--radius-klein); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.knopf:hover { background: var(--flaeche-2); }
.knopf:focus-visible, .feld-input:focus-visible, .such-input:focus-visible { outline: 3px solid var(--akzent-weich); outline-offset: 1px; }
.knopf--haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf--haupt:hover { background: var(--akzent-hover); }
.knopf--leise { border-color: transparent; background: transparent; color: var(--gedimmt); }
.knopf--leise:hover { background: var(--flaeche-2); color: var(--text); }
.knopf--gefahr { color: var(--fehler); }
.knopf--klein { height: 30px; padding: 0 10px; font-size: 13px; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.knopf .tastenhinweis { font-size: 11px; opacity: .7; font-weight: 500; }

/* ---------- Status-Etiketten ---------- */
.etikett { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.etikett--grau { background: #eef0f4; color: #4a5263; }
.etikett--blau { background: #e5ecfb; color: #1e40af; }
.etikett--violett { background: #efe9fd; color: #5b30b5; }
.etikett--orange { background: #fff0e0; color: #a14b00; }
.etikett--gruen { background: #e3f5ea; color: #17703f; }
.etikett--dunkelgruen { background: #d4ece0; color: #0d4f2c; }
.etikett--gruengrau { background: #e7eeea; color: #44594d; }
.etikett--rot { background: #fdecea; color: #b42318; }

/* ---------- Suche (Startseite) ---------- */
.suche-gross { position: relative; margin-bottom: 14px; }
.suche-gross .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--blass); }
.such-input { width: 100%; height: 56px; border: 1px solid var(--linie-stark); border-radius: 14px; padding: 0 120px 0 52px; font: inherit; font-size: 18px; background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); }
.such-input::placeholder { color: var(--blass); }
.suche-gross .tastenhinweis { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.filterleiste { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--gedimmt); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.chip:hover { color: var(--text); }
.chip.aktiv { background: var(--text); border-color: var(--text); color: #fff; }
.chip .anzahl { opacity: .65; font-weight: 500; }
.chip--warn { border-color: #f1c58f; color: #a14b00; background: #fff6ec; }
.chip--warn.aktiv { background: #a14b00; border-color: #a14b00; color: #fff; }
.termin-box { border: 1px solid #f1c58f; background: #fff8ef; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; display: grid; gap: 12px; }
.termin-box h2 { color: #a14b00; display: flex; align-items: center; gap: 8px; }
.termin-box form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.termin-box .eingabe { width: auto; }

/* ---------- Tabellen ---------- */
.tabelle-huelle { overflow-x: auto; }
table.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 650; color: var(--gedimmt); text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--linie); background: var(--flaeche-2); white-space: nowrap; }
.tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr.klickbar { cursor: pointer; }
.tabelle tbody tr.klickbar:hover td { background: #f8faff; }
.tabelle tr.storniert td { color: var(--blass); text-decoration: line-through; }
.tabelle tr.archiviert td { color: var(--blass); }
.tabelle td.feldzelle { padding: 4px 6px; }
.tabelle tfoot td { font-weight: 650; background: var(--flaeche-2); }
.tabelle .neue-zeile td { background: #fbfcfe; }
.haupttext { font-weight: 600; color: var(--text); white-space: nowrap; }
.untertext { font-size: 12.5px; color: var(--gedimmt); }
.bestellnr { font-family: var(--mono); font-size: 13px; background: #f1f3f7; border-radius: 5px; padding: 1px 6px; color: var(--text); white-space: nowrap; }
.bestellnr--gross { font-size: 15px; padding: 3px 9px; }

.fortschritt { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.fortschritt-balken { flex: 1; height: 6px; background: #e8ebf0; border-radius: 99px; overflow: hidden; }
.fortschritt-balken span { display: block; height: 100%; background: var(--akzent); border-radius: 99px; }
.fortschritt-balken.voll span { background: var(--ok); }
.fortschritt-text { font-size: 12px; color: var(--gedimmt); width: 34px; text-align: right; }

/* ---------- Direkt bearbeiten ---------- */
.feld { display: grid; gap: 3px; min-width: 0; }
.feld-label { font-size: 12px; font-weight: 600; color: var(--gedimmt); }
.pflicht { color: var(--fehler); }
.feld-rahmen { position: relative; display: flex; align-items: center; }
.feld-input { width: 100%; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: var(--radius-klein); padding: 6px 30px 6px 8px; margin-left: -8px; transition: background .12s, border-color .12s; }
.feld--kompakt .feld-input { margin-left: 0; padding: 5px 26px 5px 7px; }
.feld-input:hover { background: var(--flaeche-2); border-color: var(--linie); }
.feld-input:focus { background: #fff; border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-weich); }
.feld-input::placeholder { color: var(--blass); }
textarea.feld-input { resize: vertical; min-height: 38px; line-height: 1.4; }
select.feld-input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--blass) 50%), linear-gradient(135deg, var(--blass) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.feld--zahl .feld-input { text-align: right; font-variant-numeric: tabular-nums; }
.feld-einheit { margin-left: 4px; color: var(--gedimmt); font-size: 13px; }
.feld-zustand { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--ok); pointer-events: none; display: flex; }
.feld--zahl .feld-zustand { right: auto; left: -14px; }
.feld-einheit + .feld-zustand { right: auto; left: -14px; }
.feld--gespeichert .feld-input { animation: gespeichert 1.6s ease; }
.feld--gespeichert .feld-zustand { animation: ausblenden 2.4s ease forwards; }
@keyframes gespeichert { 0% { background: var(--ok-weich); } 100% { background: transparent; } }
@keyframes ausblenden { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.feld--fehler .feld-input { border-color: var(--fehler); background: var(--fehler-weich); }
.feld-fehler { color: var(--fehler); font-size: 12.5px; margin: 2px 0 0; }
.htmx-request .feld-input, .htmx-request.feld-input { opacity: .6; }

.mehr { border-top: 1px solid var(--linie); margin-top: 14px; padding-top: 10px; }
.mehr > summary { cursor: pointer; color: var(--akzent); font-weight: 600; font-size: 13px; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 3px; }
.mehr[open] > summary::before { transform: rotate(45deg); }
.mehr .felder { margin-top: 12px; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--gedimmt); }
input[type=text], input[type=search], input:not([type]), select, textarea, input[type=number] { font: inherit; color: var(--text); }
.eingabe { height: 40px; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); padding: 0 11px; background: #fff; font: inherit; width: 100%; color: var(--text); }
.eingabe:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-weich); }
.hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-klein); font-size: 13.5px; }
.hinweis .icon { margin-top: 1px; }
.hinweis--info { background: var(--akzent-weich); color: #1f3b8f; }
.hinweis--warn { background: var(--warn-weich); color: var(--warn); }
.hinweis--fehler { background: var(--fehler-weich); color: var(--fehler); }
.hinweis--ok { background: var(--ok-weich); color: var(--ok); }
.hinweis p { margin: 0; }

/* ---------- Leere Zustände ---------- */
.leer { text-align: center; padding: 42px 20px; color: var(--gedimmt); }
.leer-icon { width: 34px; height: 34px; color: var(--blass); margin-bottom: 8px; }
.leer-titel { font-weight: 650; color: var(--text); font-size: 15px; }
.leer-text { max-width: 460px; margin: 0 auto; font-size: 14px; }

/* ---------- Listen/Kacheln ---------- */
.liste-einfach { list-style: none; margin: 0; padding: 0; }
.liste-einfach li { padding: 10px 18px; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.liste-einfach li:last-child { border-bottom: 0; }
.verlauf { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.verlauf li { padding: 8px 18px; border-bottom: 1px solid var(--linie); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf .wann { color: var(--blass); font-size: 12px; }
.verlauf del { color: var(--fehler); text-decoration: line-through; }
.verlauf ins { color: var(--ok); text-decoration: none; }
.adresse { font-style: normal; line-height: 1.5; }
.schluessel-wert { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.schluessel-wert dt { color: var(--gedimmt); }
.schluessel-wert dd { margin: 0; }

/* ---------- Meldung (unten) ---------- */
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--schatten-gross); font-size: 14px; z-index: 50; max-width: calc(100vw - 32px); }
.meldung--fehler { background: var(--fehler); }

/* ---------- Prüfliste ---------- */
.pruef-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.pdf-rahmen { position: sticky; top: 76px; height: calc(100vh - 110px); min-height: 520px; }
.pdf-rahmen iframe { width: 100%; height: 100%; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.sicherheit { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.sicherheit--hoch { color: var(--ok); }
.sicherheit--mittel { color: var(--warn); }
.sicherheit--niedrig { color: var(--fehler); }
.markiert-warn { background: var(--warn-weich); }
.markiert-fehler { background: var(--fehler-weich); }
.pruef-feld { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-klein); border: 1px solid var(--linie); }
.pruef-feld.markiert-warn { border-color: #efd8a2; }
.pruef-feld.markiert-fehler { border-color: #f3b8b2; }
.pruef-feld .kopfzeile { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--gedimmt); }
.pruef-feld .feldhinweis { font-size: 12.5px; color: var(--warn); }

/* ---------- Belege / Druck ---------- */
.blatt { background: #fff; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 18mm 18mm 22mm 22mm; box-shadow: var(--schatten-gross); color: #111; font-size: 10pt; line-height: 1.4; }
.blatt h1 { font-size: 16pt; margin: 8mm 0 4mm; }
.blatt-kopf { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--akzent); padding-bottom: 5mm; }
.blatt-firma { font-size: 15pt; font-weight: 700; color: var(--akzent); }
.blatt-absender { font-size: 7.5pt; color: #555; text-decoration: underline; margin: 10mm 0 2mm; }
.blatt-adresse { min-height: 30mm; }
.blatt-meta { display: grid; grid-template-columns: max-content max-content; gap: 1mm 6mm; font-size: 9.5pt; }
.blatt-meta dt { color: #555; }
.blatt-meta dd { margin: 0; }
.blatt table { width: 100%; border-collapse: collapse; margin-top: 4mm; }
.blatt th { text-align: left; border-bottom: 1px solid #333; padding: 2mm 1.5mm; font-size: 9pt; }
.blatt td { border-bottom: 1px solid #ddd; padding: 2mm 1.5mm; vertical-align: top; }
.blatt-fuss { margin-top: 14mm; font-size: 8pt; color: #555; border-top: 1px solid #ccc; padding-top: 3mm; }
.platzhalter { background: #fff4dc; color: #8a5a00; padding: 0 2px; }
.druck-leiste { max-width: 210mm; margin: 0 auto 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .kopf, .vorschau-hinweis, .druck-leiste, .meldung { display: none !important; }
  main { padding: 0; }
  .blatt { box-shadow: none; margin: 0; }
}

/* ---------- Packstück-Label ---------- */
.label { width: 100mm; max-width: 100%; border: 1.5px solid #111; border-radius: 3mm; padding: 4mm; background: #fff; color: #111; display: grid; grid-template-columns: 1fr 28mm; gap: 3mm; font-size: 9pt; }
.label .typ { font-size: 8pt; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.label .bestellung { font-size: 14pt; font-weight: 800; font-family: var(--mono); }
.label .qr { width: 28mm; height: 28mm; border: 1px dashed #999; display: grid; place-items: center; font-size: 7pt; color: #777; text-align: center; }
.label .code { font-family: var(--mono); font-weight: 700; }

/* ---------- Handy / schmale Bildschirme ---------- */
@media (max-width: 960px) {
  .raster-seite, .raster-2, .pruef-layout { grid-template-columns: 1fr; }
  .pdf-rahmen { position: static; height: 70vh; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  main { padding: 14px 12px 50px; }
  .kopf-innen { padding: 0 12px; gap: 10px; }
  .marke-text { display: none; }
  .hauptnav a { padding: 8px 9px; }
  .hauptnav a .icon { display: none; }
  .such-input { height: 50px; font-size: 16px; padding-right: 16px; }
  .suche-gross .tastenhinweis { display: none; }
  .karte-kopf, .karte-inhalt { padding-left: 14px; padding-right: 14px; }
  .nur-breit { display: none !important; }
  .tabelle th, .tabelle td { padding: 9px 9px; }
  .blatt { width: 100%; min-height: 0; padding: 18px; }
  /* Tabellen als Karten */
  table.tabelle--karten thead { display: none; }
  table.tabelle--karten, .tabelle--karten tbody, .tabelle--karten tr, .tabelle--karten td { display: block; width: 100%; }
  .tabelle--karten tr { padding: 10px 12px; border-bottom: 1px solid var(--linie); }
  .tabelle--karten td { border: 0; padding: 2px 0; }
  .tabelle--karten td[data-label]::before { content: attr(data-label) ": "; color: var(--gedimmt); font-size: 12.5px; }
  .tabelle--karten td.feldzelle { display: flex; align-items: center; gap: 8px; }
  .tabelle--karten td.feldzelle[data-label]::before { min-width: 92px; }
  .tabelle--karten .zahl { text-align: left; }
  .tabelle--karten .feld--zahl .feld-input { text-align: left; }
}

/* =================== HALLE (Handy) =================== */
body.halle { background: #eef1f5; font-size: 16px; }
.halle-kopf { background: var(--text); color: #fff; position: sticky; top: 0; z-index: 20; }
.halle-kopf-innen { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 58px; }
.halle-kopf a { color: #fff; }
.halle-kopf .titel { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.halle-kopf .kuerzel-kreis { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.halle-kopf select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; height: 36px; padding: 0 8px; font: inherit; font-weight: 700; }
.halle-kopf select option { color: #000; }
.halle main { padding: 12px 12px 110px; }
.halle .seite { max-width: 720px; }
.halle-unten { position: fixed; bottom: 0; left: 0; right: 0; background: var(--flaeche); border-top: 1px solid var(--linie); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.halle-unten a { display: grid; justify-items: center; gap: 2px; padding: 9px 0 10px; color: var(--gedimmt); font-size: 12px; font-weight: 600; text-decoration: none; }
.halle-unten a .icon { width: 26px; height: 26px; }
.halle-unten a.aktiv { color: var(--akzent); }
.halle-unten a.scan { color: #fff; }
.halle-unten a.scan .scan-kreis { width: 54px; height: 54px; border-radius: 50%; background: var(--akzent); display: grid; place-items: center; margin-top: -24px; box-shadow: 0 6px 18px rgba(30,64,175,.35); }
.halle-unten a.scan span:last-child { color: var(--akzent); }

.kw-leiste { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.kw-leiste::-webkit-scrollbar { display: none; }
.kw-leiste .chip { height: 40px; font-size: 14px; padding: 0 16px; flex: none; }
.halle .such-input { height: 50px; font-size: 16px; padding-right: 14px; border-radius: 12px; }
.kunden-gruppe { margin-bottom: 18px; }
.kunden-gruppe-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 4px 8px; }
.kunden-gruppe-kopf h2 { font-size: 15px; }
.pos-karte { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 14px; margin-bottom: 10px; color: var(--text); text-decoration: none !important; box-shadow: var(--schatten); }
.pos-karte:active { background: #f6f8fc; }
.pos-karte .oben { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pos-karte .artikel { font-weight: 650; font-size: 16px; }
.pos-karte .menge { font-size: 20px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos-karte .infos { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 6px; font-size: 13.5px; color: var(--gedimmt); align-items: center; }
.schritt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.schritt-chip { white-space: nowrap; font-size: 12.5px; font-weight: 650; padding: 4px 9px; border-radius: 8px; background: #eef0f4; color: #5d6576; }
.schritt-chip.teil { background: #fff0e0; color: #a14b00; }
.schritt-chip.fertig { background: #e3f5ea; color: #17703f; }

.gross-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gross-knopf { display: grid; gap: 4px; justify-items: start; text-align: left; min-height: 78px; padding: 14px; border-radius: 14px; border: 2px solid var(--linie); background: var(--flaeche); font: inherit; color: var(--text); cursor: pointer; }
.gross-knopf .name { font-weight: 700; font-size: 16px; }
.gross-knopf .stand { font-size: 13px; color: var(--gedimmt); }
.gross-knopf.gewaehlt { border-color: var(--akzent); background: var(--akzent-weich); }
.gross-knopf[disabled] { opacity: .55; }
.knopf--riesig { height: 60px; font-size: 18px; width: 100%; border-radius: 14px; }
.mengen-eingabe { width: 100%; height: 64px; font-size: 28px; font-weight: 700; text-align: center; border: 2px solid var(--linie-stark); border-radius: 14px; font-variant-numeric: tabular-nums; }
.mengen-eingabe:focus { border-color: var(--akzent); outline: none; }
.schnell { display: flex; gap: 8px; flex-wrap: wrap; }
.schnell button { flex: 1; min-width: 70px; height: 44px; border-radius: 10px; border: 1px solid var(--linie-stark); background: #fff; font: inherit; font-weight: 650; }
.halle .eingabe { height: 50px; font-size: 16px; border-radius: 12px; }
.eintrag { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--linie); }
.eintrag:last-child { border-bottom: 0; }
.eintrag.storniert { opacity: .5; text-decoration: line-through; }
.scan-fenster { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; width: 100%; }
.scan-fenster video { width: 100%; height: 100%; object-fit: cover; }
.scan-fenster .rahmen { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 16px; }
.scan-fenster .text { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 14px; }
.baum { list-style: none; padding-left: 0; margin: 0; }
.baum ul { list-style: none; padding-left: 20px; border-left: 2px solid var(--linie); margin: 6px 0 6px 8px; }
.baum li { margin: 6px 0; }

/* ---------- Anmeldung (schlichtes Layout) ---------- */
.schlicht-main { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.schlicht-karte { width: 100%; max-width: 420px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-gross); padding: 28px; }
.trenner { display: flex; align-items: center; gap: 10px; color: var(--blass); font-size: 12.5px; margin: 4px 0 14px; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.qr-box svg { width: 180px; height: 180px; display: block; }
.notfallcodes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 22px; font-family: var(--mono); font-size: 15px; background: var(--flaeche-2); border: 1px dashed var(--linie-stark); border-radius: var(--radius-klein); padding: 12px 16px; }
.rollen-auswahl { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.rollen-auswahl label { display: inline-flex; gap: 5px; align-items: center; font-weight: 500; color: var(--text); font-size: 14px; }
