/* Gestaltung W3a (öffentliche Einstiegsseiten): Anmeldung, Wartebildschirm, Fehlerseiten, Hilfe, Vertrauen. Nur Tokens aus app.css.
   Leitlinie: Text und Handlung zuerst, Szene klein daneben, linksbündig, Ziele mindestens 44 px, Fokus sichtbar. Bewegung: keine neue. */

/* ---------- Fehlerseiten und Sperrseiten in der Anwendung: Text und Handlung vor der Szene ---------- */
.ge-inshell { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 48px; align-items: start; margin-top: 32px; max-width: 880px; }
.ge-inshell .ge-text { min-width: 0; }
.ge-inshell .locked-lead { margin-top: 0; max-width: 56ch; font-size: 1.125rem; line-height: 1.55; overflow-wrap: anywhere; text-wrap: pretty; }
.ge-inshell .ma-auth-scene { justify-self: end; width: 100%; max-width: 260px; }
.ge-inshell .auth-action { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; }
.ge-inshell + .begl-buehne { margin-top: 32px; max-width: 880px; }

/* ---------- Öffentliche Fehlerseite und Wartebildschirm ---------- */
.ma-auth h1 { overflow-wrap: anywhere; }
.ma-auth .lead { overflow-wrap: anywhere; text-wrap: pretty; max-width: 46ch; }
.ma-auth .auth-action.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ma-auth .auth-steps { max-width: 46ch; padding-left: 1.25rem; line-height: 1.55; }
.ma-auth .auth-steps li + li { margin-top: 6px; }
.ma-auth-text .begl-buehne { margin-top: 28px; max-width: 46ch; }
.ma-auth .btn, .ge-inshell .btn { min-height: 44px; }
.ma-auth .btn:focus-visible, .ge-inshell .btn:focus-visible, .ma-auth a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.begl-buehne .begl-link { display: flex; width: fit-content; align-items: center; min-height: 44px; margin-top: 0; }

/* ---------- Anmeldung ---------- */
.ma-login .auth-notes li:first-child { color: var(--ink); font-weight: 600; }
.ma-login .auth-notes li { color: var(--muted); }
.ma-login .auth-notes li:first-child { color: var(--ink); }
.ma-login .auth-help a { text-underline-offset: 4px; }
.ma-login .lead { overflow-wrap: anywhere; }

/* ---------- Hilfe und Vertrauen ---------- */
.doc-help section, .doc-help .faq, .doc-vertrauen section { scroll-margin-top: 88px; }
.doc-help .faq:target summary, .doc-help .faq:target { color: var(--brand); }
.doc-help .faq p, .doc-help .doc-lead, .doc-vertrauen .doc-lead { text-wrap: pretty; overflow-wrap: anywhere; }
.doc-help h2, .doc-help h3, .doc-vertrauen h2, .doc-vertrauen h3 { text-wrap: balance; overflow-wrap: anywhere; }
.doc-help .doc-steps li { overflow-wrap: anywhere; }
.doc-help a:focus-visible, .doc-vertrauen a:focus-visible, .doc-help summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.doc-vertrauen .doc-toc { padding: 0; border: 0; background: none; border-top: 1px solid var(--rule); }
.doc-vertrauen .doc-toc ol { list-style: none; padding: 0; columns: 3; column-gap: 40px; }
.doc-vertrauen .doc-toc li { margin: 0; border-bottom: 1px solid var(--hairline); }
.doc-vertrauen .doc-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; text-decoration: none; color: var(--ink); }
.doc-vertrauen .doc-toc a:hover { color: var(--brand); text-decoration: underline; }
.doc-vertrauen .vt-table th, .doc-vertrauen .vt-table td { overflow-wrap: anywhere; }

/* ---------- Schmale Breiten ---------- */
@media (max-width: 960px) {
  .ge-inshell { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ge-inshell .ma-auth-scene { justify-self: start; max-width: 200px; }
  .doc-vertrauen .doc-toc ol { columns: 2; }
}
@media (max-width: 640px) {
  .ma-login .auth-help { text-align: left; }
  .ma-login .auth-action .btn-large { width: 100%; }
  .ma-auth .auth-action.actions .btn, .ge-inshell .auth-action .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .ge-inshell .ma-auth-scene { max-width: 140px; }
  .doc-vertrauen .doc-toc ol { columns: 1; }
  .begl-buehne .begl-link { min-height: 44px; }
}
