/* NE Formulare – Frontend (erzeugt von tools/build_frontend_css.py, nicht von Hand ändern)
 * Alle Farben, Abstände und Formen kommen ausschließlich aus dem Plugin.
 * Präfix :is(.nefo-container,#nefo#nefo) hebt die Spezifität über übliche Theme-Regeln (ohne !important). */

:is(.nefo-container,#nefo#nefo) {
	--nefo-accent: #2563eb;
	--nefo-accent-contrast: #ffffff;
	--nefo-text: #1e293b;
	--nefo-heading: var(--nefo-text);
	--nefo-bg: #ffffff;
	--nefo-muted: color-mix(in srgb, var(--nefo-text) 74%, var(--nefo-bg));
	--nefo-field-bg: #ffffff;
	--nefo-field-text: #0f172a;
	--nefo-border: #8592a6;
	--nefo-line: #e2e8f0;
	--nefo-error: #b91c1c;
	--nefo-success: #15803d;
	--nefo-radius: 8px;
	display: block;
	position: relative;
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 0;
	color: var(--nefo-text);
	background: transparent;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	word-spacing: normal;
}

/* Theme-Neutralisierung: Pseudo-Elemente der Themes (::before/::after) erzeugen
 * in Grid/Flex zusätzliche Zellen und verschieben Felder – grundsätzlich aus. */
:is(.nefo-container,#nefo#nefo) *, :is(.nefo-container,#nefo#nefo) *::before, :is(.nefo-container,#nefo#nefo) *::after { box-sizing: border-box; }
:is(.nefo-container,#nefo#nefo) *::before, :is(.nefo-container,#nefo#nefo) *::after { content: none; }
:is(.nefo-container,#nefo#nefo) :is(div, p, span, label, h2, h3, form, fieldset, legend, button, input, select, textarea) {
	float: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	opacity: 1;
	visibility: visible;
	filter: none;
}
:is(.nefo-container,#nefo#nefo) :is(div, p, span, label, h2, h3, legend, li, dt, dd) { color: inherit; background: transparent; border: 0; margin: 0; padding: 0; min-height: 0; width: auto; max-width: none; font-size: inherit; line-height: inherit; }

:is(.nefo-container,#nefo#nefo).nefo-has-card {
	background: var(--nefo-bg);
	padding: 28px 30px;
	border: 1px solid var(--nefo-line);
	border-radius: 14px;
}

:is(.nefo-container,#nefo#nefo) .nefo-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; }
:is(.nefo-container,#nefo#nefo) .nefo-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

:is(.nefo-container,#nefo#nefo) .nefo-form { display: block; margin: 0; padding: 0; background: transparent; border: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-form__title { display: block; margin: 0 0 8px; color: var(--nefo-heading); font-size: 1.5em; font-weight: 700; line-height: 1.25; }
:is(.nefo-container,#nefo#nefo) .nefo-form__desc { display: block; margin: 0 0 22px; color: var(--nefo-muted); }

/* Raster: 12 Spalten, Feldbreiten */
:is(.nefo-container,#nefo#nefo) .nefo-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; margin: 0; padding: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-field { display: block; grid-column: span 12; margin: 0 0 22px; min-width: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-w--three-quarter { grid-column: span 9; }
:is(.nefo-container,#nefo#nefo) .nefo-w--two-third { grid-column: span 8; }
:is(.nefo-container,#nefo#nefo) .nefo-w--half { grid-column: span 6; }
:is(.nefo-container,#nefo#nefo) .nefo-w--third { grid-column: span 4; }
:is(.nefo-container,#nefo#nefo) .nefo-w--quarter { grid-column: span 3; }

/* Beschriftungen und Texte */
:is(.nefo-container,#nefo#nefo) .nefo-field__label { display: block; margin: 0 0 7px; color: var(--nefo-heading); font-size: 15px; font-weight: 600; line-height: 1.35; }
:is(.nefo-container,#nefo#nefo) .nefo-field__sublabel { display: block; margin: 5px 0 0; color: var(--nefo-muted); font-size: 13px; font-weight: 400; line-height: 1.35; }
:is(.nefo-container,#nefo#nefo) .nefo-required { display: inline; color: var(--nefo-error); font-weight: 700; }
:is(.nefo-container,#nefo#nefo) .nefo-field__desc { display: block; margin: 7px 0 0; color: var(--nefo-muted); font-size: 14px; line-height: 1.45; }
:is(.nefo-container,#nefo#nefo) .nefo-field__error { display: block; margin: 7px 0 0; color: var(--nefo-error); font-size: 14px; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-field__error[hidden] { display: none; }

/* Eingabefelder */
:is(.nefo-container,#nefo#nefo) :is(input.nefo-input, select.nefo-input, textarea.nefo-input) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	color: var(--nefo-field-text);
	background: var(--nefo-field-bg);
	background-image: none;
	border: 1px solid var(--nefo-border);
	border-radius: var(--nefo-radius);
	box-shadow: none;
	outline: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s;
}
:is(.nefo-container,#nefo#nefo) textarea.nefo-input { min-height: 0; resize: vertical; }
:is(.nefo-container,#nefo#nefo) select.nefo-input { appearance: auto; -webkit-appearance: menulist; padding-right: 10px; cursor: pointer; }
:is(.nefo-container,#nefo#nefo) select.nefo-input option { color: var(--nefo-field-text); background: var(--nefo-field-bg); }
:is(.nefo-container,#nefo#nefo) :is(input.nefo-input, textarea.nefo-input)::placeholder { color: #64748b; opacity: 1; }
:is(.nefo-container,#nefo#nefo) :is(input.nefo-input, select.nefo-input, textarea.nefo-input):hover { border-color: var(--nefo-muted); }
:is(.nefo-container,#nefo#nefo) :is(input.nefo-input, select.nefo-input, textarea.nefo-input):focus {
	border-color: var(--nefo-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nefo-accent) 25%, transparent);
	outline: 0;
}
:is(.nefo-container,#nefo#nefo) .has-error :is(input.nefo-input, select.nefo-input, textarea.nefo-input) { border-color: var(--nefo-error); border-width: 2px; }

/* Name: Teilfelder */
:is(.nefo-container,#nefo#nefo) .nefo-subfields { display: grid; gap: 0 16px; margin: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-subfields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.nefo-container,#nefo#nefo) .nefo-subfields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.nefo-container,#nefo#nefo) .nefo-subfield { display: block; min-width: 0; }

/* Auswahlfelder: native Elemente, sichtbar erzwungen */
:is(.nefo-container,#nefo#nefo) .nefo-choices { display: grid; gap: 10px; margin: 2px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-choices--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; }
:is(.nefo-container,#nefo#nefo) .nefo-choices--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.nefo-container,#nefo#nefo) .nefo-choices--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.nefo-container,#nefo#nefo) label.nefo-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--nefo-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}
:is(.nefo-container,#nefo#nefo) label.nefo-choice > span { display: block; color: var(--nefo-text); }
:is(.nefo-container,#nefo#nefo) label.nefo-choice > input {
	display: inline-block;
	position: static;
	flex: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin: 1px 0 0;
	padding: 0;
	opacity: 1;
	visibility: visible;
	clip: auto;
	appearance: auto;
	-webkit-appearance: auto;
	accent-color: var(--nefo-accent);
	box-shadow: none;
	border: 0;
	background: none;
	cursor: pointer;
}
:is(.nefo-container,#nefo#nefo) label.nefo-choice > input:focus-visible { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 2px; }
:is(.nefo-container,#nefo#nefo) label.nefo-choice.nefo-choice--consent { padding: 14px 16px; border: 1px solid var(--nefo-line); border-radius: var(--nefo-radius); background: color-mix(in srgb, var(--nefo-accent) 4%, var(--nefo-field-bg)); }
:is(.nefo-container,#nefo#nefo) .nefo-choice--consent > span { font-size: 15px; }
:is(.nefo-container,#nefo#nefo) label.nefo-choice--consent, :is(.nefo-container,#nefo#nefo) label.nefo-choice--consent > span { color: var(--nefo-field-text); }
:is(.nefo-container,#nefo#nefo) .nefo-choice a { color: var(--nefo-accent); text-decoration: underline; }
:is(.nefo-container,#nefo#nefo) .has-error .nefo-choices, :is(.nefo-container,#nefo#nefo) .has-error .nefo-choice--consent { outline: 2px solid var(--nefo-error); outline-offset: 4px; border-radius: 4px; }

/* Abschnitte: deutlich erkennbar */
:is(.nefo-container,#nefo#nefo) .nefo-field--section { margin: 10px 0 20px; padding: 0 0 0 14px; border-left: 4px solid var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo) .nefo-field--section.has-divider { padding-bottom: 12px; border-bottom: 1px solid var(--nefo-line); }
:is(.nefo-container,#nefo#nefo) .nefo-section__title { display: block; margin: 0 0 4px; color: var(--nefo-heading); font-size: 1.25em; font-weight: 700; line-height: 1.3; }
:is(.nefo-container,#nefo#nefo) .nefo-section__text { display: block; margin: 0; color: var(--nefo-muted); font-size: 15px; }

:is(.nefo-container,#nefo#nefo) .nefo-counter { display: block; margin: 5px 0 0; color: var(--nefo-muted); font-size: 13px; text-align: right; }
:is(.nefo-container,#nefo#nefo) .nefo-counter.is-over { color: var(--nefo-error); font-weight: 600; }

/* Beschriftung links */
@media (min-width: 640px) {
	:is(.nefo-container,#nefo#nefo) .nefo-labels-left .nefo-field.nefo-w--full:not(.nefo-field--section) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 20px; align-items: start; }
	:is(.nefo-container,#nefo#nefo) .nefo-labels-left .nefo-field.nefo-w--full > .nefo-field__label { padding-top: 12px; }
	:is(.nefo-container,#nefo#nefo) .nefo-labels-left .nefo-field.nefo-w--full > :not(.nefo-field__label) { grid-column: 2; }
}

/* Absenden */
:is(.nefo-container,#nefo#nefo) .nefo-submit { display: block; margin: 8px 0 0; }
:is(.nefo-container,#nefo#nefo) button.nefo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 12px 28px;
	color: var(--nefo-accent-contrast);
	background: var(--nefo-accent);
	background-image: none;
	border: 0;
	border-radius: var(--nefo-radius);
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: filter 0.15s, transform 0.05s;
}
:is(.nefo-container,#nefo#nefo) button.nefo-button:hover { color: var(--nefo-accent-contrast); background: var(--nefo-accent); filter: brightness(1.08); }
:is(.nefo-container,#nefo#nefo) button.nefo-button:active { transform: translateY(1px); }
:is(.nefo-container,#nefo#nefo) button.nefo-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 3px; }
:is(.nefo-container,#nefo#nefo) button.nefo-button[disabled] { opacity: 0.75; cursor: progress; }
:is(.nefo-container,#nefo#nefo) button.nefo-button.is-busy::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nefo-spin 0.8s linear infinite; }
@keyframes nefo-spin { to { transform: rotate(360deg); } }

/* Meldungen */
:is(.nefo-container,#nefo#nefo) .nefo-message { display: block; margin: 0 0 22px; padding: 16px 18px; border: 1px solid; border-left-width: 5px; border-radius: var(--nefo-radius); color: #0f172a; font-size: 16px; }
:is(.nefo-container,#nefo#nefo) .nefo-message[hidden] { display: none; }
:is(.nefo-container,#nefo#nefo) .nefo-message p { margin: 0 0 8px; color: inherit; }
:is(.nefo-container,#nefo#nefo) .nefo-message p:last-child { margin-bottom: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-message--success { border-color: var(--nefo-success); background: #f0fdf4; }
:is(.nefo-container,#nefo#nefo) .nefo-message--error { border-color: var(--nefo-error); background: #fef2f2; }
:is(.nefo-container,#nefo#nefo) .nefo-message:focus { outline: 0; }

:is(.nefo-container,#nefo#nefo) .nefo-summary { display: block; margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; background: #ffffff; border: 1px solid #e2e8f0; }
:is(.nefo-container,#nefo#nefo) .nefo-summary table { width: 100%; border-collapse: collapse; }
:is(.nefo-container,#nefo#nefo) .nefo-summary td { padding: 6px 0; color: #0f172a; font-size: 15px; vertical-align: top; }
:is(.nefo-container,#nefo#nefo) .nefo-captcha { display: block; margin: 0 0 18px; }
:is(.nefo-container,#nefo#nefo) .nefo-admin-hint { display: block; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #f59e0b; border-radius: 6px; color: #78350f; background: #fffbeb; font-size: 14px; }

/* Klassischer Stil: schlichtere Formen, gleiche Farben */
:is(.nefo-container,#nefo#nefo).nefo-style-classic :is(input.nefo-input, select.nefo-input, textarea.nefo-input) { min-height: 38px; padding: 7px 10px; border-radius: 3px; }
:is(.nefo-container,#nefo#nefo).nefo-style-classic button.nefo-button { min-height: 40px; padding: 8px 20px; border-radius: 3px; }

/* 0.4.0: erweiterte Felder */
:is(.nefo-container,#nefo#nefo) .nefo-field--hidden { display: none; }
:is(.nefo-container,#nefo#nefo) .nefo-html { display: block; color: var(--nefo-text); font-size: 16px; line-height: 1.55; }
:is(.nefo-container,#nefo#nefo) .nefo-html p { margin: 0 0 10px; color: inherit; font-size: 16px; }
:is(.nefo-container,#nefo#nefo) .nefo-html a { color: var(--nefo-accent); text-decoration: underline; }
:is(.nefo-container,#nefo#nefo) input.nefo-input.nefo-input--short { max-width: 220px; }

:is(.nefo-container,#nefo#nefo) .nefo-address { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 16px; }
:is(.nefo-container,#nefo#nefo) .nefo-address__full { grid-column: 1 / -1; }
:is(.nefo-container,#nefo#nefo) .nefo-address .nefo-subfield { margin-bottom: 10px; }

:is(.nefo-container,#nefo#nefo) .nefo-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
:is(.nefo-container,#nefo#nefo) input.nefo-rating__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); appearance: none; }
:is(.nefo-container,#nefo#nefo) label.nefo-rating__star { display: inline-flex; padding: 2px; border-radius: 6px; cursor: pointer; line-height: 0; }
:is(.nefo-container,#nefo#nefo) label.nefo-rating__star svg { width: 32px; height: 32px; fill: #e2e8f0; stroke: #8592a6; stroke-width: 1; transition: fill 0.1s; }
:is(.nefo-container,#nefo#nefo) input.nefo-rating__input:checked ~ label.nefo-rating__star svg,
:is(.nefo-container,#nefo#nefo) label.nefo-rating__star:hover svg,
:is(.nefo-container,#nefo#nefo) label.nefo-rating__star:hover ~ label.nefo-rating__star svg { fill: #f59e0b; stroke: #b45309; }
:is(.nefo-container,#nefo#nefo) input.nefo-rating__input:focus-visible + label.nefo-rating__star { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 1px; }

:is(.nefo-container,#nefo#nefo) input.nefo-slider { display: block; width: 100%; height: 28px; margin: 6px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; appearance: auto; -webkit-appearance: auto; accent-color: var(--nefo-accent); cursor: pointer; }
:is(.nefo-container,#nefo#nefo) .nefo-slider__value { display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--nefo-accent) 12%, #ffffff); color: #0f172a; font-weight: 700; font-size: 15px; }

:is(.nefo-container,#nefo#nefo) .nefo-file { display: block; padding: 16px; border: 2px dashed var(--nefo-border); border-radius: var(--nefo-radius); background: var(--nefo-field-bg); }
:is(.nefo-container,#nefo#nefo) input.nefo-file__input { display: block; width: 100%; max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--nefo-field-text); font-size: 15px; opacity: 1; position: static; }
:is(.nefo-container,#nefo#nefo) input.nefo-file__input::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 0; border-radius: var(--nefo-radius); background: var(--nefo-accent); color: var(--nefo-accent-contrast); font: inherit; font-weight: 700; cursor: pointer; }
:is(.nefo-container,#nefo#nefo) .nefo-file__hint { display: block; margin: 8px 0 0; color: #475569; font-size: 13px; }
:is(.nefo-container,#nefo#nefo) .nefo-file__list { margin: 8px 0 0; padding: 0 0 0 18px; color: var(--nefo-field-text); font-size: 14px; }
:is(.nefo-container,#nefo#nefo) .has-error .nefo-file { border-color: var(--nefo-error); }

:is(.nefo-container,#nefo#nefo) .nefo-preview-box { display: block; margin: 10px 0 0; padding: 14px 18px; border: 1px solid var(--nefo-line); border-radius: var(--nefo-radius); background: #ffffff; color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-preview-list { margin: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-preview-list dt { margin: 10px 0 2px; color: #0f172a; font-weight: 700; font-size: 14px; }
:is(.nefo-container,#nefo#nefo) .nefo-preview-list dt:first-child { margin-top: 0; }
:is(.nefo-container,#nefo#nefo) .nefo-preview-list dd { margin: 0; color: #1e293b; font-size: 15px; white-space: pre-line; }

/* 0.4.3: Gestaltung je Formular, Zugang */
:is(.nefo-container,#nefo#nefo) .nefo-message--info { border-color: var(--nefo-accent); background: color-mix(in srgb, var(--nefo-accent) 7%, #ffffff); }
:is(.nefo-container,#nefo#nefo).nefo-space-compact .nefo-field { margin-bottom: 12px; }
:is(.nefo-container,#nefo#nefo).nefo-space-airy .nefo-field { margin-bottom: 36px; }
:is(.nefo-container,#nefo#nefo).nefo-size-small :is(input.nefo-input, select.nefo-input, textarea.nefo-input) { min-height: 38px; padding: 7px 10px; font-size: 15px; }
:is(.nefo-container,#nefo#nefo).nefo-size-large :is(input.nefo-input, select.nefo-input, textarea.nefo-input) { min-height: 56px; padding: 14px 16px; font-size: 18px; }
:is(.nefo-container,#nefo#nefo).nefo-btn-center .nefo-submit { text-align: center; }
:is(.nefo-container,#nefo#nefo).nefo-btn-right .nefo-submit { text-align: right; }
:is(.nefo-container,#nefo#nefo).nefo-btn-full .nefo-submit button.nefo-button { display: block; width: 100%; }
:is(.nefo-container,#nefo#nefo) .nefo-password { display: block; max-width: 420px; }

/* 1.7.0: Standort */
:is(.nefo-container,#nefo#nefo) .nefo-geo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; grid-column: 1 / -1; }
:is(.nefo-container,#nefo#nefo) .nefo-geo-status { color: var(--nefo-muted); font-size: 14px; }
:is(.nefo-container,#nefo#nefo) ul.nefo-geo-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--nefo-border); border-radius: var(--nefo-radius); box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .35); }
:is(.nefo-container,#nefo#nefo) ul.nefo-geo-list li { margin: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: #0f172a; font-size: 15px; }
:is(.nefo-container,#nefo#nefo) ul.nefo-geo-list li:hover, :is(.nefo-container,#nefo#nefo) ul.nefo-geo-list li[aria-selected="true"] { background: #eff6ff; }

/* 1.5.0: Lead-Formulare */
:is(.nefo-container,#nefo#nefo).nefo-lead { --nefo-lead-w: 640px; max-width: var(--nefo-lead-w); margin-left: auto; margin-right: auto; padding: clamp(20px, 4vw, 40px); background: var(--nefo-lead-bg, #ffffff); border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .07); }
:is(.nefo-container,#nefo#nefo).nefo-lead--narrow { --nefo-lead-w: 520px; }
:is(.nefo-container,#nefo#nefo).nefo-lead--wide { --nefo-lead-w: 780px; }
:is(.nefo-container,#nefo#nefo) .nefo-lead__head { margin: 0 0 20px; }
:is(.nefo-container,#nefo#nefo) .nefo-lead__title { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; line-height: 1.2; color: var(--nefo-text); }
:is(.nefo-container,#nefo#nefo) .nefo-lead__sub { margin: 0; color: var(--nefo-muted); font-size: 16px; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-fields > .nefo-field { grid-column: 1 / -1; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-progress { margin: 0 0 24px; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-progress__text { font-weight: 700; color: var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-progress__bar { height: 10px; border-radius: 999px; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-progress__bar > span { border-radius: 999px; transition: width .35s ease; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-page.is-current { animation: nefo-lead-in .3s ease both; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-page-nav { flex-direction: row-reverse; }
:is(.nefo-container,#nefo#nefo).nefo-lead .nefo-page-nav > .nefo-button:not(.nefo-button--secondary), :is(.nefo-container,#nefo#nefo).nefo-lead .nefo-submit .nefo-button { flex: 1 1 auto; min-height: 52px; font-size: 17px; }
@keyframes nefo-lead-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :is(.nefo-container,#nefo#nefo).nefo-lead .nefo-page.is-current { animation: none; } }

/* 1.1.0: Berechnungen */
:is(.nefo-container,#nefo#nefo) .nefo-calc { display: flex; align-items: baseline; gap: 6px; padding: 10px 14px; border: 1.5px solid var(--nefo-border); border-radius: var(--nefo-radius); background: #f8fafc; color: #0f172a; }
:is(.nefo-container,#nefo#nefo) output.nefo-calc__value { font-size: 20px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
:is(.nefo-container,#nefo#nefo) .nefo-calc__affix { color: #334155; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-field:has(.nefo-calc--hidden) { display: none; }

/* 0.10.0: Zahlung */
:is(.nefo-container,#nefo#nefo) p.nefo-price { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-amount { display: flex; align-items: center; gap: 8px; }
:is(.nefo-container,#nefo#nefo) .nefo-amount__cur { color: #334155; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) strong.nefo-choice__price { margin-left: 6px; color: #0f172a; font-weight: 700; white-space: nowrap; }
:is(.nefo-container,#nefo#nefo) .nefo-total { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border: 1.5px solid var(--nefo-border); border-radius: var(--nefo-radius); background: #f8fafc; }
:is(.nefo-container,#nefo#nefo) strong.nefo-total__sum { font-size: 22px; font-weight: 800; color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-total__discount { color: #15803d; font-size: 14px; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
:is(.nefo-container,#nefo#nefo) .nefo-coupon input.nefo-input { flex: 1 1 180px; max-width: 260px; text-transform: uppercase; }
:is(.nefo-container,#nefo#nefo) button.nefo-button--secondary { background: #ffffff; color: var(--nefo-accent); border: 2px solid var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo) button.nefo-button--secondary:hover { background: color-mix(in srgb, var(--nefo-accent) 8%, #ffffff); color: var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo) .nefo-coupon__status { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-coupon__status.is-ok { color: #15803d; }
:is(.nefo-container,#nefo#nefo) .nefo-coupon__status.is-error { color: var(--nefo-error); }

/* 0.9.0: Umfragen */
:is(.nefo-container,#nefo#nefo) .nefo-likert { display: block; overflow-x: auto; }
:is(.nefo-container,#nefo#nefo) table.nefo-likert__table { width: 100%; border-collapse: collapse; margin: 0; border: 0; background: transparent; font-size: 14px; }
:is(.nefo-container,#nefo#nefo) table.nefo-likert__table :is(th, td) { padding: 10px 6px; border: 0; border-bottom: 1px solid var(--nefo-line); background: transparent; color: var(--nefo-text); text-align: center; vertical-align: middle; font-weight: 400; }
:is(.nefo-container,#nefo#nefo) table.nefo-likert__table thead th { color: #334155; font-size: 12px; font-weight: 600; line-height: 1.3; }
:is(.nefo-container,#nefo#nefo) table.nefo-likert__table tbody th { text-align: left; font-weight: 600; min-width: 180px; }
:is(.nefo-container,#nefo#nefo) label.nefo-likert__cell { display: inline-flex; align-items: center; justify-content: center; padding: 6px; cursor: pointer; }
:is(.nefo-container,#nefo#nefo) label.nefo-likert__cell > input { display: inline-block; position: static; flex: none; width: 20px; height: 20px; min-width: 20px; margin: 0; padding: 0; opacity: 1; visibility: visible; clip: auto; appearance: auto; -webkit-appearance: auto; accent-color: var(--nefo-accent); box-shadow: none; border: 0; background: none; cursor: pointer; }
:is(.nefo-container,#nefo#nefo) label.nefo-likert__cell > input:focus-visible { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 2px; }
:is(.nefo-container,#nefo#nefo) .nefo-likert__mobile { display: none; }
:is(.nefo-container,#nefo#nefo) .nefo-nps { display: block; }
:is(.nefo-container,#nefo#nefo) .nefo-nps__scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
:is(.nefo-container,#nefo#nefo) input.nefo-nps__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; appearance: none; }
:is(.nefo-container,#nefo#nefo) label.nefo-nps__btn { display: grid; place-items: center; min-height: 44px; border: 1.5px solid var(--nefo-border); border-radius: var(--nefo-radius); background: #ffffff; color: #0f172a; font-weight: 700; font-size: 15px; cursor: pointer; }
:is(.nefo-container,#nefo#nefo) label.nefo-nps__btn:hover { border-color: var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo) input.nefo-nps__input:checked + label.nefo-nps__btn { background: var(--nefo-accent); border-color: var(--nefo-accent); color: var(--nefo-accent-contrast); }
:is(.nefo-container,#nefo#nefo) input.nefo-nps__input:focus-visible + label.nefo-nps__btn { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 2px; }
:is(.nefo-container,#nefo#nefo) .nefo-nps__ends { display: flex; justify-content: space-between; margin: 6px 0 0; color: #475569; font-size: 13px; }
:is(.nefo-container,#nefo#nefo) .nefo-results { display: block; margin: 16px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-results__q { display: block; margin: 14px 0 6px; font-weight: 700; color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-results__row { display: grid; grid-template-columns: minmax(0, 1fr) 3fr auto; gap: 10px; align-items: center; margin: 4px 0; font-size: 14px; color: #1e293b; }
:is(.nefo-container,#nefo#nefo) .nefo-results__bar { display: block; height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
:is(.nefo-container,#nefo#nefo) .nefo-results__bar > span { display: block; height: 100%; background: var(--nefo-accent); border-radius: 999px; }
:is(.nefo-container,#nefo#nefo) .nefo-results__num { font-variant-numeric: tabular-nums; color: #334155; font-size: 13px; }

/* 0.7.0: Unterschrift */
:is(.nefo-container,#nefo#nefo) .nefo-signature { display: block; position: relative; }
:is(.nefo-container,#nefo#nefo) canvas.nefo-signature__pad { display: block; width: 100%; max-width: 100%; border: 2px dashed var(--nefo-border); border-radius: var(--nefo-radius); background: #ffffff; touch-action: none; cursor: crosshair; }
:is(.nefo-container,#nefo#nefo) canvas.nefo-signature__pad:focus-visible { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 2px; }
:is(.nefo-container,#nefo#nefo) .has-error canvas.nefo-signature__pad { border-color: var(--nefo-error); }
:is(.nefo-container,#nefo#nefo) .nefo-signature__bar { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-signature__line { color: #94a3b8; font-size: 14px; }
:is(.nefo-container,#nefo#nefo) .nefo-signature button.nefo-link-button { margin: 0; }

/* 0.6.0: Speichern & Fortsetzen, Abbrüche, Offline */
:is(.nefo-container,#nefo#nefo) button.nefo-link-button { display: inline-block; margin: 0 0 0 16px; padding: 4px 2px; border: 0; background: transparent; box-shadow: none; color: var(--nefo-accent); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
:is(.nefo-container,#nefo#nefo) button.nefo-link-button:hover { color: var(--nefo-accent); background: transparent; filter: brightness(0.85); }
:is(.nefo-container,#nefo#nefo) button.nefo-link-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--nefo-accent) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
:is(.nefo-container,#nefo#nefo) .nefo-form-notice { display: block; margin: 4px 0 14px; padding: 10px 12px; border-left: 3px solid #94a3b8; border-radius: 4px; background: #f8fafc; color: #334155; font-size: 13px; line-height: 1.5; }
:is(.nefo-container,#nefo#nefo) .nefo-resume { display: block; margin: 0 0 16px; padding: 20px; border: 2px solid var(--nefo-accent); border-radius: var(--nefo-radius); background: color-mix(in srgb, var(--nefo-accent) 5%, #ffffff); color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-resume h3:focus { outline: none; }
:is(.nefo-container,#nefo#nefo) .nefo-resume__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 10px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-resume__row input.nefo-input { flex: 1 1 260px; width: auto; font-size: 14px; }
:is(.nefo-container,#nefo#nefo) .nefo-resume__mail { display: block; margin: 16px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-resume__feedback { display: block; margin: 8px 0; color: #0f172a; font-size: 14px; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-resume button.nefo-link-button { margin: 8px 0 0; }

/* 0.5.0: Formularseite und Dialog – die Seite liefert Karte und Rahmen */
:is(.nefo-container,#nefo#nefo).nefo-in-page.nefo-has-card, :is(.nefo-container,#nefo#nefo).nefo-in-chat.nefo-has-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(.nefo-container,#nefo#nefo).nefo-in-chat { background: transparent; }

/* 0.4.0: mehrseitige Formulare */
:is(.nefo-container,#nefo#nefo) .nefo-multipage-js .nefo-page { display: none; }
:is(.nefo-container,#nefo#nefo) .nefo-multipage-js .nefo-page.is-current { display: block; }
:is(.nefo-container,#nefo#nefo) .nefo-form:not(.nefo-multipage-js) .nefo-page { margin: 0 0 24px; padding: 0 0 8px; border-bottom: 1px dashed var(--nefo-line); }
:is(.nefo-container,#nefo#nefo) .nefo-form:not(.nefo-multipage-js) [data-nefo-next], :is(.nefo-container,#nefo#nefo) .nefo-form:not(.nefo-multipage-js) [data-nefo-prev] { display: none; }
:is(.nefo-container,#nefo#nefo) .nefo-page-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 8px 0 0; }
:is(.nefo-container,#nefo#nefo) .nefo-page-nav > button:only-child { margin-left: auto; }
:is(.nefo-container,#nefo#nefo) button.nefo-button.nefo-button--secondary { color: var(--nefo-accent); background: #ffffff; border: 2px solid var(--nefo-accent); }
:is(.nefo-container,#nefo#nefo) button.nefo-button.nefo-button--secondary:hover { color: var(--nefo-accent); background: color-mix(in srgb, var(--nefo-accent) 8%, #ffffff); filter: none; }
:is(.nefo-container,#nefo#nefo) .nefo-progress { display: block; margin: 0 0 24px; }
:is(.nefo-container,#nefo#nefo) .nefo-progress__text { display: block; margin: 0 0 8px; color: var(--nefo-heading); font-weight: 700; font-size: 15px; }
:is(.nefo-container,#nefo#nefo) .nefo-progress__bar { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--nefo-accent) 15%, #e2e8f0); overflow: hidden; }
:is(.nefo-container,#nefo#nefo) .nefo-progress__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--nefo-accent); transition: width 0.25s; }
:is(.nefo-container,#nefo#nefo) .nefo-steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
:is(.nefo-container,#nefo#nefo) .nefo-step { display: flex; flex: 1 1 0; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: 14px; font-weight: 600; }
:is(.nefo-container,#nefo#nefo) .nefo-step__num { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; border: 2px solid #8592a6; color: #0f172a; font-size: 13px; font-weight: 700; }
:is(.nefo-container,#nefo#nefo) .nefo-step__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.nefo-container,#nefo#nefo) .nefo-step.is-current { background: color-mix(in srgb, var(--nefo-accent) 12%, #ffffff); color: #0f172a; }
:is(.nefo-container,#nefo#nefo) .nefo-step.is-current .nefo-step__num, :is(.nefo-container,#nefo#nefo) .nefo-step.is-done .nefo-step__num { background: var(--nefo-accent); border-color: var(--nefo-accent); color: var(--nefo-accent-contrast); }

@media (max-width: 640px) {
	:is(.nefo-container,#nefo#nefo) .nefo-fields > .nefo-field { grid-column: span 12; }
	:is(.nefo-container,#nefo#nefo) .nefo-address { grid-template-columns: minmax(0, 1fr); }
	:is(.nefo-container,#nefo#nefo) .nefo-steps { flex-direction: column; }
	:is(.nefo-container,#nefo#nefo) table.nefo-likert__table thead { display: none; }
	:is(.nefo-container,#nefo#nefo) table.nefo-likert__table, :is(.nefo-container,#nefo#nefo) table.nefo-likert__table tbody, :is(.nefo-container,#nefo#nefo) table.nefo-likert__table tr, :is(.nefo-container,#nefo#nefo) table.nefo-likert__table :is(th, td) { display: block; width: 100%; }
	:is(.nefo-container,#nefo#nefo) table.nefo-likert__table tr { padding: 8px 0; border-bottom: 1px solid var(--nefo-line); }
	:is(.nefo-container,#nefo#nefo) table.nefo-likert__table :is(th, td) { border: 0; padding: 2px 0; text-align: left; }
	:is(.nefo-container,#nefo#nefo) label.nefo-likert__cell { justify-content: flex-start; gap: 10px; }
	:is(.nefo-container,#nefo#nefo) .nefo-likert__mobile { display: inline; }
	:is(.nefo-container,#nefo#nefo) .nefo-nps__scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	:is(.nefo-container,#nefo#nefo) .nefo-step { flex: none; }
	:is(.nefo-container,#nefo#nefo) :is(.nefo-subfields--2, .nefo-subfields--3, .nefo-choices--cols-2, .nefo-choices--cols-3) { grid-template-columns: minmax(0, 1fr); }
	:is(.nefo-container,#nefo#nefo).nefo-has-card { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	:is(.nefo-container,#nefo#nefo) button.nefo-button.is-busy::before { animation: none; }
}

/* Verborgene Elemente bleiben verborgen, auch gegen eigene display-Regeln */
:is(.nefo-container,#nefo#nefo) [hidden][hidden] { display: none; }

/* Vorschauseite (eigene Seite, kein Theme-Inhalt) */
.nefo-preview-page { margin: 0; background: #e2e8f0; }
.nefo-preview-bar { padding: 10px 20px; background: #0f172a; color: #ffffff; font: 600 14px/1.4 system-ui, sans-serif; }
.nefo-preview-main { max-width: 820px; margin: 32px auto; padding: 0 16px; }
