/* Mappe — Anmelde-Seiten: links Manila-Deckel mit These, rechts das Formular-Blatt hinter Registerreitern. */

html { overflow-x: clip; }
body { overflow-x: clip; }

.skip { display: inline-flex; align-items: center; min-height: 44px; }
/* Touch-Ziele ≥ 44 px */
.sprache button, .thema-knopf { min-height: 44px; min-width: 44px; }
.reiter { min-height: 44px; }

.wortmarke { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: inherit; text-decoration: none; font: 400 1.5rem/1 var(--f-display); }
.wortmarke .logo { width: 32px; height: 32px; flex: none; transition: transform .2s var(--ease); }
.wortmarke:hover .logo { transform: rotate(-4deg) translateY(-1px); }
.logo-deckel { fill: var(--manila); stroke: var(--manila-kante); stroke-width: 1.2; }
.logo-blatt { fill: var(--blatt); stroke: var(--graphit); stroke-width: 1.2; }
.logo-zeilen { fill: none; stroke: var(--deckel); stroke-width: 1.4; stroke-linecap: round; }
.auth-deckel .logo-deckel { fill: var(--blatt); stroke: var(--manila-ink); }

.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; }

/* ---------- Manila-Deckel ---------- */
.auth-deckel { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--manila); color: var(--manila-ink); border-right: 1px solid var(--manila-kante); overflow: hidden; }
/* Rilllinien des Kartons */
.auth-deckel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 1.1rem; width: 6px; border-left: 1px solid var(--manila-kante); border-right: 1px solid var(--manila-kante); opacity: .6; }
.auth-deckel .wortmarke { color: var(--manila-ink); }
.auth-these { max-width: 26rem; }
.these { font: 400 clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem)/1.08 var(--f-display); margin: 0 0 1rem; letter-spacing: -.01em; }
.these-sub { font-size: 1.05rem; margin: 0; max-width: 34ch; }
.auth-trust { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font: 400 .8rem/1.5 var(--f-mono); max-width: 40ch; }
.auth-trust svg { width: 18px; height: 18px; flex: none; }

/* ---------- Formular-Seite ---------- */
.auth-rechts { display: flex; flex-direction: column; min-width: 0; padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.5rem; }
.auth-oben { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.auth-werkzeug { display: inline-flex; gap: .5rem; align-items: center; }
.slot { display: inline-flex; }
.slot-sprache { min-width: 134px; min-height: 46px; }
.slot-thema { min-width: 46px; min-height: 46px; }
.auth-zurueck { padding-left: .4rem; }
.auth-zurueck svg { transition: transform .18s var(--ease); }
.auth-zurueck:hover svg { transform: translateX(-3px); }

.auth-mitte { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 2rem; }
.auth-mappe { width: min(100%, 30rem); }
.auth-reiter { padding-left: .5rem; }
.auth-blatt { padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); box-shadow: var(--schatten-hoch); }
.auth-blatt h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); margin-bottom: .4rem; }
.auth-blatt .lead { font-size: 1rem; margin-bottom: 1.5rem; }
.auth-blatt form { display: block; }
.auth-blatt .form-fehler { margin-bottom: 1rem; }
.auth-blatt .form-fehler:focus { outline: none; }
.nochmal { margin: -.25rem 0 1rem; }

.feld-fehler { display: flex; gap: .45rem; align-items: flex-start; margin: 0; color: var(--rotstift); font-size: .88rem; font-weight: 600; }
.feld-fehler::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: .1rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: .7rem; line-height: 1; }
.pw-knopf { min-width: 6.5rem; }
.pw-hinweis { font-family: var(--f-mono); font-size: .78rem; }
.pw-hinweis.ist-ok { color: var(--deckel); }
.auth-vergessen { margin: -.4rem 0 1.25rem; text-align: right; font-size: .92rem; }
.auth-vergessen a, .auth-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.auth-alt { margin: 1.25rem 0 0; text-align: center; color: var(--graphit-2); }

.btn--gross { min-height: 52px; font-size: 1.02rem; }
.btn--primaer:hover, .btn--rahmen:hover { transform: translateY(-1px); box-shadow: var(--schatten); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: none; }

/* Zustimmungen: getrennt, gut sichtbar */
.zustimmung { margin-bottom: 1rem; }
.zustimmung .check { margin-bottom: .35rem; }
.check { font-size: .95rem; line-height: 1.5; }
.check a { font-weight: 600; }
.einwilligung { margin: 0 0 1.5rem; padding: 1rem 1rem .9rem; border: 1.5px solid var(--deckel); border-radius: var(--r); background: var(--deckel-hell); }
.einwilligung legend { float: left; width: 100%; margin: 0 0 .7rem; padding: 0; font: 700 .78rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphit); }
.einwilligung legend + * { clear: both; }
.einwilligung .check { font-weight: 600; margin-bottom: .6rem; }
.einwilligung-hinweis { margin: 0 0 .25rem; padding-left: 2rem; font-size: .88rem; color: var(--graphit); }
.check input[aria-invalid="true"] { outline: 2px solid var(--rotstift); outline-offset: 2px; }

/* Lade- und Ergebniszustand */
.lade { display: flex; align-items: center; gap: .6rem; color: var(--graphit-2); margin: 1rem 0 0; }
.lade::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--deckel); border-right-color: transparent; animation: dreh .8s linear infinite; }
.ergebnis { animation: einlegen .32s var(--ease) both; }
.ergebnis-titel { font-size: 1.5rem; margin-top: .5rem; }
.ergebnis-titel:focus { outline: none; }
.ergebnis-marke { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--deckel-hell); position: relative; margin-bottom: .75rem; }
.ergebnis-marke::after { content: ""; position: absolute; left: .85rem; top: .7rem; width: .9rem; height: .5rem; border-left: 2.5px solid var(--deckel); border-bottom: 2.5px solid var(--deckel); transform: rotate(-45deg); }
.ergebnis--fehler .ergebnis-marke { background: var(--rotstift-hell); }
.ergebnis--fehler .ergebnis-marke::after { left: 1.18rem; top: .55rem; width: 0; height: 1.05rem; border-bottom: 0; border-left-color: var(--rotstift); transform: none; }
.ergebnis--fehler .ergebnis-marke::before { content: ""; position: absolute; left: 1.13rem; bottom: .5rem; width: 4px; height: 4px; border-radius: 50%; background: var(--rotstift); }
.ergebnis .lead { margin-bottom: 1rem; }
.mail-zeile { margin: -.5rem 0 1.25rem; font-family: var(--f-mono); font-size: .9rem; overflow-wrap: anywhere; }
.ergebnis-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.ergebnis form { margin-top: 1.25rem; }

.auth-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; font-size: .88rem; }
.auth-fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphit-2); text-decoration: none; }
.auth-fuss a:hover { color: var(--deckel); text-decoration: underline; }

/* ---------- Tablet / Mobil: gestapelt, Deckel als Kopfband ---------- */
@media (max-width: 920px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-deckel { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--manila-kante); gap: 1rem; padding: 1rem 1.25rem 1.25rem; }
  .auth-deckel::before { top: auto; bottom: .7rem; left: 0; right: 0; width: auto; height: 6px; border: 0; border-top: 1px solid var(--manila-kante); border-bottom: 1px solid var(--manila-kante); }
  .these { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); margin-bottom: .5rem; }
  .auth-trust { padding-bottom: .6rem; }
  .auth-rechts { padding-top: .75rem; }
  .auth-mitte { align-items: flex-start; padding-block: 1.5rem 2rem; }
}
@media (max-width: 768px) {
  .these-sub { font-size: .98rem; }
}
@media (max-width: 560px) {
  .auth-blatt { padding: 1.15rem; }
  .auth-oben .auth-zurueck span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .auth-zurueck { min-width: 44px; padding-inline: .5rem; }
  .einwilligung { padding: .85rem .8rem .75rem; }
  .einwilligung-hinweis { padding-left: 0; }
  .ergebnis-knoepfe .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
