/*
 * Fischer Sparpotenzial-Rechner — frontend styles.
 *
 * Everything is scoped under .fsr-page (and every class is fsr-
 * prefixed) so this never leaks into — or gets clobbered by — the host
 * theme. Colors/spacing/motion are carried over unchanged from the
 * original HTML dummy; the only structural change here is the scoping
 * itself and renaming --ffh-* tokens to --fsr-* to avoid any chance of
 * colliding with theme custom properties of the same short name.
 *
 * COMPATIBILITY NOTE — read before editing this file:
 * Page builders (Elementor in particular) and many themes apply global
 * "Kit"/typography/button/form styling directly to plain tags —
 * `button`, `input`, `label`, `h1`-`h3`, `p`, `ul`/`li`, `a` — using
 * selectors like `.elementor-kit-12 button` that carry real specificity
 * (and sometimes `accent-color`, which can beat even background/border
 * !important on checkboxes — see the accent-color note further down).
 * Every rule in this file whose selector resolves to one of those tags
 * (directly, or via a class applied to that tag) marks EVERY declared
 * property !important, so our design always wins regardless of what a
 * given install's theme/kit does. If you add a new rule targeting a
 * native element, follow the same pattern — and if you override a
 * property that's already !important in a base rule (a :hover state,
 * a modifier class, a @media block), the override must ALSO be
 * !important, or it silently loses to the base rule and never applies
 * (same specificity/importance ties resolve by source order, but an
 * !important declaration always beats a non-important one regardless
 * of order or specificity).
 */

.fsr-page {
	--fsr-orange: #ff6b00;
	--fsr-orange-dark: #e85f00;
	--fsr-orange-a11y: #a84300;
	--fsr-orange-soft: #fff1e5;
	--fsr-cream: #fff8f1;
	--fsr-cream-2: #ffe9d1;
	--fsr-text: #1f252b;
	--fsr-muted: #66717c;
	--fsr-body: #333c44;
	--fsr-line: rgba(31, 37, 43, 0.10);
	--fsr-card: #FAF7F2;
	--fsr-card-line: #F1EAE0;
	--fsr-card-hover: #FFF3EA;
	--fsr-shadow: 0 18px 40px rgba(140, 72, 14, 0.12);
	--fsr-card-shadow: 0 14px 32px rgba(90, 52, 16, 0.08);
	--fsr-radius-lg: 24px;
	--fsr-radius-md: 16px;
	--fsr-radius-sm: 12px;
	--fsr-radius-control: 10px;
	--fsr-radius-icon: 14px;
	--fsr-container: 1440px;
	--fsr-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--fsr-ease: cubic-bezier(.22, 1, .36, 1);

	font-family: var(--fsr-font);
	color: var(--fsr-text);
}

.fsr-page,
.fsr-page *,
.fsr-page *::before,
.fsr-page *::after {
	box-sizing: border-box;
}

/* `revert` (not a reset to nothing) restores each native element's
   normal BROWSER default first, ignoring the theme's own styling for
   that tag entirely; every specific .fsr-* rule further down this file
   then re-applies our actual design on top of that clean baseline.

   Wrapped in :where() so this reset itself contributes ZERO
   specificity — a plain `.fsr-page button { all: revert; }` would have
   specificity (0,1,1), which is HIGHER than a lot of our own single-
   class component rules like `.fsr-eyebrow` (0,1,0), so for any
   property not explicitly marked !important in those rules, this
   reset would win over our OWN design instead of just the theme's.
   :where() guarantees this reset only ever wins against the theme,
   never against our own more specific rules further down. */
:where(
	.fsr-page h1,
	.fsr-page h2,
	.fsr-page h3,
	.fsr-page p,
	.fsr-page ul,
	.fsr-page li,
	.fsr-page button,
	.fsr-page a,
	.fsr-page label,
	.fsr-page input,
	.fsr-page select,
	.fsr-page textarea
) {
	all: revert;
	box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
	.fsr-page,
	.fsr-page *,
	.fsr-page *::before,
	.fsr-page *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

.fsr-page {
	width: min(var(--fsr-container), calc(100% - 40px));
	margin: 48px auto;
}

/* Desktop: no outer side inset — .fsr-saving-section's own
   max-width:1200px should be the only thing capping the card's width,
   not this wrapper shrinking 20px per side before it even gets there. */
@media (min-width: 1121px) {
	.fsr-page {
		width: min(var(--fsr-container), 100%);
	}
}

/* ---------------------------------------------------------------
   Hero / calculator section
   --------------------------------------------------------------- */
.fsr-saving-section {
	position: relative;
	overflow: hidden;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(20px, 2.6vw, 36px);
	border: 1px solid rgba(228, 159, 93, 0.28);
	border-radius: var(--fsr-radius-lg);
	background: #fff;
	box-shadow: var(--fsr-shadow);
	isolation: isolate;
}

.fsr-calc-view {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 392px;
	gap: 32px;
}

.fsr-form-slot {
	display: flex;
	flex-direction: column;
}

.fsr-grid-slot {
	display: grid;
	margin-top: 28px;
}

.fsr-copy-header {
	transition: opacity .16s linear;
}

.fsr-copy-header.fsr-is-swapping {
	opacity: 0;
}

.fsr-calculator-grid,
.fsr-lead-panel {
	grid-area: 1 / 1;
	min-width: 0;
	transition: opacity .32s var(--fsr-ease), transform .32s var(--fsr-ease);
}

.fsr-calculator-grid.fsr-is-away,
.fsr-lead-panel.fsr-is-away {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.fsr-lead-panel {
	display: grid;
	align-self: stretch;
	align-content: stretch;
	text-align: left;
}

[data-fsr="lead-form-wrap"] {
	display: flex;
	flex-direction: column;
}

.fsr-lead-panel h2 {
	margin: 6px 0 4px !important;
	font-size: clamp(24px, 3vw, 30px) !important;
	line-height: 1.14 !important;
	letter-spacing: -0.03em !important;
	color: var(--fsr-text) !important;
	font-family: var(--fsr-font) !important;
}

.fsr-result-cta-group {
	transition: opacity .25s var(--fsr-ease);
}

.fsr-calc-view.fsr-is-lead-open .fsr-result-cta-group {
	opacity: 0;
	pointer-events: none;
}

/* After a successful submit: drop the result card entirely (not just its
   CTA group) and collapse back to a single column so the "Danke, {Name}!"
   message centers across the full width instead of staying pinned to the
   left half of a now-empty two-column row. */
.fsr-calc-view.fsr-is-success {
	grid-template-columns: 1fr;
}

.fsr-calc-view.fsr-is-success .fsr-result-rail {
	display: none;
}

.fsr-calc-view.fsr-is-success .fsr-copy-header {
	display: none;
}

.fsr-copy-header {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	padding-top: 4px;
}

.fsr-eyebrow {
	/* align-self:flex-start alone isn't enough — a stretch-causing
	   align-self also needs width to NOT be "auto" (auto is exactly
	   what stretch acts on), so width:fit-content backs it up: even if
	   something forces align-self back to stretch, fit-content still
	   keeps the pill hugging its own content instead of filling the row. */
	align-self: flex-start !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 0 8px !important;
	padding: 8px 12px !important;
	border: 1px solid rgba(255, 107, 0, 0.18) !important;
	border-radius: 999px !important;
	color: var(--fsr-orange-a11y) !important;
	background: rgba(255, 255, 255, 0.72) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	cursor: pointer !important;
	box-shadow: 0 10px 25px rgba(255, 107, 0, 0.08) !important;
	width: fit-content !important;
	min-height: 0 !important;
}

.fsr-eyebrow-icon {
	display: inline-flex;
	color: inherit;
}

.fsr-page h1 {
	margin: 0 !important;
	max-width: 40ch !important;
	font-size: clamp(22px, 2.2vw, 28px) !important;
	line-height: 1.06 !important;
	letter-spacing: -0.045em !important;
	/* Explicit + !important: this relies on inherited color everywhere
	   else on the page, but a host theme/page-builder global heading
	   color (often itself !important) otherwise wins over inheritance. */
	color: var(--fsr-text) !important;
	font-family: var(--fsr-font) !important;
}

.fsr-lead {
	margin: 6px 0 21px !important;
	max-width: 660px !important;
	font-size: 14.5px !important;
	line-height: 1.45 !important;
	color: var(--fsr-body) !important;
	font-family: var(--fsr-font) !important;
}

/* ---------------------------------------------------------------
   Form
   --------------------------------------------------------------- */
.fsr-calculator-grid {
	display: grid;
	gap: 9px;
}

.fsr-field-card,
.fsr-trust-note {
	border: 1px solid var(--fsr-line) !important;
	border-radius: var(--fsr-radius-md) !important;
	background: var(--fsr-card) !important;
	box-shadow: var(--fsr-card-shadow) !important;
	backdrop-filter: blur(18px);
}

/* .fsr-field-card wraps each dropdown as a <label> — a native element a
   theme's global "form label" styling can target directly, potentially
   resetting this grid layout entirely (icon column collapsing, padding
   disappearing). !important throughout, same reasoning as every other
   native-tag rule in this file. */
.fsr-field-card {
	display: grid !important;
	grid-template-columns: 44px minmax(0, 1fr) !important;
	gap: 14px !important;
	align-items: center !important;
	padding: 13px 16px !important;
}

.fsr-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fsr-icon-box {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--fsr-radius-icon);
	color: white;
	background: linear-gradient(135deg, var(--fsr-orange), #ff8b1a);
	box-shadow: 0 12px 22px rgba(255, 107, 0, 0.23);
	font-size: 20px;
}

.fsr-field-label {
	display: block !important;
	margin: 0 0 7px !important;
	font-size: 13px !important;
	font-weight: 850 !important;
	letter-spacing: -0.01em !important;
	color: var(--fsr-text) !important;
}

.fsr-field-label-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 7px;
}

.fsr-field-label-row .fsr-field-label {
	margin: 0 !important;
}

.fsr-select-wrap,
.fsr-input-wrap {
	position: relative;
}

/* !important throughout: Elementor Global Kit styling (and many themes)
   targets plain `input`/`select` broadly for its own form-field look —
   confirmed in production as `.elementor-kit-N input:not([type="button"])
   ..., .elementor-kit-N textarea { background: ...; font-family: ...; }`,
   which otherwise silently overrides every property below. */
.fsr-page select,
.fsr-page input[type="number"] {
	width: 100% !important;
	height: 40px !important;
	padding: 0 40px 0 13px !important;
	border: 1px solid var(--fsr-card-line) !important;
	border-radius: var(--fsr-radius-control) !important;
	outline: none !important;
	background: #fff !important;
	color: var(--fsr-text) !important;
	font: 700 14px/1 var(--fsr-font) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.fsr-page select:focus-visible,
.fsr-page input[type="number"]:focus-visible {
	border-color: rgba(255, 107, 0, 0.58) !important;
	box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12) !important;
}

.fsr-select-wrap::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--fsr-text);
	border-bottom: 2px solid var(--fsr-text);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

/* !important throughout: a page-builder's global "button" styling
   (full width, background fill, generous padding) otherwise wins over
   this small round info-trigger — turning it into a giant orange
   block instead of the 22px circle it's meant to be. */
.fsr-small-info {
	position: relative !important;
	display: grid !important;
	place-items: center !important;
	flex: 0 0 auto !important;
	width: 22px !important;
	height: 22px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	border: 1px solid rgba(31, 37, 43, 0.22) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--fsr-muted) !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	font-family: var(--fsr-font) !important;
	cursor: help !important;
	padding: 0 !important;
	margin: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.fsr-small-info:focus-visible {
	outline: 2px solid var(--fsr-orange) !important;
	outline-offset: 2px !important;
}

.fsr-small-info:hover .fsr-small-info-tip,
.fsr-small-info:focus-visible .fsr-small-info-tip {
	opacity: 1;
	transform: translate(-50%, -4px);
	pointer-events: auto;
}

.fsr-small-info-tip strong {
	display: block !important;
	margin-bottom: 6px !important;
	font-size: 12.5px !important;
	letter-spacing: -0.01em !important;
	color: inherit !important;
}

/* ul/li: reset-listed native tags again — a theme's global content
   list-style/margin (e.g. bullet points, indent) otherwise bleeds into
   this tooltip's feature list. */
.fsr-small-info-tip ul {
	display: grid !important;
	gap: 5px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-weight: 500 !important;
}

.fsr-small-info-tip li {
	padding-left: 12px !important;
	position: relative !important;
	margin: 0 !important;
	list-style: none !important;
}

.fsr-small-info-tip li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--fsr-orange);
}

.fsr-small-info-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translate(-50%, 0);
	width: 220px;
	padding: 10px 12px;
	border-radius: var(--fsr-radius-sm);
	background: var(--fsr-text);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s var(--fsr-ease), transform .18s var(--fsr-ease);
	z-index: 3;
}

.fsr-toggle-row-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* .fsr-toggle-row is itself a <label> wrapping the checkbox + its
   text — same native-tag risk as .fsr-field-card above. */
.fsr-toggle-row {
	display: flex !important;
	align-items: center !important;
	gap: 9px !important;
	min-width: 0;
	/* A host theme's global "form label" color (often the same accent
	   used for links/buttons) otherwise wins over this — same class of
	   bug as the eyebrow pill/heading colors, just on <label>. */
	color: var(--fsr-body) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	font-family: var(--fsr-font) !important;
	white-space: nowrap;
}

.fsr-toggle-row .fsr-toggle-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.fsr-toggle-row.fsr-is-sub {
	transition: opacity .2s var(--fsr-ease);
}

.fsr-toggle-row.fsr-is-sub[data-fsr-disabled="true"] {
	opacity: .45;
}

/* !important throughout: a theme's global checkbox/input reset
   (forcing back the native tick, or a different size/border/radius)
   otherwise wins over appearance:none — the custom box renders, but
   either the native checkmark paints somewhere unexpected inside it
   or the box itself reverts to native styling, so a "checked" state
   visually shows nothing recognizable. */
.fsr-toggle-row input {
	appearance: none !important;
	-webkit-appearance: none !important;
	/* A theme-wide accent-color (used for the browser's native
	   checkbox/radio tint) can take priority over this custom box's own
	   background-color/border-color even with appearance:none and
	   !important — matching our own orange here means that, even where
	   accent-color wins, it still lands on the same color. */
	accent-color: var(--fsr-orange) !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	border: 1.5px solid var(--fsr-line) !important;
	border-radius: 5px !important;
	background: #fff !important;
	flex: 0 0 auto !important;
	position: relative !important;
	cursor: pointer !important;
	box-shadow: none !important;
	outline: none;
	transition: background .15s var(--fsr-ease), border-color .15s var(--fsr-ease);
}

.fsr-toggle-row input:checked {
	background: var(--fsr-orange) !important;
	border-color: var(--fsr-orange) !important;
}

.fsr-toggle-row input:checked::after {
	content: "" !important;
	position: absolute !important;
	left: 5px !important;
	top: 1px !important;
	width: 5px !important;
	height: 9px !important;
	border: solid #fff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) !important;
}

.fsr-toggle-row input:focus-visible,
.fsr-consent-row input:focus-visible {
	outline: 2px solid var(--fsr-orange) !important;
	outline-offset: 2px !important;
}

.fsr-back-link:focus-visible {
	outline: 2px solid var(--fsr-orange) !important;
	outline-offset: 2px !important;
	border-radius: 4px !important;
}

.fsr-trust-note {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 13px 16px;
}

.fsr-trust-note-body {
	display: grid;
	gap: 10px;
	min-width: 0;
}

/* ---------------------------------------------------------------
   Result card (two states: calculator result / lead form)
   --------------------------------------------------------------- */
.fsr-result-rail {
	display: grid;
	align-self: center;
	gap: 20px;
}

.fsr-result-card {
	position: relative;
	display: grid;
	gap: 18px;
	padding: 28px 28px 24px;
	border: 1px solid rgba(31, 37, 43, 0.09);
	border-radius: var(--fsr-radius-lg);
	background: var(--fsr-card);
	box-shadow: 0 24px 55px rgba(84, 48, 18, 0.14);
	backdrop-filter: blur(18px);
	overflow: hidden;
}

.fsr-result-card.fsr-is-pinned {
	position: absolute;
	margin: 0;
}

.fsr-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--fsr-body);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.fsr-trust-item svg {
	flex: 0 0 auto;
	color: var(--fsr-orange);
}

.fsr-trust-item + .fsr-trust-item {
	padding-top: 14px;
	border-top: 1px dashed var(--fsr-line);
}

.fsr-mobile-summary-bar {
	display: none;
}

@media (max-width: 1120px) {
	.fsr-mobile-summary-bar {
		display: flex;
		flex-direction: column;
		gap: 12px;
		position: relative;
		margin-top: 24px;
		padding: 13px 16px;
		padding-bottom: max(13px, env(safe-area-inset-bottom));
		border: 1px solid rgba(228, 159, 93, 0.28);
		border-radius: var(--fsr-radius-lg);
		background:
			radial-gradient(circle at 15% 0%, rgba(255, 107, 0, 0.14), transparent 60%),
			linear-gradient(135deg, #fff6ec 0%, #fffdf9 58%, #fff2e3 100%);
		box-shadow: 0 18px 40px rgba(84, 48, 18, 0.22);
		backdrop-filter: blur(14px);
	}

	.fsr-pv-note .fsr-small-info {
		position: static !important;
	}

	.fsr-pv-note .fsr-small-info-tip {
		left: 16px;
		right: 16px;
		transform: none;
		width: auto;
	}

	.fsr-pv-note .fsr-small-info:hover .fsr-small-info-tip,
	.fsr-pv-note .fsr-small-info:focus-visible .fsr-small-info-tip {
		transform: translateY(-4px);
	}

	.fsr-mobile-summary-trust {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 10px;
	}

	.fsr-mobile-summary-trust .fsr-trust-item {
		font-size: 12px;
		font-weight: 800;
		gap: 8px;
	}

	.fsr-mobile-summary-trust .fsr-trust-item:first-child {
		padding-right: 10px;
		border-right: 1px solid var(--fsr-line);
	}

	.fsr-mobile-summary-trust .fsr-trust-item + .fsr-trust-item {
		padding-top: 0;
		border-top: 0;
	}
}

.fsr-result-copy {
	text-align: center;
}

.fsr-result-copy h2 {
	margin: 0 0 12px !important;
	font-size: clamp(19px, 2vw, 23px) !important;
	line-height: 1.14 !important;
	letter-spacing: -0.03em !important;
	color: var(--fsr-text) !important;
	font-family: var(--fsr-font) !important;
}

.fsr-prefix {
	display: block;
	margin-bottom: 2px;
	font-weight: 800;
	color: var(--fsr-body);
}

.fsr-amount {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 7px;
	color: var(--fsr-orange);
	font-size: clamp(38px, 4.2vw, 52px);
	line-height: 0.9;
	font-weight: 950;
	letter-spacing: -0.06em;
	text-shadow: 0 12px 30px rgba(255, 107, 0, 0.16);
	font-variant-numeric: tabular-nums;
}

.fsr-amount small {
	font-size: .72em !important;
	letter-spacing: -0.08em !important;
	color: inherit !important;
	font-weight: inherit !important;
}

.fsr-pv-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 7px;
	font-size: 16px;
	font-weight: 800;
	min-height: 20px;
}

.fsr-pv-note .fsr-small-info {
	color: var(--fsr-orange-dark) !important;
	border-color: rgba(255, 107, 0, 0.3) !important;
}

.fsr-meter {
	position: relative;
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	align-items: end;
	gap: 7px;
	height: 80px;
	padding: 0 4px 4px;
}

.fsr-bar {
	--h: 0.14;
	height: 100%;
	min-height: 14px;
	border-radius: 7px 7px 2px 2px;
	background: linear-gradient(180deg, rgba(255, 107, 0, 0.65), rgba(255, 107, 0, 0.14));
	opacity: 0.5;
	transform-origin: bottom;
	transform: scaleY(var(--h));
	transition: transform .55s var(--fsr-ease), opacity .3s var(--fsr-ease), background .3s var(--fsr-ease), box-shadow .3s var(--fsr-ease);
}

.fsr-bar.fsr-is-active {
	opacity: 1;
	background: linear-gradient(180deg, #ff6b00 0%, #ff7c10 45%, #ffb066 100%);
	box-shadow: 0 8px 18px rgba(255, 107, 0, 0.28);
}

.fsr-result-cta-group {
	display: grid;
	gap: 10px;
}

.fsr-result-hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--fsr-line);
	color: var(--fsr-body);
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
}

.fsr-result-hint svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--fsr-orange);
}

.fsr-result-hint strong {
	display: block !important;
	margin-bottom: 2px !important;
	color: var(--fsr-text) !important;
	font-size: 15px !important;
	font-weight: 900 !important;
}

/* !important throughout: same page-builder global "button" styling as
   .fsr-small-info above — this one is the main CTA, so a hijacked
   padding/border/background here is the single most visible bug this
   file guards against. */
.fsr-cta {
	display: inline-flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 10px !important;
	min-height: 56px !important;
	width: 100% !important;
	border: 0 !important;
	border-radius: var(--fsr-radius-md) !important;
	color: #fff !important;
	background: linear-gradient(135deg, #ff6b00, #ff7f11 55%, #ff5c00) !important;
	box-shadow: 0 16px 26px rgba(255, 107, 0, 0.26) !important;
	font: 900 15.5px/1.2 var(--fsr-font) !important;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	transition: transform .2s var(--fsr-ease), box-shadow .2s var(--fsr-ease);
}

.fsr-cta:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 22px 36px rgba(255, 107, 0, 0.34) !important;
}

.fsr-cta:focus-visible {
	outline: 3px solid var(--fsr-text) !important;
	outline-offset: 3px !important;
}

.fsr-cta svg {
	flex: 0 0 auto;
}

.fsr-cta:disabled {
	opacity: .6 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.fsr-cta-foot-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 14px;
}

.fsr-cta-foot-row .fsr-trust-item {
	font-size: 12.5px;
	font-weight: 800;
}

.fsr-cta-foot-row .fsr-trust-item:first-child {
	padding-right: 14px;
	border-right: 1px solid var(--fsr-line);
}

.fsr-cta-foot-row .fsr-trust-item + .fsr-trust-item {
	padding-top: 0;
	border-top: 0;
}

/* ---- Lead form state ---- */
.fsr-back-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	justify-self: start;
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
	color: var(--fsr-muted) !important;
	font: 700 13px var(--fsr-font) !important;
	text-transform: none !important;
	width: fit-content !important;
	min-height: 0 !important;
	cursor: pointer !important;
}

.fsr-back-link:hover {
	color: var(--fsr-text) !important;
}

[data-fsr="lead"] strong {
	color: var(--fsr-orange-dark) !important;
	font-variant-numeric: tabular-nums !important;
	font-weight: inherit !important;
}

[data-fsr="lead"] .fsr-small-info {
	display: inline-grid !important;
	width: 15px !important;
	height: 15px !important;
	font-size: 9px !important;
	vertical-align: 1px;
	margin: 0 1px !important;
}

.fsr-lead-form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	gap: 7px;
}

.fsr-lead-field {
	display: grid;
	gap: 4px;
	text-align: left;
}

.fsr-lead-field label {
	font-size: 11.5px !important;
	font-weight: 800 !important;
	color: var(--fsr-text) !important;
	font-family: var(--fsr-font) !important;
}

/* !important throughout: the exact same Elementor Global Kit
   "input:not([type=button]):not([type=submit]), textarea" rule that
   targets the calculator's own select/number field (see .fsr-page
   select above) also matches every text/email/tel field + textarea in
   this contact form. */
.fsr-lead-field input[type="text"],
.fsr-lead-field input[type="email"],
.fsr-lead-field input[type="tel"],
.fsr-lead-field textarea {
	width: 100% !important;
	padding: 7px 10px !important;
	border: 1px solid rgba(31, 37, 43, 0.14) !important;
	border-radius: 10px !important;
	outline: none !important;
	background: rgba(255, 255, 255, 0.9) !important;
	color: var(--fsr-text) !important;
	font: 600 13px/1.3 var(--fsr-font) !important;
	box-shadow: none !important;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.fsr-lead-field textarea {
	resize: vertical !important;
	min-height: 40px !important;
}

.fsr-lead-field input:focus-visible,
.fsr-lead-field textarea:focus-visible {
	border-color: rgba(255, 107, 0, 0.58) !important;
	box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12) !important;
}

.fsr-lead-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

/* A full-width sibling of .fsr-lead-field-row (see the HTML comment
   there for why it isn't nested inside the PLZ column) — display:none
   by default, so it just isn't there at all until the admin-configured
   prefix check has enough digits to judge. <p> is a reset-listed
   native tag (see the file-top note), so both the base state and the
   .fsr-is-visible toggle need !important, or a theme's own paragraph
   display otherwise wins and the indicator either never shows or never
   hides correctly. */
.fsr-plz-match {
	display: none !important;
	align-items: center;
	gap: 6px;
	margin: -2px 0 0 !important;
	font-size: 12.5px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
}

.fsr-plz-match.fsr-is-visible {
	display: flex !important;
}

.fsr-plz-match.fsr-is-match {
	color: #1a7f37 !important;
}

.fsr-plz-match.fsr-is-no-match {
	color: var(--fsr-orange-dark) !important;
}

.fsr-plz-match svg {
	flex: 0 0 auto;
}

.fsr-consent-row {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	margin-top: 1px;
	text-align: left;
	font-size: 11px !important;
	line-height: 1.4;
	color: var(--fsr-muted) !important;
}

.fsr-consent-row input {
	appearance: none !important;
	-webkit-appearance: none !important;
	accent-color: var(--fsr-orange) !important;
	margin: 2px 0 0 !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	border: 1.5px solid var(--fsr-line) !important;
	border-radius: 4px !important;
	background: #fff !important;
	position: relative !important;
	cursor: pointer !important;
	box-shadow: none !important;
	outline: none;
	transition: background .15s var(--fsr-ease), border-color .15s var(--fsr-ease);
}

.fsr-consent-row input:checked {
	background: var(--fsr-orange) !important;
	border-color: var(--fsr-orange) !important;
}

.fsr-consent-row input:checked::after {
	content: "" !important;
	position: absolute !important;
	left: 4px !important;
	top: 0px !important;
	width: 4.5px !important;
	height: 8px !important;
	border: solid #fff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) !important;
}

.fsr-consent-row a {
	color: var(--fsr-text) !important;
	text-decoration: underline !important;
}

.fsr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* <p> is reset-listed — a theme's paragraph margin/color otherwise
   overrides this error banner's own styling entirely. The same
   `all: revert` reset also reverts display back to the plain <p>
   default (block), overriding the native [hidden] behavior the JS
   relies on (leadErrorEl.hidden = true/false) — so it needs its own
   explicit display rule the same way .fsr-plz-match does. */
.fsr-lead-error {
	display: none !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border-radius: var(--fsr-radius-sm) !important;
	background: #fdecea !important;
	color: #922b21 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-align: left !important;
}

.fsr-lead-error:not([hidden]) {
	display: block !important;
}

.fsr-lead-submit {
	margin-top: 1px;
}

[data-fsr="lead-form-wrap"],
.fsr-lead-success {
	grid-area: 1 / 1;
	min-width: 0;
	transition: opacity .28s var(--fsr-ease), transform .28s var(--fsr-ease);
}

[data-fsr="lead-form-wrap"].fsr-is-away,
.fsr-lead-success.fsr-is-away {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.fsr-lead-success {
	display: grid;
	align-content: center;
	gap: 12px;
	justify-items: center;
	text-align: center;
	padding: 20px 6px;
}

.fsr-lead-success .fsr-check {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: rgba(255, 107, 0, 0.12);
	color: var(--fsr-orange-dark);
}

.fsr-lead-success h2 {
	margin: 0 !important;
	font-size: 34px !important;
	line-height: 1.15 !important;
	text-align: center !important;
	color: var(--fsr-text) !important;
	font-family: var(--fsr-font) !important;
}

.fsr-lead-success p {
	margin: 0 !important;
	color: var(--fsr-muted) !important;
	font-size: 15px !important;
	max-width: 40ch !important;
}

/* Only the back link is dropped from this view — success_text (the
   "Wir haben Ihre Anfrage erhalten..." line) stays. Hidden via CSS
   rather than removed from the template: .fsr-back-link still has a
   real click handler bound in JS (fsr-frontend.js), so the element
   needs to keep existing in the DOM even though this view doesn't show
   it — removing it outright would throw on that addEventListener call. */
.fsr-lead-success .fsr-back-link {
	display: none !important;
}

@media (max-width: 1120px) {
	.fsr-calc-view {
		grid-template-columns: 1fr;
	}
	.fsr-result-rail {
		width: min(100%, 620px);
		justify-self: center;
	}
	.fsr-calculator-grid.fsr-is-away,
	.fsr-lead-panel.fsr-is-away {
		display: none;
	}
	.fsr-lead-panel {
		align-content: start;
	}
	.fsr-lead-form {
		flex: initial;
		justify-content: flex-start;
	}
	.fsr-calc-view.fsr-is-lead-open .fsr-result-rail {
		display: none;
	}
}

@media (max-width: 760px) {
	.fsr-page {
		width: min(100% - 24px, var(--fsr-container));
		margin: 18px auto 22px;
	}
	.fsr-saving-section {
		padding: 24px 16px 18px;
		border-radius: var(--fsr-radius-lg);
		gap: 22px;
	}
	.fsr-copy-header {
		padding-top: 0;
	}
	.fsr-page h1 {
		font-size: 31px !important;
	}
	.fsr-lead {
		margin-bottom: 20px !important;
	}
	.fsr-field-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.fsr-field-card {
		grid-template-columns: 42px 1fr !important;
		gap: 12px !important;
		padding: 14px !important;
	}
	.fsr-toggle-row-pair {
		gap: 8px;
	}
	/* Same selector, same property names as the base .fsr-toggle-row
	   rule above (which is !important) — these overrides must match
	   that importance or they're dead code at this breakpoint. */
	.fsr-toggle-row {
		align-items: flex-start !important;
		white-space: normal !important;
		font-size: 12.5px !important;
	}
	.fsr-toggle-row .fsr-toggle-text {
		overflow: visible;
		text-overflow: clip;
	}
	.fsr-toggle-row input {
		margin-top: 1px !important;
	}
	.fsr-icon-box {
		width: 42px;
		height: 42px;
	}
	.fsr-result-card {
		padding: 24px 18px 20px;
		border-radius: var(--fsr-radius-lg);
	}
	.fsr-meter {
		height: 100px;
		gap: 6px;
	}
	.fsr-cta {
		min-height: 56px !important;
		font-size: 15px !important;
	}
	.fsr-lead-field-row {
		grid-template-columns: 1fr;
	}
	.fsr-result-cta-group {
		gap: 18px;
	}
	.fsr-cta-foot-row {
		gap: 8px;
	}
	.fsr-cta-foot-row .fsr-trust-item {
		font-size: 12px;
		gap: 8px;
	}
	.fsr-cta-foot-row .fsr-trust-item:first-child {
		padding-right: 10px;
	}
	.fsr-trust-item svg {
		width: 19px;
		height: 19px;
	}
	.fsr-trust-item + .fsr-trust-item {
		padding-top: 10px;
		border-top: 1px dashed var(--fsr-line);
	}
}
