/* ==================================================================
   Erklärfilm Kostenkalkulator v3 – Theme-Block bookcase
   Entboxt: keine weiße Karte mehr, sitzt direkt auf dem Seitenhintergrund.
   Farben/Fonts kommen aus den Theme-Variablen (style.css :root), dadurch
   funktioniert der Dark/Light-Mode automatisch.
   Akzent: monochrom s/w wie der Rest des Themes (Pill-Buttons invertieren
   bei Hover, vgl. .btn-pill).
   ================================================================== */

.erklarfilm-calculator {
	--efc-radius: 0.6em;
	/* Theme-Border ist fuer die vielen feinen Linien hier zu blass -> lokal etwas kraeftiger */
	--color-border: rgba(17, 24, 39, 0.18);
	/* Invertierte Farben fuer die Summary-Karte (hier abgegriffen, weil ein
	   direkter Tausch auf der Karte selbst zirkulaer waere) */
	--efc-inverse-bg: var(--color-text);
	--efc-inverse-fg: var(--color-bg);

	margin: 0 auto 0;
	font-family: var(--bookcase-font-body);
	color: var(--color-text);
	scroll-margin-top: 2em;
}

html[data-theme="dark"] .erklarfilm-calculator {
	--color-border: rgba(255, 255, 255, 0.28);
}

/* ── Layout: Formular links, sticky Zusammenfassung rechts (ab 1650px) ── */
.calculator-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 1.5em;
	align-items: start;
}

/* Beide Sektionen dezent eingeboxt: runde Ecken, feine Outline, keine Fuellung */
.calculator-main {
	border: 1px solid var(--color-border);
	border-radius: 1em;
	padding: 2em;
}

.calculator-summary {
	display: none;
}

/* Breakpoint bewusst hoch: die Theme-Navigation links nimmt Platz weg,
   darunter wuerde die Hauptspalte zu schmal (Fortschrittsleiste stoesst an). */
@media (min-width: 1650px) {
	.calculator-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
	/* Invertierte Karte: dunkel im Light Mode, hell im Dark Mode */
	.calculator-summary {
		display: block;
		position: sticky;
		top: 2em;
		border: 1px solid var(--color-border);
		border-radius: 1em;
		padding: 1.8em 1.6em;
		background: var(--efc-inverse-bg);
		color: var(--efc-inverse-fg);
		--color-text: var(--efc-inverse-fg);
		--color-text-strong: var(--efc-inverse-fg);
		--color-bg: var(--efc-inverse-bg);
		--color-text-muted: rgba(255, 255, 255, 0.65);
		--color-border: rgba(255, 255, 255, 0.3);
		--color-divider: rgba(255, 255, 255, 0.3);
	}
	html[data-theme="dark"] .calculator-summary {
		--color-text-muted: rgba(17, 24, 39, 0.6);
		--color-border: rgba(17, 24, 39, 0.28);
		--color-divider: rgba(17, 24, 39, 0.28);
	}
	/* Desktop: Preis steht in der Zusammenfassung, Pille entfaellt */
	.erklarfilm-calculator .price-display-sticky {
		display: none;
	}
}

.summary-title {
	font-family: var(--bookcase-font-display);
	font-size: 1em;
	text-align: center;
	margin: 0 0 1em;
}

.summary-style {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	margin-bottom: 1em;
}

.summary-style img {
	width: 120px;
	height: auto;
	object-fit: contain;
	margin-bottom: 4px;
}

.summary-style-name {
	display: block;
	font-family: var(--bookcase-font-display);
	font-size: 0.95em;
	line-height: 1.3em;
	color: var(--color-text-strong);
}

.summary-style-duration {
	display: block;
	font-size: 0.85em;
	color: var(--color-text-muted);
}

/* Gewaehlte Extras als zentrierte Pills statt Liste mit Trennlinien */
.summary-items {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.summary-items li {
	padding: 0.35em 0.9em;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.8em;
	color: var(--color-text);
}

.summary-items li.summary-item-new {
	animation: efcFadeIn 0.3s ease;
}

.summary-empty {
	margin: 0 0 1em;
	font-size: 0.8em;
	color: var(--color-text-muted);
	text-align: center;
}

.summary-price {
	position: relative;
	border-top: 1px solid var(--color-divider);
	padding-top: 1em;
	text-align: center;
}

/* Kurz aufblitzendes "+350 €" beim Umschalten einer Option */
.price-delta {
	position: absolute;
	top: 0.4em;
	right: 0;
	font-family: var(--bookcase-font-display);
	font-size: 0.85em;
	color: var(--color-text);
	white-space: nowrap;
	pointer-events: none;
	animation: efcDeltaFloat 1.4s ease forwards;
}

.price-display-sticky .price-delta {
	top: -1.5em;
	right: 1em;
}

@keyframes efcDeltaFloat {
	0% { opacity: 0; transform: translateY(6px); }
	15% { opacity: 1; transform: translateY(0); }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translateY(-8px); }
}

.summary-price-label {
	display: block;
	font-size: 0.8em;
	color: var(--color-text-muted);
	margin-bottom: 3px;
}

.summary-price-amount {
	display: block;
	font-family: var(--bookcase-font-display);
	font-size: 1.6em;
	line-height: 1.2;
	color: var(--color-text-strong);
}

.summary-price-vat {
	display: block;
	font-size: 0.72em;
	color: var(--color-text-muted);
}

/* Immer enthaltene Leistungen unter dem Preis */
.summary-included {
	margin: 0.9em 0 0;
	font-size: 0.75em;
	line-height: 1.5;
	color: var(--color-text-muted);
}

/* ── Price Display (dezente Sticky-Pille) ── */
.price-display-sticky {
	position: sticky;
	top: 16px;
	z-index: 100;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.7em;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 2.5em;
	padding: 0.55em 1.6em;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.price-label {
	font-size: 0.8em;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.price-amount {
	font-family: var(--bookcase-font-display);
	font-size: 1.5em;
	line-height: 1.2;
	color: var(--color-text-strong);
	white-space: nowrap;
	transition: transform 0.2s ease;
}

.price-amount.updating {
	animation: efcPriceUpdate 0.6s ease;
}

@keyframes efcPriceUpdate {
	0% { transform: scale(1); }
	50% { transform: scale(1.06); }
	100% { transform: scale(1); }
}

.price-vat-hint {
	font-size: 0.72em;
	color: var(--color-text-muted);
	white-space: nowrap;
}

/* ── Wizard Progress ── */
.wizard-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 2em;
	padding: 0 10px;
	gap: 0;
}

.wizard-step-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.step-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bookcase-font-display);
	font-size: 14px;
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
	background: transparent;
	transition: all 0.3s ease;
}

.wizard-step-indicator.active .step-circle {
	border-color: var(--color-text);
	background: var(--color-text);
	color: var(--color-bg);
}

.wizard-step-indicator.completed .step-circle {
	border-color: var(--color-text);
	color: var(--color-text);
	background: transparent;
}

.step-label {
	font-family: var(--bookcase-font-button);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
	text-align: center;
	white-space: nowrap;
}

/* Abgeschlossene Schritte sind klickbar (Zuruecknavigation) */
.wizard-step-indicator.clickable {
	cursor: pointer;
}

.wizard-step-indicator.clickable:hover .step-circle {
	background: var(--color-hover-surface);
}

.wizard-step-indicator.clickable:hover .step-label {
	color: var(--color-text);
}

.wizard-step-indicator.active .step-label {
	color: var(--color-text-strong);
}

.wizard-step-indicator.completed .step-label {
	color: var(--color-text);
}

.step-connector {
	flex: 1;
	height: 1px;
	background: var(--color-border);
	margin: 0 10px;
	margin-bottom: 30px;
	min-width: 20px;
	transition: background 0.3s ease;
}

.step-connector.completed {
	background: var(--color-text);
}

/* ── Wizard Step Content ──
   Horizontale Uebergaenge: Weiter schiebt nach links raus / von rechts rein,
   Zurueck schiebt nach rechts raus / von links rein. */
.wizard-step {
	animation: efcEnterFromRight 0.25s ease;
}

.wizard-step.enter-back {
	animation-name: efcEnterFromLeft;
}

.wizard-step.exit-left {
	animation: efcExitLeft 0.18s ease forwards;
}

.wizard-step.exit-right {
	animation: efcExitRight 0.18s ease forwards;
}

@keyframes efcEnterFromRight {
	from { opacity: 0; transform: translateX(24px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes efcEnterFromLeft {
	from { opacity: 0; transform: translateX(-24px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes efcExitLeft {
	to { opacity: 0; transform: translateX(-24px); }
}

@keyframes efcExitRight {
	to { opacity: 0; transform: translateX(24px); }
}

/* Sanftes Einblenden (Info-Panel, neue Summary-Eintraege) */
@keyframes efcFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── Wizard Navigation ── */
/* Keine eigene Trennlinie mehr: die Sektions-Outline rahmt bereits, Leerraum trennt. */
.wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2.5em;
}

/* ── Form Groups ── */
.form-group {
	margin-bottom: 2.2em;
}

.form-group > label {
	display: block;
	font-family: var(--bookcase-font-display);
	color: var(--color-text-strong);
	margin-bottom: 0.65em;
	font-size: 1.05em;
}

.section-title {
	margin-top: 0;
	margin-bottom: 1em;
	text-align: left;
}

/* ── Duration Slider ── */
.slider-container {
	padding: 10px 0;
}

.duration-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 3px;
	/* Fuellstand wird per JS ueber --slider-fill gesetzt (Default = 1 Minute) */
	background: linear-gradient(to right,
		var(--color-text) 0%,
		var(--color-text) var(--slider-fill, 14.3%),
		var(--color-border) var(--slider-fill, 14.3%),
		var(--color-border) 100%);
	outline: none;
}

.duration-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-text);
	border: 3px solid var(--color-bg);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.duration-slider::-webkit-slider-thumb:hover {
	transform: scale(1.12);
}

.duration-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-text);
	border: 3px solid var(--color-bg);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.duration-slider::-moz-range-thumb:hover {
	transform: scale(1.12);
}

/* Skala unter dem Slider: 8 Ticks (30 Sek ... 4 Min) + Endbeschriftung.
   Horizontales Padding ≈ halbe Thumb-Breite, damit die Ticks zum Thumb-Weg passen. */
.slider-scale {
	display: flex;
	justify-content: space-between;
	padding: 0 11px;
	margin-top: 6px;
}

.slider-tick {
	width: 1px;
	height: 8px;
	background: var(--color-text-muted);
	opacity: 0.45;
	transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* Tick an der aktuell gewaehlten Position */
.slider-tick.active {
	background: var(--color-text);
	opacity: 1;
	transform: scaleY(1.5) scaleX(2);
}

/* Beschriftung unter jedem Tick (ersetzt die Dauer-Pille) */
.slider-scale-labels {
	display: flex;
	justify-content: space-between;
	padding: 0 11px;
	margin-top: 5px;
	font-size: 0.75em;
	color: var(--color-text-muted);
}

/* width: 0 + zentrierter Inhalt: Label sitzt exakt mittig unter seinem Tick */
.slider-tick-label {
	width: 0;
	display: flex;
	justify-content: center;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.slider-tick-label.active {
	color: var(--color-text-strong);
	font-family: var(--bookcase-font-display);
}

/* ── Form Row ── */
.form-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.form-row .form-group {
	flex: 1 1 300px;
	min-width: 250px;
}

/* ── Inputs ── */
.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 12px 16px;
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-text-muted);
	border-radius: var(--efc-radius);
	font-size: 0.95em;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--color-text-muted);
	opacity: 0.7;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-text);
	box-shadow: 0 0 0 3px var(--color-hover-surface);
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* ── Style Options (Cards) ── */
.style-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
}

.style-card {
	position: relative;
	padding: 15px;
	border: 1px solid var(--color-border);
	border-radius: var(--efc-radius);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	background: transparent;
	display: block;
}

.style-card:hover {
	border-color: var(--color-text);
	transform: translateY(-2px);
}

.style-card.selected {
	border-color: var(--color-text);
}

/* Kurzer "Pop" nach der Auswahl (Klasse wird per JS gesetzt) */
.style-card.pop {
	animation: efcPop 0.25s ease;
}

@keyframes efcPop {
	0% { transform: scale(1); }
	50% { transform: scale(1.03); }
	100% { transform: scale(1); }
}

/* Haekchen-Badge auf der gewaehlten Karte */
.style-card.selected::after {
	content: '✓';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-text);
	color: var(--color-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
}

.style-card input[type="radio"] {
	position: absolute;
	opacity: 0;
}

/* Info-Button (oeffnet Details-Panel unter dem Karten-Grid) */
.style-info-btn {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-text-muted);
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 13px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
	z-index: 2;
	padding: 0;
}

.style-info-btn:hover,
.style-info-btn.active {
	border-color: var(--color-text);
	color: var(--color-text);
}

.style-info-panel {
	margin-top: 14px;
	padding: 16px 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--efc-radius);
	animation: efcFadeIn 0.25s ease;
	text-align: left;
}

.style-info-panel[hidden] {
	display: none;
}

.style-info-title {
	font-family: var(--bookcase-font-display);
	display: block;
	margin-bottom: 8px;
	color: var(--color-text-strong);
	text-align: left;
}

.style-info-panel dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 20px;
	margin: 0;
	font-size: 0.9em;
}

.style-info-panel dt {
	color: var(--color-text-muted);
	white-space: nowrap;
}

.style-info-panel dd {
	margin: 0;
}

/* Einheitliche Bildflaeche, Bilder werden mittig eingepasst */
.style-image-wrapper {
	margin: 0 auto 10px;
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.style-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.style-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-hover-surface);
	border-radius: 0.4em;
	border: 1px dashed var(--color-border);
}

.placeholder-icon {
	font-size: 40px;
}

.style-label {
	display: block;
	font-family: var(--bookcase-font-display);
	font-size: 0.85em;
	line-height: 1.3em;
	color: var(--color-text);
	margin-bottom: 2px;
}

.style-price {
	display: block;
	font-size: 0.78em;
	color: var(--color-text-muted);
}

/* ── Segmented Control (zweigeteilte Pille fuer Entweder-oder-Fragen) ── */
.segmented {
	display: flex;
	position: relative;
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	overflow: hidden;
	box-sizing: border-box;
}

/* Gleitende schwarze Pille (nur Desktop, mobil sind die Segmente gestapelt) */
@media (min-width: 769px) {
	.segmented::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 50%;
		height: 100%;
		background: var(--color-text);
		opacity: 0;
		transition: transform 0.25s ease, opacity 0.2s ease;
	}
	.segmented:has(.segment:first-child input:checked)::before {
		transform: translateX(0);
		opacity: 1;
	}
	.segmented:has(.segment:last-child input:checked)::before {
		transform: translateX(100%);
		opacity: 1;
	}
}

.segment {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 18px;
	cursor: pointer;
	text-align: center;
	color: var(--color-text);
	position: relative;
	z-index: 1;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.segment + .segment {
	border-left: 1px solid var(--color-border);
}

.segment input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.segment:not(:has(input:checked)):hover {
	background: var(--color-hover-surface);
}

.segment:has(input:checked) {
	background: var(--color-text);
	color: var(--color-bg);
}

/* Desktop: Fuellung liefert die gleitende Pille darunter */
@media (min-width: 769px) {
	.segment:has(input:checked) {
		background: transparent;
	}
}

.segment:has(input:checked) .price-hint {
	color: var(--color-bg);
	opacity: 0.75;
}

.segment-text {
	font-size: 0.95em;
	line-height: 1.35;
}

/* ── Price Hints (inline) ── */
.price-hint {
	font-size: 0.78em;
	color: var(--color-text-muted);
	font-weight: 400;
	margin-left: 4px;
}

.form-hint {
	font-size: 0.85em;
	color: var(--color-text-muted);
	margin: -0.5em 0 1em;
	font-weight: 400;
}

/* ── Sub-Options (language grids etc.) ── */
.sub-options {
	margin-top: 12px;
	padding: 16px;
	background: var(--color-hover-surface);
	border-radius: var(--efc-radius);
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.sub-options .sub-label {
	grid-column: 1 / -1;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--color-text-muted);
	margin: 0 0 4px;
}

.lang-checkbox {
	display: flex !important;
	align-items: center;
	padding: 8px 12px !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0.4em !important;
	font-size: 0.85em !important;
	cursor: pointer;
	transition: border-color 0.2s ease;
	min-width: auto !important;
	background: var(--color-surface);
}

.lang-checkbox:hover {
	border-color: var(--color-text) !important;
}

.lang-checkbox:has(input:checked) {
	border-color: var(--color-text) !important;
}

.lang-checkbox input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	margin-right: 8px !important;
	accent-color: var(--color-text);
}

/* ── Format Options ── */
.format-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.format-checkbox {
	display: flex !important;
	align-items: center;
	padding: 14px 16px !important;
	border: 1px solid var(--color-border) !important;
	border-radius: var(--efc-radius) !important;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	min-width: auto !important;
}

.format-checkbox:hover {
	border-color: var(--color-text) !important;
}

.format-checkbox:has(input:checked) {
	border-color: var(--color-text) !important;
	background: var(--color-hover-surface) !important;
}

.format-checkbox input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	margin-right: 12px !important;
	accent-color: var(--color-text);
	flex-shrink: 0;
}

.format-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-hover-surface);
	color: var(--color-text-muted);
	font-family: var(--bookcase-font-display);
	font-size: 0.75em;
	padding: 4px 10px;
	border-radius: 4px;
	margin-right: 10px;
	min-width: 40px;
	flex-shrink: 0;
}

.format-checkbox:has(input:checked) .format-badge {
	background: var(--color-text);
	color: var(--color-bg);
}

.format-text {
	flex: 1;
	font-size: 0.9em;
}

/* ── Stepper ── */
.stepper-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.stepper-btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border);
	border-radius: var(--efc-radius);
	background: transparent;
	font-size: 20px;
	color: var(--color-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, color 0.2s ease;
	line-height: 1;
}

.stepper-btn:hover:not(:disabled) {
	border-color: var(--color-text);
}

.stepper-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.stepper-value {
	font-family: var(--bookcase-font-display);
	font-size: 1.3em;
	color: var(--color-text-strong);
	min-width: 30px;
	text-align: center;
}

.stepper-label {
	font-size: 0.9em;
	color: var(--color-text-muted);
}

/* ── Toggle Switch (Privacy) ── */
.checkbox-label {
	display: flex !important;
	align-items: flex-start !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	gap: 15px;
}

.checkbox-label input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 52px;
	height: 32px;
	background: var(--color-hover-surface);
	border: 1px solid var(--color-border);
	border-radius: 16px;
	cursor: pointer;
	transition: background 0.3s ease;
	flex-shrink: 0;
	margin-top: 0;
	box-sizing: border-box;
}

.checkbox-label input[type="checkbox"]:checked {
	background: var(--color-text);
	border-color: var(--color-text);
}

.checkbox-label input[type="checkbox"]::before {
	content: '';
	position: absolute;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--color-surface);
	top: 2px;
	left: 2px;
	transition: left 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-label input[type="checkbox"]:checked::before {
	left: 22px;
	background: var(--color-bg);
}

.privacy-text {
	font-size: 0.9em;
	line-height: 1.6;
	color: var(--color-text);
	flex: 1;
}

/* ── Buttons ── */
.btn {
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--bookcase-font-button);
	font-size: 0.82em;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: bold;
	line-height: 1.2;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn .arrow {
	font-size: 1.1em;
	color: inherit;
}

/* Wie .btn-pill im Theme: Pillenfarbe invertiert bei Hover. */
.btn-primary {
	background: var(--color-text);
	color: var(--color-bg) !important;
	border-color: var(--color-text);
}

.btn-primary:hover:not(:disabled) {
	background: transparent;
	color: var(--color-text) !important;
}

.btn-secondary {
	background: transparent;
	color: var(--color-text);
	border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
	border-color: var(--color-text);
	background: var(--color-hover-surface);
}

.btn-submit {
	min-width: 200px;
	justify-content: center;
	font-size: 0.9em;
	padding: 14px 36px;
}

/* ── Error Message ── */
.error-message {
	padding: 15px 20px;
	background: rgba(244, 67, 54, 0.08);
	border-left: 3px solid #f44336;
	border-radius: 4px;
	color: var(--color-text);
	margin-bottom: 20px;
	font-size: 0.9em;
}

/* ── Success Page ── */
/* Sitzt in .calculator-main, die Outline-Box liefert das Padding aussen */
.success-page {
	text-align: center;
	padding: 20px 0;
}

.success-icon {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--color-text);
	color: var(--color-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	animation: efcPopIn 0.35s ease;
}

.success-icon svg {
	width: 34px;
	height: 34px;
}

/* Haekchen zeichnet sich nach dem Einblenden selbst */
.success-icon path {
	stroke-dasharray: 21;
	stroke-dashoffset: 21;
	animation: efcCheckDraw 0.45s ease 0.3s forwards;
}

@keyframes efcPopIn {
	from { opacity: 0; transform: scale(0.6); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes efcCheckDraw {
	to { stroke-dashoffset: 0; }
}

/* Bewusst kleiner als die (H1-gleichen) Sektions-H2 des Themes */
.success-page h2 {
	color: var(--color-text-strong);
	margin-bottom: 10px;
	font-weight: 300;
	font-size: var(--font-size-h2);
	line-height: var(--leading-h2);
}

.success-subtitle {
	font-size: 1.05em;
	color: var(--color-text-muted);
	margin-bottom: 30px;
}

.success-price-box {
	background: var(--color-text);
	color: var(--color-bg);
	padding: 24px 34px;
	border-radius: 1em;
	display: inline-block;
	margin-bottom: 30px;
}

.success-price-label {
	display: block;
	font-size: 0.85em;
	opacity: 0.9;
	margin-bottom: 6px;
	color: var(--color-bg);
}

.success-price-value {
	display: block;
	font-family: var(--bookcase-font-display);
	font-size: 2.2em;
	color: var(--color-bg);
}

.success-vat {
	display: block;
	font-size: 0.72em;
	opacity: 0.85;
	margin-top: 4px;
	color: var(--color-bg);
}

.success-summary {
	max-width: 600px;
	margin: 0 auto 30px;
	text-align: left;
	border: 1px solid var(--color-border);
	border-radius: var(--efc-radius);
	padding: 0.5em 1.2em;
}

.summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.summary-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--color-border);
}

.summary-table tr:last-child td {
	border-bottom: none;
}

.summary-table .summary-label {
	color: var(--color-text-muted);
	font-weight: 500;
	width: 50%;
}

.summary-table .summary-value {
	color: var(--color-text-strong);
	font-weight: 600;
}

.success-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.btn-download-pdf {
	background: var(--color-text);
	color: var(--color-bg) !important;
	border-color: var(--color-text);
}

.btn-download-pdf:hover {
	background: transparent;
	color: var(--color-text) !important;
}

/* ── Statische Preisuebersicht (SEO-Content unter dem Kalkulator) ── */
.efc-price-overview {
	max-width: 1300px;
	margin: 7.5em auto 0;
}

.efc-price-overview h2 {
	text-align: center;
	margin-bottom: 0.8em;
}

.efc-table-wrap {
	overflow-x: auto;
	margin: 1.8em 0;
}

.efc-price-overview table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.efc-price-overview caption {
	caption-side: bottom;
	padding-top: 0.7em;
	font-size: 0.82em;
	color: var(--color-text-muted);
}

.efc-price-overview th,
.efc-price-overview td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--color-border);
	text-align: right;
	white-space: nowrap;
}

.efc-price-overview thead th {
	font-family: var(--bookcase-font-display);
	color: var(--color-text-strong);
}

.efc-price-overview th[scope="row"] {
	text-align: left;
	font-family: var(--bookcase-font-display);
	font-weight: normal;
	color: var(--color-text-strong);
}

/* ── Editor Placeholder (Backend) ── */
.erklarfilm-calculator-editor-placeholder {
	padding: 40px;
	border: 1px dashed var(--color-border, #ccc);
	border-radius: 8px;
	text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.erklarfilm-calculator {
		margin: 0 auto;
	}
	.calculator-main {
		padding: 1.2em 1em;
	}
	.price-display-sticky {
		top: 10px;
		padding: 0.45em 1.2em;
		margin-bottom: 1.5em;
		gap: 0.5em;
	}
	.price-amount {
		font-size: 1.2em;
	}
	.price-label {
		font-size: 0.72em;
	}
	.wizard-progress {
		margin: 0 0 1.5em;
	}
	.step-label {
		font-size: 8px;
	}
	.step-circle {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
	.step-connector {
		min-width: 10px;
		margin: 0 4px;
		margin-bottom: 26px;
	}
	.style-options {
		grid-template-columns: repeat(2, 1fr);
	}
	.segmented {
		flex-direction: column;
		border-radius: 1.2em;
	}
	.segment + .segment {
		border-left: none;
		border-top: 1px solid var(--color-border);
	}
	.style-info-panel dl {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}
	.style-info-panel dd {
		margin-bottom: 8px;
	}
	.form-row {
		flex-direction: column;
	}
	.form-row .form-group {
		flex: 1 1 100%;
	}
	.duration-slider {
		height: 8px;
	}
	.duration-slider::-webkit-slider-thumb {
		width: 28px;
		height: 28px;
	}
	.duration-slider::-moz-range-thumb {
		width: 28px;
		height: 28px;
	}
	.btn {
		padding: 12px 20px;
		font-size: 0.78em;
	}
	.btn-submit {
		min-width: auto;
		font-size: 0.85em;
		padding: 14px 24px;
	}
	.form-group {
		margin-bottom: 1.6em;
	}
	.checkbox-label input[type="checkbox"] {
		width: 40px;
		height: 24px;
		border-radius: 12px;
	}
	.checkbox-label input[type="checkbox"]::before {
		width: 18px;
		height: 18px;
	}
	.checkbox-label input[type="checkbox"]:checked::before {
		left: 18px;
	}
	.privacy-text {
		font-size: 0.8em;
		line-height: 1.5;
		text-align: left;
	}
	.wizard-nav {
		margin-top: 1.5em;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
	}
	.success-price-box {
		padding: 16px 20px;
	}
	.success-price-value {
		font-size: 1.7em;
	}
	.success-icon {
		width: 56px;
		height: 56px;
		font-size: 28px;
	}
}
