/**
 * Formular im Frontend.
 *
 * Schrift und Farben kommen von der Seite: Die Schrift wird durchgehend geerbt
 * (auch in Knöpfen und Auswahlfeldern), die Farben greifen auf die Globalen
 * Farben und Schriften von Elementor zurück (--e-global-color-*,
 * --e-global-typography-*) und fallen ohne Elementor auf neutrale Werte zurück.
 *
 * Die Variablen auf .vf-form lassen sich im Theme überschreiben; das
 * Elementor-Widget setzt --vf-akzent, --vf-flaeche, --vf-feld, --vf-text und
 * --vf-radius gezielt und hat damit Vorrang vor den Globalen Farben.
 *
 * Übergänge: Die Klasse `vf-zu` beschreibt den zusammengeklappten Zustand
 * (Grid-Zeile 0fr, Deckkraft 0). Das Skript setzt sie zum Ein- und Ausblenden
 * und gibt dem Element am Ende wieder `hidden`.
 */

.vf-form {
	/*
	 * Farben. Hauptfarbe ist die Primärfarbe von Elementor – nicht die
	 * „Akzentfarbe“, die in vielen Kits Weiß ist. Ist eine Farbe auf dem
	 * Hintergrund zu schwach, ersetzt das Skript sie (siehe farbenPruefen).
	 */
	--vf-akzent: var(--e-global-color-primary, #0e254a);
	--vf-knopf: var(--vf-akzent);
	--vf-knopftext: #fff;
	--vf-text: var(--e-global-color-text, #1d2733);
	--vf-karte: #fff;
	--vf-feld: #fff;
	--vf-linie: #8a94a3;
	--vf-linie-leise: #e2e6eb;
	--vf-gedaempft: #4b5563;
	--vf-flaeche: #eef2f7;
	--vf-auswahl: #eef2f7;
	--vf-hauch: rgba(14, 37, 74, 0.08);
	--vf-ring: rgba(14, 37, 74, 0.22);
	--vf-fehler: #b3261e;
	--vf-radius: 10px;
	--vf-breite: 65rem;

	/* Bewegung. */
	--vf-dauer: 340ms;
	--vf-kurz: 200ms;
	--vf-kurve: cubic-bezier(0.22, 1, 0.36, 1);

	box-sizing: border-box;
	width: 100%;
	max-width: var(--vf-breite);
	margin-right: auto;
	margin-left: auto;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	font: inherit;
	line-height: 1.55;
	color: var(--vf-text);
	text-align: left;
	background: var(--vf-karte);
	border: 1px solid var(--vf-linie-leise);
	border-radius: calc(var(--vf-radius) * 1.6);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -8px rgba(15, 23, 42, 0.12);
}

/* Elementor-Widget mit „Als Karte darstellen“ aus: ohne Rahmen und Innenabstand. */
.elementor-widget[class*="vf-karte-"]:not(.vf-karte-yes) .vf-form {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Abgeleitete Töne, sobald der Browser Farben mischen kann (alle aktuellen). */
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.vf-form {
		--vf-linie: color-mix(in srgb, var(--vf-text) 55%, var(--vf-feld));
		--vf-linie-leise: color-mix(in srgb, var(--vf-text) 14%, var(--vf-karte));
		--vf-gedaempft: color-mix(in srgb, var(--vf-text) 85%, var(--vf-karte));
		--vf-flaeche: color-mix(in srgb, var(--vf-akzent) 7%, var(--vf-karte));
		--vf-auswahl: color-mix(in srgb, var(--vf-akzent) 8%, var(--vf-feld));
		--vf-hauch: color-mix(in srgb, var(--vf-akzent) 9%, transparent);
		--vf-ring: color-mix(in srgb, var(--vf-akzent) 24%, transparent);
	}
}

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

/* Theme-Resets wie form{display:block} dürfen `hidden` nicht aushebeln. */
.vf-form [hidden],
.vf-formel[hidden],
.vf-progress[hidden] {
	display: none;
}

/* Nur für Hilfstechnik: im Textfluss, ohne Platz und ohne position:absolute. */
.vf-sr {
	display: inline-block;
	width: 1px;
	height: 1px;
	margin: 0 -1px 0 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Formularelemente erben Schrift und Farbe der Seite statt der Browser-Vorgaben. */
.vf-form button,
.vf-form input,
.vf-form select,
.vf-form textarea {
	margin: 0;
	font: inherit;
	color: inherit;
}

/* Kopf: Untertitel und Titel ------------------------------------------- */

.vf-kopf {
	margin: 0 0 1.25rem;
}

.vf-form .vf-untertitel {
	margin: 0 0 0.375rem;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vf-akzent);
}

.vf-form .vf-titel {
	margin: 0;
	padding: 0 0 0 0.875rem;
	font-family: var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
	font-weight: var(--e-global-typography-primary-font-weight, 800);
	line-height: 1.2;
	color: var(--vf-akzent);
	text-align: left;
	text-transform: none;
	letter-spacing: -0.01em;
	border-left: 4px solid var(--vf-akzent);
}

/* Geschlossenes Formular: Kopf über der Meldung. */
.vf-form--closed > .vf-kopf {
	margin-bottom: 1rem;
}

.vf-introtext {
	margin: 0 0 1.75rem;
	padding: 0 0 1.5rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--vf-text);
	border-bottom: 1px solid var(--vf-linie-leise);
}

.vf-introtext p {
	margin: 0 0 0.75em;
}

.vf-introtext > :last-child {
	margin-bottom: 0;
}

.vf-progress {
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vf-akzent);
}

.vf-progress[hidden] {
	display: none;
}

/* Hinweis zu Pflichtfeldern über den Fragen. */
.vf-legend {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
}

/* Formular als Ganzes --------------------------------------------------- */

.vf-formel {
	opacity: 1;
	transition: opacity var(--vf-kurz) ease;
}

/* Während eines Schrittwechsels hält das Skript die Höhe fest und animiert sie. */
.vf-formel.vf-wechsel {
	overflow: hidden;
	transition: height var(--vf-dauer) var(--vf-kurve), opacity var(--vf-kurz) ease;
}

.vf-formel.vf-zu {
	opacity: 0;
}

.vf-formel[hidden] {
	display: none;
}

/* Fragenblock: gleitet beim Schrittwechsel kurz aus und wieder ein. */
.vf-questions {
	opacity: 1;
	transform: none;
	transition: opacity var(--vf-kurz) var(--vf-kurve), transform var(--vf-kurz) var(--vf-kurve);
}

.vf-questions.vf-links {
	opacity: 0;
	transform: translateX(-18px);
}

.vf-questions.vf-rechts {
	opacity: 0;
	transform: translateX(18px);
}

.vf-questions.vf-sofort {
	transition: none;
}

/* Fragen ----------------------------------------------------------------- */

/*
 * Eine Frage ist ein Grid mit einer Zeile. Zum Ausblenden wird die Zeile von
 * 1fr auf 0fr animiert; der innere Rahmen schneidet den Inhalt ab. So braucht
 * es keine feste Höhe und keinen Max-Height-Trick.
 */
.vf-q {
	display: grid;
	grid-template-rows: 1fr;
	margin: 0 0 1.75rem;
	opacity: 1;
	transform: none;
	transition:
		grid-template-rows var(--vf-dauer) var(--vf-kurve),
		margin-bottom var(--vf-dauer) var(--vf-kurve),
		opacity var(--vf-dauer) var(--vf-kurve),
		transform var(--vf-dauer) var(--vf-kurve);
}

.vf-q > .vf-q__inner {
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.vf-q.vf-zu {
	grid-template-rows: 0fr;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(12px) scale(0.995);
}

.vf-q[hidden] {
	display: none;
}

.vf-fieldset {
	min-width: 0;
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.vf-form .vf-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--vf-text);
}

/* Dropdown mit einheitlichem Preis: der Preis steht einmal rechts neben der Beschriftung. */
.vf-form .vf-label--mit-preis {
	display: flex;
	gap: 0.125rem 1rem;
	align-items: baseline;
	justify-content: space-between;
}

.vf-label--mit-preis .vf-label__text {
	flex: 1 1 auto;
}

.vf-req {
	color: var(--vf-fehler);
}

.vf-label .vf-option__price {
	color: var(--vf-akzent);
}

/*
 * Zwischenüberschrift: feine Trennlinie mit kurzem Farbbalken darüber. Als
 * Hintergrund gezeichnet, weil der innere Rahmen überstehende Teile abschneidet.
 */
.vf-q--heading > .vf-q__inner {
	padding-top: 1.75rem;
	background:
		linear-gradient(var(--vf-akzent), var(--vf-akzent)) 0 0 / 3rem 3px no-repeat,
		linear-gradient(var(--vf-linie-leise), var(--vf-linie-leise)) 0 1px / 100% 1px no-repeat;
}

.vf-q--heading:first-child > .vf-q__inner {
	padding-top: 0;
	background: none;
}

.vf-form .vf-heading {
	margin: 0.5rem 0 0.375rem;
	padding: 0;
	font-family: var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif;
	font-size: 1.3125rem;
	font-weight: var(--e-global-typography-primary-font-weight, 700);
	line-height: 1.3;
	color: var(--vf-akzent);
}

.vf-form .vf-help {
	margin: 0 0 0.625rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--vf-gedaempft);
}

/* Eingabefelder ---------------------------------------------------------- */

/*
 * Farben, Rahmen und Sichtbarkeit der Felder sind mit !important gesichert:
 * Themes und Elementor-Kits gestalten input/select/textarea teils mit
 * spezifischeren Selektoren (z. B. :focus mit transparentem Rahmen).
 */
.vf-form .vf-input {
	display: block !important;
	width: 100% !important;
	max-width: none;
	height: auto;
	min-height: 3rem;
	margin: 0;
	padding: 0.75rem 0.9375rem !important;
	font: inherit;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	color: var(--vf-text) !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: var(--vf-feld) !important;
	border: 1.5px solid var(--vf-linie) !important;
	border-radius: var(--vf-radius) !important;
	box-shadow: none !important;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.vf-form .vf-input:hover {
	border-color: var(--vf-text) !important;
}

.vf-form .vf-input::placeholder {
	color: var(--vf-gedaempft);
	opacity: 1;
}

/*
 * Fokus als innerer Ring: wird vom inneren Rahmen der Frage nicht abgeschnitten.
 * Die durchsichtige Outline wird im Kontrastmodus (forced-colors) sichtbar.
 */
.vf-form .vf-input:focus,
.vf-form .vf-input:focus-visible {
	outline: 2px solid transparent !important;
	outline-offset: -2px;
	color: var(--vf-text) !important;
	background-color: var(--vf-feld) !important;
	border-color: var(--vf-akzent) !important;
	box-shadow: inset 0 0 0 1.5px var(--vf-akzent), 0 0 0 0 transparent !important;
}

.vf-form textarea.vf-input {
	min-height: 6rem;
	resize: vertical;
}

.vf-form select.vf-input {
	padding-right: 2.5rem;
	cursor: pointer;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--vf-akzent) 50%),
		linear-gradient(135deg, var(--vf-akzent) 50%, transparent 50%) !important;
	background-repeat: no-repeat;
	background-position:
		calc(100% - 1.25rem) calc(50% - 1px),
		calc(100% - 0.875rem) calc(50% - 1px);
	background-size: 0.375rem 0.375rem, 0.375rem 0.375rem;
	background-repeat: no-repeat !important;
	appearance: none;
	-webkit-appearance: none;
}

/* Auswahl ---------------------------------------------------------------- */

.vf-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vf-form .vf-option {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	min-height: 3rem;
	margin: 0;
	padding: 0.75rem 0.9375rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--vf-text);
	cursor: pointer;
	background: var(--vf-feld);
	border: 1.5px solid var(--vf-linie);
	border-radius: var(--vf-radius);
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
	-webkit-tap-highlight-color: transparent;
}

.vf-option:hover {
	border-color: var(--vf-akzent);
}

.vf-option input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	cursor: pointer;
	accent-color: var(--vf-akzent);
}

.vf-option input:focus-visible {
	outline: 2px solid var(--vf-akzent);
	outline-offset: 2px;
}

.vf-option__text {
	flex: 1;
}

.vf-option__price {
	flex: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Gewählte Option: `is-checked` setzt das Skript, :has() dient als Ergänzung. */
.vf-option.is-checked .vf-option__text {
	font-weight: 600;
}

.vf-option__price {
	color: var(--vf-akzent);
}

.vf-option.is-checked {
	background: var(--vf-auswahl);
	border-color: var(--vf-akzent);
	box-shadow: inset 0 0 0 1px var(--vf-akzent);
}

.vf-option:has(input:checked) {
	background: var(--vf-auswahl);
	border-color: var(--vf-akzent);
	box-shadow: inset 0 0 0 1px var(--vf-akzent);
}

/* Tastaturfokus auf der ganzen Kachel, wo :has() verfügbar ist. */
.vf-option:has(input:focus-visible) {
	border-color: var(--vf-akzent);
	box-shadow: inset 0 0 0 1px var(--vf-akzent);
}

.vf-option:has(input:focus-visible) input {
	outline-color: transparent; /* Im Kontrastmodus bleibt die Outline sichtbar. */
}

/* Große Auswahlknöpfe (Kacheln) ----------------------------------------- */

/*
 * Eingangsfragen stehen in einem eigenen, getönten Bereich – deutlich
 * abgesetzt vom übrigen Formular, auch wenn sie zugeklappt sind.
 */
.vf-q--tiles {
	margin-bottom: 1.25rem;
}

.vf-q--tiles > .vf-q__inner {
	padding: 1.5rem 1.5rem 1.375rem;
	background:
		radial-gradient(120% 140% at 0% 0%, var(--vf-hauch), transparent 60%),
		var(--vf-flaeche);
	border: 1px solid var(--vf-linie-leise);
	border-radius: calc(var(--vf-radius) * 1.6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vf-q--tiles.is-zu > .vf-q__inner {
	padding: 0.5rem 0.625rem;
}

/* Nach der letzten Eingangsfrage: Abstand und Linie zum eigentlichen Formular. */
.vf-q--tiles:not(.vf-zu) + .vf-q:not(.vf-q--tiles):not([hidden]),
.vf-q--tiles:not(.vf-zu) + .vf-q[hidden] + .vf-q:not(.vf-q--tiles):not([hidden]) {
	margin-top: 2.25rem;
}

.vf-kacheln__marke {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	color: var(--vf-akzent);
	opacity: 0.75;
}

.vf-kachel-raus .vf-kacheln__marke {
	opacity: 0;
	transition: opacity 200ms ease;
}

/* Im Bereich braucht die zugeklappte Zeile keinen eigenen Hintergrund. */
.vf-q--tiles .vf-wahl {
	background: transparent;
}

.vf-q--tiles .vf-kacheln__frage {
	margin-bottom: 0.875rem;
	font-family: var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif;
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
	font-weight: var(--e-global-typography-primary-font-weight, 800);
	line-height: 1.25;
	color: var(--vf-akzent);
	text-align: center;
}

.vf-q--tiles .vf-kacheln-block > .vf-fieldset > .vf-help {
	max-width: 34rem;
	margin: -0.375rem auto 1rem;
	text-align: center;
}

.vf-q--tiles .vf-kacheln-block .vf-error {
	text-align: center;
}

.vf-kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 1rem;
	padding: 4px; /* Platz für Hover-Anhebung und Fokusring im abgeschnittenen Rahmen */
}

.vf-form .vf-kachel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	align-items: center;
	justify-content: center;
	min-height: 8.5rem;
	padding: 1.5rem 1.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--vf-text);
	text-align: center;
	cursor: pointer;
	background: var(--vf-feld);
	border: 2px solid var(--vf-linie);
	border-radius: calc(var(--vf-radius) * 1.4);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	transition:
		transform 200ms var(--vf-kurve),
		box-shadow 200ms var(--vf-kurve),
		border-color 150ms ease,
		background-color 200ms ease,
		color 200ms ease,
		opacity 240ms ease,
		filter 240ms ease;
	-webkit-user-select: none;
	user-select: none;
}

.vf-form .vf-kachel:hover {
	border-color: var(--vf-akzent);
	box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.35);
	transform: translateY(-2px);
}

.vf-form .vf-kachel:active {
	transform: translateY(0) scale(0.98);
}

/* Das Auswahlfeld bleibt bedienbar (Tastatur, Screenreader), ist aber unsichtbar. */
.vf-form .vf-kachel__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	opacity: 0;
}

.vf-kachel__text {
	flex: none !important;
}

.vf-kachel__zusatz {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--vf-gedaempft);
	transition: color 200ms ease;
}

.vf-form .vf-kachel .vf-option__price {
	font-size: 0.9375rem;
}

/* Haken oben rechts: Kreis, der bei der Wahl hineinspringt. */
.vf-kachel__haken {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 1.625rem;
	height: 1.625rem;
	border: 2px solid var(--vf-linie);
	border-radius: 50%;
	transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease, border-color 200ms ease;
}

.vf-kachel__haken::after {
	position: absolute;
	top: 0.3125rem;
	left: 0.5rem;
	width: 0.375rem;
	height: 0.6875rem;
	content: "";
	border: solid var(--vf-akzent);
	border-width: 0 2.5px 2.5px 0;
	opacity: 0;
	transform: rotate(45deg) scale(0.4);
	transition: opacity 160ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gewählt: Fläche in der Hauptfarbe, Schrift hell. */
.vf-form .vf-kachel.is-checked,
.vf-form .vf-kachel:has(input:checked) {
	color: var(--vf-knopftext);
	background: var(--vf-knopf);
	border-color: var(--vf-knopf);
	box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.55);
}

.vf-form .vf-kachel.is-checked .vf-kachel__zusatz,
.vf-form .vf-kachel.is-checked .vf-option__price,
.vf-form .vf-kachel:has(input:checked) .vf-kachel__zusatz,
.vf-form .vf-kachel:has(input:checked) .vf-option__price {
	color: inherit;
	opacity: 0.85;
}

.vf-kachel.is-checked .vf-kachel__haken,
.vf-kachel:has(input:checked) .vf-kachel__haken {
	background: var(--vf-knopftext);
	border-color: var(--vf-knopftext);
	transform: scale(1.1);
}

.vf-kachel.is-checked .vf-kachel__haken::after,
.vf-kachel:has(input:checked) .vf-kachel__haken::after {
	border-color: var(--vf-knopf);
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.vf-form .vf-kachel:has(input:focus-visible) {
	outline: 3px solid var(--vf-akzent);
	outline-offset: 3px;
}

.vf-form .vf-q--invalid .vf-kachel {
	border-color: var(--vf-fehler) !important;
}

/* Phase 1 des Zuklappens: Frage und übrige Kacheln verschwinden. */
.vf-kachel-raus .vf-kacheln__frage,
.vf-kachel-raus .vf-kacheln-block .vf-help {
	opacity: 0;
	filter: blur(3px);
	transform: translateY(-10px);
	transition: opacity 240ms ease, filter 240ms ease, transform 240ms var(--vf-kurve);
}

.vf-form .vf-kachel-raus .vf-kachel:not(.is-checked) {
	opacity: 0;
	filter: blur(4px);
	transform: scale(0.9);
}

.vf-form .vf-kachel-raus .vf-kachel.is-checked {
	animation: vf-kachel-puls 300ms var(--vf-kurve);
}

@keyframes vf-kachel-puls {
	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.04);
	}

	100% {
		transform: scale(1);
	}
}

/* Wieder aufklappen: Kacheln gleiten nacheinander herein. */
.vf-kachel-rein .vf-kacheln__frage,
.vf-kachel-rein .vf-kachel {
	animation: vf-rein 380ms var(--vf-kurve) both;
}

.vf-kachel-rein .vf-kachel:nth-child(2) {
	animation-delay: 60ms;
}

.vf-kachel-rein .vf-kachel:nth-child(3) {
	animation-delay: 120ms;
}

@keyframes vf-rein {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Zusammengeklappt: eine Zeile mit Frage, Antwort und „Ändern“. */
.vf-wahl {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.875rem;
	align-items: center;
	padding: 0.75rem 0.875rem 0.75rem 1.125rem;
	background: var(--vf-flaeche);
	border-radius: var(--vf-radius);
	animation: vf-rein 360ms var(--vf-kurve) both;
}

.vf-wahl[hidden] {
	display: none;
}

.vf-wahl__frage {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--vf-gedaempft);
}

.vf-wahl__antwort {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.375rem 1rem 0.375rem 0.625rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--vf-knopftext);
	background: var(--vf-knopf);
	border-radius: 999px;
}

.vf-wahl__haken {
	position: relative;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--vf-knopftext);
	border-radius: 50%;
}

.vf-wahl__haken::after {
	position: absolute;
	top: 0.21rem;
	left: 0.42rem;
	width: 0.3rem;
	height: 0.55rem;
	content: "";
	border: solid var(--vf-knopf);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vf-form .vf-wahl__aendern {
	min-height: 2.25rem;
	margin: 0 0 0 auto !important;
	padding: 0.375rem 0.875rem !important;
	font: inherit;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--vf-akzent) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
	background: transparent !important;
	border: 0 !important;
	border-radius: var(--vf-radius) !important;
	box-shadow: none !important;
}

.vf-form .vf-wahl__aendern:hover {
	background: var(--vf-hauch) !important;
}

.vf-form .vf-wahl__aendern:focus-visible {
	outline: 3px solid var(--vf-akzent) !important;
	outline-offset: 2px;
}

/* Produktbild ------------------------------------------------------------ */

/*
 * Jede Position mit Bild ist eine eigene Karte: Bild links, Name, Preis und
 * Auswahl rechts. So ist klar, welches Bild zu welchem Artikel gehört.
 */
.vf-form {
	--vf-bild: 8.5rem;
	--vf-kpad: 1.25rem;
	--vf-kgap: 1.25rem;
}

.vf-q--mit-bild {
	margin-bottom: 1rem;
}

.vf-q--mit-bild > .vf-q__inner {
	display: grid;
	grid-template-columns: var(--vf-bild) minmax(0, 1fr);
	gap: var(--vf-kgap);
	align-items: start;
	padding: var(--vf-kpad);
	background: var(--vf-feld);
	border: 1px solid var(--vf-linie-leise);
	border-radius: calc(var(--vf-radius) * 1.4);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px -12px rgba(15, 23, 42, 0.18);
	transition:
		border-color 220ms ease,
		box-shadow 220ms ease,
		padding var(--vf-dauer) var(--vf-kurve);
}

/* Beim Zuklappen die Innenabstände mitnehmen, damit nichts nachspringt. */
.vf-q--mit-bild.vf-zu > .vf-q__inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* Artikel gewählt (mit Preis): Rahmen in der Hauptfarbe. */
.vf-q--mit-bild.is-im-korb > .vf-q__inner {
	border-color: var(--vf-akzent);
	box-shadow: inset 0 0 0 1px var(--vf-akzent), 0 10px 24px -14px rgba(15, 23, 42, 0.35);
}

/* „Kein Bedarf“: Karte tritt zurück, Bild wird grau. */
.vf-q--mit-bild .vf-bild__img {
	transition: transform 300ms var(--vf-kurve), filter 300ms ease, opacity 300ms ease;
}

.vf-q--mit-bild.is-ohne .vf-bild__img {
	opacity: 0.55;
	filter: grayscale(1);
}

.vf-q--mit-bild.is-ohne > .vf-q__inner {
	background: transparent;
	box-shadow: none;
}

/* Karte mit angehängter Folgefrage: unten offen. */
.vf-q--mit-bild:has(+ .vf-q--folge-bild:not([hidden])) > .vf-q__inner,
.vf-q--mit-bild:has(+ .vf-q--folge-bild[hidden] + .vf-q--folge-bild:not([hidden])) > .vf-q__inner {
	border-bottom-color: transparent;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.vf-q--mit-bild .vf-q__body {
	min-width: 0;
}

.vf-form .vf-bild {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0 !important;
	padding: 0.375rem !important;
	overflow: hidden;
	line-height: 0;
	cursor: zoom-in;
	background: #fff !important;
	border: 1px solid var(--vf-linie-leise) !important;
	border-radius: var(--vf-radius) !important;
	box-shadow: none !important;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	aspect-ratio: 1;
}

.vf-form .vf-bild:hover {
	border-color: var(--vf-akzent) !important;
	box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.35) !important;
}

.vf-form .vf-bild:focus-visible {
	outline: 3px solid var(--vf-akzent) !important;
	outline-offset: 2px;
}

.vf-form .vf-bild__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	object-fit: contain;
	border-radius: calc(var(--vf-radius) - 4px);
	transition: transform 300ms var(--vf-kurve);
}

.vf-form .vf-bild:hover .vf-bild__img {
	transform: scale(1.05);
}

/* Lupe unten rechts */
.vf-bild__lupe {
	position: absolute;
	right: 0.375rem;
	bottom: 0.375rem;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--vf-akzent);
	border-radius: 50%;
	opacity: 0.9;
}

.vf-bild__lupe::before {
	position: absolute;
	top: 0.4rem;
	left: 0.4rem;
	width: 0.6rem;
	height: 0.6rem;
	content: "";
	border: 2px solid #fff;
	border-radius: 50%;
}

.vf-bild__lupe::after {
	position: absolute;
	top: 1.05rem;
	left: 1.02rem;
	width: 0.42rem;
	height: 2px;
	content: "";
	background: #fff;
	transform: rotate(45deg);
}

/* Großansicht */
.vf-lightbox {
	max-width: min(92vw, 56rem);
	max-height: 92vh;
	padding: 1rem;
	color: #1d2733;
	background: #fff;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}

.vf-lightbox[open] {
	animation: vf-lightbox-rein 260ms var(--vf-kurve, ease);
}

.vf-lightbox::backdrop {
	background: rgba(9, 18, 36, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

@keyframes vf-lightbox-rein {
	from {
		opacity: 0;
		transform: scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.vf-lightbox__fig {
	margin: 0;
}

.vf-lightbox__fig img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(92vh - 7rem);
	margin: 0 auto;
	object-fit: contain;
}

.vf-lightbox__fig figcaption {
	margin: 0.75rem 0 0;
	font-weight: 600;
	text-align: center;
}

.vf-form .vf-lightbox__zu {
	display: block;
	margin: 0.75rem auto 0 !important;
	padding: 0.625rem 1.5rem !important;
	font: inherit;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: #fff !important;
	cursor: pointer;
	background: var(--vf-akzent, #0e254a) !important;
	border: 0 !important;
	border-radius: 999px !important;
}

/* Preise mit Normalpreis ---------------------------------------------------- */

.vf-form .vf-alt {
	margin-right: 0.125rem;
	font-weight: 500;
	color: var(--vf-gedaempft);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: var(--vf-fehler);
}

.vf-form .vf-neu {
	font-weight: 700;
	color: var(--vf-fehler);
}

.vf-form .vf-rabatt {
	display: inline-block;
	margin-left: 0.25rem;
	padding: 0.125rem 0.4375rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	vertical-align: 0.1em;
	background: var(--vf-fehler);
	border-radius: 999px;
}

/* In gewählten Kacheln: hell auf der Kachelfarbe. */
.vf-form .vf-kachel.is-checked .vf-alt,
.vf-form .vf-kachel.is-checked .vf-neu {
	color: inherit;
}

/* Folgefragen (z. B. Größe zum gewählten Tiefschutz): eingerückt unter der Ausgangsfrage. */
.vf-q--folge {
	margin-top: -0.75rem;
}

.vf-q--folge > .vf-q__inner {
	padding: 0.875rem 0 0.25rem 1.125rem;
	background: linear-gradient(var(--vf-akzent), var(--vf-akzent)) 0 0 / 3px 100% no-repeat;
	animation: vf-folge-linie 560ms var(--vf-kurve) both;
	animation-delay: var(--vf-verz, 0ms);
}

@keyframes vf-folge-linie {
	from {
		background-size: 3px 0;
	}

	to {
		background-size: 3px 100%;
	}
}

/*
 * Folgefrage einer Karte (z. B. Größe zum Tiefschutz): hängt unten an der
 * Karte, Text bündig mit der Textspalte, Linie zeichnet sich dort.
 */
.vf-q--folge-bild {
	margin-top: -1rem;
	margin-bottom: 1rem;
}

.vf-q--folge-bild > .vf-q__inner {
	--vf-linie-x: calc(var(--vf-kpad) + var(--vf-bild) + var(--vf-kgap));
	margin-left: 0;
	padding: 0.25rem var(--vf-kpad) var(--vf-kpad) calc(var(--vf-linie-x) + 1.125rem);
	background:
		linear-gradient(var(--vf-akzent), var(--vf-akzent)) var(--vf-linie-x) 0 / 3px calc(100% - var(--vf-kpad)) no-repeat,
		var(--vf-feld);
	border: 1px solid var(--vf-linie-leise);
	border-top: 0;
	border-radius: 0 0 calc(var(--vf-radius) * 1.4) calc(var(--vf-radius) * 1.4);
	box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.18);
	animation-name: vf-folge-linie-karte;
}

@keyframes vf-folge-linie-karte {
	from {
		background-size: 3px 0, auto;
	}

	to {
		background-size: 3px calc(100% - var(--vf-kpad)), auto;
	}
}

/* Gewählte Karte mit angehängter Folgefrage: unten keine Querlinie. */
.vf-q--mit-bild.is-im-korb:has(+ .vf-q--folge-bild:not([hidden])) > .vf-q__inner,
.vf-q--mit-bild.is-im-korb:has(+ .vf-q--folge-bild[hidden] + .vf-q--folge-bild:not([hidden])) > .vf-q__inner {
	box-shadow: inset 1px 0 0 var(--vf-akzent), inset -1px 0 0 var(--vf-akzent), inset 0 1px 0 var(--vf-akzent);
}

/* Gewählte Ausgangskarte: angehängte Folgefrage im selben Rahmen. */
.vf-q--mit-bild.is-im-korb + .vf-q--folge-bild > .vf-q__inner,
.vf-q--mit-bild.is-im-korb + .vf-q--folge-bild[hidden] + .vf-q--folge-bild > .vf-q__inner {
	border-color: var(--vf-akzent);
	box-shadow: inset 1px 0 0 var(--vf-akzent), inset -1px 0 0 var(--vf-akzent), inset 0 -1px 0 var(--vf-akzent);
}

/* Feine Bewegungen -------------------------------------------------------- */

/* Karte gleitet beim Laden der Seite herein. */
.vf-form {
	animation: vf-karte 640ms var(--vf-kurve) both;
}

@keyframes vf-karte {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Gewählte Antwort: kurzes, weiches Einrasten. */
.vf-form .vf-option.is-checked:not(.vf-kachel) {
	animation: vf-tipp 300ms var(--vf-kurve);
}

@keyframes vf-tipp {
	0% {
		transform: scale(1);
	}

	40% {
		transform: scale(0.985);
	}

	100% {
		transform: scale(1);
	}
}

/* Nach einer Wahl im Dropdown: die Frage wird kurz hinterlegt, der Preis federt. */
.vf-q.vf-blitz > .vf-q__inner {
	animation: vf-blitz 900ms ease-out;
}

@keyframes vf-blitz {
	0% {
		background-color: transparent;
	}

	25% {
		background-color: var(--vf-hauch);
	}

	100% {
		background-color: transparent;
	}
}

.vf-q.vf-blitz .vf-label .vf-option__price {
	display: inline-block;
	animation: vf-preis-feder 520ms var(--vf-kurve);
}

@keyframes vf-preis-feder {
	40% {
		transform: scale(1.08);
	}
}

/* Fehler: dezentes Wackeln. */
.vf-q--invalid > .vf-q__inner {
	animation: vf-wackeln 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes vf-wackeln {
	15%,
	85% {
		transform: translateX(-2px);
	}

	30%,
	70% {
		transform: translateX(4px);
	}

	50% {
		transform: translateX(-4px);
	}
}

/* Zwischenüberschrift: Linie und Farbbalken zeichnen sich beim Erscheinen. */
.vf-q--heading:not(:first-child) > .vf-q__inner {
	animation: vf-linie 900ms var(--vf-kurve) both;
	animation-delay: var(--vf-verz, 0ms);
}

@keyframes vf-linie {
	from {
		background-size: 0 3px, 0 1px;
	}

	to {
		background-size: 3rem 3px, 100% 1px;
	}
}

/* Submit: Pfeil, der beim Darüberfahren nach rechts gleitet, und ein Lichtstreif. */
.vf-form .vf-submit {
	position: relative;
	overflow: hidden;
}

.vf-form .vf-submit::after {
	display: inline-block;
	margin-left: 0.625rem;
	content: "→";
	transition: transform 260ms var(--vf-kurve);
}

.vf-form .vf-submit:hover::after {
	transform: translateX(4px);
}

.vf-form .vf-submit::before {
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	content: "";
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-20deg);
	transition: left 0s;
	pointer-events: none;
}

.vf-form .vf-submit:hover::before {
	left: 130%;
	transition: left 700ms ease;
}

.vf-form .vf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.55) !important;
}

.vf-form .vf-submit[disabled]::after {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: vf-dreh 700ms linear infinite;
}

@keyframes vf-dreh {
	to {
		transform: rotate(360deg);
	}
}

/* Erfolg: Kreis und Haken zeichnen sich. */
.vf-success__icon {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 0 1rem;
}

.vf-success__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--vf-akzent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vf-success__icon circle {
	stroke-dasharray: 145;
	stroke-dashoffset: 0;
	animation: vf-zeichnen-kreis 700ms var(--vf-kurve) both;
	transform: rotate(-90deg);
	transform-origin: center;
}

.vf-success__icon path {
	stroke-dasharray: 40;
	stroke-dashoffset: 0;
	animation: vf-zeichnen-haken 420ms 480ms var(--vf-kurve) both;
}

@keyframes vf-zeichnen-kreis {
	from {
		stroke-dashoffset: 145;
	}
}

@keyframes vf-zeichnen-haken {
	from {
		stroke-dashoffset: 40;
	}
}

.vf-success:not([hidden]) {
	animation: vf-erfolg 560ms var(--vf-kurve) both;
}

@keyframes vf-erfolg {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Bankverbindung im Zahlungshinweis ---------------------------------------- */

.vf-form .vf-bank {
	width: 100%;
	margin: 0.75rem 0 0;
	border: 0;
	border-collapse: collapse;
}

.vf-form .vf-bank th,
.vf-form .vf-bank td {
	padding: 0.5rem 0 !important;
	text-align: left !important;
	vertical-align: middle;
	background: none;
	border: 0;
	border-top: 1px solid var(--vf-linie-leise);
}

.vf-form .vf-bank tr:first-child th,
.vf-form .vf-bank tr:first-child td {
	border-top: 0;
}

.vf-form .vf-bank th {
	width: 11rem;
	padding-right: 1rem !important;
	font-size: 0.875rem;
	font-weight: 600 !important;
	color: var(--vf-gedaempft);
}

.vf-form .vf-bank td {
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

.vf-form .vf-kopier__btn {
	margin: 0 0 0 0.5rem !important;
	padding: 0.1875rem 0.625rem !important;
	font: inherit;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--vf-akzent) !important;
	vertical-align: 0.05em;
	cursor: pointer;
	background: var(--vf-feld) !important;
	border: 1px solid var(--vf-linie) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.vf-form .vf-kopier__btn:hover {
	border-color: var(--vf-akzent) !important;
}

.vf-form .vf-kopier__btn.is-kopiert {
	color: var(--vf-knopftext) !important;
	background: var(--vf-akzent) !important;
	border-color: var(--vf-akzent) !important;
}

@media (max-width: 480px) {
	.vf-form .vf-bank th,
	.vf-form .vf-bank td {
		display: block;
		width: auto;
	}

	.vf-form .vf-bank th {
		padding-bottom: 0 !important;
	}

	.vf-form .vf-bank td {
		padding-top: 0.125rem !important;
		border-top: 0;
	}
}

/* Summe ------------------------------------------------------------------ */

.vf-total {
	position: sticky;
	bottom: 0.75rem;
	z-index: 3;
	display: grid;
	grid-template-rows: 1fr;
	margin: 1.75rem 0;
	opacity: 1;
	transform: none;
	transition:
		grid-template-rows var(--vf-dauer) var(--vf-kurve),
		margin var(--vf-dauer) var(--vf-kurve),
		opacity var(--vf-dauer) var(--vf-kurve),
		transform var(--vf-dauer) var(--vf-kurve);
}

.vf-total > .vf-total__inner {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	justify-content: space-between;
	min-height: 0;
	padding: 0.75rem 1.25rem;
	overflow: hidden;
	color: var(--vf-text);
	background: var(--vf-karte);
	background-image: linear-gradient(var(--vf-flaeche), var(--vf-flaeche));
	border: 1.5px solid var(--vf-akzent);
	border-radius: var(--vf-radius);
	box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.3);
	transition: padding var(--vf-dauer) var(--vf-kurve);
}

.vf-total.is-leer {
	position: relative;
	bottom: auto;
}

.vf-total.is-leer > .vf-total__inner {
	box-shadow: none;
}

.vf-total.vf-zu {
	grid-template-rows: 0fr;
	margin-top: 0;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(6px);
}

.vf-total.vf-zu > .vf-total__inner {
	padding-top: 0;
	padding-bottom: 0;
}

.vf-total[hidden] {
	display: none;
}

.vf-total__label {
	font-weight: 600;
	color: var(--vf-akzent);
}

.vf-total__betrag {
	position: relative;
	display: inline-flex;
	gap: 0.625rem;
	align-items: baseline;
	margin-left: auto;
}

.vf-form .vf-total__alt {
	font-size: 1rem;
	font-weight: 600;
	color: var(--vf-gedaempft);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: var(--vf-fehler);
	white-space: nowrap;
	animation: vf-rein 420ms var(--vf-kurve) both;
}

.vf-total__alt[hidden],
.vf-total__zahl[hidden] {
	display: none;
}

.vf-total__value.vf-zaehlt {
	color: transparent !important;
}

/* Gezählte Kopie liegt genau über dem echten Betrag. */
.vf-total__zahl {
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 1.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: inherit;
	color: var(--vf-akzent);
	white-space: nowrap;
	pointer-events: none;
}

.vf-total__spar.vf-rein {
	animation: vf-rein 420ms var(--vf-kurve) both;
}

.vf-total__spar {
	flex-basis: 100%;
	margin: -0.25rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--vf-fehler);
	text-align: right;
}

.vf-total__spar[hidden] {
	display: none;
}

.vf-total > .vf-total__inner {
	flex-wrap: wrap;
}

.vf-total__value {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--vf-akzent);
}

/* Der Betrag „kommt an“, wenn er sich ändert. */
.vf-total__value.vf-puls {
	animation: vf-puls 360ms var(--vf-kurve);
}

@keyframes vf-puls {
	from {
		opacity: 0.25;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Zusammenfassung (Sprungmodus, letzter Schritt) ------------------------- */

.vf-summary {
	margin: 0 0 1.5rem;
	padding: 0;
	border-top: 1px solid var(--vf-linie);
}

.vf-summary__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 0.25rem 1.25rem;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--vf-linie);
}

.vf-summary dt {
	margin: 0;
	font-weight: 600;
	line-height: 1.4;
}

.vf-summary dd {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	line-height: 1.4;
}

.vf-summary__text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.vf-summary__price {
	flex: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Einwilligung ----------------------------------------------------------- */

.vf-consent {
	margin: 1.5rem 0;
	padding: 1rem 1.125rem;
	background: var(--vf-flaeche);
	border-radius: var(--vf-radius);
}

.vf-consent[hidden] {
	display: none;
}

.vf-form .vf-consent label {
	display: flex;
	margin: 0;
	font-weight: 400;
	color: var(--vf-text);
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.5;
	cursor: pointer;
}

.vf-consent input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15em;
	accent-color: var(--vf-akzent);
}

.vf-consent a {
	font-weight: 600;
	color: var(--vf-akzent);
	text-decoration: underline;
}

.vf-consent input:focus-visible {
	outline: 2px solid var(--vf-akzent);
	outline-offset: 2px;
}

/* Knöpfe ----------------------------------------------------------------- */

.vf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: flex-end;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--vf-linie-leise);
}

/*
 * Knöpfe: Farben, Schriftgröße und Sichtbarkeit mit !important, weil
 * Elementor-Kits und Themes `button` samt :hover/:focus global gestalten
 * (z. B. Schriftgröße 1px oder eigene Hover-Farbe).
 */
.vf-form .vf-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 12rem;
	min-height: 3.25rem;
	margin: 0;
	padding: 0.875rem 2rem !important;
	font: inherit;
	font-family: var(--e-global-typography-accent-font-family, inherit), system-ui, sans-serif;
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em;
	color: var(--vf-knopftext) !important;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	visibility: visible !important;
	opacity: 1;
	cursor: pointer;
	background: var(--vf-knopf) !important;
	border: 2px solid var(--vf-knopf) !important;
	border-radius: var(--vf-radius) !important;
	box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.45) !important;
	transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
	-webkit-tap-highlight-color: transparent;
}

.vf-form .vf-btn:hover,
.vf-form .vf-btn:focus {
	color: var(--vf-knopftext) !important;
	background: var(--vf-knopf) !important;
	border-color: var(--vf-knopf) !important;
	filter: brightness(1.1);
}

.vf-form .vf-btn:active {
	filter: brightness(0.92);
	transform: translateY(1px);
}

.vf-form .vf-btn:focus-visible {
	outline: 3px solid var(--vf-akzent) !important;
	outline-offset: 3px;
}

.vf-form .vf-btn .vf-btn__pfeil {
	margin-left: 0.5rem;
}

.vf-form .vf-btn[hidden] {
	display: none !important;
}

.vf-form .vf-btn[disabled] {
	cursor: default;
	opacity: 0.6;
	filter: none;
}

.vf-form .vf-btn--ghost,
.vf-form .vf-btn--ghost:hover,
.vf-form .vf-btn--ghost:focus {
	order: -1;
	min-width: 0;
	margin-right: auto;
	color: var(--vf-akzent) !important;
	background: var(--vf-feld) !important;
	border-color: var(--vf-linie) !important;
	box-shadow: none !important;
	filter: none;
}

.vf-form .vf-btn--ghost:hover {
	background: var(--vf-hauch) !important;
	border-color: var(--vf-akzent) !important;
}

/* Fehler und Erfolg ------------------------------------------------------ */

.vf-form .vf-error,
.vf-form .vf-formerror {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--vf-fehler);
}

.vf-form .vf-formerror {
	padding: 0.75rem 1rem;
	background: #fdecea;
	border-left: 4px solid var(--vf-fehler);
	border-radius: var(--vf-radius);
}

.vf-error[hidden],
.vf-formerror[hidden] {
	display: none;
}

.vf-form .vf-q--invalid .vf-input,
.vf-form .vf-q--invalid .vf-option {
	border-color: var(--vf-fehler) !important;
}

.vf-success,
.vf-form .vf-closed {
	padding: 1.25rem 1.5rem;
	color: var(--vf-text);
	background: var(--vf-flaeche);
	border-left: 4px solid var(--vf-akzent);
	border-radius: var(--vf-radius);
	outline: none;
	opacity: 1;
	transform: none;
	transition: opacity var(--vf-dauer) var(--vf-kurve), transform var(--vf-dauer) var(--vf-kurve);
}

.vf-success > :first-child,
.vf-success__text > :first-child,
.vf-payment > :first-child,
.vf-form .vf-closed > :first-child {
	margin-top: 0;
}

.vf-success > :last-child,
.vf-success__text > :last-child,
.vf-payment > :last-child,
.vf-form .vf-closed > :last-child {
	margin-bottom: 0;
}

.vf-success.vf-zu,
.vf-form .vf-closed.vf-zu {
	opacity: 0;
	transform: translateY(8px);
}

.vf-success[hidden],
.vf-form .vf-closed[hidden],
.vf-payment[hidden] {
	display: none;
}

/* Zahlungshinweis: eigene Karte in der Erfolgsmeldung. */
.vf-payment {
	margin: 1rem 0 0;
	padding: 1rem 1.25rem;
	background: var(--vf-feld);
	border: 1px solid var(--vf-linie);
	border-left: 4px solid var(--vf-akzent);
	border-radius: var(--vf-radius);
}

.vf-success__actions {
	margin: 1.25rem 0 0;
}

.vf-form .vf-success__actions .vf-again {
	margin-right: 0;
}

/* Geschlossenes Formular: nur die Meldung, gestaltet wie die Erfolgsmeldung. */
.vf-form--closed > .vf-notice {
	padding: 1.25rem 1.5rem;
	color: var(--vf-text);
	opacity: 1;
	background: var(--vf-flaeche);
	border: 0;
	border-left: 4px solid var(--vf-akzent);
	border-radius: var(--vf-radius);
}

.vf-form--closed > .vf-notice > :first-child {
	margin-top: 0;
}

.vf-form--closed > .vf-notice > :last-child {
	margin-bottom: 0;
}

.vf-notice {
	padding: 0.75rem 1rem;
	opacity: 0.8;
	border: 1px dashed var(--vf-linie, #c9cfd4);
	border-radius: var(--vf-radius, 8px);
}

.vf-notice--editor {
	margin: 0 0 1rem;
}

/* Honeypot: für Menschen unsichtbar, für Bots sichtbar. */
.vf-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Mobil ------------------------------------------------------------------ */

@media (max-width: 480px) {
	.vf-form {
		border-radius: var(--vf-radius);
	}

	/* Handy: Bild klein neben Überschrift und Hilfetext, Antworten volle Breite. */
	.vf-form {
		--vf-bild: 4.75rem;
		--vf-kpad: 1rem;
		--vf-kgap: 0.875rem;
	}

	.vf-q--mit-bild > .vf-q__inner {
		display: block;
	}

	.vf-form .vf-q--mit-bild .vf-bild {
		float: left;
		width: 4.75rem;
		margin: 0 0.875rem 0.5rem 0 !important;
	}

	.vf-q--mit-bild .vf-options,
	.vf-q--mit-bild .vf-input,
	.vf-q--mit-bild .vf-error {
		clear: both;
	}

	/* Eine Antwortgruppe (fieldset) steht als Ganzes neben dem Bild; ihre
	   Antworten rücken um Bildbreite plus Abstand nach links auf volle Breite. */
	.vf-q--mit-bild .vf-fieldset > .vf-options,
	.vf-q--mit-bild .vf-fieldset > .vf-error {
		clear: none;
		margin-left: calc(-4.75rem - 0.875rem);
	}

	.vf-q--mit-bild .vf-q__body::after {
		display: table;
		clear: both;
		content: "";
	}

	.vf-bild__lupe {
		right: 0.25rem;
		bottom: 0.25rem;
		width: 1.375rem;
		height: 1.375rem;
	}

	.vf-bild__lupe::before {
		top: 0.3rem;
		left: 0.3rem;
		width: 0.5rem;
		height: 0.5rem;
		border-width: 1.5px;
	}

	.vf-bild__lupe::after {
		top: 0.82rem;
		left: 0.8rem;
		width: 0.32rem;
		height: 1.5px;
	}

	.vf-q--folge-bild > .vf-q__inner {
		--vf-linie-x: var(--vf-kpad);
	}

	.vf-form .vf-option {
		flex-wrap: wrap;
		row-gap: 0.25rem;
	}

	.vf-form .vf-option .vf-option__price {
		margin-left: auto;
	}

	.vf-kacheln {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.625rem;
	}

	.vf-q--tiles > .vf-q__inner {
		padding: 1.125rem 0.875rem 1rem;
	}

	.vf-kacheln[data-anzahl="1"],
	.vf-kacheln[data-anzahl="3"],
	.vf-kacheln[data-anzahl="5"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.vf-form .vf-kachel {
		min-height: 7rem;
		padding: 2.125rem 0.75rem 1.25rem;
		font-size: 1.0625rem;
	}

	.vf-kachel__zusatz {
		font-size: 0.8125rem;
	}

	.vf-kachel__haken {
		top: 0.5rem;
		right: 0.5rem;
		width: 1.375rem;
		height: 1.375rem;
	}

	.vf-kachel__haken::after {
		top: 0.22rem;
		left: 0.42rem;
	}

	.vf-actions .vf-btn {
		flex: 1 1 100%;
		min-width: 0;
	}

	.vf-form .vf-btn--ghost {
		order: 1;
		margin-right: 0;
	}

	.vf-total > .vf-total__inner {
		padding: 0.875rem 1rem;
	}

	.vf-summary__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.125rem;
	}

	.vf-label--mit-preis {
		flex-wrap: wrap;
	}

	.vf-success__actions .vf-btn {
		width: 100%;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.vf-form,
	.vf-form * {
		transition: none !important;
		animation: none !important;
	}
}
