/**
 * Griffig Testzugang Anmeldung – Struktur-CSS.
 *
 * Enthält nur Layout/Struktur und neutrale Fallbacks. Das eigentliche Design
 * wird vollständig über die Elementor-Style-Controls gesteuert.
 */

.gtza {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-sizing: border-box;
	width: 100%;
}

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

.gtza-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.gtza-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.gtza-label {
	display: block;
}

.gtza-input {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	transition-property: color, background-color, border-color, box-shadow;
	transition-duration: 150ms;
}

/* Heading/Description: Theme-Abstände neutralisieren, Controls überschreiben. */
.gtza-heading {
	margin: 0;
}

.gtza-description > :last-child {
	margin-bottom: 0;
}

/* ---- Checkbox ---------------------------------------------------------- */

.gtza-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	text-align: left;
}

.gtza-checkbox__input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
	margin: 0.15em 0 0;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 3px;
	background-color: transparent;
	cursor: pointer;
	opacity: 1;
}

.gtza-checkbox__input:checked {
	background-color: currentColor;
}

.gtza-checkbox__input:checked::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 30%;
	height: 55%;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.gtza-checkbox__input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.gtza-checkbox__text {
	cursor: pointer;
}

/* ---- Passwort ---------------------------------------------------------- */

.gtza-password {
	position: relative;
}

.gtza-password--inside .gtza-input {
	padding-right: 3em;
}

.gtza-password--inside .gtza-toggle {
	position: absolute;
	top: 50%;
	right: 0.5em;
	transform: translateY(-50%);
}

.gtza-password--below .gtza-toggle {
	margin-top: 0.35rem;
}

.gtza-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.25em;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	min-height: 0;
}

.gtza-toggle:hover,
.gtza-toggle:focus {
	background: none;
}

.gtza-toggle__state {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.gtza-toggle__state[hidden] {
	display: none;
}

.gtza-toggle__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---- Button ------------------------------------------------------------ */

.gtza-actions {
	display: flex;
	justify-content: flex-start;
}

.gtza-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition-property: color, background, background-color, border-color, box-shadow, opacity;
	transition-duration: 150ms;
}

.gtza-button:disabled,
.gtza-button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

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

.gtza-message[hidden] {
	display: none;
}

.gtza-message a {
	color: inherit;
	text-decoration: underline;
}

.gtza-message .gtza-actions {
	margin-top: 0.75em;
}

.gtza-links {
	margin: 0;
}

/* ---- Zustände ---------------------------------------------------------- */

.gtza-form[hidden] {
	display: none;
}

/* ---- Widget „Testzugang Restzeit" ------------------------------------- */

.gtza-rt {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.gtza-rt__content {
	flex: 1 1 auto;
	min-width: 0;
}

.gtza-rt__icon {
	display: flex;
	flex: 0 0 auto;
	justify-content: var(--gtza-rt-align, flex-start);
	line-height: 1;
}

.gtza-rt__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.gtza-rt__eyebrow,
.gtza-rt__title,
.gtza-rt__description {
	margin-top: 0;
}

.gtza-rt__actions {
	display: flex;
	justify-content: var(--gtza-rt-align, flex-start);
}

.gtza-rt__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition-property: color, background-color, border-color, box-shadow;
	transition-duration: 150ms;
}

/* ---- Hilfsklassen ------------------------------------------------------ */

.gtza-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.gtza-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
