/* konto.css — what only the account page of raiqu.net needs (Plan 54). The card, its fields and
   buttons stand in base.css since E2, because the sign-in field under the header uses them on
   every page. Loaded after site.css on the shell; reads the tokens, redefines none (Root-D161). */
/* the card stands in the middle, under the page's centred heading, not on the reading axis */
.achse > .konto-karte { margin-inline: auto; }
.konto-klein { margin: 12px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--c-text-2); }
/* the sentence on a forgotten PIN (E5) stands under the sign-in card as wide as it, and only with
   it: hidden while the form is, which also covers the screens that take its place */
.achse > .konto-vergessen { width: min(360px, 100%); margin: 14px auto 0; text-align: center; }
#kontoForm[hidden] ~ .konto-vergessen { display: none; }

/* Mein Konto (E3): two columns as in the mockup, name and PIN left, devices and deleting right;
   one column where two cards of 300 px no longer fit side by side. */
.achse > .konto-mein { margin-inline: auto; }
.konto-mein { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; align-items: start; }
.konto-mein[hidden] { display: none; }
.konto-spalte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.konto-mein .konto-karte { width: 100%; }
@media (max-width: 760px) {
  .konto-mein { grid-template-columns: minmax(0, 360px); }
}
.konto-titel small { margin-left: 8px; font-family: var(--f-body); font-size: var(--fs-micro); font-weight: 400; color: var(--c-text-2); }
/* a field and its button in one row, and two buttons side by side */
.konto-reihe { display: flex; gap: 10px; }
.konto-reihe > .konto-knopf { flex: 1 1 0; padding-inline: 12px; }
.konto-reihe > .konto-knopf--schmal { flex: 0 0 auto; width: auto; padding-inline: 18px; }
/* two buttons share the row while both words fit on one line, else each takes a row of its own */
.konto-reihe--umbruch { flex-wrap: wrap; }
.konto-reihe--umbruch > .konto-knopf { flex: 1 0 auto; width: auto; white-space: nowrap; }
/* no width of its own: an input's natural width (about 20 characters) would push the card out at 360 px */
.konto-eingabe {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  background: var(--c-bg-0);
  color: var(--c-text-0);
  font: 1rem var(--f-body);
}
.konto-reihe + .konto-meldung { margin: 12px 0 0; }
.konto-meldung--gut { color: var(--c-text-0); }
.konto-geraete { margin: 0 0 14px; padding: 0; list-style: none; font-size: var(--fs-small); line-height: 1.5; color: var(--c-text-1); }
.konto-geraete li + li { margin-top: 4px; }
.konto-geraete li:first-child { color: var(--c-text-0); }
