  /* ===== MITARBEITER (ma-) ===== */
  .ma-info-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12.5px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
  }
  .ma-banner-status {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--brand-dark); background: var(--brand-soft);
  }
  .ma-banner-status .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  }
  .ma-banner-status.mock { color: #92400e; background: #fef3c7; }
  .ma-banner-status.mock .dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
  .ma-banner-text { color: var(--text-muted); flex: 1; min-width: 220px; }
  .ma-banner-time {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text); font-weight: 600;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .ma-banner-time .icon { width: 13px; height: 13px; color: var(--text-muted); }
  .ma-banner-time .rel { color: var(--text-dim); font-weight: 400; }
  .ma-addr-badge {
    font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    margin-left: 4px; white-space: nowrap; cursor: help;
  }
  .ma-addr-badge.fallback {
    background: var(--bg); color: var(--text-muted);
    border: 1px dashed var(--border-strong);
  }

  /* Foto-Zuschneide-Dialog */
  .ma-crop-vp {
    position: relative; width: 280px; height: 280px;
    margin: 0 auto 12px; overflow: hidden;
    border-radius: 10px; background: #0b1220;
    cursor: grab; touch-action: none; user-select: none;
  }
  .ma-crop-vp:active { cursor: grabbing; }
  .ma-crop-vp img { position: absolute; max-width: none; }
  .ma-crop-mask {
    position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(255,255,255,0.55);
    pointer-events: none;
  }
  .ma-crop-slider { width: 240px; accent-color: var(--brand); }

  /* MA-Fotos — !important nötig: die .av-Grundregeln setzen background als
     Shorthand (höhere Spezifität) und würden size/position auf auto/0 0 resetten */
  .av-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: transparent;
  }
  .ma-avatar-box { position: relative; flex-shrink: 0; }
  .ma-foto-btn {
    position: absolute; bottom: -4px; right: -4px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); cursor: pointer;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
    opacity: 0; transition: opacity 0.12s;
  }
  .ma-foto-btn.del { right: auto; left: -4px; }
  .ma-avatar-box:hover .ma-foto-btn { opacity: 1; }
  .ma-foto-btn:hover { color: var(--brand-dark); border-color: var(--brand); }
  .ma-foto-btn.del:hover { color: #b91c1c; border-color: #f3c2c2; }
  .ma-foto-btn svg { width: 12px; height: 12px; }

  /* Sync-Health-Panel (Admin) */
  .ma-log-btn { background: transparent; color: var(--brand-dark); border: 1px solid var(--border-strong); }
  .ma-log-btn:hover { filter: none; background: var(--brand-soft); }
  .ma-log-box { width: 560px; max-width: 94vw; text-align: left; }
  .ma-log-body { max-height: 55vh; overflow-y: auto; font-size: 12.5px; margin: 8px 0 14px; }
  .ma-log-run { padding: 9px 0; border-bottom: 1px solid var(--border); }
  .ma-log-run:last-child { border-bottom: none; }
  .ma-log-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ma-log-line .dim { color: var(--text-dim); }
  .ma-pill-err { background: #fee2e2; color: #b91c1c; }
  .ma-log-err {
    margin-top: 5px; padding: 5px 8px;
    background: #fef2f2; border-radius: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; color: #b91c1c; word-break: break-all;
  }

  /* MAPicker — wiederverwendbare Mitarbeiter-Auswahl */
  .map-backdrop {
    position: fixed; inset: 0; z-index: 260;
    background: rgba(15,23,42,0.4); backdrop-filter: blur(2px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 12vh;
  }
  .map-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-md);
    width: 420px; max-width: 94vw;
    display: flex; flex-direction: column; max-height: 70vh;
  }
  .map-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
  .map-head h3 { margin: 0; font-size: 14px; }
  .map-x { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 6px; }
  .map-x:hover { background: var(--bg); color: var(--text); }
  .map-search { padding: 0 16px 10px; }
  .map-search input {
    width: 100%; box-sizing: border-box;
    padding: 9px 12px; border: 1px solid var(--border-strong);
    border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--text);
  }
  .map-list { overflow-y: auto; border-top: 1px solid var(--border); padding: 6px; }
  .map-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px; cursor: pointer;
  }
  .map-row:hover, .map-row.sel { background: var(--brand-soft); }
  .map-av {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg); color: var(--brand-dark);
    display: grid; place-items: center; font-weight: 700; font-size: 11px;
  }
  .map-who { display: flex; flex-direction: column; min-width: 0; }
  .map-who b { font-size: 13px; font-weight: 600; }
  .map-who small { font-size: 11px; color: var(--text-muted); }
  .map-empty { padding: 18px; text-align: center; color: var(--text-dim); font-size: 13px; }

  /* Lade-Spinner */
  .ma-spin { animation: ma-rot 1s linear infinite; }
  @keyframes ma-rot { to { transform: rotate(360deg); } }

  /* Anfahrt-Link neben Adressen */
  .ma-route {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; border-radius: 5px;
    color: var(--text-dim); vertical-align: middle; margin-left: 2px;
  }
  .ma-route svg { width: 12px; height: 12px; }
  .ma-route:hover { color: var(--brand-dark); background: var(--brand-soft); }

  /* QR-Modal (vCard) */
  .ma-qr-backdrop {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(15,23,42,0.4); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
  }
  .ma-qr-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-md);
    padding: 20px 24px; text-align: center; max-width: 320px;
  }
  .ma-qr-box h3 { margin: 0 0 14px; font-size: 15px; }
  .ma-qr-code { display: grid; place-items: center; min-height: 220px; }
  .ma-qr-code img, .ma-qr-code canvas { border: 8px solid #fff; border-radius: 6px; }
  .ma-qr-box .hint { font-size: 11px; color: var(--text-dim); margin: 10px 0 14px; }
  .ma-qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

  /* Demnächst-Karte (Geburtstage / Jubiläen) */
  .ma-upcoming { margin-bottom: 14px; }
  .ma-up-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .ma-up-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; font-weight: 500;
  }
  .ma-up-chip svg { width: 13px; height: 13px; color: var(--brand-dark); }

  /* Klickbare Kontaktwerte (tel:/mailto:) */
  .ma-link {
    color: inherit; text-decoration: none;
    border-bottom: 1px dotted var(--border-strong);
  }
  .ma-link:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }

  /* Copy-to-Clipboard (Stage 3e) */
  .ma-copy {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; padding: 0; margin-left: 4px;
    border: none; background: none; border-radius: 5px;
    color: var(--text-dim); cursor: pointer;
    opacity: 0; transition: opacity 0.12s, color 0.12s;
    vertical-align: middle;
  }
  .ma-copy svg { width: 12px; height: 12px; }
  .ma-kv .v:hover .ma-copy,
  .ma-card:hover h4 .ma-copy,
  .ma-prof-head:hover .ma-copy,
  .ma-copy:focus-visible { opacity: 1; }
  .ma-copy:hover { color: var(--brand-dark); background: var(--brand-soft); }
  .ma-copy.done { color: #16a34a; opacity: 1; }
  .ma-card h4 .ma-copy { margin-left: auto; }
  .ma-sync-now {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-sm);
    cursor: pointer;
    transition: filter 0.15s;
  }
  .ma-sync-now:hover { filter: brightness(1.1); }
  .ma-sync-now:disabled { opacity: 0.7; cursor: wait; }
  .ma-sync-now .icon { width: 13px; height: 13px; }
  .ma-rolebar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .ma-rolebar .lbl { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.03em; }
  .ma-roleseg { display:inline-flex; border:1px solid var(--border-strong); border-radius:8px; overflow:hidden; }
  .ma-roleseg button { padding:6px 11px; background:var(--surface); border:none; border-right:1px solid var(--border); color:var(--text-muted); font-size:12px; font-weight:600; }
  .ma-roleseg button:last-child { border-right:none; }
  .ma-roleseg button.active { background:var(--brand); color:#fff; }
  .ma-rolehint { font-size:11px; color:var(--text-dim); }

  .ma-toolbar { display:grid; grid-template-columns: 1fr auto auto auto auto; gap:10px; align-items:center; margin-bottom:14px; }
  .ma-search { display:flex; align-items:center; gap:8px; padding:8px 12px; background:var(--surface); border:1px solid var(--border-strong); border-radius:8px; }
  .ma-search .icon { width:15px; height:15px; color:var(--text-muted); }
  .ma-search input { border:none; outline:none; background:none; flex:1; font-size:13px; color:var(--text); }
  .ma-toolbar select { padding:8px 10px; border:1px solid var(--border-strong); border-radius:8px; font-size:13px; background:var(--surface); color:var(--text); }

  /* Zwei-Spalten-Layout: Liste | Profil */
  .ma-split { display:grid; grid-template-columns: minmax(300px, 380px) 1fr; gap:16px; align-items:start; }
  @media (max-width: 980px){ .ma-split { grid-template-columns: 1fr; } }

  .ma-list-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; max-height:74vh; display:flex; flex-direction:column; }
  .ma-list-head { padding:8px 14px; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-dim); font-weight:700; border-bottom:1px solid var(--border); background:var(--bg); display:flex; justify-content:space-between; }
  .ma-list-scroll { overflow:auto; }
  .ma-row { display:flex; align-items:center; gap:11px; padding:10px 14px; border-bottom:1px solid var(--border); cursor:pointer; }
  .ma-row:hover { background:var(--bg); }
  .ma-row.active { background:var(--brand-soft); }
  .ma-row .av { width:38px; height:38px; border-radius:50%; background:var(--brand-soft); color:var(--brand-dark); display:grid; place-items:center; font-weight:700; font-size:13px; flex-shrink:0; }
  .ma-row.inactive .av { background:var(--bg); color:var(--text-dim); }
  .ma-row .who { min-width:0; flex:1; }
  .ma-row .nm { font-weight:600; font-size:13px; display:flex; align-items:center; gap:6px; }
  .ma-row .sub { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ma-row .mailbtn { width:30px; height:30px; border-radius:7px; border:1px solid var(--border); background:var(--surface); display:grid; place-items:center; color:var(--text-muted); flex-shrink:0; }
  .ma-row .mailbtn:hover { color:var(--brand-dark); border-color:var(--brand); }
  .ma-tag { font-size:10px; font-weight:700; padding:1px 6px; border-radius:999px; }
  .ma-tag.temp { background:#fef3c7; color:#92400e; }
  .ma-tag.inact { background:var(--bg); color:var(--text-dim); border:1px solid var(--border-strong); }

  /* Profil-Pane */
  .ma-profile { display:flex; flex-direction:column; gap:14px; min-width:0; }
  .ma-prof-head { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:18px; display:flex; gap:16px; align-items:center; }
  .ma-prof-head .av { width:64px; height:64px; border-radius:50%; background:var(--brand-soft); color:var(--brand-dark); display:grid; place-items:center; font-weight:700; font-size:22px; flex-shrink:0; }
  .ma-prof-head h2 { margin:0; font-size:19px; }
  .ma-prof-head .meta { color:var(--text-muted); font-size:13px; margin-top:3px; }
  .ma-actions { display:flex; gap:8px; flex-wrap:wrap; }
  .ma-cards { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
  @media (max-width: 1280px){ .ma-cards { grid-template-columns: 1fr; } }
  .ma-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:14px 16px; }
  .ma-card h4 { margin:0 0 10px; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); font-weight:600; display:flex; align-items:center; gap:6px; }
  .ma-kv { display:grid; grid-template-columns: 116px 1fr; gap:7px 12px; font-size:13px; align-items:baseline; }
  .ma-kv .k { color:var(--text-muted); font-size:11px; text-transform:uppercase; letter-spacing:0.03em; }
  .ma-kv .v { color:var(--text); font-weight:500; }
  .ma-kv .v.dim { color:var(--text-dim); font-weight:400; font-style:italic; }
  .ma-override { font-size:10px; font-weight:700; padding:1px 6px; border-radius:999px; background:var(--brand-soft); color:var(--brand-dark); margin-left:6px; }

  .ma-locked { background:var(--surface); border:1px dashed var(--border-strong); border-radius:var(--radius); padding:16px; color:var(--text-muted); font-size:13px; display:flex; align-items:center; gap:10px; }
  .ma-locked .icon { width:18px; height:18px; color:var(--text-dim); }

  /* Bearbeiten-Form */
  .ma-form-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:18px; }
  .ma-form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:12px 18px; }
  @media (max-width: 760px){ .ma-form-grid { grid-template-columns: 1fr; } }
  .ma-fld { display:flex; flex-direction:column; gap:4px; }
  .ma-fld.span2 { grid-column: 1 / -1; }
  .ma-fld label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.03em; }
  .ma-fld input, .ma-fld select { padding:8px 10px; border:1px solid var(--border-strong); border-radius:6px; font-size:13px; background:var(--surface); color:var(--text); }
  .ma-fld .hint { font-size:11px; color:var(--text-dim); }
  .ma-form-sec { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); font-weight:700; margin:18px 0 8px; padding-bottom:5px; border-bottom:1px solid var(--border); }
  .ma-form-foot { display:flex; gap:8px; align-items:center; margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }
  .btn.danger { color:#b91c1c; border-color:#f3c2c2; }
  .btn.danger:hover { background:#fef2f2; }

  .ma-empty { background:var(--surface); border:1px dashed var(--border-strong); border-radius:var(--radius); padding:40px; text-align:center; color:var(--text-muted); }
  .ma-empty .icon { width:30px; height:30px; color:var(--text-dim); margin-bottom:8px; }
