/* ============================================================================
   Anmelden, Passwort, Hausliste und Darstellung.
   Die Bausteine (Leiste, Seite, großer Titel, Gruppe, Zeile, Knöpfe) stehen
   in app.css, das Logo in marke.css. Hier stehen nur die Klassen dieser
   Bildschirme.
   ========================================================================== */

/* ---------------------------------------------------- Anmelden, Passwort -- */
/* Ohne Leiste steht das Formular mittig auf dem Grund; mit Leiste (Passwort
   ändern) beginnt es oben unter ihr. */
.start-anmelden {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--s6) + var(--safe-t)) 0 calc(var(--s7) + var(--safe-b));
}
.start-anmelden.mit-leiste { min-height: 0; justify-content: flex-start; padding-top: var(--s2); }
.start-formular { width: 100%; max-width: 480px; margin: 0 auto; }

.start-logo {
  width: 168px; aspect-ratio: 1464 / 424; margin: 0 var(--s4) var(--s4);
  background: var(--marke-logo) left center / contain no-repeat;
}

/* Fehler unter dem Titel, über den Feldern: dort, wo der Blick gerade ist. */
.start-fehler {
  margin: 0 var(--s4) var(--s3);
  font-size: .9375rem; line-height: 1.333; font-weight: 600; color: var(--bad);
}

/* Feld als Zeile der Gruppe: Die Beschriftung bleibt beim Tippen stehen, und
   das Eingabefeld füllt die ganze Zeile — jeder Tipp in die Zeile trifft es. */
.start-feld { position: relative; display: block; }
.start-feld-marke {
  position: absolute; top: var(--s2); left: var(--s4); right: var(--s4);
  font-size: .9375rem; line-height: 1.333; color: var(--ink-2);
  pointer-events: none;
}
.start-eingabe {
  display: block; width: 100%; min-height: 64px; margin: 0;
  /* Oben Platz für die Beschriftung: ihr Abstand plus eine Zeile (.9375rem ×
     1,333 = 1,25rem). In rem wächst er mit der Schrift, sonst berührt die
     Beschriftung bei großer Schrift das Eingabefeld. */
  padding: calc(var(--s2) + 1.25rem) var(--s4) var(--s2);
  background: var(--surface); color: var(--ink);
  border: 0; border-radius: 0; outline: none;
  font-size: max(1.0625rem, 16px); line-height: 1.294;
  -webkit-appearance: none; appearance: none;
}
.start-feld:focus-within {
  outline: 2px solid var(--brand); outline-offset: -4px; border-radius: var(--r-xs);
}
.start-feld:focus-within .start-feld-marke { color: var(--brand); }

.start-zeigen { cursor: pointer; font-size: 1.0625rem; line-height: 1.294; color: var(--ink); }
.start-zeigen input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brand-flaeche); }

.start-knoepfe { display: grid; gap: var(--s3); margin: var(--s6) var(--rand) 0; }

/* ------------------------------------------------------------- Hausliste -- */
/* Hinweis für das iPhone ohne Home-Bildschirm: eine Gruppe mit Erklärung. */
.start-hinweis { padding: var(--s3) var(--s4); font-size: .9375rem; line-height: 1.333; color: var(--ink); }
.start-hinweis-titel { display: block; margin-bottom: var(--s1); font-size: 1.0625rem; line-height: 1.294; font-weight: 600; }

.start-fortsetzen { font-size: 1.0625rem; line-height: 1.294; color: var(--brand); }

/* Hauszeile: Foto 56 px statt der 72 px des Bausteins. Die Klasse .foto bleibt,
   damit die Haarlinie der Gruppe bündig mit der Fotokante beginnt. */
.zeile.foto.haus-zeile { min-height: 72px; padding-top: var(--s2); padding-bottom: var(--s2); }
.haus-zeile .zeile-bild { width: 56px; height: 56px; border-radius: var(--r-bild); }

.haus-offen { font-variant-numeric: tabular-nums; white-space: nowrap; }
.haus-ohne-bild { display: grid; place-items: center; color: var(--ink-2); }

/* Gesperrte Häuser: kein Knopf, kein Chevron. Ausgegraut wird die Schrift
   über die Farbe, nur das Foto darf blasser sein. */
.haus-gesperrt .zeile-titel { color: var(--ink-2); font-weight: 400; }
.haus-gesperrt .zeile-bild { opacity: .5; }

.start-abmelden .zeile-titel { color: var(--bad); }

/* ----------------------------------------------------------- Darstellung -- */
.darstellung-wahl { margin-top: var(--s6); }
.darstellung-wahl .zeile-titel { font-weight: 400; }
.darstellung-wahl .zeile-rechts { color: var(--brand); }
