/*
  workspace-bento-handy.css — Gestaltung der Handy-Navigation (workspace-bento-handy.js): farbiger Kopf mit „‹ Zurück“, Liste/Eintrag in voller Breite.

  Kurzbeschreibung (für Laien): Unter 700 px steht über der geöffneten Seite ein farbiger Streifen mit „‹ Zurück“ und dem Namen der Seite
  (Farbe der Menügruppe). Seiten mit Liste zeigen zuerst nur die Liste, nach dem Antippen nur den Eintrag. Alles gilt nur bei html.wb-hy.
*/
.wbhy-kopf { display: none; }
@media (max-width: 699px) {
  :root.wb-hy .wbhy-kopf:not([hidden]) { display: flex; flex: none; align-items: center; gap: 12px; height: 52px; margin: 0 12px 8px; padding: 0 12px 0 10px; box-sizing: border-box;
    border-radius: var(--marke-r-l); color: #fff; font: 600 15px var(--marke-schrift);
    background: linear-gradient(135deg, var(--wbm-f, var(--marke-nav-blau)), color-mix(in srgb, var(--wbm-f, var(--marke-nav-blau)) 55%, #fff)); }
  .wbhy-zurueck { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
    background: color-mix(in srgb, #fff 18%, transparent); color: #fff; font: 600 13px var(--marke-schrift); }
  .wbhy-zurueck:hover { background: color-mix(in srgb, #fff 28%, transparent); }
  .wbhy-zurueck:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .wbhy-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wbhy-ansicht { flex: none; margin-left: auto; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, #fff 18%, transparent); color: #fff; font: 600 13px var(--marke-schrift); }
  .wbhy-ansicht[hidden] { display: none; }
  .wbhy-ansicht:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* Zweige, die die Stufe gerade nicht zeigt (Liste oder Inhalt) */
  :root.wb-hy .wbhy-weg { display: none !important; }
  :root.wb-hy.wb-hy-liste .bsp.wbhy-liste { display: flex !important; width: 100% !important; height: auto !important; max-height: none !important; flex: 1 1 auto; min-height: 0; border-left: 0; }
  :root.wb-hy.wb-hy-liste .bsp-seite > .bsp-detail { display: none !important; }
  :root.wb-hy.wb-hy-inhalt .bsp-seite > .f3-mitte { display: flex; }   /* leere Seiten im Fenster-Gerüst (Freigaben, Schwarzes Brett …): Leertext und Knopf stehen in der Mitte */
  :root.wb-hy.wb-hy-eintrag .bsp-seite > .bsp { display: none !important; }
  :root.wb-hy.wb-hy-eintrag .bsp-seite > .bsp-detail { display: block !important; }
  :root.wb-hy body > #bsBereich { position: relative; }   /* Detail-Ebenen der Seite (absolute) bleiben in der Karte unter dem Kopf */
  /* Inhalt über die volle Breite, auf weißer Karte (wie die Menükarten) */
  :root.wb-hy body > :is(#bsBereich, #appShell) { background: var(--wb-karte) !important; border-radius: var(--marke-r-l); box-shadow: var(--wb-rand), var(--marke-schatten-leise); margin: 0 12px 12px; box-sizing: border-box; }
  :root.wb-hy :is(.wss.wss-zwei, .bsp-seite, .av.av-z) { grid-template-columns: minmax(0, 1fr) !important; }
  :root.wb-hy :is(.wss.wss-zwei > .wss-detail, .bsp-seite > .bsp-detail, .av.av-z > .av-mitte, .av.av-z > .av-links) { grid-column: 1; width: auto; max-width: none; }
  :root.wb-hy :is(.bs-liste, .bs-karte, .bs-raster, .wss) { -webkit-mask-image: none !important; mask-image: none !important; }
  /* Seiten im Standard-Aufbau (Liste .bs-liste + Detail .bs-detail, z. B. Kontakte): untereinander statt nebeneinander, nie überlappend */
  :root.wb-hy.wb-menue-modus.bs-offen #bsBereich:not([data-ansicht="raster"]) { display: flex !important; flex-direction: column; overflow-y: auto; }
  :root.wb-hy #bsBereich:not([data-ansicht="raster"]) .bs-detail { position: static !important; width: auto !important; max-width: none; border-left: 0 !important; padding-left: 0 !important; grid-area: auto; flex: none; }
  :root.wb-hy #bsBereich:not([data-ansicht="raster"]) .bs-liste { flex: 1 1 auto; min-height: 120px; }
  /* Seiten im Vollflächen-Rahmen (Tabellen, Whiteboard, Präsentationen …): der Rahmen liegt nicht mehr über dem Kopf mit „‹ Zurück“ */
  :root.wb-hy .sidebar-secondary.visible { inset: var(--wbhy-oben, 120px) 12px 12px 12px; width: calc(100vw - 24px) !important; min-width: 0; max-width: none; box-sizing: border-box; border-radius: var(--marke-r-l); overflow: hidden; padding-top: 0; }
  /* Altes Menü (Konto ohne Beta, Einstieg über die Karten): das Werkzeug-Fenster lässt die erste Kopfzeile mit „← Zurück“ frei, statt sie zu überdecken */
  :root:not(.wb-hy) .sidebar-secondary.visible { top: 64px !important; bottom: 0 !important; height: auto !important; border-radius: var(--marke-r-l) var(--marke-r-l) 0 0; }
  /* Gantt-Planer: die Seite wächst mit ihrem Inhalt (sonst schrumpft sie auf 0 und der Startzustand „Plan anlegen“ ist unsichtbar) */
  :root.wb-hy .bp-m-seite.bsp-seite { flex: 1 1 auto; min-height: 240px; }
  :root.wb-hy .bp-m-seite.bsp-seite > .bp-m-mitte { flex: 1 1 auto; overflow: visible; }
  /* Kennzahlen: gleicher Rand links und rechts (die rechte Kachel klebte am Rand) */
  :root.wb-hy #bsBereich[data-bereich="kennzahlen"] { padding: 12px !important; }
  :root.wb-hy #bsBereich[data-bereich="kennzahlen"] .kz-haupt { padding: 0 !important; }
  /* Ein Rückweg genügt: der Kopf-„Zurück“ (Aufgaben: das „Schließen“ im Eintrag entfällt) */
  :root.wb-hy .av-r-kopf > .av-zurueck { display: none !important; }
  /* „Neu …“-Zeile der Liste: 44 px Tippfläche (Text kommt vom Baustein, z. B. „Neue Notiz“) */
  :root.wb-hy .bsp-neu { min-height: 44px; }
  /* Transkription hat eine eigene einklappbare Liste (Kopfzeile + Pfeil): am Handy übernimmt die Handy-Navigation, die Liste liegt nie über dem Formular */
  :root.wb-hy #bsBereich[data-bereich] .btr-wss.wss-zwei > .wss-spalte { position: static !important; grid-column: 1; grid-row: auto; width: auto; height: auto; padding: 0; border: 0; background: none; }
  :root.wb-hy .btr-wss .btr-lkopf { display: none !important; }
  :root.wb-hy.wb-hy-liste #bsBereich[data-bereich] .btr-wss.wss-zwei { display: block !important; }
  /* Die eigenen „Zur Liste“-Knöpfe der Seiten ersetzt der Kopf */
  :root.wb-hy .bsp-zurueck, :root.wb-hy .bs-zurueck, :root.wb-hy .pj-zurueck { display: none !important; }
}
