/* Visitenkarten (Einstellungen → Kommunikation & Webseite → „Visitenkarten“, business-cards.js).
   Baut auf den gemeinsamen Verwaltungsbausteinen .wm (workspace-modules.css) auf; Dark Mode über die --wm-Tokens. Nur Bildschirm. */
@media screen {
  .business-cards .wm-split { grid-template-columns:minmax(300px,3fr) minmax(300px,2fr); }
  .business-cards .panel { min-width:0; }
  .business-cards .panel-head span { overflow-wrap:anywhere; }
  .bc-side { display:grid; gap:16px; min-width:0; }

  /* Personen */
  .bc-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 18px; border-bottom:1px solid var(--wm-line); }
  .bc-toolbar .filter-wrap { flex:1 1 220px; min-width:0; }
  .bc-toolbar input[type="search"] { width:100%; min-height:36px; padding:6px 10px; border:1px solid var(--wm-border); border-radius:8px; background:var(--wm-surface); color:var(--wm-text); font:inherit; }
  .bc-toolbar input[type="search"]:focus { border-color:var(--wm-accent); box-shadow:0 0 0 3px rgba(100,49,130,.12); outline:none; }
  .bc-people { max-height:min(62vh, 640px); overflow:auto; }
  .bc-person { flex-wrap:wrap; transition:background .12s; }
  .bc-person .wm-row-main { flex:1 1 230px; }   /* Anzahl und Vorschau rücken bei wenig Platz unter den Namen statt ihn abzuschneiden */
  .bc-person.focus { box-shadow:inset 3px 0 0 var(--wm-accent); }
  .bc-person.selected { background:var(--wm-tint); }
  .bc-person.selected:nth-child(even) { background:var(--wm-tint); }
  .bc-pick { display:flex; align-items:center; gap:8px; margin:0; cursor:pointer; font-weight:400; }
  .bc-pick input { width:16px; height:16px; margin:0; accent-color:#643182; flex:none; }
  .bc-pick strong { font-size:14px; color:var(--wm-text); overflow-wrap:anywhere; }
  .bc-pick small { padding:1px 7px; border-radius:999px; background:var(--wm-soft); border:1px solid var(--wm-line); font-size:11px; color:var(--wm-muted); white-space:nowrap; }
  .bc-person-fields { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:8px 12px; margin-top:6px; }
  .bc-person-fields label { display:grid; gap:3px; margin:0; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--wm-muted); }
  .bc-person-fields input { width:100%; min-height:34px; padding:6px 9px; border:1px solid var(--wm-border); border-radius:8px; background:var(--wm-surface); color:var(--wm-text); font:inherit; font-size:13.5px; letter-spacing:0; text-transform:none; }
  .bc-person-fields input:focus { border-color:var(--wm-accent); box-shadow:0 0 0 3px rgba(100,49,130,.12); outline:none; }
  .bc-row-actions { align-items:center; }
  .bc-count { display:inline-flex; align-items:center; gap:2px; padding:2px; border:1px solid var(--wm-border); border-radius:8px; background:var(--wm-surface); }
  .bc-count .icon-button { width:30px; height:30px; }
  .bc-count input { width:58px; min-height:30px; padding:0 4px; border:0; background:transparent; color:var(--wm-text); font:inherit; font-size:14px; font-weight:700; text-align:center; -moz-appearance:textfield; }
  .bc-count input::-webkit-outer-spin-button, .bc-count input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
  .bc-count input:focus { outline:2px solid var(--wm-accent); outline-offset:-2px; border-radius:6px; }
  .bc-people-note { margin:14px 18px 16px; }

  /* Optionen */
  .bc-options.form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
  .bc-options .field small { display:block; margin-top:4px; font-size:12px; color:var(--wm-muted); line-height:1.4; }
  .bc-choices label { text-transform:none; letter-spacing:0; }
  .bc-print-note strong { color:var(--wm-accent); }
  .bc-last { margin:0; font-size:12.5px; }

  /* Kartenvorschau */
  .bc-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
  .bc-card { margin:0; display:grid; gap:6px; }
  .bc-card-face { position:relative; aspect-ratio:85 / 55; border:1px solid var(--wm-border); border-radius:6px; background:var(--wm-surface); box-shadow:0 2px 10px rgba(43,36,50,.12); overflow:hidden; }
  html[data-workspace-theme="dark"] .bc-card-face { box-shadow:0 2px 10px rgba(0,0,0,.4); }
  .bc-card-face img { display:block; width:100%; height:100%; object-fit:contain; }
  .bc-card.loading .bc-card-face { opacity:.6; }
  .bc-card-placeholder { position:absolute; inset:0; display:grid; place-items:center; padding:12px; text-align:center; font-size:12.5px; color:var(--wm-muted); }
  .bc-card figcaption { font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--wm-muted); text-align:center; }

  /* Bogenvorschau */
  .bc-sheet-title { margin:4px 0 0; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--wm-muted); }
  .bc-sheet-wrap { display:grid; justify-items:center; gap:6px; }
  .bc-sheet { position:relative; width:100%; max-width:260px; aspect-ratio:210 / 297; border:1px solid var(--wm-border); border-radius:4px; background:var(--wm-surface); box-shadow:0 2px 10px rgba(43,36,50,.12); overflow:hidden; }
  html[data-workspace-theme="dark"] .bc-sheet { box-shadow:0 2px 10px rgba(0,0,0,.4); }
  .bc-sheet.marks::before, .bc-sheet.marks::after { content:""; position:absolute; left:2%; right:2%; height:0; border-top:1px dashed var(--wm-line); pointer-events:none; }
  .bc-sheet.marks::before { top:3.7%; }
  .bc-sheet.marks::after { bottom:3.7%; }
  .bc-slot { position:absolute; display:grid; place-items:center; align-content:center; gap:1px; box-sizing:border-box; border:1px dashed var(--wm-border); background:var(--wm-soft); font-size:9px; color:var(--wm-muted); overflow:hidden; }
  .bc-slot.filled { border-style:solid; border-color:var(--wm-accent); background:var(--wm-tint); color:var(--wm-text); }
  .bc-slot b { font-size:12px; color:var(--wm-accent); }
  .bc-slot span { max-width:92%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .bc-sheet-more { margin:0; font-size:12px; text-align:center; }

  /* Schaltfläche in „Benutzer & Filialen“ */
  .bc-user-button { color:var(--wm-accent, #643182); }

  @media (max-width:900px) {
    .business-cards .wm-split { grid-template-columns:minmax(0,1fr); }
  }
  @media (max-width:700px) {
    .bc-toolbar { padding:10px 14px; }
    .bc-toolbar .wm-chips { width:100%; }
    .bc-people { max-height:none; }
    .bc-person-fields { grid-template-columns:minmax(0,1fr); }
    .bc-row-actions { justify-content:space-between; }
    .bc-people-note { margin:12px 14px 14px; }
    .bc-cards { grid-template-columns:minmax(0,1fr); }
  }
}

/* Mitarbeiterbild (06.10.2026): Schalter/Form/Position in „Bogen & Druck“, kleines Bild in der Personenliste */
@media screen {
  .bc-photo-options { display:grid; gap:8px; padding:10px 12px; border:1px dashed var(--wm-border,#dccfe4); border-radius:10px; background:var(--wm-surface,#fff); }
  .bc-photo-switch { display:flex; gap:8px; align-items:center; font-size:13px; font-weight:600; color:var(--wm-text,#28212e); }
  .bc-photo-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  .bc-photo-options small { font-size:12px; line-height:1.45; }
  .bc-person-photo { width:28px; height:28px; border-radius:50%; object-fit:cover; margin-right:4px; border:1px solid var(--wm-border,#dccfe4); vertical-align:middle; }
}
