/* Das Anmeldefenster auf lagerlos.de (Zusammenlegung Schritt 3, 03.10.2026).
   Dasselbe Fenster wie in der App (src/ui/authSheet.ts); auf lagerlos.de fehlt aber das Stylesheet der
   App (components.css + erscheinung.css), und das darf dort nicht hin: es setzt Grundregeln fuer body,
   Ueberschriften und Knoepfe der ganzen Seite. Diese Datei gestaltet deshalb NUR, was unter
   .auth-sheet-root liegt, im Aussehen der App (helles Blatt, schwarze Ueberschrift, gelber Knopf), plus
   die kleine Seite /anmelden. Nur Werte aus schema.tokens.css. Geladen von der Insel beim ersten Oeffnen
   (/inseln/anmelde-blatt.css, scripts/build-inseln.mjs).
   Die Wurzel endet ueber der iPhone-Tastatur: --tastatur-h setzt src/ui/tastatur.ts. */

.auth-sheet-root {
  position: fixed; inset: 0 0 var(--tastatur-h, 0px) 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  color-scheme: light; color: var(--sheet-text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-text-size-adjust: 100%;
}
.auth-sheet-root *, .auth-sheet-root *::before, .auth-sheet-root *::after { box-sizing: border-box; }
.auth-sheet-root .auth-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--sheet-heading) 55%, transparent); }
.auth-sheet-root .auth-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: min(92dvh, 100%);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--sheet-card); color: var(--sheet-text);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--sheet-heading) 25%, transparent);
  animation: ll-blatt-auf var(--motion-sheet) var(--ease-ui);
}
.auth-sheet-root .auth-grip { width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--sheet-field); margin: 0 auto var(--sp-3); }
.auth-sheet-root .auth-x {
  position: absolute; top: var(--sp-2); right: var(--sp-2); width: var(--tap-min); height: var(--tap-min);
  display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--sheet-heading); cursor: pointer;
}
.auth-sheet-root .auth-x svg { width: 22px; height: 22px; }
.auth-sheet-root .auth-title {
  margin: 0 0 var(--sp-2); padding-right: var(--sp-12);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-tight); color: var(--sheet-heading);
}
.auth-sheet-root .auth-lead { margin: 0 0 var(--sp-3); font-size: var(--fs-body); color: var(--sheet-muted); }
.auth-sheet-root .label { display: block; margin: var(--sp-2) 0 0; font-size: var(--fs-small); font-weight: 700; color: var(--sheet-heading); }
.auth-sheet-root .auth-field { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-1) 0; }
.auth-sheet-root .auth-cur { display: none; }
.auth-sheet-root .auth-input {
  width: 100%; min-height: 52px; padding: var(--sp-3) var(--sp-4);
  /* --fs-body ist 16 px: darunter zoomt iPhone Safari beim Antippen in das Feld. */
  font: inherit; font-size: var(--fs-body);
  color: var(--sheet-heading); background: var(--sheet-card);
  border: 1px solid var(--sheet-field); border-radius: var(--r-input);
  -webkit-appearance: none; appearance: none;
}
.auth-sheet-root .auth-input::placeholder { color: var(--sheet-placeholder); opacity: 1; }
.auth-sheet-root .auth-input:focus-visible { outline: 2px solid var(--sheet-heading); outline-offset: 2px; border-color: var(--sheet-heading); }
.auth-sheet-root .auth-fineprint { margin: var(--sp-2) 0 var(--sp-1); font-size: var(--fs-small); line-height: 1.45; color: var(--sheet-muted); }
.auth-sheet-root .auth-hint { margin: var(--sp-2) 0; font-size: var(--fs-small); color: var(--sheet-muted); }
.auth-sheet-root .auth-hint:empty { margin: 0; }
.auth-sheet-root .auth-hint-err { color: var(--sheet-bad); font-weight: 700; }
.auth-sheet-root :focus-visible { outline: 2px solid var(--sheet-heading); outline-offset: 2px; }
.auth-sheet-root [role=dialog]:focus { outline: none; }
.auth-sheet-root ::selection { background: var(--signal); color: var(--on-signal); }
.auth-sheet-root a { color: var(--sheet-heading); }

/* Knoepfe wie in der App, zwei Formen (F-09): Nebenknopf als Umriss, der Hauptknopf gelb mit fester Kante unten. */
.auth-sheet-root .btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%; min-height: 50px; margin-top: var(--sp-3); padding: 0 var(--sp-5);
  border: 1px solid var(--sheet-field); border-radius: var(--r-btn); background: var(--sheet-card); color: var(--sheet-heading);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-control);
  text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background-color .15s;
}
.auth-sheet-root .btn:hover { border-color: var(--sheet-heading); }
.auth-sheet-root .btn:disabled { opacity: .45; cursor: default; }
.auth-sheet-root .btn.btn-primary { background: var(--signal); color: var(--on-signal); border-color: transparent; box-shadow: 0 3px 0 var(--sheet-heading); }
.auth-sheet-root .btn.btn-primary:hover { background: var(--signal-deep); }
.auth-sheet-root .btn.btn-primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--sheet-heading); }
.auth-sheet-root .btn.btn-primary:disabled { box-shadow: none; transform: none; }
.auth-sheet-root .auth-close-btn { background: var(--sheet-card); color: var(--sheet-heading); border: 1px solid var(--sheet-field); }
.auth-sheet-root .auth-close-btn:hover { background: var(--sheet-card); border-color: var(--sheet-heading); }

/* "Schau in dein Postfach" */
.auth-sheet-root .auth-sent { text-align: center; padding: var(--sp-2) 0; }
/* Rat Optik O-3 (08.11.2026): die Kachel ist ruhig (--sheet-bg, Zeichen --sheet-heading), Gelb bleibt dem Knopf. */
.auth-sheet-root .auth-sent-ic { width: 54px; height: 54px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--sheet-bg); box-shadow: inset 0 0 0 1px var(--sheet-line); display: grid; place-items: center; }
.auth-sheet-root .auth-sent-ic svg { width: 28px; height: 28px; color: var(--sheet-heading); }
.auth-sheet-root .auth-sent-title { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--sheet-heading); }
.auth-sheet-root .auth-sent-body { margin: 0 0 var(--sp-3); font-size: var(--fs-body); color: var(--sheet-muted); }
/* V-13 (09.10.2026): lange Firmenadressen brechen um, statt bei 320 px ueber den Rand zu ragen. */
.auth-sheet-root :is(.auth-lead, .auth-sent-body) { overflow-wrap: anywhere; }
.auth-sheet-root .auth-adresse { color: var(--sheet-heading); }
/* Tippfehler-Vorschlag unter dem Mailfeld ("Meintest du ...?", 09.10.2026). Die Adresse ist ein Knopf mit voller Tipphoehe. */
.auth-sheet-root .auth-vorschlag { line-height: var(--lh-control); }
.auth-sheet-root .auth-vorschlag[hidden] { display: none; }
.auth-sheet-root .auth-vorschlag-knopf { display: inline-flex; align-items: center; vertical-align: middle; min-height: var(--tap-min); padding: 0; border: 0; background: none; color: var(--sheet-heading); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer; }

/* Design Runde 4 (09.10.2026): Schrittleiste (dasselbe Bauteil wie im Einstell-Assistenten der App),
   Codefeld unter "Schau in dein Postfach", zwei Textwege (Adresse aendern, neue Mail). */
.auth-sheet-root .wz-steps { display: flex; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-4); }
.auth-sheet-root .wz-step {
  flex: 1; display: flex; align-items: center; gap: var(--sp-1); padding-top: var(--sp-2);
  border-top: 4px solid var(--sheet-line); border-radius: 2px;
  font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--sheet-muted);
}
/* Rat Optik O-10 (08.11.2026): aktiv --sheet-heading und fett, erledigt --sheet-muted, offen --sheet-line (wie erscheinung.css). */
.auth-sheet-root .wz-step.on { border-color: var(--sheet-heading); color: var(--sheet-heading); font-weight: 700; }
.auth-sheet-root .wz-step.done { border-color: var(--sheet-muted); color: var(--sheet-text); }
.auth-sheet-root .wz-step-l { font-family: var(--font-body); font-weight: inherit; }
.auth-sheet-root .auth-neu { color: var(--sheet-heading); }
.auth-sheet-root .auth-code-block { margin-top: var(--sp-4); text-align: left; }
.auth-sheet-root .auth-code { font-family: var(--font-mono); font-size: var(--fs-h3); letter-spacing: .3em; text-align: center; }
.auth-sheet-root .auth-code::placeholder { font-size: var(--fs-body); letter-spacing: normal; }
.auth-sheet-root .auth-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--sp-4); margin-top: var(--sp-2); }
.auth-sheet-root .auth-textknopf {
  display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 var(--sp-1); border: 0; background: none;
  color: var(--sheet-heading); font: inherit; font-size: var(--fs-small); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.auth-sheet-root .auth-textknopf:disabled { color: var(--sheet-muted); text-decoration: none; cursor: default; }

/* Ab Tablet ein Dialog in der Mitte, wie in der App. */
@media (min-width: 768px) {
  .auth-sheet-root { align-items: center; padding: var(--sp-6); }
  .auth-sheet-root .auth-sheet {
    max-width: 36rem; max-height: min(86dvh, 100% - 2 * var(--sp-6));
    border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-8) var(--sp-8);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--sheet-heading) 30%, transparent);
  }
  .auth-sheet-root .auth-grip { display: none; }
  .auth-sheet-root .auth-x { top: var(--sp-4); right: var(--sp-4); }
}

.auth-sheet-root.is-closing .auth-sheet { animation: ll-blatt-zu .2s ease forwards; }
.auth-sheet-root.is-closing .auth-backdrop { animation: ll-blatt-weg .2s ease forwards; }
@keyframes ll-blatt-auf { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes ll-blatt-zu { to { transform: translateY(40px); opacity: 0; } }
@keyframes ll-blatt-weg { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .auth-sheet-root .auth-sheet { animation: none; } }

/* Optik-Rat 05.10.2026: solange das Fenster offen ist, steht die Seite dahinter nicht ein zweites Mal
   (Ueberschrift und Text doppelt). Mindesthoehe, damit die Fusszeile nicht den halben Bildschirm fuellt. */
.anmelden-seite { min-height: 60svh; }
body:has(.auth-sheet-root:not(.is-closing):not(.auth-eingebettet)) .anmelden-seite { visibility: hidden; }

/* Die Seite /anmelden: der Knopf nicht ueber die ganze Breite. */
.anmelden-seite .anmelden-knopf { margin: var(--sp-4) 0 0; }
.anmelden-seite .anmelden-knopf .btn { width: fit-content; max-width: 100%; }

/* Google-Anmeldung (Marcel 14.10.2026): weisser Knopf mit dem Original-G, darunter "oder" als Linie,
   eine kurze Zeile unter dem Hauptknopf. Gleicher Block in components.css (App) und anmelde-blatt.css (Seite). */
.auth-sheet-root .auth-google {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; min-height: 52px; margin-top: var(--sp-4); padding: 0 var(--sp-5);
  background: var(--sheet-card); color: var(--sheet-heading);
  border: 1px solid var(--sheet-field); border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-control);
  text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.auth-sheet-root .auth-google:hover { border-color: var(--sheet-heading); }
.auth-sheet-root .auth-google:active { background: var(--sheet-bg); }
.auth-sheet-root .auth-google-g { width: 20px; height: 20px; flex: none; }
.auth-sheet-root .auth-oder {
  display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3);
  font-size: var(--fs-small); color: var(--sheet-muted);
}
.auth-sheet-root .auth-oder::before, .auth-sheet-root .auth-oder::after { content: ""; flex: 1; height: 1px; background: var(--sheet-line); }
.auth-sheet-root .auth-fuss { margin: var(--sp-4) 0 0; text-align: center; font-size: var(--fs-small); line-height: 1.45; color: var(--sheet-muted); }
.auth-sheet-root .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Marcel 14.10.2026: der Titel des Anmeldefensters ruhiger, kleiner und nicht in Grossbuchstaben. */
.auth-sheet-root .auth-title.auth-title-ruhig {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3;
  text-transform: none; letter-spacing: 0; margin-bottom: var(--sp-1);
}

/* ===== Anmeldefenster: Feinschliff (Design-Durchgang 14.10.2026, Marcel: "ein wenig schoener") =====
   Gilt NUR fuer das Anmeldefenster (.auth-anmeldung an der Wurzel, src/ui/authSheet.ts), nicht fuer
   Bieten, Melden oder Bewerten, die dieselbe Huelle nutzen. DERSELBE Block steht wortgleich in
   components.css (App) und anmelde-blatt.css (lagerlos.de): beide gleich halten.
   Idee: eine ruhige Karte mit Zeichen oben, alle drei Bedienelemente (Google, Feld, Knopf) gleich hoch,
   Fehler als leise rote Flaeche statt nur roter Schrift, der Code-Schritt als eigene Flaeche. */
.auth-sheet-root.auth-anmeldung {
  --auth-feld-h: 52px;
  --auth-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.auth-sheet-root.auth-anmeldung .auth-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.auth-sheet-root.auth-anmeldung .auth-sheet { padding-inline: clamp(var(--sp-5), 6vw, var(--sp-6)); }

/* Kopf: kleines Zeichen und der ruhige Titel in einer Zeile (Marcel 14.10.) */
.auth-sheet-root.auth-anmeldung .auth-title.auth-title-ruhig { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); text-align: center; white-space: nowrap; padding-inline: 44px; }
.auth-sheet-root.auth-anmeldung .auth-marke {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--r-sm); background: var(--signal); color: var(--on-signal);
}
.auth-sheet-root.auth-anmeldung .auth-marke svg { width: 20px; height: 20px; fill: currentColor; }
/* Handy: Titel ein Stueck kleiner (Marcel 14.10.), bleibt in einer Zeile mittig zwischen Rand und Kreuz */
@media (max-width: 767px) {
  .auth-sheet-root.auth-anmeldung .auth-title.auth-title-ruhig { font-size: var(--fs-lead); gap: var(--sp-2); padding-inline: 36px; }
  .auth-sheet-root.auth-anmeldung .auth-marke { width: 28px; height: 28px; }
  .auth-sheet-root.auth-anmeldung .auth-marke svg { width: 18px; height: 18px; }
}

.auth-sheet-root.auth-anmeldung .auth-title.auth-title-ruhig { letter-spacing: -.01em; margin-bottom: var(--sp-5); }

/* Google und "oder" */
.auth-sheet-root.auth-anmeldung .auth-google {
  min-height: var(--auth-feld-h); margin-top: 0;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--sheet-heading) 8%, transparent);
  transition: border-color var(--motion-feedback) var(--ease-ui), background-color var(--motion-feedback) var(--ease-ui), transform var(--motion-feedback) var(--ease-ui);
}
@media (hover: hover) { .auth-sheet-root.auth-anmeldung .auth-google:hover { background: var(--sheet-bg); border-color: var(--sheet-heading); } }
.auth-sheet-root.auth-anmeldung .auth-google:active { transform: translateY(1px); }
.auth-sheet-root.auth-anmeldung .auth-oder {
  margin: var(--sp-5) 0; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Mailfeld mit Briefzeichen vorne; das Zeichen wird beim Tippen dunkel */
.auth-sheet-root.auth-anmeldung .auth-field { position: relative; display: block; margin: 0; }
.auth-sheet-root.auth-anmeldung .auth-cur {
  position: absolute; left: var(--sp-4); top: 50%; display: grid; place-items: center;
  transform: translateY(-50%); pointer-events: none; color: var(--sheet-placeholder);
  transition: color var(--motion-feedback) var(--ease-ui);
}
.auth-sheet-root.auth-anmeldung .auth-cur svg { width: 20px; height: 20px; }
.auth-sheet-root.auth-anmeldung .auth-field:focus-within .auth-cur { color: var(--sheet-heading); }
.auth-sheet-root.auth-anmeldung .auth-input {
  min-height: var(--auth-feld-h); font-size: var(--fs-body); background: var(--sheet-card); border-color: var(--sheet-field);
  transition: border-color var(--motion-feedback) var(--ease-ui);
}
.auth-sheet-root.auth-anmeldung .auth-field .auth-input { padding-left: calc(var(--sp-4) + 20px + var(--sp-3)); }
@media (hover: hover) { .auth-sheet-root.auth-anmeldung .auth-input:hover:not(:focus) { border-color: var(--sheet-muted); } }
.auth-sheet-root.auth-anmeldung .auth-input:focus-visible { border-color: var(--sheet-heading); }

/* Hinweise: Fehler als leise rote Flaeche, das Feld dazu mit rotem Rand */
.auth-sheet-root.auth-anmeldung .auth-hint { font-size: var(--fs-small); line-height: 1.45; }
.auth-sheet-root.auth-anmeldung .auth-hint-err {
  margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--sheet-bad) 22%, transparent);
  background: color-mix(in srgb, var(--sheet-bad) 6%, var(--sheet-card));
  color: var(--sheet-bad); font-weight: 600;
}
.auth-sheet-root.auth-anmeldung .auth-body:has(> .auth-hint-err) .auth-field .auth-input,
.auth-sheet-root.auth-anmeldung .auth-code-block:has(> .auth-hint-err) .auth-code { border-color: var(--sheet-bad); }
.auth-sheet-root.auth-anmeldung .auth-vorschlag:not(.auth-hint-err) { margin: var(--sp-1) 0 0; }

/* Hauptknopf: gleich hoch wie Feld und Google, Pfeil nach vorn; waehrend er wartet, dreht ein Ring */
.auth-sheet-root.auth-anmeldung :is(.auth-submit, .auth-code-knopf) { min-height: var(--auth-feld-h); margin-top: var(--sp-4); font-size: var(--fs-body); }
.auth-sheet-root.auth-anmeldung :is(.auth-submit, .auth-code-knopf)::after {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--auth-pfeil) center / contain no-repeat; mask: var(--auth-pfeil) center / contain no-repeat;
  transition: transform var(--motion-state) var(--ease-ui);
}
@media (hover: hover) { .auth-sheet-root.auth-anmeldung :is(.auth-submit, .auth-code-knopf):not(:disabled):hover::after { transform: translateX(3px); } }
.auth-sheet-root.auth-anmeldung :is(.auth-submit, .auth-code-knopf):disabled::after {
  width: 16px; height: 16px; background: none; -webkit-mask: none; mask: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: ll-anmelde-dreh .7s linear infinite;
}
.auth-sheet-root.auth-anmeldung .auth-fuss { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--sheet-muted); }
.auth-sheet-root.auth-anmeldung .auth-fuss b { font-weight: 600; color: var(--sheet-heading); }

/* "Schau in dein Postfach": der Fenstertitel tritt zurueck, die Nachricht fuehrt */
.auth-sheet-root.auth-anmeldung:has(.auth-sent) .auth-title { display: none; }
.auth-sheet-root.auth-anmeldung .auth-sent { padding: var(--sp-5) 0 0; animation: ll-anmelde-auf var(--motion-sheet) var(--ease-ui); }
.auth-sheet-root.auth-anmeldung .auth-sent-ic {
  width: 64px; height: 64px; margin: 0 auto var(--sp-5); background: var(--sheet-bg);
  box-shadow: inset 0 0 0 1px var(--sheet-line), 0 0 0 8px var(--sheet-bg); /* ruhig statt lime Hof (O-3) */
}
.auth-sheet-root.auth-anmeldung .auth-sent-ic svg { width: 30px; height: 30px; color: var(--sheet-heading); }
.auth-sheet-root.auth-anmeldung .auth-sent-title {
  margin: 0 0 var(--sp-2); font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h3);
  line-height: 1.3; letter-spacing: -.01em; text-transform: none; color: var(--sheet-heading);
}
.auth-sheet-root.auth-anmeldung .auth-sent-body { max-width: 36ch; margin: 0 auto; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--sheet-muted); }
.auth-sheet-root.auth-anmeldung .auth-adresse { font-weight: 600; color: var(--sheet-heading); }

/* Der Code-Schritt als eigene Flaeche */
.auth-sheet-root.auth-anmeldung .auth-code-block {
  margin-top: var(--sp-5); padding: var(--sp-4); border-radius: var(--r-card); background: var(--sheet-bg); text-align: left;
}
.auth-sheet-root.auth-anmeldung .auth-code-block .label { display: block; margin: 0 0 var(--sp-2); font-size: var(--fs-small); font-weight: 700; color: var(--sheet-heading); }
.auth-sheet-root.auth-anmeldung .auth-code {
  min-height: 60px; padding-left: calc(var(--sp-4) + .35em); font-family: var(--font-mono); font-size: var(--fs-h3);
  letter-spacing: .35em; text-align: center;
}
.auth-sheet-root.auth-anmeldung .auth-code::placeholder { font-family: var(--font-body); font-size: var(--fs-body); letter-spacing: normal; }
.auth-sheet-root.auth-anmeldung .auth-code:placeholder-shown { padding-left: var(--sp-4); }
.auth-sheet-root.auth-anmeldung .auth-code-block .auth-fineprint { margin: var(--sp-2) 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--sheet-muted); }
.auth-sheet-root.auth-anmeldung .auth-wege { gap: 0 var(--sp-6); margin-top: var(--sp-3); }
.auth-sheet-root.auth-anmeldung .auth-textknopf {
  font-size: var(--fs-small); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--sheet-field);
  transition: text-decoration-color var(--motion-feedback) var(--ease-ui);
}
@media (hover: hover) { .auth-sheet-root.auth-anmeldung .auth-textknopf:not(:disabled):hover { text-decoration-color: var(--sheet-heading); } }

/* Ab Tablet ein schmalerer Dialog: ein Formular mit einer Spalte braucht keine 36rem */
@media (min-width: 768px) {
  .auth-sheet-root.auth-anmeldung .auth-sheet { max-width: 28rem; padding: var(--sp-8); }
}
@keyframes ll-anmelde-dreh { to { transform: rotate(360deg); } }
@keyframes ll-anmelde-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .auth-sheet-root.auth-anmeldung .auth-sent { animation: none; }
  .auth-sheet-root.auth-anmeldung :is(.auth-submit, .auth-code-knopf):disabled::after { animation: none; border-right-color: currentColor; opacity: .5; }
}

/* Die Seite /anmelden (Rat Optik 10.11.2026, F-13): das Fenster als ruhige Karte auf der Seite unter der H1 statt als
   Blatt ueber einer leeren, abgedunkelten Flaeche. Ohne Schleier, Greifer, X und eigenen Titel (authSheet.ts eingebettet). */
.auth-sheet-root.auth-eingebettet { position: static; inset: auto; z-index: auto; display: block; margin-top: var(--sp-5); padding: 0; }
.auth-eingebettet .auth-sheet {
  max-width: var(--container-narrow); max-height: none; margin: 0; overflow: visible;
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--sheet-shadow); animation: none;
}
@media (min-width: 768px) { .auth-eingebettet .auth-sheet { padding: var(--sp-8); } }
.anmelden-seite .anmelden-knopf[hidden] { display: none; }

/* Tippen am Handy (26.11.2026, src/inseln/blatt-tastatur.ts): Solange ein Feld im Blatt den Fokus hat, legt das Skript die
   Wurzel genau auf den sichtbaren Ausschnitt (top und height, Klasse blatt-tastatur am html). Das Blatt fuellt hoechstens
   diese Flaeche und rollt in sich: nichts liegt unter der Tastatur, nichts ueber dem oberen Rand. Gilt fuer jedes Blatt
   (Anmelden, Bieten), nicht fuer die eingebettete Karte auf /anmelden. */
html.blatt-tastatur .auth-sheet-root:not(.auth-eingebettet) { box-sizing: border-box; }
html.blatt-tastatur .auth-sheet-root:not(.auth-eingebettet) .auth-sheet { max-height: 100%; }
/* Meldet der Browser die Tastatur nicht (blatt-oben), sitzt das Blatt oben am Bildschirm und laesst sich so weit rollen,
   dass das Feld in der oberen Haelfte steht: dort liegt nie eine Tastatur. */
html.blatt-oben .auth-sheet-root:not(.auth-eingebettet) { align-items: flex-start; }
html.blatt-oben .auth-sheet-root:not(.auth-eingebettet) .auth-sheet {
  min-height: 100%; border-radius: 0;
  padding-top: calc(var(--sp-3) + env(safe-area-inset-top, 0px)); padding-bottom: 50vh; padding-bottom: 50svh;
}

/* Handy-Pruefung 26.11.2026 (C2): Mit Tastatur rollt das Blatt in sich, der Schliessen-Knopf und die Ueberschrift verschwanden nach oben, man kam erst nach dem
   Schliessen der Tastatur wieder hinaus. Solange getippt wird, klebt der Knopf oben rechts im sichtbaren Teil des Blatts. */
html.blatt-tastatur .auth-sheet-root:not(.auth-eingebettet) .auth-x {
  position: sticky; top: 0; right: auto; float: right; z-index: 3;
  margin: 0 calc(-1 * var(--sp-2)) calc(-1 * var(--tap-min)) 0;
  background: var(--sheet-card); border-radius: 50%;
}
