/* Anmeldeseite (anmelden.html, en/login.html): eine weiße Karte mittig auf der Tonfläche, wie Entwurf G vom
   15.11.2026 (entwuerfe/login/g-karte-hell). Liegt nach stil.css und seiten.css und gilt nur unter .anmelde-seite. */

.anmelde-seite { background: var(--ton); }

/* Kopf: Wortmarke und zwei Links, auch auf dem Telefon ohne Menüknopf */
.anmelde-seite .kopf { position: static; height: auto; padding: 20px var(--pad); }
.kopf-links { display: flex; gap: 28px; }
.kopf-links a { font-size: var(--step-small); font-weight: 500; text-decoration: none; text-underline-offset: 6px; }
.kopf-links a:hover { text-decoration: underline; }

.anmeldung { min-height: calc(100svh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px var(--pad) 96px; }
/* Slogan (vom Nutzer am 15.11.2026 für die Anmeldeseite freigegeben), englisch und klein geschrieben wie in der Marke */
.slogan { margin: 0 0 24px; font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.1; letter-spacing: -0.02em; text-align: center; }
.anmelde-seite .karte { width: 100%; max-width: 448px; background: var(--bg); border-radius: 14px; padding: 36px 40px 32px; }
.wechsel { margin: 24px 0 0; font-size: var(--step-small); text-align: center; max-width: 560px; }

.umschalter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; background: var(--surface); border-radius: calc(var(--radius) + 4px); }
.umschalter button { min-height: 44px; border: 0; border-radius: var(--radius); background: transparent; font: inherit; font-size: var(--step-small); font-weight: 500; color: var(--muted); cursor: pointer; transition: color 160ms ease; }
.umschalter button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.umschalter button:hover { color: var(--ink); }

.anmelde-seite h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; outline: none; }
.anmelde-seite .unter { margin: 8px 0 0; font-size: max(1.0625rem, var(--step-body, 1rem)); }
.anmelde-seite .plan-hinweis { margin: 20px 0 0; }

.anmelde-seite .formular { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.anmelde-seite .formular h2 { font-family: var(--display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; }
.anmelde-seite .formular p { margin: 0; }
.anmelde-seite [data-form="passkey"] { margin-top: 16px; }
.anmelde-seite [data-form="code"], .anmelde-seite [data-form="vergessen"], .anmelde-seite [data-form="zuruecksetzen"], .anmelde-seite .bestaetigung { margin-top: 20px; }

.feld { display: flex; flex-direction: column; gap: 8px; }
.feldkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.feld > label:not(.haken), .feldkopf label { font-size: var(--step-small); font-weight: 500; }
.feld input[type="email"], .feld input[type="password"], .feld input[type="text"], .feld input:not([type]) {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #c3d3d3; border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: 400 1rem var(--text);
}
.feld input::placeholder { color: #788c8b; }
.feld input:hover { border-color: var(--muted); }
.feld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 124, 128, 0.18); } /* taste-skill-ignore: Fokusring eines Formularfelds */
.feld input[aria-invalid="true"] { border-color: #c92a2a; }
.feld input:disabled { background: var(--surface); }
.feldfehler { margin: 0; font-size: var(--step-small); color: #8c1d18; }

/* Auge zum Anzeigen des Passworts */
.mit-auge { position: relative; }
.mit-auge input { padding-right: 56px; }
.auge { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.auge:hover { color: var(--ink); background: var(--surface); }
.auge[aria-pressed="true"] .strich { display: none; }

/* Regel: ein Kreis, der sich mit einem Haken füllt, sobald sie erfüllt ist */
.regel { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--step-small); color: var(--muted); }
.regel-zeichen { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ton); }
.regel.erfuellt { color: var(--ink); }
.regel.erfuellt .regel-zeichen { background: #22733a; }
.regel.erfuellt .regel-zeichen::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.anmelde-seite .hinweis { margin: 0; }
.nebensatz { margin: -8px 0 0; font-size: var(--step-small); color: var(--muted); text-align: center; }
.anmelde-seite .haken { font-weight: 400; line-height: 1.45; }

.knopf.breit { width: 100%; }
.knopf.leise { background: var(--surface); color: var(--ink); font-weight: 500; }
.knopf.leise:hover { background: var(--ton); color: var(--ink); }
.oder { margin: 20px 0 0; text-align: center; font-size: var(--step-small); color: var(--muted); }
.anmelde-seite .textlink.klein { font-size: var(--step-small); }
.anmelde-seite .zurueck { align-self: center; font-size: var(--step-small); }

.zeile { display: flex; gap: 12px; align-items: center; }
.zeile .knopf { flex: 1; padding: 0 12px; white-space: nowrap; }
.zeile .textlink { flex: none; font-size: var(--step-small); }

/* Der Code bricht nur an den Bindestrichen zwischen den Vierergruppen um */
.anmelde-seite .code-anzeige { white-space: normal; overflow-wrap: normal; word-break: normal; }
.anmelde-seite .bestaetigung { display: flex; flex-direction: column; gap: 16px; justify-items: stretch; }
.anmelde-seite .bestaetigung h2 { font-family: var(--display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; margin: 0; }
.anmelde-seite .bestaetigung p { margin: 0; }

/* Häufige Fragen auf Weiß: ein Tonschritt statt einer Linie */
.anmelde-seite .fragen { background: var(--bg); }
.anmelde-seite .fragen-text b { display: block; margin-bottom: 6px; font-weight: 600; }


@media (max-width: 640px) {
  .kopf-links { gap: 20px; }
  .anmeldung { min-height: 0; justify-content: flex-start; padding: 8px 16px 64px; }
  .slogan { margin-bottom: 16px; }
  .anmelde-seite .karte { padding: 28px 20px 24px; }
  .umschalter { margin-bottom: 24px; }
  .zeile { flex-direction: column; align-items: stretch; }
  .zeile .textlink { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .umschalter button { transition: none; }
}
