


























.sub-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 120;
  max-width: min(560px, 92vw);
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  background: var(--text); color: var(--flaeche);
  border-radius: var(--r-2);
  font-size: 11.5px; line-height: 1.5;
  box-shadow: var(--schatten-2);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.sub-toast.da { opacity: 1; transform: translate(-50%, 0); }
.sub-toast.fehler { background: var(--fehler); color: var(--auf-farbe); }
.sub-toast.warn   { background: var(--s-tief); color: var(--flaeche); }

.sub-klein { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.sub-leise { color: var(--text-3); font-size: 10.5px; }
.sub-nowrap { white-space: nowrap; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.sub-chips .chip { cursor: default; }
.sub-chips .chip:hover { background: var(--flaeche); border-color: var(--linie); color: var(--text-2); }

.sub-fehler {
  display: flex; align-items: center; gap: 10px;
  grid-column: 1 / -1; flex: 1;
  color: var(--fehler); background: var(--fehler-flaeche); border-color: var(--fehler-linie);
}
.sub-fehler span { flex: 1; font-size: 11.5px; }
.sub-fehler svg { width: 16px; height: 16px; }

.sub-liste-klein { display: flex; flex-direction: column; gap: 6px; }
.sub-liste-klein .zeile { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.sub-liste-klein .zeile svg { color: var(--p); }


.sub-seitenkopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-seitenkopf h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.sub-seitenkopf .schub { margin-left: auto; }
.sub-satz { margin: 0; font-size: 12px; color: var(--text-2); max-width: 70ch; }


.sub-agentkarte {
  margin: 8px 8px 2px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--linie); border-radius: var(--r-2);
  background: var(--flaeche-2);
  cursor: pointer; transition: 140ms ease; text-align: left;
}
.sub-agentkarte:hover { border-color: var(--linie-stark); background: var(--flaeche-3); }
.sub-agentkarte .kopfzeile { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sub-agentkarte .zeichen { display: inline-flex; color: var(--p); flex: none; }
.sub-agentkarte b { font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sub-agentkarte .punkt { flex: none; }
.sub-agentkarte p {
  margin: 0; font-size: 10.5px; line-height: 1.45; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sub-agentkarte .modell { font-size: 10.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.sub-agentkarte .modell svg { width: 12px; height: 12px; color: var(--text-3); }

.sub-agentzeichen { display: inline-flex; color: var(--p); }


.sub-chart { padding-top: 2px; }
.sub-balken { display: block; width: 100%; height: 132px; overflow: visible; }
.sub-balken rect.voll  { fill: var(--p); }
.sub-balken rect.heute { fill: var(--p-tief); }
.sub-balken rect.leer  { fill: var(--linie-stark); opacity: .55; }
.sub-balken rect:hover { opacity: .8; }
.sub-balken .achse { stroke: var(--linie-stark); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.sub-chart-skelett { height: 132px; border-radius: var(--r-1); }
.sub-chart-skala {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 4px; font-size: 10.5px; color: var(--text-3);
}
.sub-chart-skala .mitte { color: var(--text-2); }

.sub-tabelle-hulle { overflow-x: auto; margin: 0 -14px -12px; padding: 0 14px 12px; }
.sub-auftrag span {
  display: block; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text);
}
.sub-klickzeile { cursor: pointer; }
.sub-klickzeile:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }






.zweispalter { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.zweispalter > .spalte, .zweispalter > .karte { min-width: 0; }


@media (max-width: 980px) {
  .zweispalter { grid-template-columns: minmax(0, 1fr); }
  .band { flex-direction: column; }
  .band-zahl { min-width: 0; }
}




.sub-gross svg { width: 22px; height: 22px; }

.sub-hinweis {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 11.5px; color: var(--text-2);
}
.sub-hinweis svg { color: var(--text-3); width: 16px; height: 16px; }
.sub-hinweis span { flex: 1; }


.sub-kvliste { display: flex; flex-direction: column; }
.sub-kv {
  display: flex; align-items: center; gap: 8px; min-height: 28px;
  border-bottom: 1px solid var(--linie-weich); font-size: 11.5px;
}
.sub-kv:last-child { border-bottom: none; }
.sub-kv .k { color: var(--text-3); flex: 1; min-width: 0; }
.sub-kv .v { color: var(--text); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.sub-agent { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 1240px; }


.sub-hero {
  padding: 20px 22px 16px; overflow: hidden; border-radius: var(--r-3); border-color: var(--p-linie);
  background: linear-gradient(118deg, var(--p-flaeche) 0%, transparent 58%), var(--flaeche);
}
.sub-hero-kopf { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sub-hero-zeichen {
  flex: none; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--p); background: var(--flaeche); border: 1px solid var(--p-linie); border-radius: 16px;
  box-shadow: var(--schatten-1);
}
.sub-hero-zeichen svg { width: 28px; height: 28px; }
.sub-hero-text { flex: 1 1 320px; min-width: 0; }
.sub-hero-titelzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-hero-titelzeile h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.005em; }
.sub-hero-satz { margin: 6px 0 0; max-width: 64ch; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.sub-hero-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sub-hero-zahlen {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie-weich);
}
.sub-hero-zahl { display: flex; flex-direction: column; gap: 2px; padding: 0 16px; border-left: 1px solid var(--linie-weich); min-width: 0; }
.sub-hero-zahl:first-child { padding-left: 0; border-left: none; }
.sub-hero-zahl .k { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.sub-hero-zahl b { font-size: 22px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--text); }
.sub-hero-zahl .f { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-hero-zahlen.leer { display: block; }
.sub-hero-leer { margin: 0; font-size: 12px; color: var(--text-2); }


.sub-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
.sub-tab {
  padding: 9px 15px; font: inherit; font-size: 12.5px; color: var(--text-2); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; transition: 140ms ease;
}
.sub-tab:hover { color: var(--text); }
.sub-tab.aktiv { color: var(--p-tief); border-bottom-color: var(--p); font-weight: 600; }
.sub-tab:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; border-radius: var(--r-1); }


.sub-agent-raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.sub-agent-haupt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sub-steckbrief { position: sticky; top: 4px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sub-steckbrief-hinweis {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: var(--strich-fein); font-size: 11px; line-height: 1.5; color: var(--text-3);
}
.sub-steckbrief-hinweis svg { flex: none; margin-top: 2px; }
.sub-steckbrief-hinweis span { flex: 1; }


.sub-aufgabe { padding: 16px 18px; gap: 6px; }
.sub-aufgabe .marke { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--p-tief); }
.sub-aufgabe p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 72ch; }
.sub-block-titel { margin: 4px 0 8px; font-size: 13px; font-weight: 600; }
.sub-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sub-schritt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px;
  background: var(--flaeche); border: 1px solid var(--linie-weich); border-radius: var(--r-2);
}
.sub-schritt .nr {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--p-flaeche); border: 1px solid var(--p-linie); color: var(--p-tief);
  font-size: 11.5px; font-weight: 650;
}
.sub-schritt b { font-size: 12.5px; font-weight: 600; }
.sub-schritt p { margin: 0 0 4px; font-size: 11.5px; line-height: 1.5; color: var(--text-2); flex: 1; }

.sub-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sub-punkte li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.5; color: var(--text); }
.sub-punkte .punkt {
  flex: none; width: 18px; height: 18px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.sub-punkte .punkt.ja { background: var(--ok-flaeche); color: var(--ok); }
.sub-punkte .punkt.nein { background: var(--flaeche-3); color: var(--text-3); }


.sub-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.sub-skill { gap: 8px; padding: 14px 16px; }
.sub-skill-kopf { display: flex; align-items: center; gap: 8px; }
.sub-skill-kopf b { font-size: 13.5px; font-weight: 600; }
.sub-skill-zeichen { display: inline-flex; color: var(--p); }
.sub-skill .sub-chips { margin-top: 0; }
.sub-beispiele { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.sub-beispiele .marke { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.sub-beispiel {
  display: flex; align-items: flex-start; gap: 7px; width: 100%; padding: 7px 10px; text-align: left;
  font: inherit; font-size: 11.5px; line-height: 1.5; color: var(--text-2); background: var(--flaeche-2);
  border: 1px solid var(--linie-weich); border-radius: var(--r-1); cursor: pointer; transition: 140ms ease;
}
.sub-beispiel svg { flex: none; margin-top: 2px; color: var(--p); }
.sub-beispiel:hover { border-color: var(--p-linie); color: var(--p-tief); background: var(--p-flaeche); }


.sub-erklaer { display: flex; flex-direction: column; }
.sub-erklaerzeile { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie-weich); }
.sub-erklaerzeile:last-of-type { border-bottom: none; }
.sub-erklaerzeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.45; }
.sub-erklaerzeile b { font-size: 12.5px; font-weight: 600; }
.sub-erklaer > .sub-leise { padding-top: 6px; }

@media (max-width: 1080px) {
  .sub-agent-raster { grid-template-columns: 1fr; }
  .sub-steckbrief { position: static; }
}
@media (max-width: 760px) {
  .sub-schritte { grid-template-columns: 1fr; }
  .sub-hero-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .sub-hero-zahl:nth-child(3) { padding-left: 0; border-left: none; }
  .sub-hero-aktionen { margin-left: 0; }
}



.ansicht.sub-voll { overflow: hidden; }
.ansicht.sub-voll > .bahn.sub-voll { flex: 1; min-height: 0; padding-bottom: 12px; }
.sub-dateien {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 224px minmax(0, 1fr) 328px; gap: 10px;
}
.sub-dateien[hidden] { display: none; }
.sub-dateien > .karte { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 1180px) {
  .sub-dateien { grid-template-columns: 200px minmax(0, 1fr); }

  .sub-detail {
    position: fixed !important; top: var(--kopf-hoehe); right: 0; bottom: 0; z-index: 70;
    width: min(360px, 92vw); border-radius: 0; box-shadow: var(--schatten-3);
    transform: translateX(110%); transition: transform 180ms ease, visibility 0s linear 180ms; padding-top: 10px;
    visibility: hidden;
  }
  .sub-detail.auf { transform: none; visibility: visible; transition-delay: 0s; }
  .sub-detail-zu, .sub-detail-knopf { display: inline-flex !important; }
}
.sub-detail-zu, .sub-detail-knopf { display: none; }
.sub-detail-zu { align-self: flex-end; flex: none; }
@media (max-width: 760px)  { .sub-dateien { grid-template-columns: minmax(0, 1fr); } .sub-baum { display: none !important; } }


.sub-baum { padding: 10px 6px 8px; }
.sub-baum .karte-kopf { padding: 0 8px; }
.sub-baum-liste { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 4px; }
.sub-baum-zeile {
  display: flex; align-items: center; gap: 4px; height: 28px; padding-right: 6px;
  border-radius: var(--r-1); cursor: pointer; color: var(--text-2); font-size: 11.5px;
  transition: 140ms ease; border: 1px solid transparent;
}
.sub-baum-zeile:hover { background: var(--flaeche-3); color: var(--text); }
.sub-baum-zeile.aktuell { background: var(--p-flaeche); color: var(--p-tief); font-weight: 500; }
.sub-baum-zeile.ziel, .sub-zeile.ziel, .sub-krume .stueck.ziel { border-color: var(--p); background: var(--p-flaeche); }
.sub-baum-zeile .pfeil { width: 16px; height: 16px; flex: none; background: none; border: none; padding: 0; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sub-baum-zeile .pfeil.leer { cursor: default; }
.sub-baum-zeile .symbol { display: inline-flex; flex: none; color: var(--text-3); }
.sub-baum-zeile.aktuell .symbol { color: var(--p); }
.sub-baum-zeile .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-baum-zeile .zahl { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.regel-punkt { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--p); }
.regel-punkt.einmal { background: var(--s); }
.regel-punkt.zeitraum { background: var(--p-hell); }


.sub-liste-panel { padding: 0; position: relative; }
.sub-werkzeugleiste {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border-bottom: 1px solid var(--linie-weich);
}
.sub-krume { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; font-size: 12px; flex-wrap: wrap; }
.sub-krume .stueck, .sub-krume .krume-weg {
  background: none; border: 1px solid transparent; padding: 2px 6px; border-radius: var(--r-1);
  font: inherit; color: var(--text-2); cursor: pointer;
}
.sub-krume .stueck:hover, .sub-krume .krume-weg:hover { background: var(--flaeche-3); color: var(--text); }
.sub-krume .ende { padding: 2px 6px; font-weight: 600; color: var(--text); }
.sub-krume .krume-weg { margin-left: 6px; color: var(--p-tief); }
.sub-krume .trenner-klein { display: inline-flex; color: var(--text-3); }
.sub-filter {
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; width: 210px;
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-rund); color: var(--text-3);
  transition: 140ms ease;
}
.sub-filter:focus-within { border-color: var(--p-linie); background: var(--flaeche); }
.sub-filter input { flex: 1; min-width: 0; background: none; border: none; outline: none; font: inherit; font-size: 11.5px; color: var(--text); }
.sub-liste-koerper { flex: 1; min-height: 0; overflow: auto; }

.sub-dtab { table-layout: fixed; }
.sub-dtab th { padding: 0 10px; position: sticky; top: 0; background: var(--flaeche); z-index: 1; }
.sub-dtab td { padding: 0 10px; height: 38px; vertical-align: middle; }
.sub-dtab .sub-haken-spalte { width: 38px; padding: 0 0 0 12px; }
.sub-dtab th:nth-child(3), .sub-dtab td:nth-child(3) { width: 84px; }
.sub-dtab th:nth-child(4), .sub-dtab td:nth-child(4) { width: 120px; }
.sub-dtab th:nth-child(5), .sub-dtab td:nth-child(5) { width: 190px; }
.sub-dtab .sub-menuespalte { width: 38px; padding: 0 4px; }
@media (max-width: 1500px) { .sub-dtab th:nth-child(4), .sub-dtab td:nth-child(4) { display: none; } }
.sub-sortierer {
  display: inline-flex; align-items: center; gap: 3px; padding: 0; background: none; border: none;
  font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
}
.sub-sortierer.aktiv { color: var(--p-tief); }
.sub-sortierer .pfeil { display: inline-flex; }
.sub-zeile { cursor: default; }
.sub-zeile:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }
.sub-zeile.gewaehlt td { background: var(--p-flaeche); }
.sub-zeile.zieht { opacity: .5; }
.sub-dtab tbody tr.sub-zeile:hover td { background: var(--flaeche-2); }
.sub-dtab tbody tr.sub-zeile.gewaehlt:hover td { background: var(--p-flaeche); }
.sub-name { display: flex !important; align-items: center; gap: 8px; min-width: 0; }
.sub-name .text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sub-name .n { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-name .pfad { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsym { display: inline-flex; flex: none; color: var(--text-3); }
.dsym.ordner { color: var(--s-tief); }
.dsym.pdf, .dsym.dokument { color: var(--fehler); }
.dsym.tabelle { color: var(--ok); }
.dsym.bild { color: var(--p); }
.dsym.gross svg { width: 20px; height: 20px; }
.sub-pillen { white-space: nowrap; }
.sub-pillen .pille { margin-right: 4px; }
.pille svg { width: 12px; height: 12px; }
.pille.geerbt { background: none; border: var(--strich); color: var(--text-3); }
.pille.pausiert { opacity: .6; }


.sub-ablage-gross { margin: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; }
.sub-ablage-gross svg { width: 22px; height: 22px; color: var(--linie-stark); }
.sub-ablage-gross p { margin: 0; }
.sub-drop {
  position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--p-flaeche) 88%, transparent);
  border: 2px dashed var(--p); border-radius: inherit; pointer-events: none;
}
.sub-liste-panel.drop-aktiv .sub-drop { display: flex; }
.sub-drop-inhalt { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--p-tief); font-size: 12px; font-weight: 500; }


.sub-menue {
  position: fixed; z-index: 100; min-width: 180px; padding: 4px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-2); box-shadow: var(--schatten-2);
}
.sub-menue .menue-punkt {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 8px;
  background: none; border: none; border-radius: var(--r-1); font: inherit; font-size: 11.5px; color: var(--text-2);
  cursor: pointer; text-align: left;
}
.sub-menue .menue-punkt:hover, .sub-menue .menue-punkt:focus-visible { background: var(--flaeche-3); color: var(--text); outline: none; }
.sub-menue .menue-punkt.gefahr { color: var(--fehler); }
.sub-menue .menue-punkt.gefahr:hover { background: var(--fehler-flaeche); }


.sub-detail { padding: 12px 14px; overflow-y: auto !important; gap: 12px; }
.sub-detail-kopf { display: flex; align-items: center; gap: 10px; }
.sub-detail-kopf .titel { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sub-detail-kopf b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sub-vorschau {
  display: flex; align-items: center; justify-content: center; max-height: 200px; overflow: hidden;
  background: var(--flaeche-2); border: 1px solid var(--linie-weich); border-radius: var(--r-2);
}
.sub-vorschau img { max-width: 100%; max-height: 200px; display: block; }
.sub-vorschau.text { align-items: flex-start; justify-content: flex-start; max-height: 160px; overflow: auto; padding: 8px 10px; }
.sub-vorschau pre { margin: 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sub-vorschau.keine { flex-direction: column; gap: 6px; padding: 18px 14px; color: var(--text-3); font-size: 10.5px; text-align: center; border-style: dashed; background: none; }
.sub-abschnitt { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: var(--strich-fein); }
.sub-abschnitt > .abschnitt-kopf { display: flex; align-items: center; gap: 6px; }
.sub-aktionen { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: var(--strich-fein); }
.sub-aktionen .knopf { height: 26px; font-size: 11px; padding: 0 8px; }
.sub-gefahr-knopf { color: var(--fehler); }
.sub-gefahr-knopf:hover { color: var(--fehler) !important; background: var(--fehler-flaeche) !important; border-color: var(--fehler-linie) !important; }


.sub-segment {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 2px;
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-1);
}
.sub-segment button {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 26px; padding: 0 8px; background: none; border: none; border-radius: var(--r-1);
  font: inherit; font-size: 11px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: 140ms ease;
}
.sub-segment button:hover:not(:disabled) { color: var(--text); background: var(--flaeche-3); }
.sub-segment button.aktiv { background: var(--flaeche); color: var(--p-tief); font-weight: 500; box-shadow: var(--schatten-1); }
.sub-segment button:disabled { opacity: .45; cursor: default; }
.sub-segment svg { width: 13px; height: 13px; }
.sub-regel { display: flex; flex-direction: column; gap: 8px; }
.sub-regel-text { margin: 0; line-height: 1.5; }
.sub-daten { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.sub-daten .field { margin: 0; flex: 1 1 110px; }
.sub-daten input[type="date"] { width: 100%; font: inherit; font-size: 11.5px; padding: 4px 8px; color: var(--text);
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-1); color-scheme: light dark; }
.sub-schalterzeile { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.sub-regelliste { display: flex; flex-direction: column; }
.sub-regelliste .zeile { display: flex; align-items: center; gap: 6px; min-height: 30px; border-bottom: 1px solid var(--linie-weich); }
.sub-regelliste .zeile:last-child { border-bottom: none; }
.sub-regelliste .name {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 0; background: none; border: none;
  font: inherit; font-size: 11.5px; color: var(--text-2); cursor: pointer; text-align: left;
}
.sub-regelliste .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-regelliste .name:hover { color: var(--p-tief); }
.sub-regelliste .iknopf { width: 22px; height: 22px; }
.sub-fehlertext { color: var(--fehler); font-size: 11.5px; margin: 0; }


.sub-modal { width: 520px; max-height: 84vh; display: flex; flex-direction: column; padding: 18px 20px 16px; }
.sub-modal.breit { width: 760px; }
.sub-modal-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sub-modal-kopf h2 { flex: 1; margin: 0; font-size: 14px; font-weight: 600; }
.sub-modal-koerper { flex: 1; min-height: 0; overflow: auto; }
.sub-modal-fuss { margin-top: 14px; align-items: center; }
.sub-verlauf { display: flex; flex-direction: column; }
.sub-verlauf .eintrag { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie-weich); font-size: 11.5px; }
.sub-verlauf .eintrag:last-child { border-bottom: none; }
.sub-verlauf .zeit { flex: none; width: 110px; color: var(--text-3); }
.sub-verlauf .verlauf-inhalt { display: flex; flex-wrap: wrap; gap: 4px; }

.sub-waehler { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; height: 380px; }
.sub-waehler-baum { overflow: auto; border-right: 1px solid var(--linie-weich); padding-right: 8px; display: flex; flex-direction: column; gap: 1px; }
.sub-waehler-liste { overflow: auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sub-waehler .zeile {
  display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 8px; width: 100%;
  background: none; border: none; border-radius: var(--r-1); font: inherit; font-size: 11.5px; color: var(--text-2);
  text-align: left; cursor: pointer;
}
.sub-waehler button.zeile:hover, .sub-waehler label.zeile:hover { background: var(--flaeche-3); color: var(--text); }
.sub-waehler .zeile .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-waehler .zeile.ordner { color: var(--text); }
.sub-waehler-zeilen { display: flex; flex-direction: column; }
.sub-waehler-hoch { padding-top: 6px; border-top: var(--strich-fein); }
.sub-waehler input[type="checkbox"] { accent-color: var(--p); }


.sub-ausfuehren { align-items: start; }
.sub-ausfuehren .spalte { gap: 10px; min-width: 0; }
.sub-auftragskarte { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.sub-auftragsfeld { display: flex; flex-direction: column; gap: 6px; }
.sub-auftragsfeld textarea {
  width: 100%; min-height: 150px; resize: vertical; padding: 10px 12px;
  font: inherit; font-size: 12.5px; line-height: 1.55; color: var(--text);
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-2);
  outline: none; transition: 140ms ease;
}
.sub-auftragsfeld textarea::placeholder { color: var(--text-3); }
.sub-auftragsfeld textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-schleier); background: var(--flaeche); }
.sub-zaehler { align-self: flex-end; min-height: 1em; }
.sub-vorschlaege { margin-top: -4px; align-items: center; }
.sub-vorschlaege:empty { display: none; }
.sub-vorschlaege .chip { cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sub-vorschlaege .chip:hover { background: var(--p-flaeche); border-color: var(--p-linie); color: var(--p-tief); }
.sub-gewaehlt { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-datei-chip { cursor: default; height: 26px; }
.sub-datei-chip:hover { background: var(--flaeche); border-color: var(--linie); color: var(--text-2); }
.sub-datei-chip .n { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-datei-chip .x { display: inline-flex; padding: 2px; margin-right: -4px; background: none; border: none; color: var(--text-3); cursor: pointer; border-radius: 50%; }
.sub-datei-chip .x:hover { color: var(--fehler); background: var(--fehler-flaeche); }
.sub-optionen { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sub-optionen .field { margin: 0; flex: 1 1 260px; }
.sub-optionen .field input { height: 30px; }
.sub-start { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: var(--strich-fein); }
.sub-start .knopf.p { height: 32px; padding: 0 16px; }
.sub-zuletzt { display: flex; flex-direction: column; }
.sub-zuletzt .zeile { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linie-weich); }
.sub-zuletzt .zeile:last-child { border-bottom: none; }
.sub-zuletzt .text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.sub-zuletzt .frage { font-size: 11.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }


.sub-konto { display: flex; flex-direction: column; gap: 10px; }
.sub-person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.sub-person .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sub-person b { font-size: 15px; font-weight: 600; }
.sub-avatar {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--p-flaeche); color: var(--p-tief); border: 1px solid var(--p-linie);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.status-wert { display: inline-flex; align-items: center; gap: 6px; }
.sub-einstellungen { display: flex; flex-direction: column; gap: 10px; }
.sub-einst-raster { align-items: start; grid-template-columns: 1fr 1fr; }
.sub-einst-raster .spalte { gap: 10px; min-width: 0; }
.sub-einst-zeile { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--linie-weich); }
.sub-einst-zeile:last-of-type { border-bottom: none; }
.sub-einst-zeile .text { flex: 1; min-width: 0; }
.sub-einst-zeile .marke-zeile { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text); }
.sub-tasten .sub-kv { gap: 12px; }
.sub-tasten kbd {
  flex: none; min-width: 74px; text-align: center; font-family: var(--sans); font-size: 10.5px; color: var(--text-2);
  border: 1px solid var(--linie); border-radius: var(--r-1); padding: 1px 6px; background: var(--flaeche-2);
}
.sub-tasten .v { text-align: left; flex: 1; color: var(--text-2); }
@media (max-width: 900px) { .sub-einst-raster { grid-template-columns: 1fr; } }


.kopf-suche { position: relative; }
.sub-suchliste {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 360px; overflow-y: auto;
  padding: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-2); box-shadow: var(--schatten-2);
}
.sub-suchliste[hidden] { display: none; }
.sub-such-gruppe { padding: 6px 8px 2px; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.sub-such-zeile {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 3px 8px;
  background: none; border: none; border-radius: var(--r-1); font: inherit; font-size: 11.5px; color: var(--text-2);
  cursor: pointer; text-align: left;
}
.sub-such-zeile svg { color: var(--text-3); }
.sub-such-zeile .text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sub-such-zeile .n { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-such-zeile.aktiv, .sub-such-zeile:hover { background: var(--p-flaeche); }
.sub-such-zeile.aktiv svg { color: var(--p); }
.sub-such-leer { padding: 10px 8px; font-size: 11.5px; color: var(--text-3); }


.sub-waehler-liste > .sub-krume { flex: none; }
.sub-waehler .sub-krume { padding-bottom: 4px; border-bottom: 1px solid var(--linie-weich); }




#agent-knopf { pointer-events: none; cursor: default; }
#agent-knopf .ak-pfeil { display: none; }
























.sd-kachel::after, .karte::after, .mediacard::after { display: none !important; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sub-seite :is(.kachel, .karte:not(.sub-still, .offen, .sub-dateien > .karte,
                 :has(input, select, textarea, table, .sub-chart, .sub-segment, .schalter))) {
    transition: transform var(--d1) var(--ease-out), box-shadow var(--d1) var(--ease-out);
  }
  .sub-seite :is(.kachel, .karte:not(.sub-still, .offen, .sub-dateien > .karte,
                 :has(input, select, textarea, table, .sub-chart, .sub-segment, .schalter))):hover {
    transform: translateY(-2px);
    box-shadow: var(--schatten-2);
  }
}













html:not(.wkf-node-an) #werkstatt-btn,
html:not(.wkf-node-an) .wk-karte { display: none !important; }






.sub-haken { width: 15px; height: 15px; margin: 0; accent-color: var(--p); cursor: pointer; vertical-align: middle; }
.sub-zeile.markiert td { background: var(--p-flaeche); }
.sub-dtab tbody tr.sub-zeile.markiert:hover td { background: var(--p-flaeche); }
.sub-zeile.markiert td { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--p) 9%, transparent); }

.sub-auswahlleiste {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border-bottom: 1px solid var(--p-linie); background: var(--p-flaeche);
}
.sub-auswahlleiste[hidden] { display: none; }
.sub-auswahl-text { display: inline-flex; align-items: baseline; gap: 8px; font-size: 12px; min-width: 0; }
.sub-auswahl-text b { font-weight: 600; color: var(--p-tief); }
.sub-auswahl-knoepfe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sub-auswahl-knoepfe .knopf { height: 28px; font-size: 11.5px; }

.sub-auswahlnamen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sub-auswahlnamen li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); min-width: 0; }
.sub-auswahlnamen li svg { color: var(--text-3); flex: none; }
.sub-auswahlnamen li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }






:root { --sub-gold: #bf8700; --sub-gold-flaeche: rgba(191,135,0,.12); --sub-gold-linie: rgba(191,135,0,.4); }
:root[data-theme="dark"] { --sub-gold: #f0b429; --sub-gold-flaeche: rgba(240,180,41,.14); --sub-gold-linie: rgba(240,180,41,.42); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sub-gold: #f0b429; --sub-gold-flaeche: rgba(240,180,41,.14); --sub-gold-linie: rgba(240,180,41,.42); }
}


.sub-zugfuss { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-top: 6px; }
.sub-zugknopf {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px;
  background: none; border: 1px solid transparent; border-radius: var(--r-1);
  font: inherit; font-size: 11px; color: var(--text-3); cursor: pointer; transition: 140ms ease;
}
.sub-zugknopf:hover:not(:disabled) { background: var(--flaeche-3); color: var(--text); }
.sub-zugknopf:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
.sub-zugknopf:disabled { cursor: default; }
.sub-zugknopf.schub { margin-left: auto; }
.sub-zugknopf svg { flex: none; }
.sub-zugpfeil { display: inline-flex; margin-left: -2px; }
.sub-stern.an, .sub-stern.an:hover:not(:disabled) { color: var(--sub-gold); }
.sub-stern.an:hover:not(:disabled) { background: var(--sub-gold-flaeche); }
.sub-stern.an svg, .sub-sternknopf.an svg, .c-fav svg, .sub-favzeile .iknopf.an svg { fill: currentColor; }
.sub-problem.erledigt { color: var(--ok); }


.conv-item .c-fav { flex: none; display: inline-flex; align-items: center; color: var(--sub-gold); margin-right: 3px; }
.iknopf.sub-sternknopf { color: var(--text-3); }
.iknopf.sub-sternknopf:hover { color: var(--sub-gold); }
.iknopf.sub-sternknopf.an, .iknopf.sub-sternknopf.an:hover { color: var(--sub-gold); }
.sub-sternspalte { width: 40px; padding-right: 0 !important; }
.sub-favliste { display: flex; flex-direction: column; gap: 2px; }
.sub-favzeile { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 2px; border-radius: var(--r-1); }
.sub-favzeile:hover { background: var(--flaeche-2); }
.sub-favzeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sub-favzeile .frage { color: var(--text); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.sub-menue .menue-trenner { height: 1px; margin: 4px 2px; background: var(--linie-weich); }
.sub-toast.mit-knopf { pointer-events: auto; }
.sub-toast-knopf {
  margin-left: 12px; padding: 2px 9px; background: none; color: inherit; font: inherit; font-size: 11px;
  border: 1px solid currentColor; border-radius: var(--r-1); cursor: pointer; opacity: .92;
}
.sub-toast-knopf:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }


.sub-radioliste { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.sub-radiozeile {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; font-size: 12px; color: var(--text-2);
  border: 1px solid var(--linie-weich); border-radius: var(--r-2); cursor: pointer; transition: 140ms ease;
}
.sub-radiozeile:hover { background: var(--flaeche-2); }
.sub-radiozeile:has(input:checked) { border-color: var(--p-linie); background: var(--p-flaeche); color: var(--p-tief); }
.sub-radiozeile input { accent-color: var(--p); margin: 0; }




.nav-eintrag .punkt[hidden] { display: none; }
.sub-meldungsliste { display: flex; flex-direction: column; }
.sub-meldung { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 11px 0; border-bottom: 1px solid var(--linie-weich); }
.sub-meldung:last-child { border-bottom: none; padding-bottom: 2px; }
.sub-meldung-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; font-size: 12px; }
.sub-meldung-kopf b { font-weight: 600; }
.sub-meldung > .sub-klein { max-width: 80ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.sub-meldung-antwort {
  align-self: stretch; padding: 8px 11px; background: var(--p-flaeche);
  border: 1px solid color-mix(in srgb, var(--p) 50%, transparent); border-radius: var(--r-1);
}
.sub-meldung-antwort .marke { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--p-tief); }
.sub-meldung-antwort p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.sub-meldung .knopf { height: 26px; font-size: 11px; padding: 0 9px; }





.sub-favzeile .text.klickbar { cursor: pointer; border-radius: var(--r-1); padding: 2px 4px; margin: -2px -4px; transition: 140ms ease; }
.sub-favzeile .text.klickbar:hover { background: var(--p-flaeche); }
.sub-favzeile .text.klickbar:hover .frage { color: var(--p-tief); }
.sub-favzeile .text.klickbar:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }

.sub-zitat {
  max-height: 120px; overflow: auto; padding: 9px 12px; font-size: 12px; line-height: 1.55; color: var(--text);
  background: var(--flaeche-2); border: 1px solid color-mix(in srgb, var(--p) 50%, transparent); border-radius: var(--r-1);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.sub-abstand { margin-top: 14px !important; }
.sub-dateiwahl-werkzeug { display: flex; align-items: center; gap: 6px; margin: 8px 0 6px; }
.sub-dateiwahl-werkzeug .knopf { height: 26px; font-size: 11px; padding: 0 10px; }
.sub-dateiwahl {
  display: flex; flex-direction: column; max-height: 260px; overflow: auto;
  border: 1px solid var(--linie-weich); border-radius: var(--r-2);
}
.sub-dateiwahlzeile {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px; cursor: pointer; transition: 140ms ease;
  border-bottom: 1px solid var(--linie-weich); font-size: 12px; min-width: 0;
}
.sub-dateiwahlzeile:last-child { border-bottom: none; }
.sub-dateiwahlzeile:hover:not(.weg) { background: var(--flaeche-2); }
.sub-dateiwahlzeile:has(input:checked) { background: var(--p-flaeche); }
.sub-dateiwahlzeile input { accent-color: var(--p); margin: 0; flex: none; }
.sub-dateiwahlzeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sub-dateiwahlzeile .n { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-dateiwahlzeile.weg { cursor: default; opacity: .65; }
.sub-dateiwahlzeile.weg .n { text-decoration: line-through; }













input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }

.kopf-suche .kopf-leeren {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: -3px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--text-3); cursor: pointer; transition: 140ms ease;
}
.kopf-suche .kopf-leeren[hidden] { display: none; }
.kopf-suche .kopf-leeren:hover { background: var(--flaeche-3); color: var(--text); }
.kopf-suche .kopf-leeren:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
.kopf-suche .kopf-leeren svg { width: 10px; height: 10px; }
.kopf-suche.hat-text kbd { display: none; }

.chip { height: 26px; padding: 0 12px; gap: 6px; letter-spacing: .015em; }
.chip svg { flex: none; }
.pille { height: 20px; padding: 0 9px; gap: 5px; letter-spacing: .015em; }
.pille svg { flex: none; }
.pille.bald { height: 18px; padding: 0 8px; }
.kopf-suche kbd { padding: 2px 8px; line-height: 1.35; border-radius: 7px; letter-spacing: .03em; }
.sub-tasten kbd { padding: 3px 8px; line-height: 1.35; letter-spacing: .03em; }


.melde-verlauf { padding: 4px 12px; gap: 7px; }






.melde { max-width: 100%; box-sizing: border-box; }
.melde-text { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.melde-titel {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; white-space: normal; overflow-wrap: anywhere;
}
.melde-kurz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.melde-kurz:empty { display: none; }







.melde-liste.mk-kasten {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  width: 400px; max-width: calc(100vw - 72px); max-height: min(580px, 70vh);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-2);
  box-shadow: var(--schatten-3);
  z-index: 90;
  animation: mk-auf 190ms cubic-bezier(.2,.9,.3,1.08) both;
}


.composer-wrap:has(> .mk-kasten) { z-index: 40; }
@keyframes mk-auf { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

.mk-kasten-kopf {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 10px 11px 16px;
  border-bottom: 1px solid var(--linie-weich);
}
.mk-kasten-kopf h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: var(--spur); color: var(--text); }
.mk-kasten-kopf .pille { margin-right: auto; }
.mk-zu {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--text-3); cursor: pointer; transition: 140ms ease;
}
.mk-zu:hover { background: var(--flaeche-3); color: var(--text); }
.mk-zu:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }

.mk-filter { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 2px; }
.mk-anzahl { font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.chip.on .mk-anzahl { color: inherit; opacity: .75; }

.mk-liste {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 14px;
}


.mk {
  --schritt: var(--melde-farbe, var(--p));
  border: 1px solid var(--linie); border-color: color-mix(in srgb, var(--melde-farbe, var(--linie-stark)) 50%, transparent);
  border-radius: var(--r-1); background: var(--flaeche); transition: background 140ms ease, border-color 140ms ease;
}
.mk:hover { background: var(--flaeche-2); }
.mk.ist-neu { background: var(--p-flaeche); border-color: var(--p-linie); border-color: color-mix(in srgb, var(--melde-farbe, var(--p)) 50%, transparent); }
.mk.ist-neu:hover { background: var(--p-flaeche); }

.mk-kopf {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mk-kopf.ohne-koerper { cursor: default; }
.mk-kopf:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }
.mk-zeichen {
  flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--melde-flaeche, var(--flaeche-3)); color: var(--melde-farbe, var(--text-2));
}
.mk-zeichen svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mk-titel {
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--text); letter-spacing: var(--spur);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.mk.offen .mk-titel { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.mk-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }

.mk-zeile .pille { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.mk-zeit { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mk-pfeil { flex: none; display: inline-flex; color: var(--text-3); transition: transform 160ms ease; }
.mk.offen .mk-pfeil { transform: rotate(180deg); }

.mk-koerper { display: flex; flex-direction: column; gap: 11px; padding: 2px 14px 14px 48px; }
.mk-koerper[hidden] { display: none; }


.mk-schritte { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.mk-schritte li {
  position: relative; flex: 1; padding-top: 17px; font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--text-3);
}
.mk-schritte li::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 10px; height: 10px; margin-left: -5px; z-index: 1;
  border-radius: 50%; box-sizing: border-box; background: var(--flaeche); border: 1.5px solid var(--linie-stark);
}
.mk-schritte li::after {
  content: ""; position: absolute; top: 7.25px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 1.5px; background: var(--linie-stark);
}
.mk-schritte li:first-child::after { display: none; }
.mk-schritte li.getan, .mk-schritte li.jetzt { color: var(--text-2); }
.mk-schritte li.getan::before { background: var(--schritt); border-color: var(--schritt); }
.mk-schritte li.getan::after, .mk-schritte li.jetzt::after { background: var(--schritt); }
.mk-schritte li.jetzt { color: var(--text); font-weight: 600; }
.mk-schritte li.jetzt::before { border-color: var(--schritt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--schritt) 22%, transparent); }

.mk-block { padding: 9px 12px 10px; background: var(--flaeche-2); border: 1px solid var(--linie-stark); border-radius: var(--r-1); }
.mk-block-titel { display: block; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.mk-block p {
  margin: 4px 0 0; max-height: 220px; overflow: auto; font-size: 12px; line-height: 1.55; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.mk-antwort { background: var(--p-flaeche); border-color: color-mix(in srgb, var(--p) 50%, transparent); }
.mk-antwort .mk-block-titel { color: var(--p-tief); }
.mk-keine { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.mk-leise { margin: 0; font-size: 10.5px; color: var(--text-3); }
.mk-voll { margin: 0; }

.mk-marken { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-marke {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px;
  font-size: 10.5px; line-height: 1.3; color: var(--text-3); background: var(--flaeche-3); border-radius: var(--r-rund);
}
.mk-marke b { min-width: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-knopf {
  align-self: flex-start; height: 28px; padding: 0 14px; background: var(--flaeche); color: var(--text);
  border: 1px solid var(--linie); border-radius: var(--r-1); font: inherit; font-size: 11.5px; letter-spacing: var(--spur);
  cursor: pointer; transition: 140ms ease;
}
.mk-knopf:hover { background: var(--p-flaeche); border-color: var(--p-linie); color: var(--p-tief); }
.mk-knopf:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }

.mk-leer { display: flex; flex-direction: column; gap: 5px; padding: 28px 20px; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.mk-leer b { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

@media (max-width: 480px) { .mk-koerper { padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { .melde-liste.mk-kasten { animation: none; } }




.conv-item.sub-leuchtet {
  background: color-mix(in srgb, var(--p) 9%, transparent); border-color: var(--p-linie);
  animation: sub-leuchten 2.6s ease-in-out infinite;
}
.conv-item.sub-leuchtet:hover { background: color-mix(in srgb, var(--p) 15%, transparent); }
@keyframes sub-leuchten {
  0%, 100% { box-shadow: 0 0 0 0 transparent, 0 0 7px 0 color-mix(in srgb, var(--p) 16%, transparent); }
  50%      { box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 32%, transparent), 0 0 15px 1px color-mix(in srgb, var(--p) 32%, transparent); }
}
.conv-item .c-meldung {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 2px;
  color: var(--p-tief); background: var(--p-flaeche); border: 1px solid var(--p-linie); border-radius: 50%;
}
.conv-item .c-meldung svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .conv-item.sub-leuchtet { animation: none; box-shadow: 0 0 0 1px var(--p-linie), 0 0 12px color-mix(in srgb, var(--p) 22%, transparent); }
}




.sub-ansicht-pille {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; white-space: nowrap;
  font: inherit; font-size: 12px; line-height: 1; cursor: pointer; margin-right: 4px;
  border: 1px solid var(--p-linie); background: var(--p-flaeche); color: var(--p-tief);
}
.sub-ansicht-pille:hover { border-color: var(--p); }
.sub-ansicht-pille.alles { border-color: var(--warn-linie); background: var(--warn-flaeche); color: var(--warn-tief, var(--warn)); }
.sub-ansicht-pille:disabled { opacity: .6; cursor: default; }




.sdat-seite { display: flex; flex-direction: column; gap: 10px; }
.sdat-seite.sdat-beschaeftigt { cursor: progress; }
.sdat-seite.sdat-beschaeftigt .knopf { pointer-events: none; opacity: .6; }
.sdat-kopf .sub-satz { margin-bottom: 12px; }
.sdat-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sdat-weg {
  background: none; border: none; padding: 0; font: inherit; font-size: inherit; color: var(--p-tief);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--p-linie);
}
.sdat-weg:hover { color: var(--p); }

.sdat-liste { display: flex; flex-direction: column; }
.sdat-zeile {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 6px; border-bottom: 1px solid var(--linie-weich); border-radius: var(--r-1);
}
.sdat-zeile:last-child { border-bottom: none; }
.sdat-zeile:hover { background: var(--flaeche-2); }
.sdat-klickbar { cursor: pointer; }
.sdat-klickbar:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }
.sdat-symbol { display: inline-flex; flex: none; color: var(--text-3); }
.sdat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.sdat-text b { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdat-text b.mono { font-size: 12px; font-weight: 500; }
.sdat-text .sub-leise { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdat-aktionen { display: flex; gap: 6px; flex: none; }
.sdat-aktionen .knopf { height: 26px; font-size: 11px; padding: 0 8px; }
.sdat-mehr { margin-top: 8px; }

.sdat-teil-alles { margin-top: 18px; border-style: dashed; box-shadow: none; }
.sdat-teil-alles .sub-satz { margin-bottom: 10px; }


.sub-modal.breit.sdat-fenster { width: min(1100px, 94vw); }
.sdat-fenster .sub-modal-koerper { display: flex; flex-direction: column; gap: 8px; }
.sdat-tab-huelle { overflow: auto; max-height: 62vh; border: 1px solid var(--linie-weich); border-radius: var(--r-1); }
.sdat-tab-huelle.laedt { opacity: .55; }
.sdat-tab-huelle:empty { display: none; }
.sdat-tab { width: auto; min-width: 100%; }
.sdat-tab th { position: sticky; top: 0; z-index: 1; background: var(--flaeche); white-space: nowrap; }
.sdat-tab td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdat-tab td.sdat-null { color: var(--text-3); }
.sdat-tab .sdat-haken { width: 34px; padding-left: 10px; padding-right: 4px; }
.sdat-tab tbody tr.gewaehlt td { background: var(--p-flaeche); }
.sdat-fenster .sub-modal-fuss { justify-content: flex-start; flex-wrap: wrap; }
.sdat-fenster .sub-modal-fuss .schub { margin-left: auto; }
.sdat-fenster .sub-modal-fuss .knopf { height: 28px; }
.sdat-blaettern { display: flex; align-items: center; gap: 4px; }
.sdat-zurueck svg { transform: rotate(180deg); }
.sdat-seitenzahl { min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }

.sdat-alles-fenster .field { margin: 8px 0 0; }
.sdat-fehlertext { margin: 8px 0 0; font-size: 11.5px; color: var(--fehler); }
.sdat-fehlertext[hidden] { display: none; }

@media (max-width: 640px) {
  .sdat-zeile { flex-wrap: wrap; }
  .sdat-aktionen { width: 100%; justify-content: flex-end; }
}
