/* ===================== Runde 2g: Anmeldung & Zugang (js/zugang.js) =====================
   Reiter «Anmeldung & Zugang», Kasten im Profil, Hinweis «Outlook erneuern». Ruhig, ohne Rot (Hinweise neutral bzw. in der Markenfarbe). */
.zg-panel .sub { max-width: 760px; }
.zg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.zg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 4px 3px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--flaeche-2); color: var(--text); font-size: 13px; font-family: var(--mono); }
.zg-chip-x { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.zg-chip-x:hover { background: var(--hover); color: var(--text); }
.zg-chip-x:focus-visible, .zg-chip-plus:focus-visible { outline: 2px solid var(--fokus); outline-offset: 1px; }
.zg-chip-x svg.i { width: 14px; height: 14px; }
.zg-chip-eigen { padding: 1px 8px; margin-right: 4px; border-radius: 999px; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 11px; color: var(--muted); background: var(--neu-bg); }
button.zg-chip-plus { padding: 3px 11px 3px 8px; cursor: pointer; border-style: dashed; color: var(--muted); }
button.zg-chip-plus:hover { color: var(--text); border-color: var(--ak-ln); }
.zg-chip-plus svg.i { width: 14px; height: 14px; }
.zg-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; max-width: 560px; }
.zg-add-feld { flex: 1 1 240px; }
.zg-add .btn { min-height: 38px; }
.zg-fehler { min-height: 0; margin: 6px 0 0; font-size: 13px; }
.zg-fehler:empty { display: none; }
body[data-mandant="med"] .zg-fehler { color: var(--ink); }
.zg-vorschlag { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.zg-einzug { margin: -6px 0 6px 26px; }
.zg-abstand { margin-top: 14px; }
.zg-notfall .check-line { margin: 6px 0; flex-wrap: wrap; }
.zg-tage { max-width: 320px; margin: 12px 0 8px; }
.zg-panel .btn.primary { margin-top: 12px; }
.zg-text { max-width: 760px; margin: 0 0 8px; line-height: 1.55; }
.zg-mehr { margin: 0 0 12px; }
.zg-mehr > summary { cursor: pointer; color: var(--muted); font-weight: 700; width: max-content; }
.zg-mehr > summary:hover { color: var(--text); }
.zg-mehr[open] > summary { margin-bottom: 8px; }
.zg-antraege { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.zg-antrag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--flaeche-2); }
.zg-antrag-wer { display: grid; gap: 2px; min-width: 0; }
.zg-antrag-wer b { overflow-wrap: anywhere; }
.zg-antrag-wer .small { overflow-wrap: anywhere; }
.zg-antrag-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.zg-alt .zg-antrag { background: none; }
.zg-leer { margin: 4px 0 0; }
.zg-ms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 4px 0 0; }
.zg-ms dt { color: var(--muted); }
.zg-ms dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.zg-ms dd svg.i { width: 15px; height: 15px; vertical-align: -2px; color: var(--green); }
.zg-ms code { font-family: var(--mono); font-size: 12.5px; }
/* Pop-up Freischalten */
.zg-pop-felder { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.zg-pop-knoepfe { justify-content: flex-end; gap: 8px; margin-top: 14px; }
.zg-pop .btn.primary { margin-top: 0; }

/* ---------- Profil: Kasten «Konto & System» ---------- */
.zg-profil { display: grid; gap: 6px; margin: 0 0 12px; }
.zg-zeile { display: flex; align-items: center; gap: 8px; margin: 0; overflow-wrap: anywhere; }
.zg-zeile svg.i { flex: none; width: 16px; height: 16px; color: var(--muted); }
.zg-status { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; background: var(--warn-bg); color: var(--warn-tx); border: 1px solid var(--warn-ln); }
.zg-pruefung { margin: 2px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.zg-pruefung svg.i { width: 15px; height: 15px; vertical-align: -2px; }
.zg-ok { background: var(--ok-bg); color: var(--ok-tx); border: 1px solid var(--ok-ln); }
.zg-nein { background: var(--neu-bg); color: var(--text); border: 1px solid var(--neu-ln); }
.zg-profil-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- Hinweis Outlook erneuern (unten rechts, ruhig) ---------- */
.zg-hinweis { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: flex; align-items: flex-start; gap: 10px; width: min(420px, calc(100vw - 32px));
  padding: 12px 10px 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--glas-voll); color: var(--text); box-shadow: var(--sch-2); }
.zg-hinweis-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ak-bg); color: var(--ink); }
.zg-hinweis-ic svg.i { width: 16px; height: 16px; }
.zg-hinweis-text { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; font-size: 13.5px; line-height: 1.45; }
.zg-hinweis-x { flex: none; }
@media (max-width: 700px) {
  .zg-pop-felder { grid-template-columns: minmax(0, 1fr); }
  .zg-ms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .zg-ms dd { margin-bottom: 8px; }
  .zg-hinweis { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.zg-hinweis-knopf { border-color: var(--ak-ln); }

/* ---------- Korrektur Runde 2g ---------- */
/* Reiter «Anmeldung & Zugang»: 14 px zwischen den Kästen wie in den anderen Reitern (#zugang-host ist ein div ohne Raster) */
#zugang-host { display: grid; gap: 14px; min-width: 0; }
/* Zugangsanträge: «Freischalten» und «Ablehnen» auf einer Linie, gleich hoch */
.zg-antrag .btn.primary { margin-top: 0; }
.zg-antrag-knoepfe { align-items: center; }
/* Profil: Abstand zwischen dem Block «Passwort ändern» und der Statuszeile */
.pw-aendern { margin-top: 8px; }
.pw-aendern + #profil-zugang { margin-top: 14px; }
/* E-Mail & Signatur: Stand «erneuern nötig» und Hinweis nach einer fehlgeschlagenen Outlook-Verbindung (ruhig, bleibt stehen) */
.ms-stand { margin: 0 0 8px; }
.ms-knoepfe { gap: 6px; flex-wrap: wrap; }
.ms-hinweis { margin: 10px 0 0; }
