/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand · redesign: full · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R5 V3 · weakest: S, eine Anmeldung gleicht jeder anderen; Wortmarke, Blatt und Rechtliches stehen deshalb als Briefkopf an einer Kante statt mittig gestapelt */
/* Anmeldung, 404 und (über impressum.css) das Impressum: öffentliche Seiten ohne Bausteine aus dem angemeldeten Bereich. */
@import url("./tokens.css");
@import url("./base.css");

body { background: var(--desk); color: var(--ink); font: 400 14px/1.5 var(--font-body); }

/* Eine Spalte mit einer Aufgabe, optisch im oberen Drittel: ein Teil Luft darüber, zwei darunter */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); padding: var(--space-lg) var(--space-md); }
.auth::before { content: ""; flex: 1 1 0; }
.auth::after { content: ""; flex: 2 1 0; }
.auth > * { width: min(24rem, 100%); }

/* Briefkopf: Wortmarke links, Produktzeile rechts auf derselben Grundlinie */
.auth-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }
.auth-head > p:last-child { padding-bottom: var(--space-2xs); font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.auth-logo { margin: 0; }
.auth-logo img, .kw-lockup { display: block; width: 168px; max-width: 100%; height: auto; }

/* Das Blatt: eine Kante, kein Schatten */
.auth-stage { display: grid; gap: var(--space-lg); }
.auth-card { display: grid; gap: var(--space-md); padding: 32px; background: var(--sheet); border: 1px solid var(--sep); border-radius: 10px; }
.auth-card.hidden { display: none; }
.auth-card h1 { max-width: none; margin-bottom: var(--space-2xs); font-size: 24px; line-height: 1.25; }
.lead-text { max-width: 60ch; color: var(--ink-2); line-height: 1.55; }

/* Felder: Beschriftung darüber, Kante 3:1, Fokus als Outline ohne Übergang */
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field label { font-size: 13px; font-weight: 500; line-height: 20px; }
.field small { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.field input { width: 100%; min-width: 0; height: 40px; padding: 0 var(--space-sm); border: 1px solid var(--field-edge); border-radius: var(--radius-input); background: var(--sheet); color: var(--ink); font-size: 15px; }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.field input[aria-invalid="true"] { border-color: var(--red-text); }
/* Die Meldung steht als Text unter dem letzten Feld; ihre Zeile ist reserviert, damit nichts springt */
.form-error { min-height: 1.5em; min-height: 1lh; margin-top: calc(-1 * var(--space-xs)); font-size: 13px; line-height: 1.5; color: var(--red-text); }
.hint { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Die eine gefüllte Aktion der Seite */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--field-edge); border-radius: var(--radius-input); background: var(--sheet); color: var(--ink); font: 500 14px/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: calc(-1 * var(--space-2xs)); } /* Trefferfläche 48 px */
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn.primary { border-color: var(--brand-action); background: var(--brand-action); color: var(--on-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { border-color: var(--sep-2); background: var(--fill-3); color: var(--ink-3); cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.auth-card a.btn { justify-self: start; }
@media (hover: hover) { .btn.primary:hover:not(:disabled) { border-color: var(--color-accent-2); background: var(--color-accent-2); } }

/* Rechtliches: Tinte mit Unterstreichung */
.auth-foot, .legal-foot { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: 13px; }
.auth-foot a, .legal-foot a { padding: var(--space-2xs) 0; color: var(--ink-2); }
@media (hover: hover) { .auth-foot a:hover, .legal-foot a:hover { color: var(--ink); } }

@media (max-width: 40rem) {
  body { font-size: 15px; }
  .auth-card { padding: var(--space-lg); }
  .field label, .field small, .form-error, .hint, .auth-foot, .legal-foot { font-size: 14px; }
  .field input { font-size: 16px; }
  .btn { font-size: 15px; }
}

/* Henn & Fries × Kanzleiwerft: das Logo der Kanzlei führt, Kanzleiwerft steht kleiner daneben, beide in Originalfarben.
   Kanzleiwerft sitzt auf der Mitte der Wortmarke, nicht der Unterzeile. Titel in Roboto wie auf henn-fries.de. */
.hf-lockup { display: inline-flex; align-items: flex-start; gap: 14px; line-height: 1; }
.hf-lockup img { display: block; width: auto; max-width: none; }
.hf-lockup .hf-wort { height: 44px; }
.hf-x { margin-top: 4px; font-size: 18px; font-weight: 300; line-height: 1; color: var(--ink-3); }
.hf-lockup .kw-wort { height: 21px; margin-top: 3px; }
.auth-head { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.auth-head > p:last-child { padding-bottom: 0; }
.auth-card h1, .legal h1, main h1 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; font-size: 28px; }
@media (max-width: 24rem) { .hf-lockup .hf-wort { height: 36px; } .hf-lockup .kw-wort { height: 17px; margin-top: 2px; } .hf-lockup { gap: 10px; } }
