/* bAV-Verwaltung: runder, schwebender Knopf „Zum Dashboard“ (unten rechts) — Aussehen wie im CC-Tool (cc-dashboard-knopf).
   Eingeklappt nur das Kachel-Symbol, beim Darüberfahren klappt er nach links auf. Eingefügt von /js/dashboard-knopf.js. */
.bav-dashboard-knopf { position: fixed; right: 22px; bottom: 22px; z-index: 1500; display: inline-flex; align-items: center; gap: 0; padding: 11px; border: 0; border-radius: 999px;
    cursor: pointer; font: inherit; font-size: 13px; line-height: 16px; font-weight: 600; color: #fff !important; text-decoration: none !important; white-space: nowrap;
    background: var(--rwd-blue-700, #1F4E7A); opacity: .95; box-shadow: 0 10px 24px rgba(20, 55, 94, .28), 0 2px 4px rgba(0, 0, 0, .06);
    transition: all .18s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.bav-dashboard-knopf svg { display: block; flex-shrink: 0; }
.bav-dashboard-knopf span { max-width: 0; overflow: hidden; transition: max-width .18s ease; }
.bav-dashboard-knopf:hover, .bav-dashboard-knopf:focus-visible { gap: 8px; padding: 11px 18px 11px 14px; transform: translateY(-3px) scale(1.03); }
.bav-dashboard-knopf:hover { opacity: 1; background: var(--rwd-teal-600, #2BA587); }
.bav-dashboard-knopf:hover span, .bav-dashboard-knopf:focus-visible span { max-width: 160px; }
@media print { .bav-dashboard-knopf { display: none !important; } }

/* ── Handy/Tablet (Mobil-Umbruch des Tools: ≤ 1023 px) ── */
@media (max-width: 1023px) {
    /* 40 px rund, sitzt über dem Dock, klappt nicht auf */
    .bav-dashboard-knopf { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 290; padding: 12px; min-width: 40px; min-height: 40px; justify-content: center; }
    .bav-dashboard-knopf:hover, .bav-dashboard-knopf:focus-visible { gap: 0; padding: 12px; transform: none; }
    .bav-dashboard-knopf:hover span, .bav-dashboard-knopf:focus-visible span { max-width: 0; }
    /* Mitarbeiterliste: die rechte Spur gehört der A–Z-Leiste → Knopf daneben */
    html body:has(.bv-az) .bav-dashboard-knopf { right: 34px; }
    /* offenes Blatt (Mitarbeiter-Detail, „Mehr“), Dialog, Buchstaben-Blase: ausgeblendet */
    html body:has(.bv-sheet.offen) .bav-dashboard-knopf, html body:has(.bv-sheet-hg.offen) .bav-dashboard-knopf,
    html body:has(.fk-modal-hg) .bav-dashboard-knopf, html body:has(.bv-az-blase) .bav-dashboard-knopf { display: none; }
    /* Seitenende, Meldung und Installations-Hinweis weichen dem Knopf aus */
    html.bav-dk-an .fk-main { padding-bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
    html.bav-dk-an .fk-toast { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
    html.bav-dk-an .bv-install { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
}
