/* Login + Setup-Status (Einrichtung der V3-Base) */
.auth-wrap {
  position: fixed; inset: 0; bottom: auto; height: var(--vvh, 100vh);   /* sichtbarer Bereich — Tastatur verdeckt die Karte nicht mehr */
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  background: var(--app-bg); padding: 24px; z-index: 100;
}
/* Anmeldefenster ÜBER der laufenden App (Sitzung abgelaufen): abgedunkelt statt deckend, über allen Sheets */
.auth-wrap.auth-overlay { background: rgba(20, 24, 28, .55); z-index: 5000; }
.auth-card {
  margin: auto 0;                                                /* mittig, solange Platz ist — sonst scrollbar statt abgeschnitten */
  width: 100%; max-width: 400px; background: var(--surface-1);
  border: 1px solid var(--line-light); border-radius: var(--r-card);
  box-shadow: var(--sh-card); padding: 32px 28px;
}
.auth-logo {
  height: 36px; padding: 0 14px; border-radius: 9px; background: var(--brand);
  display: inline-flex; align-items: center; color: var(--on-accent); font-weight: 700;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .04em;
}
.auth-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 18px 0 4px; }
.auth-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 0 14px; font-size: 15px; background: var(--surface-1); color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--brand); }

.auth-btn {
  width: 100%; height: 50px; border-radius: var(--r-btn); background: var(--brand);
  color: var(--on-accent); font-size: 16px; font-weight: 600; margin-top: 8px; box-shadow: var(--sh-fab);
}
.auth-btn[disabled] { opacity: .6; }
.auth-err { color: var(--danger); font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.auth-note { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }

/* Setup status */
.setup-card { max-width: 540px; }
.setup-log {
  margin-top: 16px; background: var(--surface-3); border: 1px solid var(--line-light);
  border-radius: var(--r-btn); padding: 12px 14px; max-height: 320px; overflow-y: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
}
.setup-log .l-ok { color: var(--done-text); }
.setup-log .l-warn { color: var(--open-text); }
.setup-log .l-info { color: var(--txt2); }
.setup-spin {
  display: inline-block; width: 15px; height: 15px; border: 2px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Adresswechsel: nur unter der alten Adresse (js/adresse.js) */
.umzug-wrap { z-index: 5100; }
.umzug-card { max-width: 460px; }
.umzug-schritte { margin: 0 0 22px; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.umzug-schritte li + li { margin-top: 8px; }
.umzug-los { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.umzug-bleiben { display: block; width: 100%; height: 46px; margin-top: 10px; }
.umzug-hinweis {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4000;
  width: min(620px, calc(100vw - 32px)); padding: 10px 14px; font-size: 13px; line-height: 1.4;
  color: var(--ink); background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-btn); box-shadow: var(--sh-card); pointer-events: none;   /* Knöpfe darunter bleiben bedienbar */
}
