/* SF Spamschutz (Cap) – Frontend. Das Widget selbst lässt sich über --cap-…-Variablen anpassen. */
.sf-cap {
	display: flex;
	justify-content: flex-start;
}
.sf-cap--center {
	justify-content: center;
}
.sf-cap--right {
	justify-content: flex-end;
}
.sf-cap cap-widget {
	/* an UIkit-Formulare angelehnt; mit eigenem CSS im Element überschreibbar */
	--cap-border-radius: 4px;
	--cap-checkbox-border-radius: 3px;
	max-width: 100%;
}

/* Schwebend: versteckt, beim Absenden per JS am Button positioniert (is-open → is-shown für die Animation). */
.sf-cap--floating {
	display: block;
	position: relative;
	height: 0;
}
.sf-cap--floating cap-widget {
	display: none;
	position: absolute;
	z-index: 99999;
	opacity: 0;
	transform: scale(0.98);
	margin-top: -4px;
	border-radius: 14px;
	box-shadow: rgba(0, 0, 0, 0.08) 0 6px 24px 0;
	transition: opacity 0.15s, margin-top 0.2s, transform 0.2s;
}
.sf-cap--floating.is-open cap-widget {
	display: block;
}
.sf-cap--floating.is-shown cap-widget {
	opacity: 1;
	transform: scale(1);
	margin-top: 0;
}

/* Unsichtbar: bleibt im Formular (verstecktes Token-Feld), ist aber nicht zu sehen – bis ein Fehler kommt. */
.sf-cap--invisible:not(.is-revealed) {
	position: relative;
	height: 0;
	overflow: hidden;
}
.sf-cap--invisible:not(.is-revealed) cap-widget {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
}
.sf-cap--invisible.is-revealed {
	margin: 20px 0;
}

/* Absende-Button, während im Hintergrund gerechnet wird */
.sf-cap-busy {
	cursor: progress !important;
	opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
	.sf-cap--floating cap-widget {
		transition: none;
	}
}

.sf-cap-noscript {
	color: #c00;
	font-size: 0.9em;
}
.sf-cap-inactive {
	padding: 8px 12px;
	border: 1px dashed #c3c4c7;
	color: #646970;
	font-size: 0.875em;
}
