/*
 * Horizoom Signup – Formulargestaltung.
 * Alle Regeln sind unter .hz-signup verschachtelt, damit sie das Theme nicht beeinflussen.
 */

.hz-signup {
	--hz-background: hsl(213 35% 12%);
	--hz-foreground: hsl(0 0% 100%);
	--hz-card: hsl(213 35% 16%);
	--hz-accent: hsl(2 82% 60%);
	--hz-border: hsl(213 30% 25%);
	--hz-muted: hsl(213 20% 70%);
	--hz-success: hsl(142 76% 45%);
	--hz-destructive: hsl(0 84% 60%);
	--hz-radius: 0.75rem;

	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	color: var(--hz-foreground);
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.hz-signup.hz-has-bg {
	background: var(--hz-background);
	border-radius: 1.5rem;
}

.hz-signup.hz-has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, hsl(213 35% 18% / 0.1), transparent, hsl(2 82% 60% / 0.1));
	pointer-events: none;
}

.hz-signup.hz-has-bg::after {
	content: "";
	position: absolute;
	top: -8rem;
	right: -8rem;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: hsl(2 82% 60% / 0.1);
	filter: blur(80px);
	pointer-events: none;
}

.hz-inner {
	position: relative;
	max-width: 1040px;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

@media (min-width: 768px) {
	.hz-inner {
		padding: 3rem 1.5rem;
	}
}

.hz-layout {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.hz-signup:not(.hz-no-sidebar) .hz-layout {
		grid-template-columns: 1fr 320px;
		gap: 3rem;
	}
}

.hz-signup.hz-no-sidebar .hz-inner {
	max-width: 640px;
}

/* ---------- Panel ---------- */

.hz-panel {
	border-radius: 1.5rem;
	background: hsl(213 35% 16% / 0.7);
	backdrop-filter: blur(12px);
	border: 1px solid hsl(213 30% 25% / 0.6);
	padding: 1.5rem;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

@media (min-width: 768px) {
	.hz-panel {
		padding: 2.5rem;
	}
}

.hz-signup .hz-h1 {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--hz-foreground);
}

@media (min-width: 768px) {
	.hz-signup .hz-h1 {
		font-size: 2.25rem;
	}
}

.hz-lead {
	margin: 0.75rem 0 0;
	color: var(--hz-muted);
	font-size: 1rem;
}

.hz-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	border-radius: 999px;
	background: hsl(142 76% 45% / 0.1);
	color: var(--hz-success);
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hz-strong-line {
	margin: 1.5rem 0 0;
	font-weight: 600;
	font-size: 1.125rem;
}

.hz-stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

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

.hz-signup .hz-field {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--hz-foreground);
}

.hz-signup .hz-input {
	width: 100%;
	height: 3.25rem;
	margin: 0;
	border-radius: var(--hz-radius);
	border: 1px solid var(--hz-border);
	background: hsl(213 30% 22%);
	color: var(--hz-foreground);
	padding: 0 1rem;
	font-family: inherit;
	font-size: 1rem;
	line-height: normal;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.hz-signup .hz-input::placeholder {
	color: hsl(213 20% 55%);
	opacity: 1;
}

.hz-signup .hz-input:focus {
	border-color: var(--hz-accent);
	box-shadow: 0 0 0 3px hsl(2 82% 60% / 0.25);
}

.hz-input--spaced {
	letter-spacing: 0.2em;
}

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

.hz-signup .hz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 3.5rem;
	margin: 0;
	border: 0;
	border-radius: var(--hz-radius);
	background: linear-gradient(135deg, hsl(2 82% 60%), hsl(12 80% 55%));
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s, transform 0.2s, opacity 0.2s;
}

.hz-signup .hz-btn:hover:not([disabled]) {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.hz-signup .hz-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	filter: grayscale(0.35);
}

.hz-signup .hz-btn.hz-is-sending {
	opacity: 0.6;
	cursor: progress;
	filter: none;
}

.hz-signup .hz-btn.hz-is-sending .hz-btn-arrow {
	display: none;
}

/* ---------- Einwilligungen ---------- */

.hz-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.hz-signup .hz-consent input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	margin: 0.125rem 0 0;
	border: 2px solid hsl(0 0% 100% / 0.4);
	border-radius: 0.35rem;
	background: transparent;
	position: relative;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.hz-signup .hz-consent input[type="checkbox"]:checked {
	background: var(--hz-accent);
	border-color: var(--hz-accent);
}

.hz-signup .hz-consent input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.hz-signup .hz-consent input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--hz-accent);
	outline-offset: 2px;
}

.hz-consent span {
	font-size: 0.875rem;
	color: var(--hz-muted);
	line-height: 1.6;
}

.hz-signup .hz-consent a {
	color: hsl(0 0% 100% / 0.9);
	text-decoration: underline;
}

.hz-consent-box {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border: 1px solid hsl(213 30% 25% / 0.6);
	background: hsl(213 35% 16% / 0.4);
	border-radius: var(--hz-radius);
	padding: 1rem;
}

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

.hz-error {
	margin: 0;
	color: var(--hz-destructive);
	font-size: 0.875rem;
}

.hz-muted-center {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--hz-muted);
}

.hz-signup .hz-muted-center a {
	color: var(--hz-accent);
	font-weight: 500;
	text-decoration: none;
}

.hz-signup .hz-muted-center a:hover {
	text-decoration: underline;
}

/* ---------- Sidebar ---------- */

.hz-side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 1024px) {
	.hz-side {
		position: sticky;
		top: 2rem;
	}
}

.hz-side-card {
	border-radius: 1rem;
	background: hsl(213 35% 16% / 0.6);
	backdrop-filter: blur(12px);
	border: 1px solid hsl(213 30% 25% / 0.6);
	padding: 1.5rem;
}

.hz-signup .hz-side-card h3 {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--hz-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hz-signup .hz-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hz-signup .hz-trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: hsl(0 0% 100% / 0.9);
}

.hz-trust-icon {
	flex: none;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	background: hsl(2 82% 60% / 0.15);
	color: var(--hz-accent);
}

.hz-stars {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin-bottom: 0.5rem;
	color: #00b67a;
}

.hz-quote {
	margin: 0;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.6;
	color: hsl(0 0% 100% / 0.9);
}

.hz-quote-author {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: var(--hz-muted);
}

/* ---------- Wizard ---------- */

.hz-topbar {
	margin-bottom: 1.5rem;
}

.hz-topbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.hz-signup .hz-back {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	background: none;
	border: 0;
	color: var(--hz-muted);
	font-family: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.hz-signup .hz-back:hover {
	color: var(--hz-foreground);
}

.hz-points {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--hz-muted);
}

.hz-points b {
	color: var(--hz-accent);
	font-size: 0.875rem;
}

.hz-progress {
	height: 0.5rem;
	border-radius: 999px;
	background: hsl(213 30% 22%);
	overflow: hidden;
}

.hz-progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--hz-accent);
	transition: width 0.4s ease;
}

.hz-step-count {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--hz-muted);
}

.hz-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.hz-signup .hz-choice {
	height: 3.5rem;
	border-radius: var(--hz-radius);
	border: 1px solid var(--hz-border);
	background: hsl(213 35% 16% / 0.6);
	color: var(--hz-foreground);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.hz-signup .hz-choice:hover,
.hz-signup .hz-choice.is-selected {
	border-color: var(--hz-accent);
	background: hsl(2 82% 60% / 0.1);
}

/* ---------- Erfolg ---------- */

.hz-success {
	text-align: center;
	padding: 1.5rem 0;
}

.hz-success-icon {
	width: 5rem;
	height: 5rem;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: hsl(2 82% 60% / 0.15);
	color: var(--hz-accent);
}

.hz-success-text {
	max-width: 28rem;
	margin: 0.75rem auto 0;
}

.hz-success-text strong {
	color: #fff;
}

/* ---------- Fußzeile ---------- */

.hz-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid hsl(213 30% 25% / 0.4);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	font-size: 0.75rem;
	color: var(--hz-muted);
}

.hz-signup .hz-footer a {
	color: var(--hz-muted);
	text-decoration: none;
}

.hz-signup .hz-footer a:hover {
	color: var(--hz-foreground);
}

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

.hz-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

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

.hz-signup [hidden] {
	display: none !important;
}

.hz-fade-in {
	animation: hz-fade-in 0.3s ease both;
}

@keyframes hz-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hz-slide-in {
	animation: hz-slide-in 0.25s ease both;
}

@keyframes hz-slide-in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hz-signup *,
	.hz-signup *::before,
	.hz-signup *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Testausgabe der gesammelten Parameter ---------- */

.hz-params {
	margin-top: 2rem;
	padding: 1rem;
	border: 1px dashed hsl(213 30% 25% / 0.8);
	border-radius: var(--hz-radius);
	background: hsl(213 35% 16% / 0.4);
	text-align: left;
}

.hz-signup .hz-params h3 {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--hz-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hz-signup .hz-params table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hz-signup .hz-params td {
	padding: 0.35rem 0.5rem 0.35rem 0;
	border-bottom: 1px solid hsl(213 30% 25% / 0.4);
	color: hsl(0 0% 100% / 0.9);
	vertical-align: top;
	word-break: break-all;
}

.hz-signup .hz-params td:first-child {
	color: var(--hz-muted);
	white-space: nowrap;
}

.hz-signup .hz-params td.hz-params-sent {
	color: var(--hz-success);
	white-space: nowrap;
	text-align: right;
}

.hz-params-note {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hz-muted);
}
