












.hinweisband {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3);
  padding: var(--s2) var(--s4);
  padding-top: max(var(--s2), env(safe-area-inset-top));
  font-size: var(--fs-md);
  border-bottom: 1px solid;
}
.hinweisband .btn { margin-left: auto; flex-shrink: 0; }
.hinweisband code { font-size: var(--fs-sm); }
.hinweisband.warn  { background: var(--warn-soft);  border-color: var(--warn);  color: var(--warn); }
.hinweisband.info  { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hinweisband.fehler { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.hinweisband.ok    { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }


.view .hinweisband {
  margin: 0 0 var(--s5); padding: var(--s3) var(--s4);


  border: 1px solid; border-radius: var(--r-md);
  color: var(--text); font-size: var(--fs-bd);
}
.view .hinweisband.warn { border-color: var(--warn); }
.view .hinweisband.info { border-color: var(--accent); }


.topbar {
  display: none;
  align-items: center;
  gap: var(--s2);
  flex: 0 0 auto;
  padding: var(--s2) var(--s3);
  padding-top: max(var(--s2), env(safe-area-inset-top));
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
}
.topbar strong { flex: 1; font-size: var(--fs-lg); overflow: hidden;
                 text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand-logo { display: none; }




body {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; height: var(--vvh, 100dvh);
}
.layout { display: flex; flex: 1 1 auto; min-height: 0; }

.sidebar {
  width: var(--sidebar-breite);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s0);
  padding: var(--s4) var(--s3);
  padding-bottom: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  transition: width var(--tempo-lang) ease;








  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar-backdrop { display: none; }
.schublade-zu { display: none; }




.icon-sprite { position: absolute; }





.sidebar, main, .view { position: relative; }
main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }




.leiste-griff {
  position: relative; z-index: var(--z-haftend); flex: none; width: 0;
  outline: none; cursor: col-resize; touch-action: none;
}
.leiste-griff::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: var(--s3);
}
.leiste-griff::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--s0)); width: calc(2 * var(--s0));
  background: var(--accent); opacity: 0; pointer-events: none;
  transition: opacity var(--tempo) var(--ease);
}
@media (hover: hover) { .leiste-griff:hover::after { opacity: 1; transition-delay: var(--tempo); } }
.leiste-griff:focus-visible::after { opacity: 1; }
body.leiste-zieht .leiste-griff::after { opacity: 1; transition: none; }

body.leiste-zieht { cursor: col-resize; user-select: none; }
body.leiste-zieht .sidebar { transition: none; }
body.leiste-zieht iframe { pointer-events: none; }
@media (max-width: 899px) { .leiste-griff { display: none; } }



@media (min-width: 1280px) {
  body:has(.layout > .vorschau.neben:not([hidden])) .sidebar {
    max-width: max(var(--sidebar-min), calc(100vw - var(--vorschau-b) - 478px));
  }
}
.view { flex: 1; overflow-y: auto; overflow-x: hidden;


        scroll-padding-top: var(--haft-hoehe, 0px); }
#view-documents { --haft-hoehe: calc(var(--h-ziel) + var(--s3)); }
@media (max-width: 1199px) {
  #view-documents, #view-settings, #view-betrieb, #view-pruefstand { --haft-hoehe: calc(2 * var(--h-ziel) + var(--s5)); }
}
.view-chat { display: flex; flex-direction: column; overflow: hidden; position: relative; }





.view-inner { max-width: calc(var(--rahmen-formular) + 2 * var(--seitenrand)); margin: 0;
              padding: var(--s6) var(--seitenrand) var(--s9); }
.view-inner.projekte-inner { max-width: calc(var(--rahmen-lesen) + 2 * var(--seitenrand)); }

.view-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s4);
  margin-bottom: var(--titel-zu-inhalt);
}


@media (min-width: 760px) { .view-head { min-height: var(--h-ziel); } }
.view-head h1 { margin-right: var(--s1); }








.sidebar nav { display: flex; flex-direction: column; gap: var(--s0); margin-top: var(--s2); }
.nav-item {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; min-height: var(--h-leiste); padding: var(--s1) var(--s3);
  border: none; border-radius: var(--r-sm); background: transparent;
  color: var(--text); font-size: var(--fs-bd); font-weight: 500; text-decoration: none;
  text-align: left; cursor: pointer;
  transition: background var(--tempo);
}
.nav-item:hover { background: var(--bg-hover); }


.nav-item.active { background: var(--bg-active); color: var(--text); font-weight: 600; }
.nav-item svg { color: var(--text-dim); flex-shrink: 0; }
.nav-item.active svg { color: var(--accent); }






.sb-rolle {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  margin: 0 calc(var(--s3) * -1); padding: 0 var(--s3) var(--s2);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scroll-padding-top: calc(var(--h-ziel-klein) + var(--s2));
}
.sb-rolle > .sb-chats { position: sticky; top: 0; z-index: var(--z-haftend); background: var(--bg-sidebar); }






.sb-rolle { border-top: 1px solid transparent; scroll-padding-bottom: calc(var(--h-ziel-klein) + var(--s2)); }
.sb-rolle.rollt-oben { border-top-color: var(--kante-fein); }
.sb-rolle > .sb-chats { margin-left: calc(var(--s3) * -1); margin-right: calc(var(--s3) * -1); padding: 0 var(--s3); }
.sb-rolle.kopf-haftet > .sb-chats { box-shadow: 0 1px 0 var(--kante-fein); }





.sb-alle-chats {
  position: sticky; bottom: calc(var(--s2) * -1); z-index: var(--z-haftend); flex: none; background: var(--bg-sidebar);
  margin: 0 calc(var(--s3) * -1); padding: 0 var(--s3);
}
.sb-rolle.rollt-unten .sb-alle-chats { box-shadow: 0 -1px 0 var(--kante-fein); }
.sb-rolle.rollt-unten:not(:has(> .sb-alle-chats:not([hidden]))) {
  mask-image: linear-gradient(to top, transparent, black var(--s6));
}


.sb-projekt, .sb-mehr { border-radius: var(--r-sm); }
.sb-rolle .sb-projekt:focus-visible, .sb-rolle .chat-item-title:focus-visible, .sb-rolle .sb-mehr:focus-visible,
.sb-rolle .sb-leer-aktion:focus-visible { outline-offset: -2px; }
.chat-list { display: flex; flex-direction: column; gap: 1px;
             margin: 0 calc(var(--s1) * -1); padding: 0 var(--s1); }
.chat-list .empty { padding: var(--s2) var(--s3); color: var(--text-dim); font-size: var(--fs-md); }

.chat-item { display: flex; align-items: center; border-radius: var(--r-sm); }
.chat-item:hover { background: var(--bg-hover); }


body[data-ansicht="chat"] .chat-item.active { background: var(--bg-active); }
body[data-ansicht="chat"] .chat-item.active .chat-item-title { color: var(--text); font-weight: 600; }


.chat-item-title {


  display: block; flex: 1; min-width: 0; min-height: var(--h-leiste); padding: var(--s1) var(--s3);
  border: none; border-radius: var(--r-sm); background: none; color: inherit; text-decoration: none;
  line-height: calc(var(--h-leiste) - 2 * var(--s1));
  text-align: left; font-size: var(--fs-bd); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}





.chat-item-aktionen { display: flex; flex: none; align-items: center; }
.chat-item-mehr, .chat-item-pin {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 0; height: var(--h-ziel-klein); padding: 0; overflow: hidden; opacity: 0; pointer-events: none;
  border: none; border-radius: var(--r-xs); background: none; color: var(--text-dim); cursor: pointer;
  transition: opacity var(--tempo) var(--ease);
}
.chat-item:hover .chat-item-mehr, .chat-item:focus-within .chat-item-mehr,
.chat-item-mehr[aria-expanded="true"], .chat-item-pin.ist-angepinnt {
  width: var(--h-ziel-klein); opacity: 1; pointer-events: auto;
}


.chat-item .chat-item-pin:not(.ist-angepinnt) { display: none; }
.chat-item .chat-item-pin.ist-angepinnt { pointer-events: none; }


.chat-item-mehr svg, .chat-item-pin svg { flex: none; }
.chat-item-pin { margin-right: var(--s1); }
.chat-item-pin.ist-angepinnt { color: var(--accent); }
.chat-item:hover .chat-item-pin.ist-angepinnt { color: var(--text-dim); }
.chat-item-mehr[aria-expanded="true"] { background: var(--bg-active); color: var(--text); }
@media (hover: hover) { .chat-item-mehr:hover, .chat-item-pin:hover { background: var(--bg-active); color: var(--text); } }


@media (hover: none) {
  .chat-item .chat-item-mehr { width: var(--h-ziel-klein); opacity: 1; pointer-events: auto; }


  .chat-item .chat-item-pin.ist-angepinnt { width: var(--s6); }


  .chat-item .chat-item-pin.ist-angepinnt { order: -1; }
}







@media (hover: hover) {
  .chat-item { position: relative; --aktionen-breite: calc(var(--h-ziel-klein) * 2 + var(--s1)); }
  .chat-item:not(.angepinnt) { --aktionen-breite: var(--h-ziel-klein); }
  .chat-item-aktionen { position: absolute; top: 0; right: 0; bottom: 0; }
  .chat-item:has(> .chat-item-umbenennen) > .chat-item-aktionen { position: static; }
  .chat-item:has(.chat-punkt) > .chat-item-title, .chat-item.angepinnt > .chat-item-title {
    padding-right: calc(var(--h-ziel-klein) + var(--s1));
  }
  .chat-item.angepinnt:has(.chat-punkt) > .chat-item-title { padding-right: calc(var(--h-ziel-klein) + var(--pfeil-platz)); }
  .chat-item:hover .chat-punkt, .chat-item:focus-within .chat-punkt,
  .chat-item:has([aria-expanded="true"]) .chat-punkt { display: none; }
  .chat-item:hover > .chat-item-title, .chat-item:focus-within > .chat-item-title,
  .chat-item:has([aria-expanded="true"]) > .chat-item-title {
    mask: linear-gradient(black, black) top / 100% var(--s0) no-repeat,
          linear-gradient(black, black) bottom / 100% var(--s0) no-repeat,
          linear-gradient(black, black) right / var(--r-sm) 100% no-repeat,
          linear-gradient(to left, transparent var(--aktionen-breite), black calc(var(--aktionen-breite) + var(--s6)));
  }
}
.chat-item-umbenennen {
  flex: 1; min-width: 0; min-height: var(--h-leiste); margin: var(--s0) var(--s1); padding: var(--s1) var(--s2);
  border: 1px solid var(--accent); border-radius: var(--r-xs); background: var(--bg-panel); color: var(--text); font: inherit; font-size: var(--fs-bd);
}






.sb-abschnitt { display: flex; flex-direction: column; margin-top: var(--s4); }
.sb-chats { margin-top: var(--s3); }
.sb-kopf { display: flex; align-items: center; gap: var(--s1); min-height: var(--h-ziel-klein); padding: 0 var(--s1) 0 var(--s3); }


.sb-titel {
  flex: 1 1 auto; min-width: 0; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-titel-knopf {
  display: inline-flex; align-items: center; gap: var(--s1); max-width: 100%; min-height: var(--h-ziel-klein);
  margin-left: calc(-1 * var(--s2)); padding: 0 var(--s2); border: 0; border-radius: var(--r-xs);
  background: none; color: inherit; font: inherit; cursor: pointer;
  transition: background var(--tempo) var(--ease), color var(--tempo) var(--ease);
}
.sb-titel-knopf:hover { background: var(--bg-hover); color: var(--text); }
.sb-winkel { flex: none; transition: transform var(--tempo) var(--ease); }
.sb-titel-knopf[aria-expanded="false"] .sb-winkel { transform: rotate(-90deg); }


.sb-titel-knopf:not([aria-expanded]) .sb-winkel { display: none; }
.sb-titel-knopf:disabled { cursor: default; }
.sb-titel-knopf:disabled:hover { background: none; color: inherit; }
.sb-aktionen { display: inline-flex; flex: none; gap: var(--s0); }
.sb-aktion {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--h-ziel-klein); height: var(--h-ziel-klein); padding: 0; border: 0; border-radius: var(--r-xs);
  background: none; color: var(--text-dim); cursor: pointer; opacity: 0;
  transition: opacity var(--tempo) var(--ease), background var(--tempo) var(--ease), color var(--tempo) var(--ease);
}
.sb-kopf:hover .sb-aktion, .sb-kopf:focus-within .sb-aktion, .sb-zeile:hover .sb-aktion, .sb-zeile:focus-within .sb-aktion,
.sb-aktion[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .sb-aktion { opacity: 1; } }


#sb-projekte:has(.sb-leer-aktion) #sb-projekt-neu { display: none; }
.sb-aktion[aria-expanded="true"] { background: var(--bg-hover); color: var(--text); }

@media (hover: hover) { .sb-aktion:hover { background: var(--bg-hover); color: var(--text); } }
.sb-liste { display: flex; flex-direction: column; gap: 1px; }
.sb-liste[hidden] { display: none; }
.sb-zeile { display: flex; align-items: center; border-radius: var(--r-sm); }
.sb-zeile:hover { background: var(--bg-hover); }


.sb-zeile.aktiv { background: none; }
.sb-zeile.aktiv .sb-name { font-weight: 600; }
.sb-projekt {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s3);
  min-height: var(--h-leiste); padding: var(--s1) var(--s3); border: 0; background: none; color: var(--text);
  font: inherit; font-size: var(--fs-bd); text-align: left; cursor: pointer;
}
.sb-projekt svg { flex: none; color: var(--text-dim); }
.sb-zeile.aktiv .sb-projekt svg { color: var(--accent); }
.sb-name { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-zeile { position: relative; }
.sb-zeilen-aktionen { position: absolute; top: 0; right: var(--s1); bottom: 0; display: flex; align-items: center; border-radius: var(--r-sm); }
.sb-zeile:hover > .sb-zeilen-aktionen, .sb-zeile:focus-within > .sb-zeilen-aktionen { background: var(--bg-hover); }
.sb-zeile.aktiv:hover > .sb-zeilen-aktionen, .sb-zeile.aktiv:focus-within > .sb-zeilen-aktionen { background: var(--bg-hover); }


@media (hover: none) {
  .sb-zeilen-aktionen, .sb-zeile:hover > .sb-zeilen-aktionen, .sb-zeile:focus-within > .sb-zeilen-aktionen,
  .sb-zeile.aktiv:hover > .sb-zeilen-aktionen, .sb-zeile.aktiv:focus-within > .sb-zeilen-aktionen { position: static; background: none; }
}
.sb-punkt { flex: none; width: var(--s2); height: var(--s2); border-radius: var(--r-pill); background: var(--accent); }
.sb-leer { margin: 0; padding: var(--s1) var(--s3); color: var(--text-dim); font-size: var(--fs-md); }
.sb-mehr {
  display: flex; align-items: center; width: 100%; min-height: var(--h-ziel-klein); padding: 0 var(--s3) 0 var(--einzug-leiste);
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-dim); font: inherit; font-size: var(--fs-md);
  text-align: left; cursor: pointer;
}
.sb-mehr:hover { background: var(--bg-hover); color: var(--text); }
body:is(.leiste-schmal, .leiste-auto) .sidebar .sb-abschnitt { display: none; }

.schienen-name {
  position: fixed; z-index: var(--z-menue); transform: translateY(-50%); pointer-events: none; margin-left: var(--s2);
  padding: var(--s1) var(--s2); border-radius: var(--r-xs); background: var(--toast-grund); color: var(--toast-text);
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-mittel);
}
@media (max-width: 899px) {
  body:is(.leiste-schmal, .leiste-auto) .sidebar .sb-abschnitt { display: flex; }
}









#sb-projekt-neu { opacity: 1; }
.sb-zeile.seite-offen { background: var(--bg-active); }
.sb-zeile.seite-offen .sb-name { font-weight: 600; }



#sb-geteilt-liste .sb-zeile.seite-offen .sb-name { font-weight: inherit; }
.sb-mehr[aria-current="page"] { background: var(--bg-active); color: var(--text); font-weight: 600; }


.sb-kopf.seite-offen { border-radius: var(--r-sm); background: var(--bg-active); }
.sb-kopf.seite-offen .sb-titel { color: var(--text); }





.nav-item.active, body[data-ansicht="chat"] .chat-item.active, .sb-zeile.seite-offen, .sb-mehr[aria-current="page"],
.sb-kopf.seite-offen, .baum-knoten.aktiv, body:is(.leiste-schmal, .leiste-auto)[data-ansicht="chat"] #chatliste-knopf,
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="projekte"] #projekte-knopf { position: relative; }
.nav-item.active::before, body[data-ansicht="chat"] .chat-item.active::before, .sb-zeile.seite-offen::before,
.sb-mehr[aria-current="page"]::before, .sb-kopf.seite-offen::before, .baum-knoten.aktiv::before,
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="chat"] #chatliste-knopf::before,
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="projekte"] #projekte-knopf::before {
  content: ""; position: absolute; left: 0; top: var(--s1); bottom: var(--s1);
  width: var(--nadel-breite); background: var(--nadel); pointer-events: none;
}
.sidebar { border-right-color: var(--kante-fein); }

.sidebar-footer { position: sticky; bottom: 0; z-index: var(--z-basis); background: var(--bg-sidebar); }

body:not([data-ansicht="chat"]) .sprunglink-eingabe { display: none; }



.shutdown-overlay {
  position: fixed; inset: 0; z-index: var(--z-dialog);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s6); text-align: center;
  background: var(--bg);
}
.shutdown-overlay h1 { margin-bottom: var(--s3); }
.shutdown-overlay p { color: var(--text-dim); margin: var(--s2) 0; }
.shutdown-overlay .offline-retry { font-size: var(--fs-md); }


.sidebar-footer {
  display: flex; align-items: center; gap: var(--s0);
  flex-wrap: wrap;
  margin-top: var(--s2); padding: var(--s2) 0;
  padding-bottom: max(var(--s2), env(safe-area-inset-bottom));
}
.sidebar-footer .user {
  min-width: 0; font-size: var(--fs-bd); font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}





.konto-knopf {
  display: flex; align-items: center; gap: var(--abstand-symbol); width: 100%;
  min-height: 52px; padding: var(--s1) var(--s2);
  border: 0; border-radius: var(--r-md); background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  transition: background var(--tempo) var(--ease);
}
.konto-knopf:hover, .konto-knopf[aria-expanded="true"] { background: var(--bg-hover); }
.konto-knopf:disabled { opacity: var(--deckkraft-aus); cursor: wait; }
.konto-zeichen {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--accent-soft-stark); color: var(--accent);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
}
.konto-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: var(--lh-eng); }




.konto-bereich { min-width: 0; color: var(--text-dim); font-size: var(--fs-sm);
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.konto-knopf.hat-angebot .konto-zeichen::after, .konto-knopf.hat-eingang .konto-zeichen::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px;
  border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 0 2px var(--bg-sidebar);
}



@media (min-width: 900px) {
  body:is(.leiste-schmal, .leiste-auto) .sidebar .konto-zeichen[data-bereich]::before {
    content: attr(data-bereich); position: absolute; right: -5px; bottom: -5px;
    display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 var(--s0); box-sizing: border-box;
    border-radius: var(--r-xs); background: var(--accent); color: var(--auf-akzent);
    font-size: var(--fs-xs); font-weight: 600; line-height: 1; letter-spacing: 0; box-shadow: 0 0 0 2px var(--bg-sidebar);
  }
}
@media (forced-colors: active) {
  .konto-knopf.hat-angebot .konto-zeichen::after, .konto-knopf.hat-eingang .konto-zeichen::after,
  body:is(.leiste-schmal, .leiste-auto) .sidebar .konto-zeichen[data-bereich]::before { forced-color-adjust: none; background: Highlight;
                                                                    color: HighlightText; }
}



body[data-ansicht="settings"] .konto-knopf, body[data-ansicht="verwaltung"] .konto-knopf { background: var(--bg-active); }
body[data-ansicht="settings"] .konto-knopf .user, body[data-ansicht="verwaltung"] .konto-knopf .user { font-weight: 600; }


body[data-ansicht="settings"] .konto-knopf:not(.benutzeransicht) .konto-zeichen,
body[data-ansicht="verwaltung"] .konto-knopf:not(.benutzeransicht) .konto-zeichen { background: var(--bg-panel); }
.konto-winkel { flex: none; color: var(--text-dim); }


.konto-knopf.benutzeransicht .konto-zeichen {
  background: var(--warn-soft); color: var(--warn); box-shadow: 0 0 0 var(--s0) var(--warn);
}
body:is(.leiste-schmal, .leiste-auto) .sidebar .konto-text,
body:is(.leiste-schmal, .leiste-auto) .sidebar .konto-winkel { display: none; }
body:is(.leiste-schmal, .leiste-auto) .sidebar .konto-knopf { justify-content: center; padding-left: 0; padding-right: 0; }






.brand:has(> .bereich-wechsler:not([hidden])) > .brand-logo,
.brand:has(> .bereich-wechsler:not([hidden])) > .brand-text { display: none; }
.bereich-wechsler {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2); flex: 0 1 auto; min-width: 0;
  min-height: var(--h-ziel); padding: 0 var(--s2) 0 0; margin: calc(-1 * var(--s1)) 0;
  border: 0; border-radius: var(--r-md); background: none; color: var(--text);
  font: inherit; font-size: var(--fs-lg); font-weight: 600; text-align: left; cursor: pointer;
  transition: background var(--tempo) var(--ease);
}
.bereich-wechsler:hover, .bereich-wechsler[aria-expanded="true"] { background: var(--bg-hover); }
.bereich-wechsler .brand-logo { margin-left: 0; }
.bw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-winkel { flex: none; color: var(--text-dim); }
.bereich-wechsler.hat-angebot::after,
.bereich-chip.hat-angebot::after {
  content: ""; position: absolute; top: var(--s0); left: calc(28px - var(--s1)); width: 9px; height: 9px;
  border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 0 2px var(--bg-sidebar);
}
@media (min-width: 900px) {
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bereich-wechsler { padding: 0 var(--s1); margin: 0; }
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bw-name,
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bw-winkel { display: none; }
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bereich-wechsler[data-kuerzel]::before {
    content: attr(data-kuerzel); position: absolute; right: calc(-1 * var(--s0)); bottom: calc(-1 * var(--s0));
    display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 var(--s0); box-sizing: border-box;
    border-radius: var(--r-xs); background: var(--accent); color: var(--auf-akzent);
    font-size: var(--fs-xs); font-weight: 600; line-height: 1; box-shadow: 0 0 0 2px var(--bg-sidebar);
  }
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bereich-wechsler.hat-angebot::after { left: auto; right: calc(-1 * var(--s0)); }
}


.bereich-chip { display: none; }
@media (max-width: 899px) {
  .bereich-chip:not([hidden]) {
    position: relative; display: inline-flex; align-items: center; gap: var(--s1); flex: none; min-width: 0;
    max-width: 6.0938rem; min-height: var(--h-ziel-klein); padding: 0 var(--s2) 0 var(--s1);
    border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-feld); color: var(--text);
    font: inherit; font-size: var(--fs-md); font-weight: 600; cursor: pointer;
  }
  .bereich-chip:hover, .bereich-chip[aria-expanded="true"] { background: var(--bg-hover); }
  .bereich-chip.hat-angebot::after { top: calc(-1 * var(--s0)); left: auto; right: calc(-1 * var(--s0)); }
}
.bereichschip-zeichen {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--auf-akzent); font-size: var(--fs-xs); font-weight: 600; line-height: 1;
}
.bereichschip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) {
  .bereich-chip:not([hidden]) { padding: 0 var(--s1); }
  .bereichschip-name { display: none; }
}




@media (max-width: 359px) {
  body[data-ansicht="documents"] .bereich-chip:not([hidden]),
  body[data-ansicht="projekte"]:has(#projekt-detail:not([hidden])) .bereich-chip:not([hidden]) { display: none; }
}
@media (max-width: 599px) {
  body[data-ansicht="documents"] .bereich-chip:not([hidden]),
  body[data-ansicht="projekte"]:has(#projekt-detail:not([hidden])) .bereich-chip:not([hidden]) { padding: 0 var(--s1); }
  body[data-ansicht="documents"] .bereichschip-name,
  body[data-ansicht="projekte"]:has(#projekt-detail:not([hidden])) .bereichschip-name { display: none; }
}
@media (forced-colors: active) {
  .bereich-wechsler.hat-angebot::after, .bereich-chip.hat-angebot::after,
  body:is(.leiste-schmal, .leiste-auto) .sidebar .bereich-wechsler[data-kuerzel]::before,
  .bereichschip-zeichen { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}




.erklaerkarte {
  flex: none; align-self: center; width: min(760px, calc(100% - 2 * var(--s4))); margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4) var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-panel);
}
.erklaerkarte-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.erklaerkarte-titel { margin: 0; font-size: var(--fs-bd); font-weight: 600; }
.erklaerkarte-liste { display: grid; gap: var(--s1); margin: var(--s2) 0 0; }
.erklaerkarte-zeile { display: grid; grid-template-columns: 7.9688rem minmax(0, 1fr); gap: var(--s3); }
.erklaerkarte-zeile dt { font-size: var(--fs-md); font-weight: 600; }
.erklaerkarte-zeile dd { margin: 0; color: var(--text-dim); font-size: var(--fs-md); line-height: var(--lh-eng); }


@media (max-width: 599px) {
  .erklaerkarte { width: calc(100% - 2 * var(--s3)); margin-top: var(--s2); padding: var(--s2) var(--s3) var(--s3); }
  .erklaerkarte-titel { font-size: var(--fs-md); }
  .erklaerkarte-zu { width: var(--h-ziel-klein); height: var(--h-ziel-klein); }
  .erklaerkarte-liste { gap: var(--s0); margin-top: var(--s1); }
  .erklaerkarte-zeile { display: block; }
  .erklaerkarte-zeile dt, .erklaerkarte-zeile dd { display: inline; font-size: var(--fs-sm); line-height: var(--lh-eng); }
  .erklaerkarte-zeile dt::after { content: ": "; }
}





.sidebar-toggle { display: none; }




.brand .sidebar-toggle { margin-left: auto; }
body:is(.leiste-schmal, .leiste-auto) .sidebar { width: var(--sidebar-schmal); padding-left: var(--s1); padding-right: var(--s1); }
body:is(.leiste-schmal, .leiste-auto) .sidebar .brand-text,
body:is(.leiste-schmal, .leiste-auto) .sidebar .chat-list,
body:is(.leiste-schmal, .leiste-auto) .sidebar .sb-alle-chats,
body:is(.leiste-schmal, .leiste-auto) .sidebar .user,
body:is(.leiste-schmal, .leiste-auto) .sidebar #new-chat span,
body:is(.leiste-schmal, .leiste-auto) .sidebar .nav-item span { display: none; }
body:is(.leiste-schmal, .leiste-auto) .sidebar .sb-rolle { margin: 0; padding: 0; }







body:is(.leiste-schmal, .leiste-auto) .sidebar .brand {
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s1); padding: 0 0 var(--s2);
}
body:is(.leiste-schmal, .leiste-auto) .sidebar .brand .sidebar-toggle { margin-left: 0; }
body:is(.leiste-schmal, .leiste-auto) .sidebar .nav-item,
body:is(.leiste-schmal, .leiste-auto) .sidebar #new-chat { justify-content: center; padding-left: 0; padding-right: 0; }
body:is(.leiste-schmal, .leiste-auto) .sidebar-footer { flex-direction: column; gap: var(--s1); }
body:is(.leiste-schmal, .leiste-auto) .chatliste-knopf { display: inline-flex; }


body:is(.leiste-schmal, .leiste-auto)[data-ansicht="chat"] #chatliste-knopf,
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="projekte"] #projekte-knopf { background: var(--bg-active); }
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="chat"] #chatliste-knopf svg,
body:is(.leiste-schmal, .leiste-auto)[data-ansicht="projekte"] #projekte-knopf svg { color: var(--accent); }
.chatliste-knopf { display: none; }
