/* Anmeldung im Soul-M8-Design (11.10.2026): Nachtblau, Eisblau-Akzent, Glas – für User und Admin */
:root { --bg: #050a13; --text: #d6e4f2; --hell: #eef6ff; --grau: #7d92aa; --akzent: #4aaef5; --rot: #ff8a96;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.login-seite { min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-y: auto;  /* scrollt nur, wenn die Karte wirklich nicht passt */
  background: radial-gradient(1000px 620px at 50% -10%, #0c1d36 0%, transparent 65%), radial-gradient(700px 500px at 50% 120%, #071628 0%, transparent 60%), var(--bg); }
.aurora { position: fixed; inset: 0; pointer-events: none; filter: blur(90px); opacity: .32; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 52vw; height: 52vw; left: -14vw; top: -26vw; background: radial-gradient(closest-side, rgba(92, 200, 255, .55), transparent 70%); animation: t1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 46vw; height: 46vw; right: -12vw; top: -18vw; background: radial-gradient(closest-side, rgba(40, 110, 230, .45), transparent 70%); animation: t2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 40vw; height: 40vw; left: 30vw; bottom: -24vw; background: radial-gradient(closest-side, rgba(120, 180, 255, .28), transparent 70%); animation: t1 38s ease-in-out infinite alternate-reverse; }
@keyframes t1 { to { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes t2 { to { transform: translate(-6vw, 8vh) scale(1.08); } }
.gitter { position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(120, 190, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 190, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); mask: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); }

.login-buehne { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
/* Sprachwahl oben rechts (20.10.2026; seit 21.10.2026 acht Sprachen als Dropdown aus sprachwahl.js – hier nur Lage und Knopf,
   damit der Knopf schon vor dem Skript fertig aussieht) */
.login-sprachen { position: fixed; z-index: 5; top: calc(14px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); }
.login-sprachen .sm8-sw { position: relative; display: inline-flex; }
.login-sprachen .sm8-sw-knopf { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(170, 205, 240, .16); background: rgba(3, 8, 16, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); font: 650 12.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.login-sprachen .sm8-sw-knopf:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
@media (hover: hover) { .login-sprachen .sm8-sw-knopf:hover { color: var(--hell); border-color: rgba(169, 220, 255, .42); } }
@media (pointer: coarse) { .login-sprachen .sm8-sw-knopf { height: 40px; } }
/* Zurück oben links (05.12.2026, Wunsch des Users): Gegenstück zur Sprachwahl oben rechts – gleiche Höhe, gleiches Glas */
.login-zurueck { position: fixed; z-index: 5; top: calc(14px + env(safe-area-inset-top)); left: calc(14px + env(safe-area-inset-left));
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 9px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(170, 205, 240, .16); background: rgba(3, 8, 16, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); font: 650 13px/1 var(--sans); white-space: nowrap; max-width: calc(100vw - 140px); -webkit-tap-highlight-color: transparent;
  transition: color .2s, border-color .2s, background .2s; }
.login-zurueck svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.login-zurueck span { overflow: hidden; text-overflow: ellipsis; }
.login-zurueck:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
@media (hover: hover) { .login-zurueck:hover { color: var(--hell); border-color: rgba(169, 220, 255, .42); background: rgba(10, 22, 38, .7); }
  .login-zurueck:hover svg { transform: translateX(-2px); } }
@media (pointer: coarse) { .login-zurueck { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .login-zurueck, .login-zurueck svg { transition: none; } }
@keyframes raus { to { opacity: 0; transform: translateY(6px) scale(.99); } }
body.sprache-wechselt .login, body.sprache-wechselt .app-install { animation: raus .17s ease forwards; }
.sprache-lader { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--hell); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .2s ease; pointer-events: none;
  background: radial-gradient(700px 500px at 50% 40%, rgba(12, 29, 54, .92), rgba(5, 10, 19, .97));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sprache-lader.an { opacity: 1; pointer-events: auto; }  /* während des Wechsels nichts antippbar */
.sprache-lader i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(74, 174, 245, .18); border-top-color: var(--akzent);
  animation: sl-dreh .8s linear infinite; }
@keyframes sl-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sprache-lader i { animation: none; } }
.login { width: 100%; max-width: 380px; display: grid; gap: 8px; padding: 34px 32px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012) 40%, rgba(255, 255, 255, 0)), rgba(9, 17, 30, .7);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid rgba(170, 205, 240, .14);
  box-shadow: 0 40px 100px rgba(0, 3, 10, .6), inset 0 1px 0 rgba(255, 255, 255, .08); animation: rein .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rein { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.login-logo { display: grid; justify-items: stretch; gap: 4px; width: min(325px, 100%); min-width: 0; margin: 0 auto 6px; }
.login-logo img { height: 44px; width: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 22px rgba(60, 150, 255, .35)); }
.login-logo small { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .6em; padding-left: .6em; text-transform: uppercase; color: #9fc6ea; }
.login-logo small::before, .login-logo small::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 180, 235, .7)); }
.login-logo small::after { background: linear-gradient(90deg, rgba(120, 180, 235, .7), transparent); }
.login-titel { display: flex; justify-content: center; min-height: 6px; margin-bottom: 10px; }
.login-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--akzent); padding: 3px 10px;
  border-radius: 999px; border: 1px solid rgba(74, 174, 245, .35); background: rgba(74, 174, 245, .1); }
.login label { margin-top: 6px; color: var(--grau); font-size: 12.5px; font-weight: 600; }
.login input { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--hell); background: rgba(3, 8, 16, .6);
  border: 1px solid rgba(170, 205, 240, .16); border-radius: 12px; transition: border-color .18s, box-shadow .18s; }
.login input:focus { outline: none; border-color: rgba(74, 174, 245, .75); box-shadow: 0 0 0 3px rgba(74, 174, 245, .18); }
/* Felder bleiben dunkel, auch wenn der Browser sie automatisch ausfüllt (Wunsch des Users 11.10.2026) */
.login input:-webkit-autofill, .login input:-webkit-autofill:hover, .login input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--hell); -webkit-box-shadow: 0 0 0 1000px #07111f inset; caret-color: var(--hell); transition: background-color 9999s; }
.login button { margin-top: 16px; padding: 12px; border: 1px solid rgba(160, 215, 255, .5); border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #04162b; background: linear-gradient(180deg, #6cc0fa, #3a9be6);
  box-shadow: 0 10px 28px rgba(40, 140, 230, .3), inset 0 1px 0 rgba(255, 255, 255, .35); transition: filter .18s, transform .12s; }
.login button:hover { filter: brightness(1.08); }
.login button:active { transform: translateY(1px); }
/* Schneller Login (15.11.2026): ausgefüllte Felder melden sich per 1-ms-Animation (login_schnell.js meldet dann sofort an),
   der Knopf zeigt ab dem Absenden einen Ladekreis – kein Warten ohne Rückmeldung */
@keyframes sm8-ausgefuellt { from { opacity: 1; } to { opacity: 1; } }
.login input:-webkit-autofill { animation: sm8-ausgefuellt 1ms; }
.login button.laedt { position: relative; color: transparent; pointer-events: none; filter: none; }
.login button.laedt::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2.5px solid rgba(4, 22, 43, .22); border-top-color: #04162b; animation: sl-dreh .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .login button.laedt::after { animation-duration: 1.6s; } }
/* Selbst-Registrierung (20.10.2026): zweiter, leiser Knopf unter der Anmeldung */
.login-neu { display: grid; gap: 8px; margin-top: 4px; }
.login-neu span { display: flex; align-items: center; gap: 10px; color: var(--grau); font-size: 12.5px; }
.login-neu span::before, .login-neu span::after { content: ""; flex: 1; height: 1px; background: rgba(170, 205, 240, .14); }
.login-zweit { display: block; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(170, 205, 240, .22); background: rgba(3, 8, 16, .45);
  color: var(--hell); font-weight: 700; font-size: 14.5px; text-align: center; text-decoration: none; transition: border-color .18s, background .18s; }
.login-zweit:hover { border-color: rgba(74, 174, 245, .6); background: rgba(74, 174, 245, .1); }
.login-zweit:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
.meldung { min-height: 1.2em; margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--rot); }
.meldung.ok { color: #7fe0b0; }
/* Passwort vergessen (20.10.2026): kleiner Link rechts unter dem Passwort-Feld */
.login-vergessen { justify-self: end; margin-top: -2px; color: #9fd8ff; font-size: 12.5px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(159, 216, 255, .3); line-height: 1.5; }
.login-vergessen:hover { color: var(--hell); border-color: var(--hell); }
.login-vergessen:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; border-radius: 3px; }
.login-2fa-kopf { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 8px;
  padding: 14px; border: 1px solid rgba(94, 190, 248, .24); border-radius: 8px; background: rgba(74, 174, 245, .07); }
.login-2fa-kopf > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #bfe7ff;
  background: rgba(74, 174, 245, .14); border: 1px solid rgba(94, 190, 248, .24); }
.login-2fa-kopf b { display: block; color: var(--hell); font-size: 15px; }
.login-2fa-kopf p { margin: 5px 0 0; color: var(--grau); font-size: 12.5px; line-height: 1.5; }
#code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  /* Nie scrollen (Wunsch des Users 20.10.2026): html/body nur 100 %, die Bühne bekommt die sichtbare Höhe (abgerundet in pwa.js);
     passt der Inhalt einmal nicht (kleine Handys quer), scrollt nur die Bühne – sonst unterbindet sprachwahl.js das Federn von iOS. */
  html, body.login-seite { width: 100%; height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  body.login-seite { position: fixed; inset: 0; }
  .login-buehne { position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 100dvh; height: var(--login-vh, 100dvh); min-height: 0; align-content: center; justify-items: center;
    gap: clamp(6px, 1.2dvh, 10px); padding: calc(54px + env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom));
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .login { max-width: 430px; gap: clamp(5px, 1dvh, 8px); padding: clamp(14px, 3dvh, 24px) 20px clamp(12px, 2.4dvh, 18px); border-radius: 18px; }
  .login-logo { margin-bottom: clamp(0px, .8dvh, 4px); }
  .login-logo img { height: clamp(34px, 6dvh, 39px); }
  .login-titel { margin-bottom: clamp(0px, .7dvh, 5px); }
  .login label { margin-top: clamp(2px, .8dvh, 6px); }
  .login input { padding: clamp(9px, 1.7dvh, 11px) 13px; }
  .login button { margin-top: clamp(6px, 1.8dvh, 12px); padding-block: clamp(9px, 1.7dvh, 12px); }
  .meldung { margin-top: 2px; }
  .meldung:empty { min-height: 0; margin: 0; }
  .login-neu { gap: clamp(4px, .9dvh, 8px); margin-top: 2px; }
  .login-zweit { padding-block: clamp(8px, 1.6dvh, 11px); }
  body.tastatur-offen .app-install { display: none !important; }
  body.install-hinweis-aktiv.tastatur-offen .login-buehne { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px), (max-height: 700px) {
  .login-buehne { gap: 8px; padding-top: 8px; }
  .login { padding: 15px 16px 11px; }
  .login-logo { margin-bottom: 1px; }
  .login-logo img { height: 34px; }
  .login-logo small { font-size: 8px; }
  .login button { margin-top: 6px; }
}
@media (max-width: 860px) and (max-height: 520px) {
  .login-buehne { gap: 3px; padding-top: 4px; }
  .login { max-width: 390px; gap: 2px; padding: 8px 14px 7px; }
  .login-logo { gap: 1px; margin-bottom: 0; }
  .login-logo img { height: 28px; }
  .login-logo small, .login-titel { display: none; }
  .login label { margin-top: 1px; font-size: 11px; }
  .login input { padding: 7px 10px; font-size: 14px; }
  .login button { margin-top: 3px; padding: 7px 10px; }
  .meldung { font-size: 11px; }
  .login-neu span { display: none; }
  .login-zweit { padding: 6px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .login, .app-install-pfeil { animation: none; } }

/* Handy/Tablet (20.10.2026, Funde des Users am iPhone): Felder mit 16 px – iOS zoomt sonst beim Antippen und die Seite wird scrollbar;
   oben Platz für die Sprachwahl, auch in den kompakten Varianten darüber */
@media (max-width: 860px) {
  .login input { font-size: 16px !important; }
  .login-buehne { padding-top: calc(52px + env(safe-area-inset-top)) !important; }
}

/* ---------------------------------------------------------------- App-Hinweis (21.10.2026, Wunsch des Users: „klarer, auffälliger, zugehörig“)
   Eine Karte statt kleiner Box + losem Hinweis: App-Symbol, Titel, Nutzen; am iPhone sitzt sie unten über der Safari-Leiste und zeigt
   mit Spitze und Pfeil genau auf den Teilen-Knopf, die Schritte sind nummeriert (mit dem Teilen-Symbol im Text). */
.app-install { position: relative; width: 100%; max-width: 430px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(120, 200, 255, .34); background: linear-gradient(180deg, rgba(20, 48, 80, .94), rgb(10, 25, 44));
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .75), 0 0 36px -12px rgba(74, 174, 245, .5), inset 0 1px 0 rgba(255, 255, 255, .07); }
.app-install-kopf { display: flex; align-items: center; gap: 12px; }
.app-install-icon { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.app-install-text { min-width: 0; }
.app-install h2 { margin: 0; color: #eef7ff; font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: 0; }
.app-install-text p { margin: 2px 0 0; color: #9fbad3; font-size: 12.5px; line-height: 1.35; }
.app-install-schritte { list-style: none; display: flex; gap: 8px; margin: 11px 0 0; padding: 0; }
.app-install-schritte li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 10px;
  color: #dcecfb; font-size: 12px; font-weight: 650; line-height: 1.2; background: rgba(74, 174, 245, .1); border: 1px solid rgba(120, 200, 255, .2); }
.app-install-schritte li span { min-width: 0; }
.app-install-schritte b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800;
  color: #04162b; background: linear-gradient(180deg, #8fd3ff, #4aa8ec); }
.app-install-teilen { flex: none; width: 19px; height: 19px; color: #8fd3ff; }
.app-install-pfeil { display: none; }
.app-install-knopf { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 11px 0 0; padding: 10px 14px;
  border: 1px solid rgba(160, 215, 255, .5); border-radius: 11px; color: #04162b; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, #8fd3ff, #4aa8ec); box-shadow: 0 10px 24px -10px rgba(40, 140, 230, .7); }
.app-install-knopf svg { width: 18px; height: 18px; }
.app-install-ersatz { margin: 9px 0 0; color: #9fbad3; font-size: 11.5px; line-height: 1.4; }

/* iPhone: unten über der Safari-Leiste, Spitze + Pfeil zeigen auf den Teilen-Knopf */
body.install-ios .app-install { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); width: min(430px, calc(100% - 28px));
  bottom: calc(max(4px, env(safe-area-inset-bottom)) + 30px); }
body.install-ios .app-install::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 15px; height: 15px; transform: translateX(-50%) rotate(45deg);
  background: rgb(10, 25, 44); border-right: 1px solid rgba(120, 200, 255, .34); border-bottom: 1px solid rgba(120, 200, 255, .34); border-bottom-right-radius: 3px; }
body.install-ios .app-install-pfeil { position: absolute; left: 50%; bottom: -31px; display: grid; width: 22px; height: 22px; color: #8fd3ff;
  transform: translateX(-50%); filter: drop-shadow(0 3px 8px rgba(51, 170, 248, .55)); animation: ai-pfeil 1.4s ease-in-out infinite; }
body.install-ios .app-install-pfeil svg { width: 22px; height: 22px; }
@keyframes ai-pfeil { 50% { transform: translate(-50%, 4px); opacity: .75; } }
@media (max-width: 860px) {
  body.install-ios .login-buehne { padding-bottom: calc(max(4px, env(safe-area-inset-bottom)) + 168px); }
  body.tastatur-offen .app-install { display: none !important; }
  body.install-ios.tastatur-offen .login-buehne { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
/* kleine iPhones: Karte kompakter, damit das Login nie scrollen muss */
@media (max-width: 860px) and (max-height: 640px) {
  .app-install { padding: 9px 11px; }
  .app-install-icon { width: 34px; height: 34px; border-radius: 9px; }
  .app-install h2 { font-size: 13.5px; }
  .app-install-text p { display: none; }
  .app-install-schritte { margin-top: 8px; }
  .app-install-schritte li { padding: 6px 8px; font-size: 11.5px; }
  body.install-ios .login-buehne { padding-bottom: calc(max(4px, env(safe-area-inset-bottom)) + 132px); }
}
/* sehr kleine iPhones (SE): noch flacher */
@media (max-width: 860px) and (max-height: 600px) {
  .app-install { padding: 8px 10px; }
  .app-install-kopf { gap: 9px; }
  .app-install-icon { width: 26px; height: 26px; border-radius: 7px; }
  .app-install h2 { font-size: 13px; }
  .app-install-schritte { gap: 6px; margin-top: 7px; }
  .app-install-schritte li { gap: 5px; padding: 5px 7px; font-size: 11px; }
  .app-install-schritte b { width: 18px; height: 18px; font-size: 10px; }
  body.install-ios .login-buehne { padding-bottom: calc(max(4px, env(safe-area-inset-bottom)) + 120px); }
}
/* Handy quer: kein Platz für die Karte */
@media (max-width: 860px) and (max-height: 520px) {
  .app-install { display: none !important; }
  body.install-ios .login-buehne { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- Zwei-Faktor-Schritt (04.12.2026, Wunsch des Users: „viel moderner und
   professioneller“). Schild statt Emoji, sechs Kästchen über EINEM echten Feld (login_schnell.js schaltet sie ein: Autofill von
   Passwort-Apps und Einfügen gehen nativ), Zeit bis zum nächsten Code, Wechsel zum Wiederherstellungscode, Weg zurück. */
body.ist-2fa .login { max-width: 404px; padding-top: 30px; }
body.ist-2fa .login-logo { width: min(210px, 64%); margin-bottom: 0; }
body.ist-2fa .login-logo img { height: 32px; }
body.ist-2fa .login-titel { display: none; }
.zf-kopf { display: grid; justify-items: center; gap: 7px; margin: 34px 0 8px; text-align: center; }
.zf-emblem { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 9px; border-radius: 19px; color: #c7ecff;
  background: radial-gradient(120% 120% at 50% 0%, rgba(108, 192, 250, .34), rgba(12, 30, 54, .94) 62%);
  border: 1px solid rgba(132, 206, 255, .42);
  box-shadow: 0 18px 40px -12px rgba(24, 120, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -10px 18px rgba(3, 10, 22, .45); }
.zf-emblem::before { content: ""; position: absolute; inset: -8px; border-radius: 25px; border: 1px solid rgba(132, 206, 255, .13); }
.zf-emblem::after { content: ""; position: absolute; inset: -16px; border-radius: 31px; border: 1px solid rgba(132, 206, 255, .06); }
.zf-emblem svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(120, 200, 255, .45)); }
.zf-titel { margin: 0; color: var(--hell); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.012em; text-wrap: balance; }
.zf-text { max-width: 31ch; margin: 0; color: #8da3bb; font-size: 13.5px; line-height: 1.55; text-wrap: balance; }
.zf-feld { position: relative; }
.zf-kaesten { display: none; }
.zf-an .zf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zf-an .zf-kaesten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 12px repeat(3, minmax(0, 1fr)); gap: 8px; }
.zf-kaesten i { display: grid; place-items: center; height: 58px; border-radius: 14px; font: 600 25px/1 var(--mono); font-style: normal;
  font-variant-numeric: tabular-nums; color: var(--hell); background: rgba(3, 8, 16, .62); border: 1px solid rgba(170, 205, 240, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); transition: border-color .16s, box-shadow .16s, background .16s, transform .16s; }
.zf-kaesten i.voll { border-color: rgba(120, 200, 255, .4); background: rgba(10, 29, 52, .78); animation: zf-ziffer .18s cubic-bezier(.2, .8, .2, 1); }
.zf-kaesten i.aktiv { border-color: rgba(108, 192, 250, .95); background: rgba(8, 24, 44, .85); box-shadow: 0 0 0 3px rgba(74, 174, 245, .18), 0 0 22px -6px rgba(74, 174, 245, .6); }
.zf-kaesten i.aktiv:empty::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: #9bd9ff; animation: zf-cursor 1.05s steps(1) infinite; }
.zf-strich { align-self: center; height: 2px; border-radius: 1px; background: rgba(170, 205, 240, .26); }
@keyframes zf-cursor { 50% { opacity: 0; } }
@keyframes zf-ziffer { from { transform: scale(.9); } to { transform: none; } }
/* das echte Feld liegt unsichtbar über den Kästchen: Fokus, Tastatur, Einfügen, Autofill */
.zf-an .zf-feld input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 14px; outline: none;
  background: transparent; box-shadow: none !important; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
  font-size: 16px !important; letter-spacing: 0; cursor: text; -webkit-tap-highlight-color: transparent; }
.zf-an .zf-feld input::selection { background: transparent; }
.zf-an .zf-feld input:-webkit-autofill { -webkit-text-fill-color: transparent; -webkit-box-shadow: 0 0 0 1000px transparent inset !important; }
/* Wiederherstellungscode: ein normales, breites Feld */
.zf-an.zf-rec .zf-kaesten { display: none; }
.zf-an.zf-rec .zf-feld input { position: static; height: 58px; padding: 0 14px; border: 1px solid rgba(120, 200, 255, .4); border-radius: 14px;
  background: rgba(3, 8, 16, .62); color: var(--hell); -webkit-text-fill-color: var(--hell); caret-color: #9bd9ff; text-align: center;
  font: 600 19px/1 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; }
.zf-an.zf-rec .zf-feld input:focus { border-color: rgba(108, 192, 250, .95); box-shadow: 0 0 0 3px rgba(74, 174, 245, .18) !important; }
.zf-an.zf-rec .zf-feld input::placeholder { color: rgba(141, 163, 187, .42); letter-spacing: .14em; }
.zf-an.zf-rec .zf-feld input::selection { background: rgba(74, 174, 245, .35); }
/* Zeit bis zum nächsten Authenticator-Code */
.zf-zeit { justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 5px 11px 5px 7px; border-radius: 999px;
  color: #8fb1d1; font: 600 11.5px/1 var(--mono); background: rgba(74, 174, 245, .07); border: 1px solid rgba(120, 200, 255, .13); }
.zf-zeit svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.zf-zeit circle { fill: none; stroke: rgba(120, 200, 255, .2); stroke-width: 2.6; }
.zf-zeit .zf-zeit-rest { stroke: #6cc0fa; stroke-linecap: round; stroke-dasharray: 50.27; transition: stroke-dashoffset .95s linear, stroke .3s; }
.zf-zeit.knapp { color: #f0cd8d; }
.zf-zeit.knapp .zf-zeit-rest { stroke: #efc070; }
.zf-rec .zf-zeit { display: none; }
/* prüft / Fehler */
.zf-prueft .zf-kaesten i { border-color: rgba(108, 192, 250, .55); animation: zf-puls 1.1s ease-in-out infinite; }
.zf-prueft .zf-kaesten i:nth-of-type(2) { animation-delay: .08s; } .zf-prueft .zf-kaesten i:nth-of-type(3) { animation-delay: .16s; }
.zf-prueft .zf-kaesten i:nth-of-type(4) { animation-delay: .24s; } .zf-prueft .zf-kaesten i:nth-of-type(5) { animation-delay: .32s; }
.zf-prueft .zf-kaesten i:nth-of-type(6) { animation-delay: .4s; }
@keyframes zf-puls { 50% { background: rgba(40, 120, 200, .2); box-shadow: 0 0 18px -6px rgba(74, 174, 245, .7); } }
.zf-fehler .zf-kaesten i, .zf-fehler.zf-rec .zf-feld input { border-color: rgba(255, 138, 150, .7); background: rgba(58, 12, 24, .42); }
.zf-fehler .zf-feld { animation: zf-wackeln .44s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes zf-wackeln { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); } }
body.ist-2fa .meldung:not(:empty):not(.ok) { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 9px 12px;
  border-radius: 11px; font-size: 13px; line-height: 1.4; text-align: left; background: rgba(255, 138, 150, .08); border: 1px solid rgba(255, 138, 150, .24); }
body.ist-2fa .meldung:not(:empty):not(.ok)::before { content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; color: #2b0710; background: var(--rot); font: 800 11px/1 var(--sans); }
/* Fuß: Wechsel + zurück */
.zf-fuss { display: grid; justify-items: center; gap: 14px; margin-top: 4px; }
.login .zf-wechsel { margin: 0; padding: 6px 8px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: #9fd8ff;
  font-size: 13.5px; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(159, 216, 255, .35); text-underline-offset: 4px; }
.login .zf-wechsel:hover { filter: none; color: var(--hell); text-decoration-color: var(--hell); }
.login .zf-wechsel:focus-visible, .zf-zurueck:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
.zf-zurueck { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding-top: 15px; border-top: 1px solid rgba(170, 205, 240, .1);
  color: #7d92aa; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: color .16s; }
.zf-zurueck:hover { color: var(--hell); }
.zf-zurueck svg { width: 15px; height: 15px; }
@media (max-width: 860px) {
  body.ist-2fa .login { padding-top: clamp(16px, 3dvh, 26px); }
  .zf-kopf { margin: clamp(16px, 3.4dvh, 30px) 0 clamp(4px, 1dvh, 8px); }
  .zf-kaesten i, .zf-an.zf-rec .zf-feld input { height: clamp(48px, 7dvh, 58px); }
}
@media (max-width: 360px) {
  .zf-an .zf-kaesten { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)) 8px repeat(3, minmax(0, 1fr)); }
  .zf-kaesten i { font-size: 22px; border-radius: 12px; }
  .zf-emblem { width: 52px; height: 52px; border-radius: 16px; }
}
@media (max-width: 860px) and (max-height: 560px) {
  .zf-emblem, .zf-text { display: none; }
  .zf-kopf { margin: 4px 0; }
  .zf-titel { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-kaesten i, .zf-kaesten i.voll, .zf-prueft .zf-kaesten i, .zf-fehler .zf-feld { animation: none; }
  .zf-kaesten i.aktiv:empty::after { animation: none; }
}
body.ist-2fa .meldung:empty { display: none; }

/* Wahl „Business | Soul-OS“ (05.12.2026, Wunsch des Users) – auf Login und Registrierung gleich */
.bereich-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px;
  background: rgba(3, 8, 16, .55); border: 1px solid rgba(120, 180, 235, .2); }
.bereich-wahl a { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; padding: 9px 8px 8px; border-radius: 10px;
  color: #8fa6bf; text-decoration: none; text-align: center; transition: background .2s, color .2s, box-shadow .2s; }
.bereich-wahl a b { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: inherit; }
.bereich-wahl a svg { width: 17px; height: 17px; flex: none; }
.bereich-wahl a small { font-size: 11px; line-height: 1.3; color: inherit; opacity: .85; overflow-wrap: normal; word-break: normal; hyphens: none; }
.bereich-wahl a:hover { color: #eef6ff; background: rgba(74, 174, 245, .1); }
.bereich-wahl a[aria-current="page"] { color: #04121f; background: linear-gradient(180deg, #a6dbff, #4aaef5);
  box-shadow: 0 6px 18px rgba(74, 174, 245, .32), inset 0 1px rgba(255, 255, 255, .55); }
.bereich-wahl a[aria-current="page"] small { opacity: .78; }
.bereich-wahl a:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bereich-wahl a { transition: none; } }
.login .bereich-wahl { margin: 2px 0 6px; }
