/* dispolotse.de · LIVE page › „Händler live" = the complete public Händler-Karte (lane L7-HAENDLERKARTE / HP11, 07.10.2026)
   Own file (hp.css bundle has no room), loaded only by live.html. Tokens of the page (dark + light): --karte --mulde --grund
   --rand --naht --text --matt --ton. ① site switch above the tab body ② the detail strip below it (chips, ≤ 6 rows, paging,
   sheet) ③ the workshop hall (live-haendler.js draws buehne_werkstatt with the bay hooks). Reduced motion respected. */

.lhd-orte { margin: 0 0 10px; }
.lhd { margin-top: 12px; }
.lhd-in { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--rand); border-radius: var(--rd-karte, 14px);
          background: linear-gradient(180deg, var(--karte), var(--mulde)); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 28px -18px rgba(0,0,0,.55); }

/* chips (sub-lists + sites): wrap, never a sideways strip */
.lhd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lhd-chips button { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rand); background: var(--grund);
                    color: var(--text); cursor: pointer; min-height: 34px; }
.lhd-chips button b { font-variant-numeric: tabular-nums; margin-left: 3px; color: var(--matt); }
.lhd-chips button[aria-pressed="true"] { border-color: var(--ton); background: var(--tonhauch, rgba(240,160,42,.15)); }
.lhd-chips button[aria-pressed="true"] b { color: var(--ton); }
.lhd-titel { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.lhd-titel b { color: var(--ton); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* count rings (state per group, Standorte n/m, depot) */
.lhd-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lhd-kachel { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center;
              padding: 8px 10px; border: 1px solid var(--rand); border-radius: 10px; background: var(--grund); min-width: 0; }
.lhd-kachel b { font-size: 19px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.lhd-kachel span { grid-column: 2; font-size: 12.5px; color: var(--matt); line-height: 1.2; overflow-wrap: anywhere; }
.lhd-kachel.lhd-haupt { border-color: var(--ton); }
.lhd-kachel.lhd-haupt b { color: var(--ton); }
.lhd-ring { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%;
            background: conic-gradient(var(--ton) calc(var(--lhd-anteil, 0) * 1%), var(--rand) 0);
            -webkit-mask: radial-gradient(circle, transparent 10px, #000 11px); mask: radial-gradient(circle, transparent 10px, #000 11px); }

/* rows: one button per row, the whole row is the tap target */
.lhd-zeilen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lhd-zeile { width: 100%; font: inherit; color: var(--text); text-align: left; cursor: pointer; display: grid;
             grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 10px;
             border: 1px solid transparent; border-top-color: var(--naht, var(--rand)); border-radius: 10px; background: transparent; min-height: 44px; }
.lhd-zeile:hover { background: var(--mulde); border-color: var(--rand); }
.lhd-zeile:focus-visible, .lhd button:focus-visible, .lhd-orte button:focus-visible { outline: 2px solid var(--ton); outline-offset: 2px; }
.lhd-zeile.lhd-eigen { border-color: var(--ton); background: var(--tonhauch, rgba(240,160,42,.15)); }
.lhd-nr { font-size: 12.5px; color: var(--ton); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.lhd-was { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lhd-was b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhd-was small { font-size: 12.5px; color: var(--matt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhd-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 12.5px; color: var(--matt); text-align: right; }
.lhd-rechts em { font-style: normal; font-size: 15px; color: var(--ton); font-variant-numeric: tabular-nums; font-weight: 600; }
.lhd-rechts .lhd-uhr { color: var(--ton); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lhd-balken { display: block; height: 4px; border-radius: 2px; background: var(--rand); margin-top: 4px; overflow: hidden; }
.lhd-balken > i { display: block; height: 100%; width: 0; background: var(--ton); background: linear-gradient(90deg, var(--ton), color-mix(in srgb, var(--ton) 70%, #fff)); transition: width .6s ease; }
.lhd-seiten { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--matt); }
.lhd-seiten button, .lhd-zu { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rand); background: var(--mulde);
                              color: var(--text); cursor: pointer; min-height: 34px; }
.lhd-seiten button[disabled] { opacity: .45; cursor: default; }
.lhd-leer { margin: 0; color: var(--matt); font-size: 13.5px; }

/* the sheet (tap on a row) */
.lhd-blatt { border: 1px solid var(--ton); border-radius: 12px; padding: 12px 14px; background: var(--grund); animation: lhd-auf .18s ease-out; }
.lhd-blatt-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lhd-blatt-kopf b { font-size: 15px; }
.lhd-blatt-kopf .lhd-zu { margin-left: auto; }
.lhd-blatt dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; font-size: 13.5px; }
.lhd-blatt dt { color: var(--matt); font-weight: 400; }
.lhd-blatt dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-weight: 600; }
.lhd-blatt-kopf b { color: var(--text); }
@keyframes lhd-auf { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* the workshop hall: the tile column is narrower, the picture carries the story */
.lsz.lhd-halle { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
.lhd-halle .lsz-kachel small { font-size: 12px; color: var(--ton); }
.lhd-halle .lsz-bild { min-height: 0; }
.lhd-halle .lsz-bild .sz-bild { width: 100%; height: auto; aspect-ratio: 491 / 380; max-height: none; display: block; }

@media (max-width: 760px) {
  .lhd-in { padding: 10px 12px; }
  .lsz.lhd-halle { grid-template-columns: minmax(0, 1fr); }
  .lhd-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lhd-kachel { grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; }
  .lhd-ring { width: 26px; height: 26px; -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
  .lhd-kachel b { font-size: 16px; }
  .lhd-kachel span { font-size: 12px; }
  /* the office scene above the staff list stays, but smaller (each tab ≈ one phone screen) */
  .lsz-personal .lsz-bild { min-height: 0; }
  .lsz-personal .lsz-bild .sz-bild { max-height: 150px; }
  .lhd-zeile { padding: 5px 6px; gap: 1px 8px; min-height: 40px; }
  .lhd-was b { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lhd-nr { font-size: 12px; }
  /* phone: the right column keeps the countdown / share only; „fertig ca. …" stays in the sheet (one line per row) */
  .lhd-rechts > .lhd-uhr + span { display: none; }
  .lhd-kachel { padding: 6px 8px; }
  .lhd-chips button { font-size: 13px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lhd-blatt { animation: none; }
  .lhd-balken > i { transition: none; }
}
html[data-bewegung="aus"] .lhd-blatt, html[data-motion="off"] .lhd-blatt { animation: none; }
html[data-bewegung="aus"] .lhd-balken > i, html[data-motion="off"] .lhd-balken > i { transition: none; }

/* ── HP-FINAL2 (07.10.): the workshop in the Werk-live look — one counter row, bay cards linked to the hall, queue card.
   Tokens (--wl-*) and the plate/queue styles come from werk_live.css (.wl); the outer box keeps the page card (.lsz). ── */
.lsz.lhd-halle.lhd-ws { display: block; padding: 16px 18px 14px; border-radius: 20px;
  background: linear-gradient(180deg, var(--wl-karte2), var(--wl-karte)); border-color: var(--wl-rand);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--wl-gold) 18%, transparent) inset, 0 24px 60px -36px rgba(0, 0, 0, .6); }
.lhd-ws .lhd-ws-kacheln { margin: 0 0 10px; max-width: none; }
.lhd-ws .wl-kachel { display: flex; flex-direction: column; }
.lhd-ws-naechst { display: block; margin-top: 2px; font-size: 12.5px; color: var(--wl-gold); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lhd-ws-mitte { position: relative; display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 28px; align-items: center; }
.lhd-ws-mitte .lhd-bild { max-width: 760px; width: 100%; justify-self: end; min-height: 0; }
.lhd-ws-mitte .lhd-bild .sz-bild { width: 100%; height: auto; aspect-ratio: 491 / 380; display: block; }
.lhd-ws-linien { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.lhd-ws-karten { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; z-index: 3; }
.lhd-wsk { font: inherit; text-align: left; color: var(--wl-text); cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0;
  background: var(--wl-karte); border: 1px solid var(--wl-rand); border-left: 4px solid var(--wl-kalt); border-radius: 14px; padding: 9px 13px 10px;
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .45); transition: border-color .2s, transform .2s; }
.lhd-wsk:hover { border-color: var(--wl-kante); border-left-color: inherit; transform: translateX(2px); }
.lhd-wsk:focus-visible { outline: 2px solid var(--wl-gold); outline-offset: 2px; }
.lhd-wsk-an { border-left-color: var(--wl-frei); }
.lhd-wsk-bau { border-left-color: var(--wl-signal); border-style: dashed solid dashed solid; }
.lhd-wsk-kopf { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--wl-matt); }
.lhd-wsk-kopf b { color: var(--wl-gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.lhd-wsk-kopf em { margin-left: auto; font-style: normal; font: 600 18px/1 "Fraunces WL", Georgia, serif; color: var(--wl-text); font-variant-numeric: tabular-nums; }
.lhd-wsk-frei .lhd-wsk-kopf span, .lhd-wsk-bau .lhd-wsk-kopf span { color: var(--wl-matt); font-weight: 600; }
.lhd-wsk-titel { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhd-wsk-zeile { font-size: 13px; color: var(--wl-matt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhd-wsk-zeit { font-size: 13px; color: var(--wl-gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.lhd-wsk .lhd-balken { height: 5px; border-radius: 3px; background: var(--wl-naht); margin-top: 6px; }
.lhd-wsk .lhd-balken > i { background: linear-gradient(90deg, var(--wl-ton), var(--wl-frei)); }
.lhd-ws-unten { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.lhd-ws-sch .wl-schlange { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lhd-ws-mehr { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0 0; color: var(--wl-gold); cursor: pointer; text-align: left; }
.lhd-ws-mehr:focus-visible { outline: 2px solid var(--wl-gold); outline-offset: 2px; }
@media (max-width: 1100px) { .lhd-ws-sch .wl-schlange { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .lsz.lhd-halle.lhd-ws { padding: 10px 10px 8px; border-radius: 16px; }
  .lhd-ws .lhd-ws-kacheln { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
  .lhd-ws .wl-kachel { grid-column: span 2; padding: 6px 4px 5px 7px; border-radius: 11px; }
  .lhd-ws .wl-kachel:nth-child(n+4) { grid-column: span 3; }
  .lhd-ws .wl-kachel-zahl { gap: 4px; } .lhd-ws .wl-kachel-zahl b { font-size: 20px; }
  .lhd-ws .wl-kachel-wort { font-size: 12px; line-height: 1.15; }
  .lhd-ws .wl-punkt { width: 7px; height: 7px; }
  .lhd-ws-mitte { display: flex; flex-direction: column; gap: 6px; }
  .lhd-ws-mitte .lhd-bild { order: -1; max-width: none; }
  .lhd-ws-linien { display: none; }
  .lhd-ws-karten { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; width: 100%; padding: 2px 2px 4px; scrollbar-width: none; }
  .lhd-ws-karten::-webkit-scrollbar { display: none; }
  .lhd-wsk { flex: 0 0 72%; scroll-snap-align: start; padding: 7px 10px; border-radius: 12px; }
  .lhd-wsk-frei, .lhd-wsk-bau { flex-basis: 44%; }
  .lhd-ws-karten > .wl-weitere { flex: 0 0 auto; align-self: center; margin: 0; }
  .lhd-ws-unten { margin-top: 6px; }
  .lhd-ws-sch { padding: 7px 10px 7px 12px; }
  .lhd-ws-sch .wl-info-titel { font-size: 15px; margin-bottom: 2px; }
  .lhd-ws-sch .wl-schlange { grid-template-columns: 1fr; gap: 0; }
  .lhd-ws-sch .wl-schlange li { font-size: 13px; padding: 1px 0; }
}
@media (prefers-reduced-motion: reduce) { .lhd-wsk { transition: none; } }
