/*
 * Formwerk – Frontend Formular Styles
 * Version: 2.6.2
 * Entwickler: Philipp Ramsch (www.philippramsch.de)
 *
 * Designprinzipien:
 *  - professionelle Ästhetik auf Niveau moderner Form-Builder
 *  - klare Hierarchie, ruhige Farbpalette, großzügige Abstände
 *  - sichtbare Fokus-States, eindeutige Fehler-States
 *  - Unterschrift-Feld mit dezentem "Hier unterschreiben"-Wasserzeichen
 *  - responsiv bis unter 380px Breite
 *  - greift Theme-Schriften über "inherit" auf, erzwingt aber eigene Feld-Stile
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS-Variablen — an einer Stelle anpassbar
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-form-wrap {
	--nfpdf-color-primary:        #1d4ed8;
	--nfpdf-color-primary-hover:  #1e40af;
	--nfpdf-color-primary-soft:   rgba(29, 78, 216, 0.12);
	--nfpdf-color-text:           #0f172a;
	--nfpdf-color-text-soft:      #475569;
	--nfpdf-color-text-muted:     #94a3b8;
	--nfpdf-color-border:         #e2e8f0;
	--nfpdf-color-border-strong:  #cbd5e1;
	--nfpdf-color-bg-field:       #ffffff;
	--nfpdf-color-bg-soft:        #f8fafc;
	--nfpdf-color-success:        #059669;
	--nfpdf-color-success-soft:   #d1fae5;
	--nfpdf-color-danger:         #dc2626;
	--nfpdf-color-danger-soft:    #fee2e2;
	--nfpdf-color-info:           #2563eb;
	--nfpdf-color-info-soft:      #dbeafe;
	--nfpdf-color-warning:        #d97706;
	--nfpdf-color-warning-soft:   #fef3c7;
	--nfpdf-radius-sm:            6px;
	--nfpdf-radius-md:            8px;
	--nfpdf-radius-lg:            12px;
	--nfpdf-shadow-focus:         0 0 0 4px var(--nfpdf-color-primary-soft);
	--nfpdf-shadow-card:          0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
	--nfpdf-transition:           .18s ease;

	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--nfpdf-color-text);
	box-sizing: border-box;
}
.nfpdf-form-wrap *,
.nfpdf-form-wrap *::before,
.nfpdf-form-wrap *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════════════════
   Beschreibung, Hinweise, Meldungen
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-form-description {
	margin: 0 0 24px;
	color: var(--nfpdf-color-text-soft);
	font-size: 15px;
	line-height: 1.55;
}

.nfpdf-form-required-note {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 12px;
	background: var(--nfpdf-color-bg-soft);
	border: 1px solid var(--nfpdf-color-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--nfpdf-color-text-soft);
}
.nfpdf-required-star {
	color: var(--nfpdf-color-danger);
	font-weight: 700;
	margin-left: 2px;
}

/* Meldungsbox (Erfolg / Fehler / Info) */
.nfpdf-form-messages {
	padding: 14px 18px 14px 46px;
	border-radius: var(--nfpdf-radius-md);
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
	position: relative;
	border: 1px solid;
	animation: nfpdfFadeSlide .25s ease-out;
}
@keyframes nfpdfFadeSlide {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.nfpdf-form-messages::before {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	color: #fff;
}
.nfpdf-form-messages.is-success {
	background: var(--nfpdf-color-success-soft);
	border-color: #6ee7b7;
	color: #065f46;
}
.nfpdf-form-messages.is-success::before { content: "✓"; background: var(--nfpdf-color-success); }

.nfpdf-form-messages.is-error {
	background: var(--nfpdf-color-danger-soft);
	border-color: #fca5a5;
	color: #991b1b;
}
.nfpdf-form-messages.is-error::before { content: "!"; background: var(--nfpdf-color-danger); }

.nfpdf-form-messages.is-info {
	background: var(--nfpdf-color-info-soft);
	border-color: #93c5fd;
	color: #1e3a8a;
}
.nfpdf-form-messages.is-info::before { content: "i"; background: var(--nfpdf-color-info); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════════
   Felder-Grid
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-form-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 16px;
}
.nfpdf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.nfpdf-field-width-full  { flex: 1 1 100%; }
.nfpdf-field-width-half  { flex: 1 1 calc(50% - 8px);  min-width: 220px; }
.nfpdf-field-width-third { flex: 1 1 calc(33% - 11px); min-width: 180px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Label + Hilfetext
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-field > label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nfpdf-color-text);
	letter-spacing: 0.15px;
	margin-bottom: 2px;
}
.nfpdf-field-desc {
	font-size: 12.5px;
	color: var(--nfpdf-color-text-soft);
	margin: 2px 0 0;
	line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Eingabefelder (Input / Textarea / Select)
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-input,
.nfpdf-textarea,
.nfpdf-select-field {
	padding: 11px 14px;
	border: 1.5px solid var(--nfpdf-color-border-strong);
	border-radius: var(--nfpdf-radius-sm);
	font-size: 15px;
	font-family: inherit;
	background: var(--nfpdf-color-bg-field);
	color: var(--nfpdf-color-text);
	line-height: 1.4;
	transition: border-color var(--nfpdf-transition), box-shadow var(--nfpdf-transition), background var(--nfpdf-transition);
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
}
.nfpdf-input::placeholder,
.nfpdf-textarea::placeholder {
	color: var(--nfpdf-color-text-muted);
	opacity: 1;
}
.nfpdf-input:hover,
.nfpdf-textarea:hover,
.nfpdf-select-field:hover {
	border-color: #94a3b8;
}
.nfpdf-input:focus,
.nfpdf-textarea:focus,
.nfpdf-select-field:focus {
	outline: none;
	border-color: var(--nfpdf-color-primary);
	box-shadow: var(--nfpdf-shadow-focus);
	background: #fff;
}
.nfpdf-textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.55;
}

/* Select: eigener Pfeil rechts */
.nfpdf-select-field {
	padding-right: 40px;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--nfpdf-color-text-soft) 50%),
		linear-gradient(135deg, var(--nfpdf-color-text-soft) 50%, transparent 50%);
	background-position:
		calc(100% - 20px) 52%,
		calc(100% - 14px) 52%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}

/* Datum: eigener Kalender-Indikator */
input[type="date"].nfpdf-input { cursor: pointer; }
input[type="date"].nfpdf-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: .6;
	transition: opacity var(--nfpdf-transition);
}
input[type="date"].nfpdf-input:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   Radio / Checkbox
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-radio-group,
.nfpdf-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 6px 0 2px;
}
.nfpdf-radio-label,
.nfpdf-checkbox-label,
.nfpdf-checkbox-single-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--nfpdf-color-text);
	cursor: pointer;
	padding: 7px 10px;
	border-radius: var(--nfpdf-radius-sm);
	transition: background var(--nfpdf-transition);
	user-select: none;
}
.nfpdf-radio-label:hover,
.nfpdf-checkbox-label:hover,
.nfpdf-checkbox-single-label:hover {
	background: var(--nfpdf-color-bg-soft);
}
.nfpdf-radio-label input,
.nfpdf-checkbox-label input,
.nfpdf-checkbox-single-label input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: var(--nfpdf-color-primary);
	flex-shrink: 0;
}

/* Einzelne Checkbox (Datenschutz, SEPA, usw.): etwas deutlicher als Block */
.nfpdf-field-checkbox_single .nfpdf-checkbox-single-label {
	padding: 12px 14px;
	border: 1px solid var(--nfpdf-color-border);
	border-radius: var(--nfpdf-radius-md);
	background: var(--nfpdf-color-bg-soft);
	transition: background var(--nfpdf-transition), border-color var(--nfpdf-transition);
}
.nfpdf-field-checkbox_single .nfpdf-checkbox-single-label:hover {
	background: #f1f5f9;
	border-color: var(--nfpdf-color-border-strong);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Unterschrift
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-signature-wrap {
	position: relative;
	border: 1.5px solid var(--nfpdf-color-border-strong);
	border-radius: var(--nfpdf-radius-md);
	overflow: hidden;
	background: #fff;
	transition: border-color var(--nfpdf-transition), box-shadow var(--nfpdf-transition);
}
.nfpdf-signature-wrap:hover {
	border-color: var(--nfpdf-color-primary);
}
/* Wasserzeichen "Hier unterschreiben" */
.nfpdf-signature-wrap::before {
	content: "✍ Hier unterschreiben";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -70%);
	font-size: 13px;
	color: var(--nfpdf-color-text-muted);
	pointer-events: none;
	letter-spacing: 0.3px;
	transition: opacity var(--nfpdf-transition);
	z-index: 1;
}
.nfpdf-signature-wrap.has-content::before {
	opacity: 0;
}
.nfpdf-signature-wrap.has-content {
	border-color: var(--nfpdf-color-success);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.nfpdf-signature-canvas {
	display: block;
	width: 100%;
	height: 160px;
	background: #fff;
	cursor: crosshair;
	touch-action: none;
	position: relative;
	z-index: 2;
}
.nfpdf-signature-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	background: var(--nfpdf-color-bg-soft);
	border-top: 1px solid var(--nfpdf-color-border);
}
.nfpdf-sig-clear {
	font-size: 12.5px;
	padding: 6px 12px;
	border: 1px solid var(--nfpdf-color-border-strong);
	border-radius: var(--nfpdf-radius-sm);
	background: #fff;
	color: var(--nfpdf-color-text-soft);
	cursor: pointer;
	transition: all var(--nfpdf-transition);
}
.nfpdf-sig-clear:hover {
	background: var(--nfpdf-color-danger-soft);
	border-color: var(--nfpdf-color-danger);
	color: var(--nfpdf-color-danger);
}
.nfpdf-sig-hint {
	font-size: 12px;
	color: var(--nfpdf-color-text-muted);
	font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Fehler-Zustand
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-field-error {
	font-size: 12.5px;
	color: var(--nfpdf-color-danger);
	min-height: 0;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 5px;
}
.nfpdf-field-error:not(:empty) {
	min-height: 18px;
	padding-top: 2px;
}
.nfpdf-field-error:not(:empty)::before {
	content: "⚠";
	font-size: 13px;
}

.nfpdf-field.has-error .nfpdf-input,
.nfpdf-field.has-error .nfpdf-textarea,
.nfpdf-field.has-error .nfpdf-select-field {
	border-color: var(--nfpdf-color-danger);
	background: #fffafa;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.nfpdf-field.has-error .nfpdf-signature-wrap {
	border-color: var(--nfpdf-color-danger);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.nfpdf-field.has-error > label {
	color: var(--nfpdf-color-danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Abschnitts-Ueberschriften (Heading-Feldtyp)
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-field-heading {
	flex: 1 1 100%;
	margin: 14px 0 2px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--nfpdf-color-border);
	position: relative;
}
.nfpdf-field-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background: var(--nfpdf-color-primary);
	border-radius: 2px;
}
.nfpdf-field-heading h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--nfpdf-color-text);
	letter-spacing: 0.1px;
}

/* HTML-Inhalt */
.nfpdf-field-html {
	flex: 1 1 100%;
	color: var(--nfpdf-color-text-soft);
	line-height: 1.6;
}
.nfpdf-field-html p { margin: 0 0 10px; }
.nfpdf-field-html p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Absenden-Button
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-form-submit {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	flex: 1 1 100%;
	padding-top: 6px;
}
.nfpdf-submit-btn {
	position: relative;
	padding: 13px 30px;
	background: var(--nfpdf-color-primary);
	color: #fff;
	border: none;
	border-radius: var(--nfpdf-radius-md);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 1px 2px rgba(29, 78, 216, 0.15), 0 4px 12px rgba(29, 78, 216, 0.15);
	transition: background var(--nfpdf-transition), transform var(--nfpdf-transition), box-shadow var(--nfpdf-transition);
}
.nfpdf-submit-btn:hover {
	background: var(--nfpdf-color-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(29, 78, 216, 0.18), 0 8px 20px rgba(29, 78, 216, 0.22);
}
.nfpdf-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(29, 78, 216, 0.15);
}
.nfpdf-submit-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--nfpdf-color-primary-soft), 0 4px 12px rgba(29, 78, 216, 0.22);
}
.nfpdf-submit-btn:disabled {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 1px 2px rgba(29, 78, 216, 0.1);
}
.nfpdf-form-spinner {
	display: inline-flex;
	color: var(--nfpdf-color-primary);
}

/* Honeypot */
.nfpdf-hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	.nfpdf-field-width-half,
	.nfpdf-field-width-third { flex: 1 1 100%; min-width: 0; }
	.nfpdf-form-fields { gap: 14px; }
	.nfpdf-submit-btn { width: 100%; padding: 14px; }
	.nfpdf-form-submit { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
	.nfpdf-input,
	.nfpdf-textarea,
	.nfpdf-select-field { padding: 10px 12px; font-size: 14.5px; }
	.nfpdf-field-heading h3 { font-size: 16px; }
}

/* Reduktion von Animation fuer Nutzer mit entsprechender Einstellung */
@media (prefers-reduced-motion: reduce) {
	.nfpdf-form-messages,
	.nfpdf-submit-btn,
	.nfpdf-input,
	.nfpdf-textarea,
	.nfpdf-select-field,
	.nfpdf-signature-wrap,
	.nfpdf-signature-wrap::before {
		transition: none !important;
		animation: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   Neu in v2.2.8 – Titel/Untertitel, Label-Position, Groessen, Button-Radius,
   Mehrseitige Formulare (Navigation + Progress)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Titel / Untertitel ────────────────────────────────────────────────── */
.nfpdf-form-title {
	margin: 0 0 6px 0;
	font-size: 26px;
	font-weight: 700;
	color: var(--nfpdf-color-text);
	letter-spacing: -0.3px;
	line-height: 1.25;
}
.nfpdf-form-subtitle {
	margin: 0 0 16px 0;
	font-size: 15px;
	color: var(--nfpdf-color-text-soft);
	line-height: 1.5;
	font-weight: 500;
}
.nfpdf-form-wrap .nfpdf-form-title + .nfpdf-form-subtitle {
	margin-top: -2px;
}

/* ── Label-Position: LINKS (inline) ───────────────────────────────────── */
.nfpdf-lbl-left .nfpdf-field {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}
.nfpdf-lbl-left .nfpdf-field > label {
	flex: 0 0 28%;
	padding-top: 12px;
	margin-bottom: 0;
	text-align: right;
	max-width: 220px;
	min-width: 120px;
}
.nfpdf-lbl-left .nfpdf-field .nfpdf-input,
.nfpdf-lbl-left .nfpdf-field .nfpdf-textarea,
.nfpdf-lbl-left .nfpdf-field .nfpdf-select-field,
.nfpdf-lbl-left .nfpdf-field .nfpdf-radio-group,
.nfpdf-lbl-left .nfpdf-field .nfpdf-checkbox-group,
.nfpdf-lbl-left .nfpdf-field .nfpdf-signature-wrap {
	flex: 1;
	min-width: 0;
}
.nfpdf-lbl-left .nfpdf-field-error,
.nfpdf-lbl-left .nfpdf-field-desc {
	margin-left: calc(28% + 16px);
}
/* Bei Checkbox-Single (Label ist im Checkbox-Label-Wrap) bleibt Layout */
.nfpdf-lbl-left .nfpdf-field-checkbox_single {
	flex-direction: column;
}
.nfpdf-lbl-left .nfpdf-field-checkbox_single .nfpdf-field-error,
.nfpdf-lbl-left .nfpdf-field-checkbox_single .nfpdf-field-desc {
	margin-left: 0;
}
/* Heading und HTML bleiben volle Breite */
.nfpdf-lbl-left .nfpdf-field-heading,
.nfpdf-lbl-left .nfpdf-field-html {
	flex-direction: column;
}
@media (max-width: 640px) {
	.nfpdf-lbl-left .nfpdf-field {
		flex-direction: column;
		gap: 6px;
	}
	.nfpdf-lbl-left .nfpdf-field > label {
		flex: none;
		text-align: left;
		padding-top: 0;
		max-width: none;
	}
	.nfpdf-lbl-left .nfpdf-field-error,
	.nfpdf-lbl-left .nfpdf-field-desc {
		margin-left: 0;
	}
}

/* ── Label-Position: AUSGEBLENDET ─────────────────────────────────────── */
.nfpdf-lbl-hidden .nfpdf-field > label {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Label-Groesse ─────────────────────────────────────────────────────── */
.nfpdf-lbl-sm .nfpdf-field > label { font-size: 12px; }
.nfpdf-lbl-md .nfpdf-field > label { font-size: 13px; }
.nfpdf-lbl-lg .nfpdf-field > label { font-size: 15px; font-weight: 700; }

/* ── Feld-Groesse ──────────────────────────────────────────────────────── */
.nfpdf-fld-sm .nfpdf-input,
.nfpdf-fld-sm .nfpdf-textarea,
.nfpdf-fld-sm .nfpdf-select-field {
	padding: 8px 12px;
	font-size: 14px;
}
.nfpdf-fld-md .nfpdf-input,
.nfpdf-fld-md .nfpdf-textarea,
.nfpdf-fld-md .nfpdf-select-field {
	padding: 11px 14px;
	font-size: 15px;
}
.nfpdf-fld-lg .nfpdf-input,
.nfpdf-fld-lg .nfpdf-textarea,
.nfpdf-fld-lg .nfpdf-select-field {
	padding: 14px 16px;
	font-size: 16px;
}

/* ── Button-Radius ────────────────────────────────────────────────────── */
.nfpdf-btn-rad-sq   .nfpdf-submit-btn,
.nfpdf-btn-rad-sq   .nfpdf-btn-primary,
.nfpdf-btn-rad-sq   .nfpdf-btn-secondary,
.nfpdf-btn-rad-sq   .nfpdf-sig-clear { border-radius: 2px; }

.nfpdf-btn-rad-md   .nfpdf-submit-btn,
.nfpdf-btn-rad-md   .nfpdf-btn-primary,
.nfpdf-btn-rad-md   .nfpdf-btn-secondary,
.nfpdf-btn-rad-md   .nfpdf-sig-clear { border-radius: 8px; }

.nfpdf-btn-rad-lg   .nfpdf-submit-btn,
.nfpdf-btn-rad-lg   .nfpdf-btn-primary,
.nfpdf-btn-rad-lg   .nfpdf-btn-secondary,
.nfpdf-btn-rad-lg   .nfpdf-sig-clear { border-radius: 14px; }

.nfpdf-btn-rad-pill .nfpdf-submit-btn,
.nfpdf-btn-rad-pill .nfpdf-btn-primary,
.nfpdf-btn-rad-pill .nfpdf-btn-secondary,
.nfpdf-btn-rad-pill .nfpdf-sig-clear { border-radius: 999px; }

/* ── Primary/Secondary-Buttons (Navigation + Submit) ──────────────────── */
.nfpdf-submit-btn,
.nfpdf-btn-primary {
	background: var(--nfpdf-color-primary);
	color: var(--nfpdf-color-primary-text);
}
.nfpdf-submit-btn:hover,
.nfpdf-btn-primary:hover {
	background: var(--nfpdf-color-primary-hover);
}
.nfpdf-btn-secondary {
	background: var(--nfpdf-color-secondary);
	color: var(--nfpdf-color-secondary-text);
	border: 1px solid transparent;
	padding: 13px 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--nfpdf-transition), transform var(--nfpdf-transition);
}
.nfpdf-btn-secondary:hover {
	background: #cbd5e1;
	transform: translateY(-1px);
}
.nfpdf-nav-arrow-left,
.nfpdf-nav-arrow-right {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	margin: 0 5px;
}

/* ── Fokus-Styles mit dynamischen CSS-Variablen ───────────────────────── */
.nfpdf-form-wrap .nfpdf-input:focus,
.nfpdf-form-wrap .nfpdf-textarea:focus,
.nfpdf-form-wrap .nfpdf-select-field:focus {
	border-color: var(--nfpdf-color-accent);
	box-shadow: var(--nfpdf-shadow-focus);
}
.nfpdf-form-wrap .nfpdf-submit-btn:focus-visible,
.nfpdf-form-wrap .nfpdf-btn-primary:focus-visible,
.nfpdf-form-wrap .nfpdf-btn-secondary:focus-visible {
	outline: none;
	box-shadow: var(--nfpdf-shadow-focus);
}

/* Radio/Checkbox-Akzent nutzt color_accent */
.nfpdf-form-wrap .nfpdf-radio-label input,
.nfpdf-form-wrap .nfpdf-checkbox-label input,
.nfpdf-form-wrap .nfpdf-checkbox-single-label input {
	accent-color: var(--nfpdf-color-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mehrseitige Formulare – Navigation + Progress-Bar
═══════════════════════════════════════════════════════════════════════════ */

/* Seiten-Container: nur aktive Seite sichtbar */
.nfpdf-pages-wrap {
	position: relative;
}
.nfpdf-page {
	display: none;
	animation: nfpdfPageIn .25s ease-out;
}
.nfpdf-page.is-active {
	display: block;
}
@keyframes nfpdfPageIn {
	from { opacity: 0; transform: translateX(10px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Seitentitel (innerhalb einer Seite) */
.nfpdf-page-title {
	margin: 0 0 18px 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--nfpdf-color-text);
	letter-spacing: -0.2px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--nfpdf-color-border);
	position: relative;
}
.nfpdf-page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background: var(--nfpdf-color-primary);
	border-radius: 2px;
}

/* Progress-Bar */
.nfpdf-progress {
	margin: 0 0 26px;
}
.nfpdf-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--nfpdf-color-text-soft);
}
.nfpdf-progress-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nfpdf-progress-text strong {
	color: var(--nfpdf-color-text);
	font-weight: 700;
	margin: 0 2px;
}
.nfpdf-progress-percent {
	font-weight: 700;
	color: var(--nfpdf-color-primary);
	font-size: 13px;
}
.nfpdf-progress-track {
	height: 6px;
	background: var(--nfpdf-color-bg-soft);
	border: 1px solid var(--nfpdf-color-border);
	border-radius: 999px;
	overflow: hidden;
}
.nfpdf-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--nfpdf-color-primary) 0%, var(--nfpdf-color-accent) 100%);
	border-radius: 999px;
	transition: width .35s ease;
}

/* Schritte (Steps) */
.nfpdf-progress-steps {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}
.nfpdf-progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: var(--nfpdf-color-bg-soft);
	border: 1px solid var(--nfpdf-color-border);
	border-radius: 999px;
	font-size: 12px;
	color: var(--nfpdf-color-text-soft);
	white-space: nowrap;
	transition: all .2s ease;
	flex-shrink: 0;
}
.nfpdf-progress-step.is-current {
	background: var(--nfpdf-color-primary-soft);
	border-color: var(--nfpdf-color-primary);
	color: var(--nfpdf-color-primary);
	font-weight: 600;
}
.nfpdf-progress-step.is-done {
	background: var(--nfpdf-color-success-soft);
	border-color: var(--nfpdf-color-success);
	color: var(--nfpdf-color-success);
}
.nfpdf-progress-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--nfpdf-color-text-muted);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}
.nfpdf-progress-step.is-current .nfpdf-progress-step-num {
	background: var(--nfpdf-color-primary);
}
.nfpdf-progress-step.is-done .nfpdf-progress-step-num {
	background: var(--nfpdf-color-success);
}
.nfpdf-progress-step.is-done .nfpdf-progress-step-num::after {
	content: "✓";
}
.nfpdf-progress-step.is-done .nfpdf-progress-step-num {
	font-size: 0;
}
.nfpdf-progress-step.is-done .nfpdf-progress-step-num::after {
	font-size: 12px;
}
.nfpdf-progress-step-title {
	font-size: 12px;
}

/* Navigation-Leiste */
.nfpdf-form-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--nfpdf-color-border);
	flex-wrap: wrap;
}
.nfpdf-form-wrap.nfpdf-multipage .nfpdf-form-nav {
	justify-content: space-between;
}
.nfpdf-form-wrap.nfpdf-multipage .nfpdf-nav-prev {
	margin-right: auto;
}
.nfpdf-form-wrap.nfpdf-multipage .nfpdf-nav-next,
.nfpdf-form-wrap.nfpdf-multipage .nfpdf-submit-btn {
	margin-left: auto;
}

@media (max-width: 640px) {
	.nfpdf-progress-steps {
		display: none;
	}
	.nfpdf-form-wrap.nfpdf-multipage .nfpdf-form-nav {
		flex-direction: row;
	}
	.nfpdf-form-wrap.nfpdf-multipage .nfpdf-nav-prev,
	.nfpdf-form-wrap.nfpdf-multipage .nfpdf-nav-next,
	.nfpdf-form-wrap.nfpdf-multipage .nfpdf-submit-btn {
		flex: 1;
		padding: 13px 12px;
	}
}

/* Heading-Beschreibung (unter Überschrift-Feld) */
.nfpdf-heading-desc {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--nfpdf-color-text-soft);
	line-height: 1.5;
	font-weight: normal;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Neu in v2.2.9 – Conditional Logic (verborgene Felder)
═══════════════════════════════════════════════════════════════════════════ */
.nfpdf-cond-hidden {
	display: none !important;
}
