/* Anmeldung (20.10.2026): in der Marke von Version 2 statt im alten Look (Lila-Blau-Verlauf,
   Glanz-Pille, Glühschatten). Schriften, Farben und .knopf kommen aus v2.css; hier nur die Seite.
   Kein Slogan (Jan: „KI-Satz“). Ab 900 px rechts der geschlossene Buchdeckel, den die Begrüßung nach dem
   Anmelden aufschlägt; am Handy nur das Formular. Tiefgrün als einzige Handlungsfarbe, Gold nur im Zeichen. */
body.anmeldung { min-height: 100vh; min-height: 100dvh; }
.anm {
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 380px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.anm-marke { display: flex; align-items: center; gap: 12px; }
/* Wortmarke mit Pusteblume (22.10.2026): der Pusteblumen-Kopf der Begrüßung steht über der Marke, außerhalb des
   Rahmens (overflow sichtbar), und braucht so keinen Platz im Formular. */
.anm-wort { display: block; width: 200px; height: auto; aspect-ratio: 4482 / 832; overflow: visible; }
.anm-wort #fl { transform: translate(1329.3px, -695.4px); }   /* Ruhestand: Samen sitzt als i-Punkt (= CX, CY im Skript) */
.anm-marke:not(.puste-laeuft) #kopf { opacity: 0; }                  /* Pusteblume nur, solange sie weht */
.anm-zusatz { margin: 0; padding-left: 12px; border-left: 1.5px solid var(--gold); font: 500 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); }

.anm-form { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--linie-stark); }
.anm-form h1 { font-size: 30px; line-height: 1.15; margin-bottom: 22px; }

.anm-label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.anm-feld {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px/1 var(--sans); color: var(--text);   /* 16 px: iOS zoomt sonst beim Antippen */
  background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 10px;
  transition: border-color .2s var(--ease);
}
.anm-feld:focus { outline: none; border-color: var(--tiefgruen); }
.anm-feld:focus-visible { outline: 2px solid var(--tiefgruen); outline-offset: 2px; }
/* Gespeicherte Zugangsdaten: Chrome färbt das Feld sonst hellblau */
.anm-feld:-webkit-autofill, .anm-feld:-webkit-autofill:hover, .anm-feld:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--flaeche) inset;
  caret-color: var(--text);
}

.anm-pw { position: relative; }
.anm-pw .anm-feld { padding-right: 52px; }
.anm-auge {
  position: absolute; top: 2px; right: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.anm-auge:focus-visible { outline: 2px solid var(--tiefgruen); outline-offset: -2px; }
.anm-auge .strich { opacity: 0; }
.anm-auge[aria-pressed="true"] .strich { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .anm-auge:hover { color: var(--tiefgruen); } }

.anm-merken { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.anm-merken input { width: 18px; height: 18px; margin: 0; accent-color: var(--tiefgruen); }

.anm-los { width: 100%; height: 48px; margin-top: 16px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .anm-los:hover { background: var(--tiefgruen-dunkel); } }

.anm-fehler {
  overflow-wrap: anywhere; hyphens: auto;   /* lange Wörter brechen statt über den Rand (break-ui, 320 px) */
  margin: 0 0 6px; padding: 10px 12px; font-size: 14px; color: var(--rot);
  border: 1px solid color-mix(in srgb, var(--rot) 35%, transparent); border-radius: 8px;
  background: color-mix(in srgb, var(--rot) 6%, transparent);
}

.anm-fuss { margin: 48px 0 0; font-size: 12px; color: var(--text-2); }

/* Breite Bildschirme: links Formular, rechts der Buchdeckel (wie der Deckel der Begrüßung) */
.anm-deckel { display: none; }
@media (min-width: 900px) {
  .anm-rahmen { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100dvh; }
  .anm { max-width: 400px; }
  .anm-marke { display: none; }          /* Marke steht nur einmal: gestanzt auf dem Deckel (Jan, 22.10.2026: nicht „doppelt gemoppelt“) */
  .anm-form { margin-top: 0; padding-top: 0; border-top: 0; }
  .anm-form h1 { font-size: 36px; margin-bottom: 28px; }
  .anm-deckel { display: grid; place-items: center; padding: 48px; background: var(--grund); --nb-b: min(30vw, 380px); }
}
