/* Laden in der Karte statt Vollbild (js/uebergang.js), live seit 4.11.2026.
   Kein overflow:hidden an der Karte, sonst waere Kowalski oben abgeschnitten (er sitzt ueber der Kante). */
.auth-card { transition: height .42s cubic-bezier(.2, .8, .2, 1); }
.auth-card.ui-laedt > :not(.kowalski-greeter):not(.ui-status) { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.auth-card.ui-an > :not(.kowalski-greeter):not(.ui-status) { display: none; }
.auth-card:not(.ui-an) > .ui-status { position: absolute; visibility: hidden; left: 0; right: 0; }
.kw-bubble span:not(.kw-name) { transition: opacity .2s ease; }

.ui-status { text-align: center; padding: 8px 0 2px; opacity: 0; transform: translateY(10px); transition: opacity .3s ease .1s, transform .4s cubic-bezier(.2, .8, .2, 1) .1s; }
.ui-status.ui-sichtbar { opacity: 1; transform: none; }
.ui-icon-box { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .26); color: var(--primary); }
.ui-icon { width: 34px; height: 34px; overflow: visible; }
.ui-status h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ui-status p { margin: 8px auto 0; max-width: 320px; color: var(--text-muted); font-size: 0.94rem; line-height: 1.5; }
.ui-status p b { color: var(--text); font-weight: 600; }
.ui-balken { height: 4px; margin: 24px auto 4px; width: 168px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ui-balken i { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.ui-sichtbar .ui-balken i { animation: uiLaden 1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes uiLaden { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* Icons: Brief klappt zu, Pfeil geht durch die Tuer, Haken zeichnet sich */
.ui-sichtbar .ui-mail { animation: uiHueb .6s cubic-bezier(.3, 1.4, .5, 1) .1s both; }
@keyframes uiHueb { 0% { transform: translateY(6px) scale(.88); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ui-klappe { stroke-dasharray: 44; stroke-dashoffset: 44; }
.ui-sichtbar .ui-klappe { animation: uiStrich .45s ease .35s forwards; }
.ui-sichtbar .ui-pfeil { animation: uiRein 1s cubic-bezier(.3, .7, .2, 1) .15s both; }
@keyframes uiRein { 0% { transform: translateX(-9px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(2px); } }
.ui-kreis { stroke-dasharray: 120; stroke-dashoffset: 120; }
.ui-strich { stroke-dasharray: 30; stroke-dashoffset: 30; }
.ui-sichtbar .ui-kreis { animation: uiStrich .5s ease .1s forwards; }
.ui-sichtbar .ui-strich { animation: uiStrich .3s ease .5s forwards; }
@keyframes uiStrich { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .auth-card, .ui-status, .auth-card.ui-laedt > * { transition: none; }
  .ui-sichtbar .ui-mail, .ui-sichtbar .ui-pfeil, .ui-sichtbar .ui-klappe, .ui-sichtbar .ui-kreis, .ui-sichtbar .ui-strich { animation: none; }
  .ui-klappe, .ui-kreis, .ui-strich { stroke-dashoffset: 0; }
}

/* Knopf waehrend des Sendens: kleiner Kreisel statt Text */
.ub-knopf-laedt { position: relative; color: transparent !important; pointer-events: none; }
.ub-knopf-laedt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(4, 37, 42, .35); border-top-color: var(--on-primary); animation: ubDreh .7s linear infinite; }
@keyframes ubDreh { to { transform: rotate(360deg); } }
