/*
  workspace-bento-modul-hilfe.css — Gestaltung des „?“ unten links in der Modul-Menükarte und der Erklärung dahinter
  (Ralph 20.11.2026; Logik: js/workspace-bento-modul-hilfe.js, Inhalte: js/workspace-bento-modul-hilfe-texte.js).

  Kurzbeschreibung (für Laien): Das „?“ ist ein kleiner runder Knopf (28 px, grauer Rand, Form wie das Hilfe-Fragezeichen der Marke).
  Die Erklärung ist ein weißes Fenster wie ein Dialog (Radius 12, ohne Rand, Schatten der Marke): oben Titel und ein Satz auf einer Fläche,
  die in der Farbe der Menügruppe ins Weiße ausläuft, darunter die Abschnitte als kleine Karten (1 px Linie, Radius 9) mit Symbol vor jeder
  Zeile, unten die Tipps. Auf schmalen Fenstern liegt sie als Blatt über die ganze Breite. Farben nur aus Variablen, hell und dunkel.
*/

/* Knopf: feste Lage aus dem Skript (unten links in der Karte bzw. an der Menüspalte) */
.bmh-knopf { position: fixed; z-index: 45; left: var(--bmh-x, 32px); top: var(--bmh-y, 0px); display: inline-grid; place-items: center;
  width: 28px; height: 28px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--wb-linie, var(--marke-linie-stark)); background: var(--wb-karte, var(--marke-flaeche)); color: var(--wb-leise, var(--marke-text-2));
  transition: border-color .12s, color .12s, background .12s; }
.bmh-knopf[hidden] { display: none; }
.bmh-knopf.bmh-logout { width: auto; padding: 0 var(--marke-sp-3); font: inherit; font-size: 12px; font-weight: 600; }   /* „Logout“ als Text (Ralph 28.11.2026) */
.bmh-knopf:hover, .bmh-knopf:focus-visible, .bmh-knopf.an { color: var(--wb-text, var(--marke-text)); border-color: var(--wb-leise, var(--marke-text-2)); outline: none; }
.bmh-knopf.an { background: var(--wb-weich, var(--marke-flaeche-2)); }
/* Platz unter dem letzten Eintrag der Karte, damit das „?“ nichts verdeckt */
:root.bmh-da.wbm-links .bsp-links > .bsp-liste { margin-bottom: calc(28px + var(--marke-sp-3) * 2); }
:root.bmh-da.bmh-zwei.wbm-links .bsp-links > .bsp-liste { margin-bottom: calc(28px * 2 + var(--marke-sp-2) + var(--marke-sp-3) * 2); }   /* zugeklappt: „?“ und Sprechblase übereinander */
/* Zusatz im Fuß (WsModulFuss, z. B. „Verbrauch 3,42 €“ im Lead-Generator): klein und leise, Zeilenhöhe wie die Knöpfe, Aufschlüsselung in der Hover-Karte */
.bmh-info { position: fixed; z-index: 45; left: var(--bmh-x, 0px); top: var(--bmh-y, 0px); width: var(--bmh-b, 160px); height: 28px; display: inline-flex; align-items: center; justify-content: flex-end;   /* rechtsbündig in der Karte (Ralph 28.11.2026) */
  padding: 0 var(--marke-sp-1); box-sizing: border-box; border-radius: var(--marke-r-pill); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 12px var(--marke-schrift); color: var(--wb-leise, var(--marke-text-2)); cursor: default; font-variant-numeric: tabular-nums; }
.bmh-info[hidden] { display: none; }
.bmh-info-2 { flex-direction: column; align-items: flex-end; justify-content: center; line-height: 13px; }   /* zweite kleine Zeile, z. B. „(Demo, kostenfrei)“ */
.bmh-info-t, .bmh-info-z { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bmh-info-z { font-size: 11px; font-weight: 400; }
.bmh-info-knopf { cursor: pointer; }
.bmh-info-knopf:hover .bmh-info-t { text-decoration: underline; }
.bmh-info:focus-visible { outline: 2px solid var(--wb-leise, var(--marke-text-2)); outline-offset: 1px; }

/* Erklär-Fenster */
.bmh-fenster { --bmh-f: var(--marke-karte-persoenlich); position: fixed; z-index: 70; left: var(--bmh-l, 16px); bottom: var(--bmh-u, 16px);
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box;
  border-radius: 12px; background: var(--wb-karte, var(--marke-flaeche)); color: var(--wb-text, var(--marke-text));
  box-shadow: var(--marke-schatten); font-family: var(--marke-schrift); font-size: 13px; line-height: 1.45; }
.bmh-fenster[hidden] { display: none; }
.bmh-fenster.bmh-schmal { right: 16px; width: auto; }

.bmh-kopf { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bmh-f) 16%, var(--wb-karte, var(--marke-flaeche))), var(--wb-karte, var(--marke-flaeche)) 70%); }
.bmh-kopf-sym { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: var(--bmh-f); color: var(--marke-auf-akzent); }
.bmh-kopf-text { flex: 1; min-width: 0; }
.bmh-kopf h2 { margin: 0; font-size: 15px; font-weight: 700; line-height: 28px; }
.bmh-kopf p { margin: 0; color: var(--wb-leise, var(--marke-text-2)); }
.bmh-zu { flex: none; }

.bmh-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 24px 16px; }
.bmh-schmal .bmh-raster { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 16px; }
.bmh-teil { min-width: 0; padding: 12px; border: 1px solid var(--wb-linie, var(--marke-linie)); border-radius: 9px; }
.bmh-teil-kopf { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.bmh-teil-sym { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px;
  background: color-mix(in srgb, var(--bmh-f) 12%, transparent); color: color-mix(in srgb, var(--bmh-f) 75%, var(--wb-text, var(--marke-text))); }
.bmh-fenster svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bmh-zeilen { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bmh-zeile { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; color: var(--wb-leise, var(--marke-text-2)); }
.bmh-zeile > svg { height: 1.45em; color: var(--wb-leise, var(--marke-text-2)); }
.bmh-zeile b { font-weight: 600; color: var(--wb-text, var(--marke-text)); }

.bmh-tipps { margin: 0 24px 24px; padding: 12px; border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bmh-f) 8%, var(--wb-karte, var(--marke-flaeche))), var(--wb-karte, var(--marke-flaeche))); }
.bmh-schmal .bmh-tipps { margin: 0 16px 16px; }
.bmh-tipps .bmh-zeile { color: var(--wb-text, var(--marke-text)); }
.bmh-tipps .bmh-zeile > svg { color: var(--bmh-f); }
.bmh-fenster:focus { outline: none; }
/* Breiter Bildschirm, 3 oder 6 Abschnitte: drei nebeneinander, damit die Übersicht ohne Scrollen passt */
@media (min-width: 960px) {
  .bmh-fenster.bmh-drei:not(.bmh-schmal) { width: min(920px, calc(100vw - 32px)); }
  .bmh-fenster.bmh-drei:not(.bmh-schmal) .bmh-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Sechs Abschnitte (z. B. Lead-Generator, 26.11.2026): auf breiten Bildschirmen die Breite nutzen statt nach unten zu scrollen */
@media (min-width: 1360px) {
  .bmh-fenster.bmh-drei:not(.bmh-schmal):has(.bmh-raster > :nth-child(6)) { width: min(1240px, calc(100vw - 32px)); }
}
.bmh-frage { font-size: 14px; font-weight: 700; line-height: 1; }
