/*
  workspace-bento-favoriten.css — Favoriten-Kacheln, Sammel-Kachel „Favoriten", Fenster „Favorit hinzufügen/bearbeiten"
  und die Kopfzeilen-Pille mit Symbol (Logik: workspace-bento-favoriten.js).

  Kurzbeschreibung (für Laien): So sehen die eigenen Links auf der Bento-Startseite aus — Symbol der Seite in einem
  runden Kästchen, darunter bzw. daneben der Name fett und die Domain klein. Das Fenster folgt dem Baustein „Dialog"
  (marke/bausteine/43-dialog.html) im Bento-Look wie das Fenster „Eigene KI-Agenten". Nur Marken-Werte, nur Inter.
*/

/* ── Kachel ── */
.wfv-kachel { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; }
.wfv-kachel.klein, .wfv-kachel.hoch { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.wfv-kachel.gross { justify-content: center; gap: 16px; }
.wfv-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.wfv-name { display: block; font: 700 14px/1.3 var(--marke-schrift); color: var(--wb-text, var(--marke-text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfv-host { font-size: 12px; color: var(--wb-leise, var(--marke-text-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Symbol: Bild der Seite oder Anfangsbuchstabe im runden Kästchen */
.wfv-symbol { flex: none; width: 44px; height: 44px; border-radius: var(--marke-r-l, 12px); display: inline-flex; align-items: center; justify-content: center;
  background: var(--wb-weich, var(--marke-flaeche-2)); color: var(--wb-text, var(--marke-text)); overflow: hidden; }
.wfv-symbol img { width: 28px; height: 28px; object-fit: contain; pointer-events: none; }
.wfv-symbol b { font: 700 20px/1 var(--marke-schrift); }
.wfv-kachel.hoch .wfv-symbol, .wfv-kachel.gross .wfv-symbol { width: 64px; height: 64px; }
.wfv-kachel.hoch .wfv-symbol img, .wfv-kachel.gross .wfv-symbol img { width: 40px; height: 40px; }
.wfv-symbol.klein { width: 24px; height: 24px; border-radius: var(--marke-r-s, 6px); }
.wfv-symbol.klein img { width: 16px; height: 16px; }
.wfv-symbol.klein b { font-size: 12px; }

/* ── Shortcut-Bento: Felder im Raster, 1 × 1 = 2 × 2 Felder (Ralph 28.10.2026) ── */
.wfs-raster { flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.wfs-feld { min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px;
  border-radius: var(--marke-r-l, 12px); background: transparent; color: var(--wb-text, var(--marke-text)); cursor: pointer; outline: none; transition: background .15s; font-family: var(--marke-schrift); }
.wfs-feld:hover, .wfs-feld:focus-visible { background: var(--wb-weich, var(--marke-flaeche-2)); }
.wfs-feld:focus-visible { box-shadow: 0 0 0 2px var(--marke-akzent); }
.wfs-name { max-width: 100%; font: 600 13px/1.3 var(--marke-schrift); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfs-feld .wfv-symbol { width: 40px; height: 40px; }
.wfs-feld .wfv-symbol img { width: 26px; height: 26px; }
.wfs-plus { border: 1px dashed var(--wb-linie, var(--marke-linie)); color: var(--wb-leise, var(--marke-text-2)); }
.wfs-plus:hover { color: var(--wb-text, var(--marke-text)); }
.wfs-rest { cursor: default; color: var(--wb-leise, var(--marke-text-2)); }
.wfs-rest:hover { background: transparent; }

/* ── Sammel-Kachel ── */
.wfv-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; min-height: 0; overflow: hidden; }
.wfv-liste.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; align-content: start; }
.wfv-zeile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; margin: 0 -8px; border-radius: var(--marke-r-m, 9px);
  font-size: 13px; color: var(--wb-text, var(--marke-text)); cursor: pointer; outline: none; transition: background .15s; }
.wfv-zeile:hover { background: var(--wb-weich, var(--marke-flaeche-2)); }
.wfv-zeile:focus-visible { box-shadow: 0 0 0 2px var(--marke-akzent); }
.wfv-zeile-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wfv-leer { gap: 8px; }

/* ── Kopfzeilen-Pille mit Symbol (workspace-bento-kopfablage.js) ── */
.wb-abschnitte > .wb-ab.wb-kopfablage[data-sig]:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; }
.wfv-symbol.pille { width: 16px; height: 16px; border-radius: 4px; background: transparent; color: inherit; }
.wfv-symbol.pille img { width: 16px; height: 16px; }
.wfv-symbol.pille b { font-size: 11px; }
.wfv-pille-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Fenster ── */
.wfv-hinter { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--marke-abdunklung); font-family: var(--marke-schrift); }
.wfv-fenster { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; overflow-x: hidden; display: grid; gap: 16px; padding: 24px; box-sizing: border-box; }
.wfv-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wfv-kopf .wb-rund svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wfv-inhalt { position: relative; display: flex; flex-direction: column; }
.wfv-vorschau { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; border-radius: var(--marke-r-l, 12px); background: var(--wb-weich, var(--marke-flaeche-2)); }
.wfv-vorschau .wfv-symbol { background: var(--wb-karte, var(--marke-flaeche)); }
.wfv-vorschau .wfv-symbol img { width: 28px; height: 28px; object-fit: contain; }
.wfv-label { display: block; margin: 0 0 6px 4px; font: 600 12px var(--marke-schrift); color: var(--wb-leise, var(--marke-text-2)); }
.wfv-inhalt .wb-feld { margin-bottom: 12px; }
.wfv-meldung { font-size: 13px; color: var(--marke-gefahr); min-height: 0; }
.wfv-meldung:empty { display: none; }
.wfv-lade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--marke-ladekreis);
  background: color-mix(in srgb, var(--wb-karte, var(--marke-flaeche)) 70%, transparent); border-radius: var(--marke-r-l, 12px); }
.wfv-lade[hidden] { display: none; }
.wfv-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wfv-luecke { flex: 1; }
.wfv-loeschen:hover:not(:disabled) { color: var(--marke-gefahr); }
@media (max-width: 480px) { .wfv-fenster { padding: 16px; } }
