/* Desktop-Ansicht. */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.seite-leiste { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: linear-gradient(180deg, #FFFFFF, #FBFBFC); border-right: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; text-decoration: none; color: inherit; }
.marke img { width: 52px; height: auto; flex: none; }
.marke b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.marke small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background var(--zeit), color var(--zeit); }
.nav a svg { flex: none; }
.nav a:hover { background: #F3F3F6; color: var(--text); }
.nav a[aria-current="page"] { background: #FFF1F1; color: var(--rot-text); box-shadow: inset 3px 0 0 var(--rot); }
.nav .zahl { margin-left: auto; font-size: .72rem; background: var(--fehler-hg); color: var(--fehler); padding: 1px 8px; border-radius: 999px; }
.leiste-fuss { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--linie); font-size: .78rem; color: var(--text-2); }
.leiste-fuss .claim { letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; margin-top: 6px; }

.haupt { min-width: 0; display: flex; flex-direction: column; }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: rgba(246,246,248,.78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231,231,236,.8); }
.kopf h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--text-2); }
.version { font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--linie); color: var(--text-2); }
.inhalt { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.raster-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.raster-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-2); padding: 20px; min-width: 0; }
.karte h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -.01em; }
.quelle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); }
.quelle:first-of-type { border-top: 0; }
.quelle .name { font-weight: 600; font-size: .9rem; }
.quelle .info { font-size: .78rem; color: var(--text-2); }
.quelle .r { margin-left: auto; text-align: right; font-size: .78rem; color: var(--text-2); }

.werkzeug { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.werkzeug .feld { min-width: 240px; }
.tabelle-huelle { overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--linie); background: #fff; box-shadow: var(--schatten-2); }
table.liste { width: 100%; border-collapse: collapse; font-size: .88rem; }
.liste th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 700; padding: 12px 14px; background: #FAFAFB; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.liste td { padding: 12px 14px; border-bottom: 1px solid #F0F0F3; vertical-align: top; }
.liste tbody tr { cursor: pointer; transition: background var(--zeit); }
.liste.ohne-klick tbody tr { cursor: default; }
.liste tbody tr:hover, .liste tbody tr:focus-within { background: #FFF7F7; }
.liste tbody tr:last-child td { border-bottom: 0; }
.liste .anlage b { display: block; overflow-wrap: anywhere; }
.faelle-tabelle { table-layout: fixed; }
.faelle-tabelle th, .faelle-tabelle td { padding-left: 12px; padding-right: 12px; }
.faelle-tabelle .col-ticket { width: 10%; }
.faelle-tabelle .col-dauer { width: 10%; }
.faelle-tabelle .col-anlage { width: 22%; }
.faelle-tabelle .col-stoerung { width: 17%; }
.faelle-tabelle .col-status { width: 13%; }
.faelle-tabelle .col-arbeit { width: 15%; }
.faelle-tabelle .col-ort { width: 13%; }
.faelle-tabelle td { min-width: 0; }
.faelle-tabelle .col-stoerung, .faelle-tabelle .zeile-link { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.faelle-tabelle .badge { white-space: normal; max-width: 100%; text-align: left; line-height: 1.25; }
.nowrap { white-space: nowrap; }
.ein-zeilig { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste button.zeile-link { all: unset; cursor: pointer; font-weight: 600; }
.liste button.zeile-link:focus-visible { outline: 3px solid rgba(216,16,32,.45); border-radius: 4px; }

.anlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
.anlage-karte { display: flex; flex-direction: column; gap: 10px; }
.anlage-karte .kopfzeile { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.anlage-karte h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.suche-register { display: flex; gap: 8px; }
.suche-register .feld { flex: 1; }

/* Seitenpaneel für Details */
.schleier { position: fixed; inset: 0; background: rgba(17,17,20,.28); z-index: 20; animation: rein .2s both; }
.paneel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); background: #fff; z-index: 21; box-shadow: var(--schatten-3); display: flex; flex-direction: column; animation: paneel .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes paneel { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.paneel header { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--linie); }
.paneel header h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.paneel .koerper { padding: 18px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.daten { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; font-size: .88rem; }
.daten dt { color: var(--text-2); }
.daten dd { margin: 0; overflow-wrap: anywhere; }
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.zeitleiste li { position: relative; padding: 0 0 12px 22px; font-size: .85rem; }
.zeitleiste li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--fehler); }
.zeitleiste li.gut::before { background: var(--gruen); }
.zeitleiste li::after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--linie); }
.zeitleiste li:last-child::after { display: none; }

/* ── Welle 2: Sammler, Kennzahlen, Filter, Bearbeitung ── */
.sammler-ort { padding: 16px 32px 0; min-width: 0; }
.sammler-ort:empty { display: none; }
.text-fehler { color: var(--fehler); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.karte-kopf h2 { margin: 0; }
.sammler-satz { margin: 0 0 12px; font-size: .88rem; color: var(--text); }
.sammler-daten { grid-template-columns: 110px minmax(0, 1fr); }
.abschnitt { margin: 0 0 10px; font-size: 1rem; letter-spacing: -.01em; }

.kpi-gross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-gross .kpi { padding-top: 20px; padding-bottom: 18px; }
.kpi-gross .kpi .zahl { font-size: 2.4rem; }
.kpi-klein { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi-klein .kpi { padding: 14px 14px 12px 18px; border-radius: var(--r-m); }
.kpi-klein .kpi .zahl { font-size: 1.5rem; }
/* Zweite Reihe neutral: Farbe nur an der Zahl */
.kpi-klein .kpi::before, .kpi-klein .kpi::after { display: none; }
.kpi-klein .kpi { padding-left: 16px; box-shadow: var(--schatten-1); }
.kz-zusatz { margin-top: -8px; }

.kz-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.kz-leiste.kz-fehlt { padding: 4px 2px; }
.kz { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--linie); background: #fff; box-shadow: var(--schatten-1); cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--text); transition: box-shadow var(--zeit), border-color var(--zeit), background var(--zeit); }
.kz b { font-size: 1.15rem; letter-spacing: -.02em; color: var(--akzent, var(--text)); }
.kz:hover { box-shadow: var(--schatten-2); }
.kz[aria-pressed="true"] { border-color: var(--rot-text); background: #FFF6F6; box-shadow: inset 0 0 0 1px var(--rot-text); }
.kz-hinweis { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px dashed rgba(178,106,0,.45); background: var(--amber-hg); color: #6B4000; font-size: .82rem; font-weight: 600; cursor: pointer; }
.kz-hinweis[aria-pressed="true"] { border-style: solid; box-shadow: inset 0 0 0 1px var(--amber); }

.filter-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-1); min-width: 0; }
.filter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; }
.filter.suche { flex: 2 1 280px; }
.filter-titel { font-size: .76rem; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.filter .feld { width: 100%; }
.filter select { width: 100%; text-overflow: ellipsis; cursor: pointer; }
.filter-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 40px; }
.zaehl-chip { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--rot-text); color: #fff; font-size: .74rem; }

.umschalter { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px 6px 8px; border-radius: 12px; border: 1px solid var(--linie-2); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; }
.umschalter .spur { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #8E8E96; transition: background var(--zeit); flex: none; }
.umschalter .spur i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,17,20,.25); transition: transform var(--zeit); }
.umschalter[aria-pressed="true"] { border-color: var(--rot-text); color: var(--rot-text); }
.umschalter[aria-pressed="true"] .spur { background: var(--rot-text); }
.umschalter[aria-pressed="true"] .spur i { transform: translateX(14px); }

.ergebnis-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 -8px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(216,16,32,.3); background: #FFF6F6; color: var(--rot-text); font-weight: 600; font-size: .8rem; cursor: pointer; }
.chip:hover { background: #FFECEC; }

.standorte { list-style: none; margin: 0; padding: 0; }
.standort-zeile { all: unset; box-sizing: border-box; display: flex; width: 100%; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 8px; border-top: 1px solid var(--linie); cursor: pointer; font-size: .88rem; border-radius: 8px; }
.standorte li:first-child .standort-zeile { border-top: 0; }
.standort-zeile:hover { background: #FFF7F7; }
.standort-zeile:focus-visible { outline: 3px solid rgba(216,16,32,.45); }
.standort-zeile span { min-width: 0; overflow-wrap: anywhere; }

/* Paneel: Bearbeitung, Vermerk, Verlauf */
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.p-h3 { margin: 0 0 10px; font-size: .95rem; }
.arbeit { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-m); background: linear-gradient(180deg, #FFFFFF, #FBFBFC); border: 1px solid var(--linie); box-shadow: var(--schatten-1); }
.arbeit-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arbeit-kopf h3 { margin: 0 auto 0 0; font-size: .95rem; }
.arbeit-wer { margin: 0; font-size: .9rem; }
.arbeit-wer:focus { outline: none; }
.arbeit-wer:focus-visible { outline: 3px solid rgba(216,16,32,.45); }
.unterform { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--linie-2); animation: rein .25s both; }
.unterform h4 { margin: 0; font-size: .9rem; }
.feld-titel { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.pflicht { color: var(--rot-text); font-weight: 600; }
.textfeld { width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid var(--linie-2); border-radius: 12px; background: #fff; font: inherit; font-size: .9rem; line-height: 1.45; color: var(--text); }
.textfeld:focus { outline: none; border-color: var(--rot-text); box-shadow: 0 0 0 3px rgba(216,16,32,.12); }
.textfeld::placeholder { color: var(--text-2); }
.textfeld[disabled] { background: #F6F6F8; }
.feld-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: flex-end; }
.feld-fehler { margin-right: auto; color: var(--fehler); font-size: .82rem; font-weight: 600; }
.feld-fehler:empty { display: none; }
.zaehler { font-size: .78rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.zaehler.voll { color: var(--fehler); font-weight: 700; }
.vermerk { display: flex; flex-direction: column; gap: 8px; }
.vermerk h3 { margin: 0; font-size: .95rem; }
.paneel[aria-busy="true"] .arbeit, .paneel[aria-busy="true"] .vermerk { opacity: .7; }

.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { position: relative; padding: 0 0 14px 26px; font-size: .86rem; }
.verlauf li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.verlauf li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 2px; width: 2px; background: var(--linie); }
.verlauf li:last-child::after { display: none; }
.verlauf .v-mensch::before { background: var(--rot-text); box-shadow: 0 0 0 3px rgba(216,16,32,.14); }
.verlauf .v-mensch.v-erledigt::before { background: var(--gruen); box-shadow: 0 0 0 3px rgba(20,122,61,.14); }
.verlauf .v-system::before { background: #fff; border: 2px solid #8E8E96; }
.v-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.v-kopf b { font-weight: 700; }
.v-system .v-kopf b { color: var(--text-2); font-weight: 600; }
.v-was { color: var(--text-2); }
.v-kopf time { margin-left: auto; color: var(--text-2); font-size: .78rem; font-variant-numeric: tabular-nums; }
.v-text { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: #F7F7F9; border: 1px solid var(--linie); white-space: pre-wrap; overflow-wrap: anywhere; }
.v-info { margin-top: 2px; color: var(--text-2); overflow-wrap: anywhere; }

/* Ladeanzeige und veraltete Werte */
.ladbar { transition: opacity var(--zeit); }
.ist-laden .ladbar { opacity: .45; }
.ist-laden .inhalt { cursor: progress; }
#neu-laden[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
#stand.veraltet { color: #6B4000; background: var(--amber-hg); padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.nav .zahl.veraltet { background: #F0F0F3; color: var(--text-2); text-decoration: line-through; }
.veraltet-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.paneel.ist-veraltet .arbeit, .paneel.ist-veraltet .vermerk { opacity: .55; }
.mehr-laden { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: -6px; }

/* Info */
.versionen-zeile { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.versionen-zeile > div { display: flex; flex-direction: column; gap: 4px; }
.info-verlauf { display: flex; flex-direction: column; gap: 14px; }
.info-version { margin: 0 0 8px; font-size: .95rem; }
.info-verlauf ul { margin: 0; padding-left: 20px; font-size: .88rem; }

@media (max-width: 1240px) {
  .faelle-tabelle .col-ort { display: none; }
  .faelle-tabelle th, .faelle-tabelle td { padding-left: 8px; padding-right: 8px; }
  .faelle-tabelle .badge { padding: 2px 7px; font-size: .7rem; gap: 4px; }
  .faelle-tabelle .badge::before { width: 5px; height: 5px; }
  .faelle-tabelle .col-ticket { width: 12%; }
  .faelle-tabelle .col-dauer { width: 12%; }
  .faelle-tabelle .col-anlage { width: 24%; }
  .faelle-tabelle .col-stoerung { width: 17%; }
  .faelle-tabelle .col-status { width: 16%; }
  .faelle-tabelle .col-arbeit { width: 19%; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 216px minmax(0, 1fr); }
  .inhalt, .kopf, .sammler-ort { padding-left: 24px; padding-right: 24px; }
  .raster-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .seite-leiste { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .inhalt, .kopf, .sammler-ort { padding-left: 16px; padding-right: 16px; }
  .anlagen { grid-template-columns: minmax(0, 1fr); }
  .kpi-gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 2.2.0 Arbeitsliste ── */
/* Dauer: wichtigstes Merkmal einer Zeile, eingefärbt nach Alter */
.dauer { display: inline-block; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; padding: 2px 8px; margin-left: -8px; border-radius: 8px; white-space: nowrap; }
.dauer.d-frisch { color: var(--text); }
.dauer.d-mittel { color: var(--amber); background: var(--amber-hg); }
.dauer.d-lang { color: var(--rot-text); background: #FFF0F0; }
.dauer.d-vorbei { color: var(--text-2); font-weight: 600; font-size: .9rem; }
.nur-dock { display: none; }

/* Neue Zeilen beim Nachladen kurz hervorheben; gewählte Zeile = Fall rechts */
@keyframes neu-leuchten { from { background: #FFE9C2; } to { background: transparent; } }
.liste tbody tr.ist-neu { animation: neu-leuchten 2.6s ease-out both; }
.liste tbody tr.ist-gewaehlt { background: #FFF1F1; box-shadow: inset 0 0 0 1px rgba(216,16,32,.28); }

/* Aufbau der Fälle-Seite: Spalte Filter + Spalte Liste (untereinander, bis es breit genug ist) */
.al, .al-seite, .al-haupt { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Angedockt (Seite Fälle, ab 1280 px): Fall-Detail als feste rechte Spalte statt Dialog */
:root { --dock-b: 440px; }
.dock-leer { display: none; }
.angedockt .app > .haupt { padding-right: var(--dock-b); } /* nur der Bereich, nicht .knopf.haupt */
.angedockt .schleier:not(.oben) { display: none; }
.angedockt .paneel { width: var(--dock-b); z-index: 15; box-shadow: none; border-left: 1px solid var(--linie); animation: rein .2s both; }
.angedockt #paneel-ort:empty + .dock-leer { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: var(--dock-b); z-index: 15; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(180deg, #FFFFFF, #FBFBFC); border-left: 1px solid var(--linie); }
.dock-leer-innen { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--text-2); max-width: 280px; }
.dock-leer-innen svg { color: var(--linie-2); }
.dock-leer-innen b { color: var(--text); }
.dock-leer-innen p { margin: 0; font-size: .88rem; }
.angedockt .faelle-tabelle .col-stoerung, .angedockt .faelle-tabelle .col-ort { display: none; }
.angedockt .faelle-tabelle .col-ticket { width: 18%; }
.angedockt .faelle-tabelle .col-dauer { width: 18%; }
.angedockt .faelle-tabelle .col-anlage { width: 30%; }
.angedockt .faelle-tabelle .col-status { width: 16%; }
.angedockt .faelle-tabelle .col-arbeit { width: 18%; }
.angedockt .nur-dock { display: block; color: var(--text-2); margin-top: 2px; }
.angedockt .kopf .rechts { flex-wrap: wrap; justify-content: flex-end; }

/* Sehr breit: Kennzahlen und Filter als linke Spalte */
@media (min-width: 1680px) {
  .angedockt .al { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
  .angedockt .al-seite { position: sticky; top: 16px; gap: 14px; }
  .angedockt .al-seite .kz-leiste { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .angedockt .al-seite .kz { justify-content: space-between; flex-direction: row-reverse; }
  .angedockt .al-seite .kz-hinweis { justify-content: flex-start; }
  .angedockt .al-seite .filter-leiste { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .angedockt .al-seite .filter, .angedockt .al-seite .filter.suche { flex: none; }
  .angedockt .al-seite .filter-knoepfe { flex-direction: column; align-items: stretch; }
}

/* Tastenkürzel */
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--linie-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 .78rem/1.5 var(--schrift); text-align: center; color: var(--text); }
.schleier.oben { z-index: 40; }
.tasten-hilfe { position: fixed; z-index: 41; inset: 0; margin: auto; height: fit-content; width: min(420px, 92vw); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--r-l); box-shadow: var(--schatten-3); padding: 20px 24px; animation: rein .2s both; }
.th-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.th-kopf h2 { margin: 0; font-size: 1.05rem; }
.tasten-hilfe dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 14px; align-items: center; font-size: .9rem; }
.tasten-hilfe dd { margin: 0; }

/* ── 0.1.0 Ticket Center ── */
.liste button.zeile-link.ticket-nr { font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.ticket-sym { display: flex; gap: 4px; margin-top: 6px; }
.anlage-titel { display: block; font-weight: 600; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.kz-pfeil { color: var(--text-2); font-size: 1.1rem; line-height: 1; }
.zaehl-chip.grau { background: #E9E9EE; color: var(--text-2); }
.beob-link { margin-left: auto; }
.kopf-glocke { min-width: 40px; padding: 8px 10px; }
.p-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.p-ticket-nr { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--rot-text); margin-right: 4px; }
.p-ticket-nr.leise { color: var(--text-2); font-family: var(--schrift); font-size: .82rem; font-weight: 600; }
.paneel .koerper { gap: 14px; }
.paneel .tk-block { padding: 14px; }
.ticket-link { font-weight: 700; color: var(--rot-text); text-decoration: none; border-radius: 6px; }
.ticket-link:hover { text-decoration: underline; }
.kpi-gross { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-liste { margin: 0; padding-left: 20px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.push-karte { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.push-karte .tk-kopf h2 { font-size: 1.05rem; margin: 0 auto 0 0; }

/* Datenfehler-Seite */
.df-tabelle { table-layout: fixed; }
.df-tabelle .df-col-anlage { width: 24%; }
.df-tabelle .df-col-ticket { width: 11%; }
.df-tabelle .df-col-text { width: 39%; }
.df-tabelle .df-col-zeit { width: 13%; }
.df-tabelle .df-col-aktion { width: 13%; text-align: right; }
.df-tabelle td { overflow-wrap: anywhere; }
.df-zeile-text { display: flex; gap: 8px; align-items: flex-start; }
.df-zeile-text .sym { margin-top: 1px; }
.df-erledigt td { color: var(--text-2); }

/* Veraltete Ansicht nach fehlgeschlagener Aktualisierung */
.veraltet-banner { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.inhalt.ist-veraltet .ladbar { opacity: .5; }

@media (max-width: 1100px) {
  .kpi-gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Angedockt und schmal (1280–1599 px): Dauer wandert unter die Ticketnummer, damit Status und Bearbeitung Platz haben. */
.nur-dock-eng { display: none; }
@media (max-width: 1599px) {
  .angedockt .faelle-tabelle .col-dauer { display: none; }
  .angedockt .nur-dock-eng { display: block; margin-top: 6px; }
  .angedockt .nur-dock-eng .dauer { margin-left: -4px; padding: 1px 6px; font-size: .86rem; }
  .angedockt .faelle-tabelle .col-ticket { width: 20%; }
  .angedockt .faelle-tabelle .col-anlage { width: 34%; }
  .angedockt .faelle-tabelle .col-status { width: 22%; }
  .angedockt .faelle-tabelle .col-arbeit { width: 24%; }
  .angedockt .faelle-tabelle .badge { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .liste tbody tr.ist-neu { animation: none; background: #FFF8EC; }
  .angedockt .paneel, .tasten-hilfe { animation: none; }
}
