/* assets/auth/auth.css — Anmeldeseiten der Plattform (qk5.me)
 *
 * PORT der Website-Admin-Anmeldung (Repo how2be-site,
 * public/admin/assets/auth.css) — das ist der Massstab fuer das Look & Feel
 * aller Anmeldebereiche (User-Vorgabe 2026-10-03). Die Klassen heissen mit
 * Absicht gleich (h2a-*): so bleiben beide Dateien diffbar. Wer dort etwas
 * aendert, zieht es hier nach — und umgekehrt.
 *
 * Abweichungen gegenueber der Referenz, alle unten im Block „Plattform":
 *   - Akzent je Mandant (BRAND_COLOR, AuthBuehne::kopf setzt --accent); die
 *     abgeleiteten Toene rechnen darum per color-mix statt mit festem Farbton.
 *   - Schriften aus /enabler/fonts (gleiche Dateien wie /assets/site/fonts).
 *   - Organisationswahl (mandantenloser Login), Passwortstaerke, Textknopf.
 *
 * Gerahmt von groups/includes/AuthBuehne.php. Ohne JS bedienbar bis auf das
 * Absenden (die Module schicken JSON per fetch). prefers-reduced-motion:
 * keine Bewegung.
 */

@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/enabler/fonts/figtree-v9-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/enabler/fonts/figtree-v9-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/enabler/fonts/figtree-v9-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/enabler/fonts/figtree-v9-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('/enabler/fonts/figtree-v9-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 500; font-display: swap; src: url('/enabler/fonts/source-serif-4-v14-latin-500italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/enabler/fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2'); }

:root {
    color-scheme: light dark;
    --accent: #7030A0;                        /* je Mandant ueberschrieben (AuthBuehne::kopf) */
    --accent-ink: color-mix(in oklab, var(--accent) 78%, #000);
    --accent-soft: color-mix(in oklab, var(--accent) 12%, #fff);

    --bg: oklch(98.4% 0.003 85);
    --bg-glow: color-mix(in oklab, color-mix(in oklab, var(--accent) 24%, #fff) 55%, transparent);
    --bg-glow-2: oklch(90% 0.05 210 / 0.45);
    --surface: #fff;
    --surface-2: oklch(98.2% 0.003 85);
    --text: oklch(18% 0.018 285);
    --text-2: oklch(45% 0.010 285);
    --text-3: oklch(60% 0.008 285);
    --border: oklch(90.5% 0.005 285);
    --border-strong: oklch(84% 0.007 285);
    --ring: color-mix(in oklab, var(--accent) 18%, transparent);
    --shadow-card:
        0 0 0 1px oklch(18% 0.02 285 / 0.04),
        0 1px 2px oklch(18% 0.02 285 / 0.04),
        0 8px 24px -8px color-mix(in oklab, var(--accent) 10%, transparent),
        0 32px 64px -32px color-mix(in oklab, var(--accent) 18%, transparent);
    --danger-bg: oklch(97% 0.02 25);
    --danger-line: oklch(87% 0.06 25);
    --danger-text: oklch(45% 0.15 25);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent-ink: color-mix(in oklab, var(--accent) 45%, #fff);
        --accent-soft: color-mix(in oklab, var(--accent) 35%, oklch(18% 0.014 290));
        --bg: oklch(14.5% 0.012 290);
        --bg-glow: color-mix(in oklab, var(--accent) 35%, transparent);
        --bg-glow-2: oklch(45% 0.08 210 / 0.22);
        --surface: oklch(18.5% 0.014 290);
        --surface-2: oklch(16.5% 0.012 290);
        --text: oklch(96% 0.004 85);
        --text-2: oklch(74% 0.012 290);
        --text-3: oklch(58% 0.012 290);
        --border: oklch(27% 0.014 290);
        --border-strong: oklch(34% 0.016 290);
        --ring: color-mix(in oklab, var(--accent) 40%, transparent);
        --shadow-card:
            0 0 0 1px oklch(100% 0 0 / 0.06),
            0 1px 0 oklch(100% 0 0 / 0.05) inset,
            0 24px 60px -24px oklch(0% 0 0 / 0.6);
        --danger-bg: oklch(25% 0.05 25);
        --danger-line: oklch(38% 0.09 25);
        --danger-text: oklch(82% 0.09 25);
    }
}

*, *::before, *::after { box-sizing: border-box; }

body.h2a {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Figtree', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.h2a ::selection { background: var(--accent-soft); color: var(--text); }

/* ── Grund: Verlauf + Punktraster ────────────────────────────────────── */

.h2a-grund {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Zwei weiche Lichtflecken hinter der Karte, kaum merklich atmend. */
.h2a-grund::before,
.h2a-grund::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}
.h2a-grund::before {
    width: 640px; height: 420px;
    margin: -260px 0 0 -420px;
    background: var(--bg-glow);
    animation: h2a-atem-a 16s ease-in-out infinite alternate;
}
.h2a-grund::after {
    width: 520px; height: 380px;
    margin: -120px 0 0 -40px;
    background: var(--bg-glow-2);
    animation: h2a-atem-b 19s ease-in-out infinite alternate;
}
@keyframes h2a-atem-a { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes h2a-atem-b { to { transform: translate(-50px, -20px) scale(0.94); } }

#h2a-feld {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
    /* Raster blendet zum Rand hin aus — der Blick bleibt in der Mitte. */
    -webkit-mask-image: radial-gradient(ellipse 60% 65% at 50% 48%, #000 15%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 65% at 50% 48%, #000 15%, transparent 80%);
}
#h2a-feld.is-live { opacity: 1; }

/* ── Spalte ─────────────────────────────────────────────────────────── */

.h2a-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 32px;
    transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}

body.h2a.is-leaving .h2a-shell { opacity: 0; transform: scale(0.98); filter: blur(8px); }

.h2a-col { width: 100%; max-width: 400px; }

/* Marke: Monogramm + Wortmarke + Bereich */
.h2a-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--text);
    text-decoration: none;
}
.h2a-mark:hover { color: var(--text); }

.h2a-mono {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: -0.03em;
    box-shadow: 0 0 0 1px oklch(0% 0 0 / 0.06), 0 6px 16px -6px color-mix(in oklab, var(--accent) 70%, transparent);
}
.h2a-mono::before {
    content: '';
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    border: 1px solid oklch(100% 0 0 / 0.28);
}

.h2a-wort {
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.035em;
    line-height: 1;
}
.h2a-wort span { color: var(--text-3); font-weight: 600; }

.h2a-bereich {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-2);
    padding: 3px 8px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface) 70%, transparent);
    line-height: 1.3;
}

/* ── Karte ──────────────────────────────────────────────────────────── */

.h2a-card {
    --mx: 50%;
    --my: -30%;
    position: relative;
    padding: 32px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

/* Lichtkante: ein 1px-Rand, der dem Zeiger folgt, sobald er in der Naehe ist. */
.h2a-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 70%, transparent), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.h2a-card.is-nah::before { opacity: 1; }

.h2a-card h1 {
    font-family: 'Figtree', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 6px;
    color: var(--text);
}

.h2a-card p.lead-sm { color: var(--text-2); font-size: 0.9rem; margin: 0 0 24px; }

/* ── Felder ─────────────────────────────────────────────────────────── */

.h2a-feld { margin-bottom: 16px; }
.h2a-feld-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.h2a-feld label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}
.h2a-feld > label { margin-bottom: 6px; }
.h2a-feld-kopf a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s;
}
.h2a-feld-kopf a:hover { color: var(--accent-ink); }
.h2a-feld-kopf a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.h2a-eingabe { position: relative; }

.h2a-eingabe input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px oklch(18% 0.02 285 / 0.04);
    transition: border-color 0.15s, box-shadow 0.2s var(--ease-out), background 0.15s;
}
.h2a-eingabe input::placeholder { color: var(--text-3); }
.h2a-eingabe input:hover { border-color: color-mix(in oklab, var(--border-strong) 70%, var(--text-2)); }
.h2a-eingabe input:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--ring);
}

.h2a-eingabe input:-webkit-autofill,
.h2a-eingabe input:-webkit-autofill:hover,
.h2a-eingabe input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    caret-color: var(--text);
    transition: background-color 9999s;
}

.h2a-eingabe.mit-auge input { padding-right: 42px; }

.h2a-auge {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.15s, background 0.15s;
}
.h2a-auge:hover { color: var(--text); background: color-mix(in oklab, var(--text) 6%, transparent); }
.h2a-auge:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.h2a-auge[aria-pressed="true"] { color: var(--accent-ink); }

.h2a-card.hat-fehler .h2a-eingabe input:not(:focus) { border-color: var(--danger-line); }

.h2a-caps {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: oklch(58% 0.13 70);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s, max-height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}
.h2a-caps.is-on { opacity: 1; max-height: 1.6rem; margin: -8px 0 12px; }

/* TOTP: ein Feld, Ziffern in Mono, grosszuegig gesperrt */
.h2a-eingabe.h2a-code input {
    height: 56px;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    font-variant-numeric: tabular-nums;
}
.h2a-eingabe.h2a-code input::placeholder { color: var(--border-strong); }
.h2a-hinweis { font-size: 0.8rem; color: var(--text-3); margin: 8px 0 0; text-align: center; }

/* ── Knoepfe ────────────────────────────────────────────────────────── */

.h2a-card .btn-primary,
.h2a-btn {
    position: relative;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 88%, #fff), var(--accent));
    box-shadow:
        0 1px 0 oklch(100% 0 0 / 0.18) inset,
        0 0 0 1px color-mix(in oklab, var(--accent) 80%, #000),
        0 4px 12px -4px color-mix(in oklab, var(--accent) 60%, transparent);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}
.h2a-card .btn-primary:hover, .h2a-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 oklch(100% 0 0 / 0.22) inset,
        0 0 0 1px color-mix(in oklab, var(--accent) 80%, #000),
        0 8px 20px -6px color-mix(in oklab, var(--accent) 70%, transparent);
}
.h2a-card .btn-primary:active, .h2a-btn:active { transform: scale(0.985); }
.h2a-card .btn-primary:focus-visible, .h2a-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h2a-btn .bi { font-size: 0.9em; transition: transform 0.3s var(--ease-spring); }
.h2a-btn:hover .bi { transform: translateX(3px); }

/* Laden: Text weicht drei Punkten, der Knopf behaelt seine Groesse. */
.h2a-btn .h2a-punkte { display: none; gap: 4px; }
.h2a-btn .h2a-punkte i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: h2a-punkt 1s ease-in-out infinite; }
.h2a-btn .h2a-punkte i:nth-child(2) { animation-delay: 0.15s; }
.h2a-btn .h2a-punkte i:nth-child(3) { animation-delay: 0.3s; }
.h2a-btn.is-loading { cursor: progress; pointer-events: none; }
.h2a-btn.is-loading > :not(.h2a-punkte) { display: none; }
.h2a-btn.is-loading .h2a-punkte { display: inline-flex; }
@keyframes h2a-punkt { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.h2a-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-2);
}
.h2a-links a { color: var(--text-2); font-weight: 500; text-decoration: none; transition: color 0.15s; }
.h2a-links a:hover { color: var(--accent-ink); }
.h2a-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── Meldungen (Templates + Layout::mitteilungen, Bootstrap-Klassen) ── */

.h2a-card .alert {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 10px 12px;
    margin: 0 0 18px;
    animation: h2a-drop 0.4s var(--ease-out);
}
.h2a-card .alert::before { font-family: 'bootstrap-icons'; line-height: 1.45; flex: 0 0 auto; }
.h2a-card .alert-danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-text); }
.h2a-card .alert-danger::before { content: '\F332'; }
.h2a-card .alert-success { border-color: color-mix(in oklab, oklch(65% 0.12 160) 40%, var(--border)); color: color-mix(in oklab, oklch(50% 0.11 160) 80%, var(--text)); }
.h2a-card .alert-success::before { content: '\F26A'; }
.h2a-card .alert-info { border-color: color-mix(in oklab, var(--accent) 25%, var(--border)); }
.h2a-card .alert-info::before { content: '\F430'; color: var(--accent-ink); }
.h2a-card .alert-warning { border-color: color-mix(in oklab, oklch(75% 0.12 80) 45%, var(--border)); }
.h2a-card .alert-warning::before { content: '\F33A'; color: oklch(65% 0.13 70); }

@keyframes h2a-drop { from { opacity: 0; transform: translateY(-4px); } }

.h2a-card.is-shake { animation: h2a-shake 0.45s var(--ease-out); }
@keyframes h2a-shake {
    15% { transform: translateX(-7px); }
    35% { transform: translateX(6px); }
    55% { transform: translateX(-3px); }
    75% { transform: translateX(2px); }
}

/* Erfolg: Kreis und Haken zeichnen sich. */
.h2a-success {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border-radius: inherit;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    z-index: 3;
    text-align: center;
}
.h2a-success svg { width: 56px; height: 56px; }
.h2a-success circle { stroke: var(--accent); stroke-dasharray: 214; stroke-dashoffset: 214; }
.h2a-success path { stroke: var(--accent); stroke-dasharray: 48; stroke-dashoffset: 48; }
.h2a-success p { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.h2a-card.is-success .h2a-success { opacity: 1; pointer-events: auto; }
.h2a-card.is-success .h2a-success circle { animation: h2a-draw 0.6s var(--ease-out) forwards; }
.h2a-card.is-success .h2a-success path { animation: h2a-draw 0.35s 0.4s var(--ease-out) forwards; }
@keyframes h2a-draw { to { stroke-dashoffset: 0; } }

/* ── Fuss ───────────────────────────────────────────────────────────── */

.h2a-foot {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.76rem;
    color: var(--text-3);
}
.h2a-foot span { display: inline-flex; align-items: center; gap: 5px; }
.h2a-foot a { color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.h2a-foot a:hover { color: var(--text); }

/* ── Einstieg ───────────────────────────────────────────────────────── */

[data-rise] { animation: h2a-rise 0.7s var(--ease-out) backwards; }
[data-rise="1"] { animation-delay: 0.05s; }
[data-rise="2"] { animation-delay: 0.14s; }
[data-rise="3"] { animation-delay: 0.3s; }

@keyframes h2a-rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* Schrittwechsel ohne Neuladen (Passwort → Code) */
.h2a-step-in > * { animation: h2a-rise 0.45s var(--ease-out) backwards; }
.h2a-step-in > :nth-child(2) { animation-delay: 40ms; }
.h2a-step-in > :nth-child(3) { animation-delay: 80ms; }
.h2a-step-in > :nth-child(n+4) { animation-delay: 120ms; }

/* ── Schmal ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .h2a-shell { justify-content: flex-start; padding-top: 56px; }
    .h2a-card { padding: 24px 20px; }
    .h2a-mark { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Nur fuer Screenreader */
.h2a-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ════════════════════════════════════════════════════════════════════
 * Plattform — was die Referenz nicht hat
 * ════════════════════════════════════════════════════════════════════ */

/* Marke: Mandanten-Logo statt Monogramm+Wortmarke */
.h2a-mono svg { width: 17px; height: 17px; }
.h2a-logo { display: block; height: 32px; width: auto; max-width: 180px; object-fit: contain; }

/* [hidden] muss gegen display:flex/grid der Bausteine gewinnen. */
.h2a [hidden] { display: none !important; }

/* Rueckmeldung, die per JS erscheint, steht leer nicht im Fluss. */
.h2a-card .alert:empty { display: none; }

/* Textknopf (Passwort vergessen, Zurueck) — sieht aus wie .h2a-links a */
.h2a-textknopf {
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}
.h2a-feld-kopf .h2a-textknopf { font-size: 0.8rem; }
.h2a-textknopf:hover { color: var(--accent-ink); }
.h2a-textknopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.h2a-textknopf .bi { font-size: 0.9em; }

.h2a-card p.lead-sm strong { color: var(--text); font-weight: 600; }

/* Passwortstaerke unter dem Feld */
.h2a-staerke { margin: -8px 0 16px; }
.h2a-staerke-balken {
    height: 3px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
}
.h2a-staerke-balken i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--text-3);
    transition: width 0.3s var(--ease-out), background 0.3s;
}
.h2a-staerke-text { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--text-3); }
.h2a-staerke[data-stufe="1"] i { background: oklch(62% 0.19 25); }
.h2a-staerke[data-stufe="2"] i { background: oklch(72% 0.15 70); }
.h2a-staerke[data-stufe="3"] i,
.h2a-staerke[data-stufe="4"] i { background: oklch(62% 0.13 160); }

/* Organisationswahl (mandantenloser Login, mehrere Konten) */
.h2a-mandanten { display: grid; gap: 8px; }
.h2a-mandant {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    text-align: left;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.2s var(--ease-out);
    animation: h2a-rise 0.45s var(--ease-out) backwards;
}
.h2a-mandant:nth-child(2) { animation-delay: 40ms; }
.h2a-mandant:nth-child(3) { animation-delay: 80ms; }
.h2a-mandant:nth-child(n+4) { animation-delay: 120ms; }
.h2a-mandant:hover { background: var(--surface); border-color: color-mix(in oklab, var(--accent) 45%, var(--border-strong)); }
.h2a-mandant:focus-visible { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.h2a-mandant:disabled { opacity: 0.55; cursor: progress; }
.h2a-mandant-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}
.h2a-mandant-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.h2a-mandant-name { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.h2a-mandant-ident { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.74rem; color: var(--text-3); }
.h2a-mandant .bi { margin-left: auto; color: var(--text-3); transition: transform 0.3s var(--ease-spring), color 0.15s; }
.h2a-mandant:hover .bi { color: var(--accent-ink); transform: translateX(3px); }
