/* ===========================================================================
   Baustelle — Aussehen
   ---------------------------------------------------------------------------
   Nur der Bereich „Baustelle" sieht so aus: flach, 4 px Ecken (Karten 8 px),
   Montserrat, Walther-Blau mit rotem Akzent. Alles steckt unter .bs, damit der
   Rest der App in Barlow bleibt. Keine Schriften aus dem Netz — alles liegt
   unter ../fonts/ (Montserrat, SIL Open Font License).

   Aufbau:
     1. Schriften (8 Schnitte: 400/500/600/700 × latin / latin-ext)
     2. Farbwerte (hell und dunkel)
     3. Kopf, Suche, Brotkrumen
     4. Zeilen (Ordner, Projekt)
     5. Projektkopf, Reiter, Details, Mitglieder
     6. Rechner-Zweispalter
     7. Verwaltungskarten
   =========================================================================== */

/* --------------------------- 1. Schriften -------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------- 2. Farbwerte -------------------------------- */
.bs {
  --bs-blau: #1a3e8f;
  --bs-blau-dunkel: #132e6b;
  --bs-blau-hell: #e3e9f6;
  --bs-akzent: #d2122e;
  --bs-schrift: "Montserrat", "Segoe UI", sans-serif;
  --bs-karte: var(--karte);
  --bs-grund: var(--grund);
  --bs-linie: var(--linie);
  --bs-text: var(--text);
  --bs-text2: var(--text2);
  --bs-flaeche: var(--karte);
  display: block;
  min-height: 100%;
  font-family: var(--bs-schrift);
  color: var(--bs-text);
  background: var(--bs-grund);
}
[data-theme="dark"] .bs {
  --bs-blau: #4f7be0;
  --bs-blau-dunkel: #3558a8;
  --bs-blau-hell: #16254a;
  --bs-akzent: #ff4d63;
}

/* --------------------------- 3. Kopf, Suche, Brotkrumen ------------------ */
.bs-inhalt {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 96px;
}
.bs-seitenkopf {
  display: block;
}
.bs-kopf {
  padding: 12px 16px 0;
}
.bs-stand {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--bs-text2);
}
.bs-hinweis-gelb {
  margin: 6px 0 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: #fff4d5;
  color: #6b4c00;
  font-size: 12.5px;
  font-weight: 600;
}
[data-theme="dark"] .bs .bs-hinweis-gelb {
  background: #3a2f12;
  color: #ffdf94;
}
.bs-suche {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 4px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--bs-linie);
  border-radius: 4px;
  background: var(--bs-karte);
}
.bs-such-symbol {
  display: inline-flex;
  color: var(--bs-text2);
}
.bs-such-symbol svg {
  width: 22px;
  height: 22px;
}
/* Doppelte Klasse: schlaegt die allgemeine Eingabefeld-Regel input[type="text"] aus style.css. */
.bs .bs-suchfeld {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--bs-text);
}
.bs-krumen {
  padding: 0 16px;
}
.bs-krumen-zeile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bs-text2);
}
.bs-krumen-link {
  padding: 8px 6px;
  border-radius: 4px;
  color: var(--bs-blau);
  text-decoration: none;
}
.bs-krumen-link:hover {
  background: var(--bs-blau-hell);
}
.bs-krumen-hier {
  padding: 8px 6px;
  color: var(--bs-text);
}
.bs-krumen-trenner {
  display: inline-flex;
  color: var(--bs-text2);
}

/* --------------------------- 4. Zeilen ------------------------------------ */
.bs-liste {
  display: block;
  margin-top: 6px;
  border-top: 1px solid var(--bs-linie);
  background: var(--bs-karte);
}
.bs-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--bs-linie);
  box-shadow: none;
  color: var(--bs-text);
  text-decoration: none;
}
.bs-zeile:active {
  background: var(--bs-blau-hell);
}
.bs-zeile:hover {
  background: var(--bs-blau-hell);
}
.bs-projekt.bs-aktiv {
  background: var(--bs-blau-hell);
}
.bs-zeile-haupt {
  flex: 1;
  min-width: 0;
  display: block;
}
.bs-zeile-titel {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-zeile-unter {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bs-text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-zeile-seite {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.bs-zeile-datum {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bs-text2);
}
.bs-anzahl {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-text2);
}
.bs-punkt {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bs-blau);
  flex: none;
}
.bs-ordner-symbol {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bs-flaeche);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-text2);
  flex: none;
}
.bs-ordner-bild {
  display: inline-flex;
}
.bs-ordner-bild svg {
  width: 23px;
  height: 23px;
}
.bs-pfeil {
  display: inline-flex;
  color: var(--bs-text2);
}
.bs-pfeil svg {
  width: 22px;
  height: 22px;
}
.bs-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bs-sym svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
}
.bs-leer {
  margin: 0;
  padding: 40px 28px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bs-text2);
}

/* --------------------------- 5. Projekt, Reiter, Details, Mitglieder ----- */
.bs-status {
  min-height: 20px;
  padding: 8px 16px 0;
  font-size: 12.5px;
  color: var(--bs-text2);
}
.bs-schalter {
  padding: 12px 16px;
}
.bs-umschalter {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bs-linie);
  border-radius: 4px;
  background: var(--bs-karte);
  color: var(--bs-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.bs-umschalter:focus-visible {
  outline: 2px solid var(--bs-blau);
  outline-offset: 2px;
}
.bs-umschalter[aria-checked="true"] {
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  border-color: var(--bs-blau);
}
.bs-verwaltungslink {
  padding: 0 16px 12px;
}
.bs-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--bs-blau);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.bs-knopf:focus-visible {
  outline: 2px solid var(--bs-blau-dunkel);
  outline-offset: 2px;
}
.bs-knopf:disabled {
  opacity: 0.6;
}
.bs-knopf-zart {
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
}
.bs-knopf-bild {
  display: inline-flex;
}
.bs-projektkopf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bs-linie);
  background: var(--bs-karte);
}
.bs-projektkopf-schmal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px 16px 10px;
  flex-wrap: nowrap;
}
.bs-projektkopf-oben {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bs-projektkopf-schmal .bs-projekt-name {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}
.bs-projektkopf-schmal .bs-projekt-adresse {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-projektkopf-unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bs-projektkopf-schmal .bs-route {
  margin-left: auto;
}
.bs-projektkopf-schmal .bs-route .bs-knopf {
  padding: 0 12px;
  font-size: 13px;
}
.bs-zurueck {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-text);
  text-decoration: none;
  flex: none;
}
.bs-zurueck-bild {
  display: inline-flex;
}
.bs-zurueck-bild svg {
  width: 24px;
  height: 24px;
}
.bs-projekt-titel {
  flex: 1;
  min-width: 0;
}
.bs-projekt-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-projekt-adresse {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bs-text2);
}
.bs-marke {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  font-size: 11.5px;
  font-weight: 700;
}
.bs-marke-weg {
  text-decoration: none;
}

.bs-marke-weg:hover,
.bs-marke-weg:focus-visible {
  text-decoration: underline;
}

.bs-marke-zart {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  font-size: 11px;
  font-weight: 700;
}
.bs-reiter {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 8px;
  background: var(--bs-karte);
  border-bottom: 1px solid var(--bs-linie);
  overflow-x: auto;
}
.bs-reiter-knopf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--bs-text2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bs-reiter-knopf:focus-visible {
  outline: 2px solid var(--bs-blau);
  outline-offset: -2px;
}
.bs-reiter-aktiv {
  color: var(--bs-blau);
  border-bottom-color: var(--bs-blau);
}
.bs-reiter-bild {
  display: inline-flex;
}
.bs-reiter-inhalt {
  padding: 12px 16px 0;
}
.bs-details {
  display: block;
}
.bs-detail-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bs-linie);
}
.bs-detail-bezeichnung {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bs-text2);
}
.bs-detail-wert {
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
}
.bs-mitglieder {
  display: block;
}
.bs-mitglied {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-linie);
}
.bs-initialen {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex: none;
}
.bs-mitglied-text {
  display: block;
  min-width: 0;
}
.bs-mitglied-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.bs-mitglied-zusatz {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-text2);
}
.bs-projekt-fehler {
  padding: 8px 16px 0;
}

/* --------------------------- 6. Rechner-Zweispalter ---------------------- */
.bs-zwei {
  display: block;
}

/* --------------------------- 7. Verwaltungskarten ------------------------ */
.bs-karte {
  display: block;
  margin: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--bs-linie);
  border-radius: 8px;
  background: var(--bs-karte);
}
.bs-karte-titel {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.bs-karte-koerper {
  display: block;
  margin-bottom: 12px;
}
.bs-ergebnis {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-blau);
}
.bs-zuordnung-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bs-zaehler {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bs-text2);
}
.bs-zuordnung-liste {
  display: block;
}
.bs-zuordnung-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-linie);
  flex-wrap: wrap;
}
.bs-zuordnung-text {
  display: block;
  min-width: 0;
}
.bs-zuordnung-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.bs-zuordnung-rolle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-text2);
}
.bs-wahl {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--bs-linie);
  border-radius: 4px;
  background: var(--bs-karte);
  color: var(--bs-text);
  font: inherit;
  font-size: 13.5px;
}
.bs-wahl:focus-visible {
  outline: 2px solid var(--bs-blau);
  outline-offset: 2px;
}

/* --------------------------- Breite: Rechner ----------------------------- */
@media (min-width: 1100px) {
  .bs-zwei {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 100%;
  }
  .bs-spalte-links {
    border-right: 1px solid var(--bs-linie);
    overflow-y: auto;
  }
  .bs-spalte-rechts {
    overflow-y: auto;
  }
  .bs-inhalt {
    max-width: 720px;
  }
}

/* --------------------------- 9. Chat im Projekt -------------------------- */
/* Der Verlauf füllt die Höhe zwischen Reiter-Leiste und Eingabe. Die 200px
   sind die Summe aus App-Kopf (56px), Projektkopf (72px) und Reiter-Leiste
   (48px) plus etwas Luft — bewusst als eigene Variable, damit die Zahl nur an
   einer Stelle steht.

   Am Handy liegt die Fußleiste der App fest über dem unteren Rand (ca. 64px
   hoch plus Abstand). Damit die Eingabe NICHT darunter verschwindet, zieht
   `--bs-fussleiste` sie ab: Höhe der App-Fußleiste inkl. Abstand und
   env(safe-area-inset-bottom). Am Rechner gibt es keine Fußleiste; dort steht
   der Chat im Zweispalter und bekommt eine feste Höhe. */
.bs .bs-chat {
  --bs-chat-kopf: 200px;
  --bs-fussleiste: 96px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--bs-chat-kopf) - var(--bs-fussleiste));
  height: calc(100dvh - var(--bs-chat-kopf) - var(--bs-fussleiste));
  min-height: 320px;
  border: 1px solid var(--bs-linie);
  border-radius: 12px;
  background: var(--bs-flaeche);
  overflow: hidden;
}
@media (min-width: 900px) {
  .bs .bs-chat {
    height: min(72vh, 720px);
    min-height: 480px;
  }
}

/* `hidden` muss gewinnen: viele Regeln hier setzen `display` und wären sonst stärker. */
.bs .bs-chat [hidden] {
  display: none !important;
}

.bs .bs-chat-verlauf {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 14px;
  background: var(--bs-grund);
}

.bs .bs-chat-aeltere {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-karte);
  color: var(--bs-text2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bs .bs-chat-aeltere:disabled {
  opacity: 0.6;
  cursor: default;
}

.bs .bs-chat-trenner {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}
.bs .bs-chat-trenner-text {
  padding: 5px 14px;
  border-radius: 15px;
  background: var(--bs-karte);
  border: 1px solid var(--bs-linie);
  color: var(--bs-text2);
  font-size: 11.5px;
  font-weight: 700;
}

.bs .bs-chat-nachricht {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 6px 0;
}
.bs .bs-chat-nachricht--eigen {
  align-items: flex-end;
}
.bs .bs-chat-name {
  margin: 0 0 3px 6px;
  color: var(--bs-text2);
  font-size: 12px;
  font-weight: 600;
}

/* Die Zeile ist auf 84 % begrenzt, damit die Blase zusammen mit dem
   Menü-Knopf (44 px) auf rund 80 % der Chat-Breite kommt. */
.bs .bs-chat-reihe {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 84%;
  min-width: 0;
}
.bs .bs-chat-nachricht--eigen .bs-chat-reihe {
  flex-direction: row-reverse;
}

.bs .bs-chat-blase {
  min-width: 0;
  padding: 8px 12px 6px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px 5px;
  background: var(--bs-karte);
  color: var(--bs-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}
.bs .bs-chat-nachricht--eigen .bs-chat-blase {
  border-color: transparent;
  background: var(--bs-blau);
  color: #fff;
}
/* Noch nicht bestätigt: eigene, blaue Blase — leicht durchsichtig und mit
   gestricheltem Rand, damit „unterwegs" sichtbar bleibt. */
.bs .bs-chat-nachricht--wartend .bs-chat-blase {
  opacity: 0.82;
  border-color: rgb(255 255 255 / 45%);
  border-style: dashed;
}
.bs .bs-chat-nachricht--blitz .bs-chat-blase {
  animation: bs-chat-blitz 1.4s ease;
}
@keyframes bs-chat-blitz {
  0%,
  100% {
    box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
  }
  30% {
    box-shadow: 0 0 0 4px var(--bs-blau-hell);
  }
}

.bs .bs-chat-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bs .bs-chat-text--geloescht {
  font-style: italic;
  opacity: 0.75;
}

.bs .bs-chat-foto {
  display: block;
  line-height: 0;
}
.bs .bs-chat-foto-bild {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
/* Lokale Vorschau der noch nicht hochgeladenen Datei. */
.bs .bs-chat-foto-bild--wartend {
  opacity: 0.95;
}

.bs .bs-chat-zitat {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 5px 8px;
  border: 0;
  border-left: 3px solid var(--bs-blau);
  border-radius: 4px;
  background: rgb(0 0 0 / 5%);
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.bs .bs-chat-zitat:disabled {
  cursor: default;
}
.bs .bs-chat-nachricht--eigen .bs-chat-zitat {
  border-left-color: #fff;
  background: rgb(255 255 255 / 16%);
}
.bs .bs-chat-zitat-name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
}
.bs .bs-chat-zitat-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
}

.bs .bs-chat-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 3px;
}
.bs .bs-chat-zeit {
  color: var(--bs-text2);
  font-size: 11px;
  font-weight: 600;
}
.bs .bs-chat-nachricht--eigen .bs-chat-zeit {
  color: rgb(255 255 255 / 80%);
}

/* Status-Zeile der vorläufigen Blase („wird gesendet …", „37 %", Fehler). */
.bs .bs-chat-sendestatus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.bs .bs-chat-sendestatus-text {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}
.bs .bs-chat-sendestatus-prozent {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
.bs .bs-chat-sendestatus--fehler .bs-chat-sendestatus-text {
  color: var(--bs-akzent);
  opacity: 1;
}
.bs .bs-chat-nachricht--eigen .bs-chat-sendestatus--fehler .bs-chat-sendestatus-text {
  color: #fff;
}
.bs .bs-chat-wiederholen {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--bs-akzent);
  border-radius: 10px;
  background: none;
  color: var(--bs-akzent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.bs .bs-chat-nachricht--eigen .bs-chat-wiederholen {
  border-color: #fff;
  color: #fff;
}

.bs .bs-chat-mehr {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--bs-text2);
  cursor: pointer;
  opacity: 0.55;
}
@media (hover: hover) {
  .bs .bs-chat-mehr {
    opacity: 0;
  }
  .bs .bs-chat-nachricht:hover .bs-chat-mehr,
  .bs .bs-chat-mehr:focus-visible {
    opacity: 1;
  }
}
.bs .bs-chat-mehr:focus-visible,
.bs .bs-chat-knopf:focus-visible,
.bs .bs-chat-menue-punkt:focus-visible,
.bs .bs-chat-spieler-knopf:focus-visible,
.bs .bs-chat-aeltere:focus-visible {
  outline: 2px solid var(--bs-blau);
  outline-offset: 2px;
}

.bs .bs-chat-menue {
  margin: 4px 0 0;
  padding: 4px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-karte);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
}
.bs .bs-chat-menue-zeile {
  display: flex;
  gap: 4px;
}
.bs .bs-chat-menue-frage {
  padding: 10px 10px 4px;
  color: var(--bs-text);
  font-size: 13px;
  font-weight: 600;
}
.bs .bs-chat-menue-hinweis {
  max-width: 240px;
  padding: 0 10px 6px;
  color: var(--bs-text);
  font-size: 13px;
  line-height: 1.35;
}
.bs .bs-chat-menue-punkt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--bs-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.bs .bs-chat-menue-punkt--rot {
  color: var(--bs-akzent);
}
@media (hover: hover) {
  .bs .bs-chat-menue-punkt:hover {
    background: var(--bs-blau-hell);
  }
}

/* --- Sprachspieler im Verlauf --- */
.bs .bs-chat-spieler {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 2px 0;
}
.bs .bs-chat-spieler-knopf {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bs-blau);
  color: #fff;
  cursor: pointer;
}
.bs .bs-chat-nachricht--eigen .bs-chat-spieler-knopf {
  background: #fff;
  color: var(--bs-blau);
}
.bs .bs-chat-spieler-leiste {
  flex: 1 1 auto;
  min-width: 60px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.3;
  overflow: hidden;
}
.bs .bs-chat-spieler-fortschritt {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  opacity: 1;
}
.bs .bs-chat-spieler-zeit {
  flex: none;
  min-width: 34px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: right;
}
.bs .bs-chat-spieler audio {
  display: none;
}

/* --- Dateizeile --- */
.bs .bs-chat-datei {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 2px 0 4px;
  color: inherit;
  text-decoration: none;
}
.bs .bs-chat-datei--wartend {
  cursor: default;
}
.bs .bs-chat-datei-sym {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.85;
}
.bs .bs-chat-datei-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bs .bs-chat-datei-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.bs .bs-chat-datei-groesse {
  font-size: 11.5px;
  opacity: 0.75;
}

/* --- Eingabeleiste --- */
/* Kein eigenes env(safe-area-inset-bottom) mehr: den Abstand hält schon
   `--bs-fussleiste` am Chat-Rahmen frei. */
.bs .bs-chat-eingabe {
  flex: none;
  position: relative;
  border-top: 1px solid var(--bs-linie);
  background: var(--bs-karte);
  padding: 6px 8px;
}

.bs .bs-chat-antwort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 6px;
  padding: 4px 4px 4px 10px;
  border-left: 3px solid var(--bs-blau);
  border-radius: 4px;
  background: var(--bs-grund);
}
.bs .bs-chat-antwort-sym {
  flex: none;
  color: var(--bs-blau);
}
.bs .bs-chat-antwort-mitte {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bs .bs-chat-antwort-name {
  color: var(--bs-blau);
  font-size: 11.5px;
  font-weight: 700;
}
.bs .bs-chat-antwort-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}
.bs .bs-chat-antwort-zu {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--bs-text2);
  cursor: pointer;
}

.bs .bs-chat-anhang-menue {
  display: flex;
  flex-direction: column;
  margin: 0 4px 6px;
  padding: 4px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-karte);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
}

.bs .bs-chat-zeile {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.bs .bs-chat-knopf {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--bs-text2);
  cursor: pointer;
}
.bs .bs-chat-knopf:disabled {
  opacity: 0.45;
  cursor: default;
}
.bs .bs-chat-senden {
  background: var(--bs-blau);
  color: #fff;
}

.bs .bs-chat-feld {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 1px 2px;
  padding: 0 14px;
  border: 1px solid var(--bs-linie);
  border-radius: 22px;
  background: var(--bs-grund);
}
.bs .bs-chat-feld textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 22px;
  max-height: 130px;
  padding: 11px 0;
  border: 0;
  outline: none;
  resize: none;
  background: none;
  color: var(--bs-text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.35;
}
.bs .bs-chat-feld textarea::placeholder {
  color: var(--bs-text2);
  opacity: 0.8;
}

.bs .bs-chat-dateifelder {
  display: none;
}

/* --- Aufnahme-Leiste --- */
.bs .bs-chat-aufnahme {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 2px;
}
.bs .bs-chat-aufnahme-audio {
  display: none;
}
.bs .bs-chat-punkt {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bs-akzent);
  animation: bs-chat-puls 1s infinite;
}
@keyframes bs-chat-puls {
  50% {
    opacity: 0.25;
  }
}
.bs .bs-chat-aufnahme-zeit {
  flex: none;
  min-width: 40px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bs .bs-chat-pegel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.bs .bs-chat-pegel-balken {
  flex: 1 1 0;
  min-width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--bs-blau);
  transition: height 0.09s linear;
}

/* --- Hinweiszeile und Push --- */
.bs .bs-chat-hinweis {
  padding: 0 8px;
  color: var(--bs-text2);
  font-size: 12px;
  min-height: 16px;
}
.bs .bs-chat-hinweis:empty {
  min-height: 0;
}

.bs .bs-chat-push {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 6px 8px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-grund);
  color: var(--bs-text2);
  font-size: 12.5px;
}
/* Text und Link duerfen umbrechen — am Handy (390 px) wurde der Link sonst abgeschnitten. */
.bs .bs-chat-push-text {
  flex: 1 1 auto;
  min-width: 0;
}
.bs .bs-chat-push-link {
  color: var(--bs-blau);
  font-weight: 700;
  white-space: nowrap;
}
.bs .bs-chat-push-zu {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--bs-text2);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .bs .bs-chat-punkt {
    animation: none;
  }
  .bs .bs-chat-nachricht--blitz .bs-chat-blase {
    animation: none;
  }
  .bs .bs-chat-pegel-balken {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Dateiablage je Projekt (Lauf 7)
   --------------------------------------------------------------------------- */
.bs .bs-dat {
  display: block;
  padding-bottom: 24px;
}
.bs .bs-dat-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bs-linie);
}
.bs .bs-dat-krumen {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.bs .bs-dat-krume,
.bs .bs-dat-krume-aktuell {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--bs-blau);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bs .bs-dat-krume-aktuell {
  color: var(--bs-text2);
  font-weight: 600;
}
.bs .bs-dat-trenner {
  color: var(--bs-text2);
}
.bs .bs-dat-aktionen {
  display: flex;
  flex: 1 1 100%;
  gap: 8px;
}
.bs .bs-dat-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--bs-blau);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bs .bs-dat-knopf:active {
  background: var(--bs-blau-dunkel);
}
.bs .bs-dat-eingabe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bs-linie);
  background: var(--bs-blau-hell);
}
.bs .bs-dat-eingabe input,
.bs .bs-dat-umbenennen input {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-karte);
  color: var(--bs-text);
  font: inherit;
  font-size: 15px;
}
.bs .bs-dat-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--bs-blau);
  color: #fff;
  cursor: pointer;
}
.bs .bs-dat-meldung {
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bs-blau-hell);
  color: var(--bs-text);
  font-size: 14px;
}
.bs .bs-dat-meldung-fehler {
  background: var(--bs-akzent);
  color: #fff;
}
.bs .bs-dat-fortschritt {
  margin: 8px 12px 0;
  padding: 0;
  list-style: none;
}
.bs .bs-dat-fortschritt-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bs-linie);
  font-size: 14px;
}
.bs .bs-dat-fortschritt-name {
  flex: 1 1 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bs .bs-dat-fortschritt-stand {
  min-width: 44px;
  text-align: right;
  color: var(--bs-text2);
}
.bs .bs-dat-balken {
  flex: 1 1 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bs-linie);
  overflow: hidden;
}
.bs .bs-dat-balken-fuellung {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bs-blau);
}
.bs .bs-dat-fortschritt-fehler {
  flex: 1 1 100%;
  color: var(--bs-akzent);
}
.bs .bs-dat-nochmal {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--bs-blau);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.bs .bs-dat-liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bs .bs-dat-zeile {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bs-linie);
}
.bs .bs-dat-oeffnen {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--bs-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.bs .bs-dat-oeffnen:active {
  background: var(--bs-blau-hell);
}
.bs .bs-dat-vorschau {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  object-fit: cover;
  overflow: hidden;
}
.bs .bs-dat-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bs .bs-dat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.bs .bs-dat-meta {
  color: var(--bs-text2);
  font-size: 13px;
}
.bs .bs-dat-marke {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  font-size: 12px;
}
.bs .bs-dat-menue-huelle {
  position: relative;
  display: flex;
  align-items: center;
}
.bs .bs-dat-menue-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--bs-text2);
  cursor: pointer;
}
.bs .bs-dat-menue {
  position: absolute;
  top: 100%;
  right: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--bs-linie);
  border-radius: 12px;
  background: var(--bs-karte);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.bs .bs-dat-menue-eintrag {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--bs-text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.bs .bs-dat-menue-eintrag:active {
  background: var(--bs-blau-hell);
}
.bs .bs-dat-menue-hinweis {
  margin: 6px 10px;
  color: var(--bs-text2);
  font-size: 14px;
}
.bs .bs-dat-gefahr {
  color: var(--bs-akzent);
}
.bs .bs-dat-auswahl {
  min-height: 44px;
  margin: 0 6px 6px;
  padding: 0 8px;
  border: 1px solid var(--bs-linie);
  border-radius: 8px;
  background: var(--bs-karte);
  color: var(--bs-text);
  font: inherit;
  font-size: 15px;
}
.bs .bs-dat-umbenennen {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.bs .bs-dat-leer {
  margin: 24px 16px;
  color: var(--bs-text2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Aufgaben (Etappe 1, Lauf 8)
   --------------------------------------------------------------------------- */

.bs-auf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 24px;
}

.bs-auf-seitentitel,
.bs-auf-titel {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.bs-auf-neu,
.bs-liste-oben {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.bs-liste-oben {
  margin-bottom: 10px;
}

.bs-meine-aufgaben {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-flaeche);
  color: var(--bs-blau);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bs-auf-feld,
.bs-auf-eingabe,
.bs-auf-text,
.bs-auf-datum {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-flaeche);
  color: var(--bs-text);
  font: inherit;
}

.bs-auf-text {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.bs-auf-plus {
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--bs-blau);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bs-auf-plus:active {
  background: var(--bs-blau-dunkel);
}

.bs-auf-meldung {
  margin: 0;
  min-height: 18px;
  color: var(--bs-text2);
  font-size: 13px;
}

.bs-auf-umschalter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bs-auf-umschalter-knopf {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bs-linie);
  border-radius: 999px;
  background: var(--bs-flaeche);
  color: var(--bs-text);
  font: inherit;
  cursor: pointer;
}

.bs-auf-umschalter-knopf.ist-aktiv {
  border-color: var(--bs-blau);
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  font-weight: 600;
}

.bs-auf-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bs-auf-leer {
  margin: 0;
  padding: 16px 0;
  color: var(--bs-text2);
}

.bs-auf-marke {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bs-blau-hell);
  color: var(--bs-blau);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bs-auf-gruppe {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--bs-text2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.bs-auf-gruppe-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bs-auf-zeile {
  border: 1px solid var(--bs-linie);
  border-radius: 12px;
  background: var(--bs-flaeche);
  overflow: hidden;
}

.bs-auf-zeile.ist-erledigt .bs-auf-titel {
  text-decoration: line-through;
  color: var(--bs-text2);
}

.bs-auf-zeile-kopf {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 4px;
}

.bs-auf-haken {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-blau);
  cursor: pointer;
}

.bs-auf-haken[aria-pressed='true'] {
  color: #2e7d32;
}

.bs-auf-klappen {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bs-auf-titel {
  font-size: 15px;
  font-weight: 600;
}

.bs-auf-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--bs-text2);
  font-size: 12px;
}

.bs-auf-faellig.ist-ueberfaellig,
.bs-auf-ueberfaellig {
  color: var(--bs-akzent);
  font-weight: 600;
}

.bs-auf-bearbeiten {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--bs-linie);
}

.bs-auf-feldzeile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-auf-feldname {
  color: var(--bs-text2);
  font-size: 12px;
  font-weight: 600;
}

.bs-auf-personen-wahl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
}

.bs-auf-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
}

.bs-auf-person input {
  width: 22px;
  height: 22px;
}

.bs-auf-knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bs-auf-speichern,
.bs-auf-abbrechen,
.bs-auf-loeschen,
.bs-auf-loeschen-ja {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-flaeche);
  color: var(--bs-text);
  font: inherit;
  cursor: pointer;
}

.bs-auf-speichern {
  border-color: var(--bs-blau);
  background: var(--bs-blau);
  color: #fff;
  font-weight: 600;
}

.bs-auf-loeschen,
.bs-auf-loeschen-ja {
  margin-left: auto;
  color: var(--bs-akzent);
  border-color: var(--bs-akzent);
}

.bs-auf-loeschfrage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
}

.bs-auf-neu-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Aufgabe aus dem Chat */
.bs-chat-aufgabe {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  min-width: 220px;
}

.bs-chat-aufgabe-feld {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--bs-linie);
  border-radius: 10px;
  background: var(--bs-flaeche);
  color: var(--bs-text);
  font: inherit;
}

.bs-chat-aufgabe-hinweis {
  margin: 0;
  min-height: 16px;
  color: var(--bs-akzent);
  font-size: 12px;
}

.bs-chat-aufgabe-zeile {
  display: flex;
  gap: 8px;
}

.bs-chat-aufgabe-knopf {
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--bs-blau);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bs-chat-aufgabe-knopf--leise {
  background: transparent;
  color: var(--bs-blau);
  border: 1px solid var(--bs-linie);
  font-weight: 400;
}

.bs-chat-aufgabe-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bs-blau);
  font-weight: 600;
  text-decoration: none;
}
