/* Anmeldung, Einrichtung und zweiter Faktor (DESIGN.md 4, 5, 6, 7.1) — Klare Kante, Handy
   zuerst. Farben und Schrift kommen aus dem Grund-CSS (klare-kante.css); hier nur die
   Bausteine dieser Seiten: Karte, Feld, Knopf, Meldung, QR-Code, Codes. */

.karte {
  width: calc(100% - 2 * var(--rand));
  max-width: 26rem;
  margin: 2rem auto;
  padding: 1.5rem var(--rand);
  background: var(--papier);
  border: 1px solid var(--wolke-linie-leise);
  border-left: 3px solid var(--wolke-linie);
}
.karte-breit { max-width: 32rem; }

.wortmarke-zusatz {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--tinte-leise);
}
.kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.schritt, .unterzeile { font-size: 0.88rem; color: var(--tinte-leise); }
.schritt { white-space: nowrap; }
/* Der Satz unter dem Formular („Einen Zugang bekommen Sie nur …") klebte am Knopf (Rundgang 13c). */
form + .unterzeile { margin-top: 1rem; }
/* Wörter, die zusammen auf eine Zeile gehören (etwa „neu verbinden" in der Überschrift) — nicht trennen. */
.wortgruppe { white-space: nowrap; hyphens: manual; }

/* Felder */
.feld { margin: 0 0 1rem; }
h1 { overflow-wrap: break-word; hyphens: auto; }
.beschriftung label, .beschriftung .titel { font-size: 0.85rem; font-weight: 600; }
.feld input[type="email"], .feld input[type="password"], .feld input[type="text"], .feld input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--feld-rand);        /* 3,6:1, wie im Grund-CSS (WCAG 1.4.11) */
  border-radius: 0;
  background: var(--papier);
  color: var(--tinte);
  font-size: 1rem;          /* 16 px: iOS zoomt sonst beim Antippen hinein */
}
.feld input:focus { outline: 2px solid var(--wolke); outline-offset: 0; }
.feld input[readonly] { background: var(--papier-leise); color: var(--tinte-leise); }
.code-eingabe {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1.25rem !important;
  font-variant-numeric: tabular-nums;
}
.haken { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0; font-size: 0.9rem; }
.haken input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--wolke); }

/* Knöpfe — eckig, je Seite höchstens einer stark */
.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--wolke);
  border-radius: 0;
  background: var(--papier);
  color: var(--wolke-tief);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf-stark { background: var(--wolke); color: #ffffff; }
.knopf-leise { border-color: var(--wolke-linie); color: var(--tinte-leise); }
.knopf[hidden] { display: none; }
.knopfreihe { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.knopfreihe .knopf { flex: 1 1 8rem; }
.verweis {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--wolke-tief); font-size: 0.9rem; text-decoration: underline; cursor: pointer;
}

.trennlinie { border: 0; border-top: 1px solid var(--linie); margin: 1.5rem 0 1rem; }

/* Meldungen: Fehler in Ocker mit Zeichen, Bestätigung in Hellblau (DESIGN.md 2) */
.meldung {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--achtung);
  background: var(--achtung-flaeche);
  font-size: 0.9rem;
}
.meldung::before { content: "! "; font-weight: 800; color: var(--achtung); }
.hinweis {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--kapitel-tief);
  background: var(--hinweis-flaeche);
  font-size: 0.9rem;
}

/* ⓘ: <details class="erklaerung"> wie in allen Masken — der Stil steht im Grund-CSS (DESIGN.md 6). */

/* Einrichtung: QR-Code und Codes */
.qr { display: flex; justify-content: center; margin: 0.75rem 0 1rem; }
.qr svg { display: block; background: #ffffff; }
.abtippen {
  display: block;
  margin: 0.25rem 0 0.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}
.codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style-position: inside;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

/* Passkeys */
.liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.liste li { padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.liste .unterzeile { display: block; }
.liste form { margin: 0; }

@media print {
  .trainingsleiste, .knopf, .knopfreihe, .haken, .erklaerung, form { display: none !important; }
  .karte { border: 0; margin: 0; max-width: none; }
}
