/* Ticket-Arbeitsplatz: ganze Bildschirmfläche, Spalten scrollen einzeln; Farben aus den Variablen (alle Designs, hell und dunkel) */
html, body { height: 100%; }
body { display: flex; flex-direction: column; overflow: hidden; }
.ls-kopf { flex: none; display: flex; align-items: center; gap: 1rem; }
.ls-ansichten { display: flex; gap: .25rem; margin-left: auto; }
.ls-ansichten button { border: 0; background: transparent; color: var(--text-auf-asphalt); padding: .45rem .8rem; border-radius: 8px; font: inherit; cursor: pointer; min-height: 2.4rem; }
.ls-ansichten button.aktiv { background: var(--asphalt-hell); box-shadow: inset 0 -3px 0 var(--signal); font-weight: 700; }
.ls-ansichten b { color: var(--text-auf-asphalt); }
.ls-inhalt { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: .6rem .8rem 0; outline: none; }
.ls-leiste { flex: none; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.ls-leiste input[type="search"] { flex: 1 1 16rem; max-width: 26rem; }
.ls-leiste select, .ls-leiste input { font-size: max(1rem, 16px); padding: .45rem .6rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
.ls-summe { color: var(--text-leise); margin-left: auto; }
#ls-flaeche { flex: 1; min-height: 0; display: flex; }
.ls-tafel { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: .6rem; overflow-x: auto; padding-bottom: .6rem; }
.ls-personen { grid-auto-columns: minmax(15rem, 18rem); }
.ls-spalte { display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--linie) 35%, var(--grund)); border-radius: 12px; padding: .5rem; border: 2px solid transparent; }
.ls-spalte.ueber { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 12%, var(--grund)); }
.ls-spalte h2 { font-size: .95rem; margin: .1rem .2rem .4rem; display: flex; justify-content: space-between; align-items: center; }
.ls-anzahl { background: var(--flaeche); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; color: var(--text-leise); }
.ls-auslastung { color: var(--text-leise); margin: -.3rem .2rem .4rem; }
.ls-stapel { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; padding: .1rem; }
.ls-karte { background: var(--flaeche); border: 1px solid var(--linie); border-left: 5px solid var(--linie-stark); border-radius: 10px; padding: .55rem .65rem; cursor: pointer;
  display: flex; flex-direction: column; gap: .25rem; box-shadow: var(--schatten); }
.ls-karte:hover, .ls-karte:focus-visible { border-color: var(--signal); outline: none; }
.ls-karte.gewaehlt { box-shadow: 0 0 0 3px var(--signal); }
.ls-karte.zieht { opacity: .45; }
.ls-karte.ueberfaellig { background: color-mix(in srgb, var(--fehler) 8%, var(--flaeche)); }
.ls-karte.prio-dringend { border-left-color: #c92a2a; } .ls-karte.prio-hoch { border-left-color: #e8590c; }
.ls-karte.prio-normal { border-left-color: #1f5fbf; } .ls-karte.prio-niedrig { border-left-color: #8a939b; }
.ls-karte-kopf, .ls-fuss, .ls-zeile { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ls-karte-kopf { justify-content: space-between; }
.ls-fuss { justify-content: space-between; }
.ls-nummer { font-family: var(--nummer); font-size: .8rem; color: var(--text-leise); }
.ls-titel { line-height: 1.3; }
.ls-prio { font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--grund); }
.ls-prio.prio-dringend { background: #c92a2a; color: #fff; } .ls-prio.prio-hoch { background: #e8590c; color: #fff; }
.ls-kat, .ls-ort, .ls-gruppe { font-size: .78rem; color: var(--text-leise); }
.ls-ort::before { content: "⌖ "; }
.ls-frist { font-size: .78rem; color: var(--text-leise); }
.ls-frist.gelb { color: var(--warnung); font-weight: 700; } .ls-frist.rot { color: var(--fehler); font-weight: 700; }
.ls-person { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--asphalt); color: var(--text-auf-asphalt); display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; margin-left: auto; }
.ls-detail { position: fixed; top: var(--leiste); right: 0; bottom: 0; width: min(30rem, 100vw); background: var(--flaeche); border-left: 1px solid var(--linie);
  box-shadow: -8px 0 24px rgba(0,0,0,.12); padding: 1rem 1.1rem calc(1rem + var(--unten)); overflow-y: auto; z-index: 20; }
.ls-detail-kopf { display: flex; justify-content: space-between; align-items: center; }
.ls-detail h2 { margin: .3rem 0 .5rem; }
.ls-beschreibung { white-space: pre-wrap; }
.ls-angaben { display: grid; grid-template-columns: 7rem 1fr; gap: .3rem .7rem; margin: .8rem 0; }
.ls-angaben dt { color: var(--text-leise); } .ls-angaben dd { margin: 0; }
.ls-liste-huelle { flex: 1; overflow: auto; }
.ls-liste tbody tr { cursor: pointer; }
.ls-kartenhuelle { flex: 1; display: flex; min-height: 0; }
.ls-karte-flaeche { flex: 1; min-height: 20rem; border-radius: 12px; overflow: hidden; }
.ls-meine { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; padding-bottom: calc(1rem + var(--unten)); max-width: 42rem; width: 100%; margin: 0 auto; }
.ls-meine-eintrag .knopfreihe { margin-top: .35rem; }
.ls-meldung { position: fixed; left: 50%; bottom: calc(1.2rem + var(--unten)); transform: translateX(-50%); background: var(--asphalt); color: var(--text-auf-asphalt);
  padding: .6rem 1rem; border-radius: 10px; z-index: 50; box-shadow: var(--schatten); }
@media (max-width: 760px) {
  .ls-kopf .gemeinde small { display: none; }
  .ls-summe { margin-left: 0; width: 100%; }
  .ls-leiste .knopf-signal { width: 100%; }
}
.ls-leiste select { width: auto; flex: 0 1 13rem; }
@media (max-width: 760px) { .ls-leiste select, .ls-leiste input[type="search"] { flex: 1 1 100%; max-width: none; } }
.ls-einstellungen { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-content: start; padding-bottom: 1rem; }
.ls-kategorien { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.ls-kategorien li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); }
.ls-kategorien li.inaktiv .ls-kat-name { opacity: .5; text-decoration: line-through; }
.ls-menue-kopf { display: flex; flex-direction: column; padding: .5rem .8rem; border-bottom: 1px solid var(--linie); margin-bottom: .3rem; }
.ls-menue-kopf small { color: var(--text-leise); }
@media (max-width: 900px) { .ls-einstellungen { grid-template-columns: 1fr; } }
.ls-kat-abt { color: var(--text-leise); }
.ls-auswahl { max-height: 50vh; overflow-y: auto; display: grid; gap: .3rem; margin: .5rem 0; }
.ls-hinweis-spalte { grid-column: 1 / -1; margin: 0 0 .3rem; color: var(--text-leise); }
.ls-mit { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Fenster des Arbeitsplatzes: eigener Innenabstand (sm.css erwartet sonst .dialog-kopf und .dialog-inhalt) */
dialog.dialog:not(:has(.dialog-inhalt)) { padding: 1.25rem 1.4rem 1.1rem; width: min(30rem, calc(100vw - 1.5rem)); }
dialog.dialog.gross:not(:has(.dialog-inhalt)) { width: min(44rem, calc(100vw - 1.5rem)); }
dialog.dialog:not(:has(.dialog-inhalt)) h2 { margin: 0 0 .9rem; font-size: 1.2rem; }
dialog.dialog:not(:has(.dialog-inhalt)) form { display: flex; flex-direction: column; gap: .8rem; }
dialog.dialog:not(:has(.dialog-inhalt)) .feld { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
dialog.dialog:not(:has(.dialog-inhalt)) .feld > span { font-weight: 600; font-size: .92rem; }
dialog.dialog:not(:has(.dialog-inhalt)) select, dialog.dialog:not(:has(.dialog-inhalt)) input:not([type="checkbox"]), dialog.dialog:not(:has(.dialog-inhalt)) textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: max(1rem, 16px); padding: .55rem .7rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
dialog.dialog:not(:has(.dialog-inhalt)) .knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .4rem; }
dialog.dialog:not(:has(.dialog-inhalt)) p { margin: 0 0 .6rem; }
dialog.dialog:not(:has(.dialog-inhalt)) .ls-auswahl { margin: .2rem 0 .6rem; }
.ls-mit-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.ls-mit-kopf .ls-hinweis-spalte { margin: 0; }
dialog.dialog:not(:has(.dialog-inhalt)) .ls-schnell { justify-content: flex-start; margin: .4rem 0 0; }
