/*
 * Anmelde-Widget.
 *
 * Gestaltungslinie „Panels“ (ADR-058, docs/09-designsystem.md): Knöpfe und
 * Felder als Pille, Hauptaktion mit Ember-Pfeilkreis, Titel 800 eng, Fokusring
 * 3px in der Textfarbe (Ember erreicht auf Ivory keine 3:1, docs/09 2.3).
 * Flach - kein Schatten. Beim Überfahren wechselt die Farbe, der
 * Pfeilkreis gleitet 3px; gedrückt gibt er nach. Jede Hover-Regel hat ihr
 * :active daneben, weil es am Finger kein Überfahren gibt.
 *
 * Zwei Darstellungen, eine Logik:
 *   .uc-auth            Karte - Überschrift, Umschalter, Feld, Knopf, Wechsel
 *   .uc-auth--zeile     eine weiße Pille mit Feld und Knopf, darunter ein
 *                       Hinweis. Für den Hero auf dunklem Bildgrund gedacht.
 * Beide schicken dieselbe Anfrage an denselben Endpunkt (ADR-007).
 *
 * Jede Eigenschaft, die die Redaktion einstellen kann, steht als Custom Property
 * am Wrapper - geschrieben von den Elementor-Steuerungen. Der zweite Wert in
 * jedem var() ist die Vorgabe: erst die Rolle aus dem Theme, dann ein
 * funktionierender Rückfall. So sieht das Widget ohne jede Einstellung
 * brauchbar aus und passt sich trotzdem vollständig an.
 *
 * @FEAT:IDENT.MAGICLINK
 * @FEAT:BRAND.STYLE
 */

.uc-auth {
	/* Fokus- und Fehlerfarbe für den Ring um die Zeile werden hier, im
	   Farbschema der Umgebung, aufgelöst: Der Ring liegt ausserhalb der
	   Pille, auf dem Grund der Seite. Die Pille selbst setzt das helle
	   Schema - dort waeren Deep Blue und das Rot fuer hellen Grund auf einem
	   dunklen Hero unsichtbar. */
	--uc-auth-zeile-fokus: var( --uc-auth-feld-ring-farbe, var( --uc-text, #1c2b4a ) );
	--uc-auth-zeile-fehler: var( --uc-auth-fehler, var( --uc-fehler, #b3261e ) );

	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	max-width: var( --uc-auth-breite, 34rem );
	margin-inline: 0;
	padding: var( --uc-auth-innen, 0 );
	border-radius: var( --uc-radius-gross, 28px );
	background: var( --uc-auth-flaeche, transparent );
	color: var( --uc-text, #1c2b4a );
}

.uc-auth *,
.uc-auth *::before,
.uc-auth *::after {
	box-sizing: border-box;
}

.uc-auth__titel {
	margin: 0 0 var( --uc-raum-3, 12px );
	color: var( --uc-text, #1c2b4a );
	font-size: var( --uc-schrift-h2, 1.75rem );
	font-weight: 800;
	letter-spacing: var( --uc-spationierung-titel, -0.03em );
	line-height: 1.05;
	text-wrap: balance;
}

.uc-auth__hinweis {
	margin: 0 0 var( --uc-raum-4, 16px );
	color: var( --uc-text-leise, #4c5c76 );
	line-height: 1.6;
}

.uc-auth__hinweis--klein {
	font-size: var( --uc-schrift-klein, 0.875rem );
}

.uc-auth__formular {
	display: grid;
	gap: var( --uc-auth-gap, var( --uc-raum-4, 16px ) );
	justify-items: var( --uc-auth-ausrichtung, stretch );
}

/* Nur für Screenreader: sichtbar beschriftet ist die Zeile über den
   Platzhalter, vorgelesen wird die echte Beschriftung. */
.uc-auth__nur-lesbar {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Umschalter */

.uc-auth__typen {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.uc-auth__typen legend {
	padding: 0;
	margin-bottom: var( --uc-raum-2, 8px );
	color: var( --uc-auth-label, var( --uc-text-leise, #4c5c76 ) );
	font-size: var( --uc-schrift-klein, 0.875rem );
}

.uc-auth__leiste {
	--uc-auth-typ-zahl: 2;

	position: relative;
	display: grid;
	grid-template-columns: repeat( var( --uc-auth-typ-zahl ), 1fr );
	padding: 4px;
	border: 1px solid var( --uc-rahmen, #e3dacb );
	border-radius: var( --uc-auth-typ-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-auth-typ-leiste, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-auth__typ {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var( --uc-auth-typ-innen, 10px 16px );
	border-radius: var( --uc-auth-typ-radius, var( --uc-radius-knopf, 999px ) );
	color: var( --uc-auth-typ-text, var( --uc-text-leise, #4c5c76 ) );
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: color var( --uc-zeit, 250ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

/* Der Radiobutton bleibt bedienbar, ist aber unsichtbar: Tastatur und
   Screenreader arbeiten weiter mit ihm, nicht mit einem nachgebauten Klickfeld. */
.uc-auth__typ input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.uc-auth__typ input:checked + span {
	color: var( --uc-auth-typ-text-aktiv, var( --uc-auf-aktion, #f2ede4 ) );
	font-weight: 700;
}

/* Der gleitende Marker. Bewegt wird ausschliesslich transform - das laeuft auf
   der Grafikkarte und erzeugt kein neues Layout. */
.uc-auth__marker {
	position: absolute;
	z-index: 0;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc( ( 100% - 8px ) / var( --uc-auth-typ-zahl ) );
	border-radius: var( --uc-auth-typ-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-auth-typ-marker, var( --uc-aktion, #1c2b4a ) );
	transition: transform var( --uc-zeit, 250ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.uc-auth__leiste:has( .uc-auth__typ:nth-of-type( 2 ) input:checked ) .uc-auth__marker {
	transform: translateX( 100% );
}

/* Ohne :has bleibt der Marker stehen - die Auswahl ist trotzdem am Text
   erkennbar. Kein Zustand haengt allein an der Bewegung. */

.uc-auth__typ input:focus-visible + span {
	outline: 2px solid var( --uc-auth-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 6px;
	border-radius: var( --uc-radius-knopf, 999px );
}

/* ------------------------------------------------------------------- Felder */

/*
 * Gewicht gegen das Elementor-Kit: Das Kit stylt jedes Eingabefeld der Seite
 * ueber `.elementor-kit-N input:not([type="button"]):not([type="submit"])`
 * (Gewicht 0,3,1) - Rahmen, Radius, Innenabstand, Hintergrund. Mit dem
 * schlichten `.uc-auth__feld input` (0,1,1) gewann das Kit, und die
 * Feld-Steuerungen dieses Widgets wirkten ins Leere, der Fokusrahmen auch.
 * Deshalb derselbe Selektor wie im Kit, eingeschraenkt auf dieses Widget
 * (0,4,1). Gleiches gilt unten fuer die Schaltflaechen (Kit: `button`).
 */

.uc-auth__feld {
	display: grid;
	gap: var( --uc-raum-2, 8px );
	width: 100%;
}

.uc-auth__feld > span {
	color: var( --uc-auth-label, var( --uc-text-leise, #4c5c76 ) );
	font-size: var( --uc-schrift-klein, 0.875rem );
}

/* Das Feld ist eine Pille, wie der Knopf (docs/09, Kapitel 3). */
.uc-auth .uc-auth__feld input:not( [type="button"] ):not( [type="submit"] ) {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: var( --uc-auth-feld-innen, 14px 22px );
	border: var( --uc-auth-feld-rahmenbreite, 1px ) solid var( --uc-auth-feld-rahmen, var( --uc-rahmen-stark, #d8cdbb ) );
	border-radius: var( --uc-auth-feld-radius, var( --uc-radius-feld, 4px ) );
	background: var( --uc-auth-feld-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-auth-feld-text, var( --uc-text, #1c2b4a ) );
	font: inherit;
	font-weight: 500;
	transition: border-color var( --uc-zeit-kurz, 120ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.uc-auth .uc-auth__feld input:not( [type="button"] ):not( [type="submit"] )::placeholder {
	color: var( --uc-auth-feld-platzhalter, var( --uc-text-leise, #4c5c76 ) );
	opacity: 1;
}

/*
 * Fokus im Feld (Tobias, verbindlich): kein Ring, der 1px-Rahmen wird orange.
 * Ember druck statt Ember: 4,76:1 auf Weiß und 4,03:1 auf Ivory - reines Ember
 * erreicht auf Ivory nur 2,97:1 und damit nicht die 3:1 für Bedienelemente.
 *
 * Ein zusätzlicher Ring ist als Steuerung möglich (Vorgabe 0, also aus).
 *
 * box-shadow: none ist Pflicht: Hello Elementor (reset.css) legt auf
 * input:focus-visible einen weissen 4px-Schatten als zweiten Ring. Chrome
 * wertet Textfelder auch beim Mausklick als :focus-visible.
 */
.uc-auth .uc-auth__feld input:not( [type="button"] ):not( [type="submit"] ):focus,
.uc-auth .uc-auth__feld input:not( [type="button"] ):not( [type="submit"] ):focus-visible {
	border-color: var( --uc-auth-feld-rahmen-fokus, var( --uc-akzent-druck, #c94726 ) );
	background: var( --uc-auth-feld-flaeche-fokus, var( --uc-auth-feld-flaeche, var( --uc-flaeche-hoch, #ffffff ) ) );
	outline: var( --uc-auth-feld-ring, 0 ) solid var( --uc-auth-feld-ring-farbe, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	box-shadow: none;
}

/* Vor- und Nachname nebeneinander, wenn Platz ist; sonst untereinander.
   Nur beim Registrieren - beim Anmelden gibt es keinen Namen zu nennen. */
.uc-auth__namen {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 11rem, 100% ), 1fr ) );
	gap: var( --uc-auth-gap, var( --uc-raum-3, 12px ) );
}

.uc-auth[data-modus="anmelden"] .uc-auth__namen {
	display: none;
}

.uc-auth .uc-auth__feld input:not( [type="button"] ):not( [type="submit"] )[aria-invalid="true"] {
	border-color: var( --uc-auth-fehler, var( --uc-fehler, #b3261e ) );
}

/* --------------------------------------------------------------- Schaltfläche */

/*
 * Die Hauptaktion: Pille mit Pfeilkreis. Der Kreis sitzt links, die Pille hat
 * deshalb links nur so viel Innenabstand, wie der Kreis Luft braucht.
 */
.uc-auth .uc-auth__knopf,
.uc-auth .uc-auth__knopf:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var( --uc-raum-3, 12px );
	width: var( --uc-auth-knopf-breite, auto );
	min-height: 52px;
	margin: 0;
	padding: var( --uc-auth-knopf-innen, 6px 24px 6px 6px );
	border: 0;
	border-radius: var( --uc-auth-knopf-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-auth-knopf-flaeche, var( --uc-aktion, #1c2b4a ) );
	color: var( --uc-auth-knopf-text, var( --uc-auf-aktion, #f2ede4 ) );
	font: inherit;
	font-weight: 700;
	line-height: 1.1;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var( --uc-zeit, 250ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) ),
		color var( --uc-zeit, 250ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

/* Der Pfeilkreis: Ember-Fläche, Pfeil als SVG. Ember trägt keinen Text - der
   Pfeil ist ein Zeichen, kein Wort, und steht in der dunklen Rolle darauf. */
.uc-auth__kreis {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: var( --uc-auth-kreis-groesse, 40px );
	height: var( --uc-auth-kreis-groesse, 40px );
	border-radius: var( --uc-radius-rund, 999px );
	background: var( --uc-auth-kreis-flaeche, var( --uc-akzent, #e85d3a ) );
	color: var( --uc-auth-kreis-pfeil, var( --uc-auf-akzent, #1c2b4a ) );
	transition: transform var( --uc-zeit, 250ms ) var( --uc-kurve, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.uc-auth__kreis svg {
	display: block;
	width: 45%;
	height: 45%;
}

.uc-auth .uc-auth__knopf:hover:not( [disabled] ) {
	background: var( --uc-auth-knopf-flaeche-hover, var( --uc-aktion-druck, #16233d ) );
	color: var( --uc-auth-knopf-text-hover, var( --uc-auth-knopf-text, var( --uc-auf-aktion, #f2ede4 ) ) );
}

.uc-auth .uc-auth__knopf:hover:not( [disabled] ) .uc-auth__kreis {
	transform: translateX( 3px );
}

/* Gedrückt: gilt auch für den Finger - :active löst bei Berührung aus,
   während :hover am Handy gar nicht existiert. Der Kreis gibt nach. */
.uc-auth .uc-auth__knopf:active:not( [disabled] ) {
	background: var( --uc-auth-knopf-flaeche-aktiv, var( --uc-auth-knopf-flaeche-hover, var( --uc-aktion-druck, #16233d ) ) );
	color: var( --uc-auth-knopf-text-aktiv, var( --uc-auth-knopf-text, var( --uc-auf-aktion, #f2ede4 ) ) );
}

.uc-auth .uc-auth__knopf:active:not( [disabled] ) .uc-auth__kreis {
	transform: translateX( 1px ) scale( 0.94 );
}

.uc-auth .uc-auth__knopf:focus-visible {
	outline: 2px solid var( --uc-auth-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	box-shadow: none; /* weisser Zweitring aus Hello Elementor */
}

.uc-auth .uc-auth__knopf[disabled] {
	opacity: var( --uc-auth-knopf-deckkraft, 0.5 );
	cursor: not-allowed;
}

/* Laden: der Knopf ist gesperrt, der Zeiger sagt, dass gearbeitet wird. */
.uc-auth[data-zustand="laedt"] .uc-auth__knopf[disabled] {
	cursor: progress;
}

/* Die leise Schaltfläche (Abmelden): Pille mit Rahmen, ohne Pfeilkreis -
   Nebenwege tragen keinen Pfeil. */
.uc-auth .uc-auth__knopf--leise,
.uc-auth .uc-auth__knopf--leise:focus {
	padding: var( --uc-auth-knopf-innen-leise, 12px 24px );
	border: 1px solid var( --uc-rahmen-stark, #d8cdbb );
	background: transparent;
	color: var( --uc-text, #1c2b4a );
}

/* Die leise Schaltflaeche bleibt beim Ueberfahren leise: nur Rahmen und
   Flaeche wechseln, wie bei jedem Bedienelement (09, Kapitel 6). */
.uc-auth .uc-auth__knopf--leise:hover:not( [disabled] ),
.uc-auth .uc-auth__knopf--leise:active:not( [disabled] ) {
	border-color: var( --uc-text-leise, #4c5c76 );
	background: var( --uc-flaeche-hoch, #ffffff );
	color: var( --uc-text, #1c2b4a );
}

/* Angemeldet: Weg weiter (Link) und Abmelden untereinander. */
.uc-auth > .uc-auth__knopf + .uc-auth__knopf {
	margin-top: var( --uc-raum-3, 12px );
}

.uc-auth > .uc-auth__knopf {
	align-self: flex-start;
}

/* ---------------------------------------------------------------- Meldungen */

.uc-auth__meldung:empty {
	display: none;
}

/*
 * Keine farbige Kante als Zierde (ADR-058): Die Meldung ist eine Karte mit
 * Rahmen rundum, der Zustand wechselt die Rahmenfarbe - und der Text nennt
 * ihn im Klartext. Zustand nie allein über Farbe.
 */
.uc-auth__meldung {
	width: 100%;
	margin: 0;
	padding: var( --uc-auth-meldung-innen, 12px 18px );
	border: var( --uc-auth-meldung-rahmenbreite, 1px ) solid var( --uc-rahmen, #e3dacb );
	border-radius: var( --uc-auth-meldung-radius, var( --uc-radius, 20px ) );
	background: var( --uc-auth-meldung-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-auth-meldung-text, var( --uc-text, #1c2b4a ) );
	line-height: 1.5;
}

.uc-auth__meldung[data-art="erfolg"] {
	border-color: var( --uc-auth-erfolg, var( --uc-erfolg, #1e7a4c ) );
	background: var( --uc-auth-meldung-flaeche-erfolg, var( --uc-auth-meldung-flaeche, var( --uc-flaeche-hoch, #ffffff ) ) );
}

.uc-auth__meldung[data-art="fehler"] {
	border-color: var( --uc-auth-fehler, var( --uc-fehler, #b3261e ) );
	background: var( --uc-auth-meldung-flaeche-fehler, var( --uc-auth-meldung-flaeche, var( --uc-flaeche-hoch, #ffffff ) ) );
}

.uc-auth__meldung[data-art="wartet"] {
	border-color: var( --uc-rahmen-stark, #d8cdbb );
}

/* ------------------------------------------------------------- Spamschutz */

/* Unsichtbar, aber nicht display:none - manche Bots ueberspringen genau das. */
.uc-auth__falle {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
}

/* ------------------------------------------------- Anmelden / Registrieren */

/*
 * Zwei Modi, ein Formular. Sichtbar ist immer nur die Textfassung des aktuellen
 * Modus — beide stehen im Markup, damit der Wechsel ohne Nachladen auskommt.
 * Fachlich aendert sich dadurch nichts: beide Modi schicken dieselbe Anfrage
 * und bekommen dieselbe Antwort (ADR-007).
 */
.uc-auth[data-modus="anmelden"] [data-uc-text="registrieren"],
.uc-auth[data-modus="registrieren"] [data-uc-text="anmelden"] {
	display: none;
}

/* Der Kontotyp zaehlt nur fuer neue Konten - beim Anmelden waere er eine
   Entscheidung ohne Wirkung. */
.uc-auth[data-modus="anmelden"] .uc-auth__typen {
	display: none;
}

.uc-auth__wechsel {
	margin: var( --uc-auth-wechsel-abstand, var( --uc-raum-4, 16px ) ) 0 0;
	color: var( --uc-auth-wechsel-text, var( --uc-text-leise, #4c5c76 ) );
	font-size: var( --uc-schrift-klein, 0.875rem );
}

/* Ein Knopf, kein Link: er fuehrt nirgendwohin, er schaltet um. Als <a href="#">
   waere er fuer Screenreader eine Falschaussage. */
.uc-auth .uc-auth__wechsel-link,
.uc-auth .uc-auth__wechsel-link:focus {
	padding: 0;
	border: 0;
	background: none;
	color: var( --uc-auth-wechsel-link, var( --uc-akzent-text, #a8441f ) );
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Gedrueckt wie ueberfahren - am Finger gibt es kein Ueberfahren. */
.uc-auth .uc-auth__wechsel-link:hover,
.uc-auth .uc-auth__wechsel-link:active {
	background: none; /* sonst greift die Kit-Flaeche fuer button:hover */
	color: var( --uc-auth-wechsel-link-hover, var( --uc-auth-wechsel-link, var( --uc-akzent-text, #a8441f ) ) );
}

.uc-auth .uc-auth__wechsel-link:focus-visible {
	outline: 2px solid var( --uc-auth-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	box-shadow: none; /* weisser Zweitring aus Hello Elementor */
	border-radius: 4px;
}

/* ================================================================== Zeile */

/*
 * Darstellung „Zeile“: eine weiße Pille mit Feld und Knopf (docs/09, 8a
 * „Eingabe-Pille“). Die Pille setzt das helle Farbschema (.uc-schema-hell aus
 * dem Theme) - sie bleibt auch auf dunklem Bildgrund weiß, der Knopf darin
 * Deep Blue. Die Hinweiszeile darunter liest die Rollen der Umgebung und ist
 * damit auf dunklem Grund hell, auf hellem Grund dunkel.
 *
 * Ob Feld und Knopf nebeneinander passen, entscheidet die Breite des Widgets,
 * nicht die des Fensters (Container-Abfrage) - in einer schmalen Spalte
 * stehen sie auch am Desktop untereinander.
 */
.uc-auth--zeile {
	container-type: inline-size;
	border-radius: 0;
}

.uc-auth__formular--zeile {
	gap: var( --uc-auth-gap, var( --uc-raum-3, 12px ) );
}

.uc-auth__zeile {
	display: flex;
	align-items: center;
	gap: var( --uc-raum-2, 8px );
	width: 100%;
	padding: var( --uc-auth-zeile-innen, 6px );
	border: 1px solid var( --uc-auth-zeile-rahmen, var( --uc-rahmen, #e3dacb ) );
	border-radius: var( --uc-auth-zeile-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-auth-zeile-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-text, #1c2b4a );
}

.uc-auth__zeilenfeld {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

/* Im Feld der Zeile traegt die Pille Rahmen und Flaeche - das Feld selbst
   ist durchsichtig. Gewicht gegen das Kit wie oben (0,4,1). */
.uc-auth .uc-auth__zeilenfeld input:not( [type="button"] ):not( [type="submit"] ) {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 0 var( --uc-raum-4, 16px );
	border: 0;
	border-radius: var( --uc-radius-knopf, 999px );
	background: transparent;
	color: var( --uc-auth-feld-text, var( --uc-text, #1c2b4a ) );
	font: inherit;
	font-weight: 500;
}

.uc-auth .uc-auth__zeilenfeld input:not( [type="button"] ):not( [type="submit"] )::placeholder {
	color: var( --uc-auth-feld-platzhalter, var( --uc-text-leise, #4c5c76 ) );
	opacity: 1;
}

/* Der Fokus liegt auf der ganzen Pille, nicht auf dem Feld darin - so wie
   man sie sieht. box-shadow: none gegen den Zweitring aus Hello Elementor. */
.uc-auth .uc-auth__zeilenfeld input:not( [type="button"] ):not( [type="submit"] ):focus,
.uc-auth .uc-auth__zeilenfeld input:not( [type="button"] ):not( [type="submit"] ):focus-visible {
	outline: 0;
	box-shadow: none;
}

/* Fokus wie bei jedem Feld: kein Ring, der 1px-Rahmen der Pille wird orange
   (Ember druck, 4,76:1 auf der weißen Pille). Ein Ring lässt sich über die
   Steuerung „Stärke des Fokusrings" zuschalten (Vorgabe 0). */
.uc-auth__zeile:has( input[type="email"]:focus ) {
	border-color: var( --uc-auth-zeile-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline: var( --uc-auth-feld-ring, 0 ) solid var( --uc-auth-feld-ring-farbe, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
}

/* Ohne :has bekommt das Feld selbst eine Kennung - Fokus bleibt immer sichtbar. */
@supports not selector( :has( * ) ) {
	.uc-auth .uc-auth__zeilenfeld input:not( [type="button"] ):not( [type="submit"] ):focus-visible {
		outline: 1px solid var( --uc-akzent-druck, #c94726 );
	}
}

/* Eingabefehler: Rahmen in der Fehlerfarbe, Meldung im Klartext darunter.
   Fehler des Servers (etwa zu viele Versuche) betreffen nicht die Eingabe und
   stehen nur in der Meldung. */
.uc-auth__zeile:has( input[aria-invalid="true"] ) {
	border-color: var( --uc-auth-zeile-fehler, var( --uc-fehler, #b3261e ) );
}

.uc-auth__zeile .uc-auth__knopf {
	flex: 0 0 auto;
}

.uc-auth__zeilenhinweis {
	margin: 0;
	color: var( --uc-auth-zeilenhinweis-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: var( --uc-schrift-klein, 0.875rem );
	line-height: 1.5;
}

.uc-auth .uc-auth__zeilenhinweis a,
.uc-auth .uc-auth__zeilenhinweis a:hover,
.uc-auth .uc-auth__zeilenhinweis a:active {
	color: var( --uc-auth-zeilenhinweis-link, var( --uc-text, #1c2b4a ) );
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uc-auth .uc-auth__zeilenhinweis a:hover,
.uc-auth .uc-auth__zeilenhinweis a:active {
	text-decoration-thickness: 2px;
}

.uc-auth .uc-auth__zeilenhinweis a:focus-visible {
	outline: 2px solid var( --uc-auth-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
	box-shadow: none;
	border-radius: 4px;
}

/* Schmal: Feld und Knopf untereinander, die Pille wird zur Karte. */
@container ( max-width: 30rem ) {
	.uc-auth__zeile {
		flex-direction: column;
		align-items: stretch;
		padding: var( --uc-auth-zeile-innen, 8px );
		border-radius: var( --uc-auth-zeile-radius-gestapelt, var( --uc-radius, 20px ) );
	}

	.uc-auth__zeile .uc-auth__knopf {
		width: 100%;
		justify-content: flex-start;
	}
}

/* ------------------------------------------------------------------ Bewegung */

@media ( prefers-reduced-motion: reduce ) {
	.uc-auth *,
	.uc-auth *::before,
	.uc-auth *::after {
		transition: none !important;
		animation: none !important;
	}

	.uc-auth .uc-auth__knopf:hover .uc-auth__kreis,
	.uc-auth .uc-auth__knopf:active .uc-auth__kreis {
		transform: none;
	}
}

/* ============================================================ Pfeilkreis */

/*
 * Pfeilkreis immer links, Beschriftung mittig in der übrigen Fläche
 * (Tobias 2026-10-07). Rechts steht ein unsichtbarer Platzhalter so breit wie
 * der Kreis - so sitzt der Text optisch genau in der Mitte des Knopfs, auch
 * wenn er umbricht. Gilt für jede Breite: Bei „nach Inhalt“ ist der Knopf
 * dann links und rechts gleich gepolstert.
 */
.uc-auth .uc-auth__knopf:not( .uc-auth__knopf--leise ),
.uc-auth .uc-auth__knopf:not( .uc-auth__knopf--leise ):focus,
.uc-auth__zeile .uc-auth__knopf {
	display: grid;
	grid-template-columns: var( --uc-auth-kreis-groesse, 40px ) minmax( 0, 1fr ) var( --uc-auth-kreis-groesse, 40px );
	justify-content: stretch;
	padding: var( --uc-auth-knopf-innen, 6px );
	text-align: center;
	text-wrap: balance;
}

.uc-auth .uc-auth__knopf:not( .uc-auth__knopf--leise )::after {
	content: "";
}

/* Erfolg als Häkchen-Liste: klein, in zwei Sekunden erfasst (Tobias 2026-10-07) */
.uc-auth__schritte {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var( --uc-schrift-klein, 0.875rem );
	line-height: 1.4;
}

.uc-auth__schritte li {
	display: grid;
	grid-template-columns: 18px minmax( 0, 1fr );
	align-items: start;
	gap: 8px;
	overflow-wrap: anywhere;
}

.uc-auth__schritte svg {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var( --uc-auth-erfolg, var( --uc-erfolg, #1e7a4c ) );
}

.uc-auth__schritte-fuss {
	margin: 8px 0 0;
	color: var( --uc-text-leise, #4c5c76 );
	font-size: var( --uc-schrift-winzig, 0.75rem );
	line-height: 1.4;
}
