/* Anmeldeseite (anmelden.html, seit 10.11.2026). Werte nur aus den Tokens (augi_farben.css) und Bausteinen (rahmen.css):
   Augi-Kugeln als Hintergrund, eine Glas-Karte in der Mitte, Augi-Pink fuer den Hauptknopf. Handy hochkant zuerst; auf
   iPad und Surface bleibt die Karte schmal in der Mitte. Eingabefelder mit 17 px Schrift (unter 16 px zoomt iOS hinein). */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--m3-surface); }
body.anm { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--m3-on-surface); font-family: var(--f-text);
  font-size: 17px; line-height: 1.4; background: var(--hg-augi); background-attachment: fixed;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.anm-huelle { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left)); }
.anm-karte { width: 100%; max-width: 410px; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 30px 22px 22px; border-radius: var(--au-radius-karte); text-align: center;
  background: var(--au-glanz-karte), var(--glas-flaeche-stark); box-shadow: var(--glas-kante), var(--au-schatten-karte); }

.anm-icon { align-self: center; width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--au-schatten-kachel); }
.anm-titel { margin: 4px 0 0; font-family: var(--f-titel); font-size: 30px; font-weight: var(--f-titel-gewicht);
  letter-spacing: -0.015em; line-height: 1.15; text-shadow: var(--au-schatten-text); }
.anm-unter { margin: -8px 0 4px; color: var(--m3-on-surface-variant); font-size: 17px; }
.anm-text { margin: 0; color: var(--m3-on-surface-variant); }
.anm-fertig { padding: 10px 0; font-weight: 600; color: var(--m3-on-surface); }

.anm-schritt { display: flex; flex-direction: column; gap: 14px; margin: 0; text-align: left; }

/* Meldung: Fehler in der Fehlerfarbe, Erfolg in Gruen; als Pille ueber den Feldern */
.anm-meldung { margin: 0; padding: 10px 14px; border-radius: var(--au-radius-knopf); font-size: 16px; font-weight: 600;
  text-align: left; background: var(--m3-surface-container-highest); color: var(--m3-on-surface); }
.anm-meldung.fehler { background: var(--m3-error-container); color: var(--m3-on-error-container); }
.anm-meldung.gut { background: var(--ampel-gruen-zart); color: var(--ampel-gruen); }

/* Hauptknopf: gross und breit (Daumen) */
.au-knopf.anm-gross { width: 100%; min-height: 56px; font-size: 18px; border-radius: 16px; box-shadow: var(--au-schatten-eintrag); }
.au-knopf.anm-gross .ic { width: 24px; height: 24px; }
.au-knopf:disabled { opacity: 0.55; }
body.anm-laedt .au-knopf.anm-gross:disabled { cursor: progress; }

/* Nebenwege als ruhige Text-Knoepfe mit 44 px Trefferflaeche */
.anm-wege { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; }
.anm-link { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  color: var(--m3-primary); font-weight: 650; font-size: 17px; text-align: center; }
.anm-link:focus-visible { outline: 3px solid var(--augi-pink); outline-offset: 1px; }
.anm-link:active { background: var(--m3-surface-container-highest); }
.anm-link:disabled { opacity: 0.5; cursor: default; }

/* Eingabefelder */
.anm-feld { display: grid; gap: 6px; font-weight: 650; font-size: 15px; color: var(--m3-on-surface-variant); }
.anm-feld input { font: inherit; font-size: 17px; font-weight: 500; width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--m3-outline-variant); border-radius: 14px; outline: none; color: var(--m3-on-surface);
  background: var(--m3-surface-container-lowest); -webkit-appearance: none; appearance: none; }
.anm-feld input::placeholder { color: var(--m3-outline); opacity: 1; }
.anm-feld input:focus { border-color: var(--augi-pink); box-shadow: 0 0 0 3px var(--m3-tertiary-container); }
.anm-hinweis { margin: -4px 0 0; font-size: 14px; line-height: 1.35; color: var(--m3-on-surface-variant); }
/* Name fuer den Passwort-Manager beim Einrichten (unsichtbar, aber im Formular) */
.anm-versteckt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  border: 0; opacity: 0; }

/* Vorschlaege fuer den Geraetenamen */
.anm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.anm-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 8px 18px; border-radius: var(--au-radius-pille);
  font-weight: 650; font-size: 17px; color: var(--m3-on-secondary-container); background: var(--m3-secondary-container);
  box-shadow: var(--glas-kante); }
.anm-chip[aria-pressed="true"] { background: var(--augi-pink); color: var(--augi-pink-text); }
.anm-chip:focus-visible { outline: 3px solid var(--augi-pink); outline-offset: 2px; }
.anm-chip:active { transform: scale(0.97); }

.anm-noscript { position: fixed; inset: auto 0 0; margin: 0; padding: 12px; text-align: center; background: var(--m3-error-container);
  color: var(--m3-on-error-container); }

/* Sehr kleine Handys (SE, 320 px): etwas enger */
@media (max-width: 360px) {
  .anm-karte { padding: 24px 16px 18px; gap: 12px; }
  .anm-titel { font-size: 26px; }
}
/* Querformat mit wenig Hoehe (Handy quer): Karte oben statt mittig, damit nichts abgeschnitten wird */
@media (max-height: 560px) { .anm-huelle { align-items: flex-start; } }
