/* „‹ Zurück“ im Kopf der linken Menükarte (Ralph 09.11.2026, Vorbild AIOS): Pille halbtransparent auf dem farbigen Kopf.
   Die Zurück-Pille rechts in der großen Karte bleibt nur, wenn es keine linke Karte gibt (Ganzes Fenster) oder die Karte in der Unterstufe steht. */
.wbm-kopf-zurueck, .wbml-zurueck { margin: -8px 0 -8px auto; pointer-events: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px 0 10px; border: 0;
  border-radius: var(--marke-r-pill); background: color-mix(in srgb, #fff 18%, transparent); color: #fff; font: 600 13px var(--marke-schrift); cursor: pointer; }
.wbm-kopf-zurueck:hover, .wbml-zurueck:hover { background: color-mix(in srgb, #fff 28%, transparent); }
.wbm-kopf-zurueck:focus-visible, .wbml-zurueck:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wbm-kopf-zurueck span, .wbml-zurueck span { flex: none !important; }
.wbm-kopf-zurueck ~ .wbm-kopf-plus { margin-left: var(--marke-sp-2); }
@media (min-width: 1000px) {
  :root:not(.wbm-gross):has(.wbm-karte.quelle:not(.tief)) .wbm-rahmen-zurueck { display: none; }
}
/* ✕ „Schließen“ ganz rechts im Kopf der großen Karte (Ralph 09.11.2026, wie Windows): rund, gleich wie der Vergrößern-Knopf; führt wie Zurück zur Übersicht */
.wbm-rahmen-zu { pointer-events: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0;
  border-radius: 50%; background: color-mix(in srgb, #fff 18%, transparent); color: #fff; cursor: pointer; }
.wbm-rahmen-zu:hover { background: color-mix(in srgb, #fff 28%, transparent); }
.wbm-rahmen-zu:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* (28.11.2026) Regel „Pille rund neben Kopfknopf“ entfernt: .wbm-kopf-zurueck wird nirgends mehr erzeugt, die :has-Regel bremste jede Änderung */

/* Zurück-Pille für Unteransichten im Fensterkopf (Ralph 14.11.2026; workspace-bento-kopf-ebene.js): wie „Ganzes Fenster“ – 30 px, weiß 18 %, Text nennt das Ziel („‹ Übersicht“).
   Sitzt rechts oben vor „Ganzes Fenster“; steht sie da, entfällt das „Zurück ins Menü“ (✕ und die linke Karte führen dorthin). */
.wbm-ebene { pointer-events: auto; flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 0; border-radius: var(--marke-r-pill, 999px);
  background: color-mix(in srgb, #fff 18%, transparent); color: #fff; font: 600 13px var(--marke-schrift); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.wbm-ebene:hover { background: color-mix(in srgb, #fff 28%, transparent); }
.wbm-ebene:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wbm-rahmen-rechts:has(.wbm-ebene) .wbm-rahmen-zurueck { display: none !important; }
/* Alte Zurück-Knöpfe im Inhalt: bleiben für die Logik im Text, sind im Menü-Modus unsichtbar – die Pille im Kopf klickt sie (workspace-bento-kopf-ebene.js, Liste PROXY) */
html.wb-menue-flaeche :is(.wbk-uebersicht, .av-zurueck, .ap-zurueck, .nv-zurueck, .bfo-zurueck, .war-zurueck, .zl-zurueck, .btr-ms-kopf [data-ms="zurueck"], [data-bp-zurueck], .bsp-gruppe-ohne:has([data-bsp-id="zurueck-chat"])) {
  position: absolute !important; visibility: hidden !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; pointer-events: none !important; }   /* unsichtbar, aber noch im Text: so erkennt die Pille, dass die Ansicht offen ist */
html.wb-menue-flaeche .bsp-gruppe-ohne:has([data-bsp-id="zurueck-chat"]) + .bsp-gruppe-ohne { border-top: 0; }
