/* Bedarfs-Check – Startseiten-Modul */
.wikiradr-needs-check {
	background: linear-gradient(165deg, var(--wp--preset--color--ti-bg-alt, #d9eaf0) 0%, #eef6f9 45%, var(--wp--preset--color--ti-bg, #fff) 100%);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem);
	width: 100vw;
}

.wikiradr-needs-check__inner {
	margin: 0 auto;
	max-width: var(--wp--style--global--wide-size, 1200px);
}

.wikiradr-needs-check__intro {
	margin-bottom: 2rem;
	max-width: 42rem;
}

.wikiradr-needs-check__eyebrow {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.wikiradr-needs-check__title {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wikiradr-needs-check__lead {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.6;
	margin: 0;
}

.wikiradr-needs-check__panel {
	background: var(--wp--preset--color--ti-bg, #fff);
	border: 1px solid rgba(18, 45, 44, 0.08);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(18, 45, 44, 0.1);
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.wikiradr-needs-check__progress {
	margin-bottom: 1.75rem;
}

.wikiradr-needs-check__progress-track {
	background: rgba(18, 45, 44, 0.08);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.wikiradr-needs-check__progress-fill {
	background: linear-gradient(90deg, var(--wp--preset--color--ti-accent, #57c200), var(--wp--preset--color--ti-accent-secondary, #7acbe1));
	border-radius: 999px;
	height: 100%;
	transition: width 0.35s ease;
	width: 0;
}

.wikiradr-needs-check__progress-label {
	color: rgba(18, 45, 44, 0.65);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.875rem;
	margin: 0.75rem 0 0;
}

.wikiradr-needs-check__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
}

.wikiradr-needs-check__benefits li {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-size: 0.9375rem;
	padding-left: 1.5rem;
	position: relative;
}

.wikiradr-needs-check__benefits li::before {
	color: var(--wp--preset--color--ti-accent, #57c200);
	content: "✓";
	font-weight: 700;
	left: 0;
	position: absolute;
}

.wikiradr-needs-check__question-title {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	text-transform: none;
}

.wikiradr-needs-check__question-hint {
	color: rgba(18, 45, 44, 0.65);
	font-size: 0.9375rem;
	margin: 0 0 1.5rem;
}

.wikiradr-needs-check__options {
	display: grid;
	gap: 0.875rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	margin-bottom: 1.75rem;
}

.wikiradr-needs-check__option {
	align-items: center;
	background: var(--wp--preset--color--ti-bg-alt, #d9eaf0);
	border: 2px solid transparent;
	border-radius: 14px;
	color: var(--wp--preset--color--ti-fg, #15473e);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	min-height: 3.75rem;
	padding: 1rem 1.125rem;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wikiradr-needs-check__option:hover {
	background: #eef6f9;
	box-shadow: 0 8px 24px rgba(18, 45, 44, 0.08);
	transform: translateY(-1px);
}

.wikiradr-needs-check__option.is-advancing {
	box-shadow: 0 0 0 3px rgba(87, 194, 0, 0.35);
	transform: scale(1.02);
}

.wikiradr-needs-check__option:disabled:not(.is-selected) {
	cursor: default;
	opacity: 0.55;
}

.wikiradr-needs-check__option.is-selected {
	background: rgba(87, 194, 0, 0.1);
	border-color: var(--wp--preset--color--ti-accent, #57c200);
	box-shadow: 0 0 0 1px rgba(87, 194, 0, 0.25);
}

.wikiradr-needs-check__tap-hint {
	color: rgba(18, 45, 44, 0.55);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.8125rem;
	font-weight: 500;
}

.wikiradr-needs-check__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
}

.wikiradr-needs-check__btn {
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.875rem 1.5rem;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.wikiradr-needs-check__btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.wikiradr-needs-check__btn--primary {
	background: var(--wp--preset--color--ti-accent, #57c200);
	color: var(--wp--preset--color--ti-bg-inv, #122d2c);
}

.wikiradr-needs-check__btn--primary:hover:not(:disabled) {
	background: #4aad00;
}

.wikiradr-needs-check__btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--ti-fg, #15473e);
}

.wikiradr-needs-check__btn--ghost:hover:not(:disabled) {
	background: rgba(18, 45, 44, 0.06);
}

.wikiradr-needs-check__result-badge {
	background: rgba(87, 194, 0, 0.12);
	border-radius: 999px;
	color: var(--wp--preset--color--ti-fg, #15473e);
	display: inline-block;
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
	padding: 0.5rem 1rem;
}

.wikiradr-needs-check__result-badge.is-medium {
	background: rgba(122, 203, 225, 0.25);
}

.wikiradr-needs-check__result-badge.is-explore {
	background: rgba(18, 45, 44, 0.08);
}

.wikiradr-needs-check__result-text {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-size: 1.0625rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.wikiradr-needs-check__highlights {
	display: grid;
	gap: 0.625rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.wikiradr-needs-check__highlights li {
	background: var(--wp--preset--color--ti-bg-alt, #d9eaf0);
	border-radius: 10px;
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-size: 0.875rem;
	padding: 0.75rem 0.875rem 0.75rem 2rem;
	position: relative;
}

.wikiradr-needs-check__highlights li::before {
	color: var(--wp--preset--color--ti-accent, #57c200);
	content: "→";
	font-weight: 700;
	left: 0.75rem;
	position: absolute;
}

.wikiradr-needs-check__result-note {
	color: rgba(18, 45, 44, 0.7);
	font-size: 0.9375rem;
	margin: 0;
}

.wikiradr-needs-check__form-wrap {
	display: none;
	margin-top: 2rem;
}

.wikiradr-needs-check__form-wrap.is-visible {
	display: block;
}

.wikiradr-needs-check__form-wrap[hidden] {
	display: none !important;
}

.wikiradr-needs-check__form-title {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 400;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.wikiradr-needs-check__form {
	animation: wikiradr-needs-check-fade-in 0.45s ease;
	background: var(--wp--preset--color--ti-bg, #fff);
	border: 1px solid rgba(18, 45, 44, 0.08);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(18, 45, 44, 0.08);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.wikiradr-needs-check__form .frm_form_fields > fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.wikiradr-needs-check__form .frm_primary_label {
	font-family: var(--wp--preset--font-family--exo-2, sans-serif);
}

.wikiradr-needs-check__skip {
	color: rgba(18, 45, 44, 0.65);
	font-size: 0.875rem;
	margin: 1rem 0 0;
}

.wikiradr-needs-check__skip a {
	color: var(--wp--preset--color--ti-fg, #15473e);
}

.wikiradr-needs-check__quiz[hidden],
.wikiradr-needs-check__result[hidden],
.wikiradr-needs-check__welcome.is-hidden {
	display: none !important;
}

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

@media (max-width: 640px) {
	.wikiradr-needs-check__actions {
		flex-direction: column-reverse;
	}

	.wikiradr-needs-check__btn {
		justify-content: center;
		width: 100%;
	}
}

/* Kompakt-Formular nach Check: nur Firma + Kontakt sichtbar */
.wikiradr-needs-check__form-hint {
	color: var(--wp--preset--color--ti-fg, #15473e);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0 0 1.25rem;
}

.wikiradr-needs-check__form.is-compact .frm_form_title,
.wikiradr-needs-check__form.is-compact .frm_rootline_group,
.wikiradr-needs-check__field--hidden {
	display: none !important;
}

.wikiradr-needs-check__form.is-compact.is-contact-page .frm_form_title {
	display: none !important;
}

.wikiradr-needs-check__form.is-compact textarea[name="item_meta[39]"] {
	min-height: 4rem;
}

.wikiradr-needs-check__form.is-compact.is-contact-page textarea[name="item_meta[39]"] {
	display: none;
}

.wikiradr-needs-check__form.is-compact.is-contact-page #frm_field_39_container {
	display: none !important;
}
