/* JS Energietechnik Tools – nutzt die Farb-/Radius-Variablen des Themes (var(--jse-...)),
   fällt aber auf sinnvolle Werte zurück, falls das Theme nicht aktiv ist. */

/* ==========================================================================
   Kennzahlen-Leiste
   ========================================================================== */
.jse-kennzahlen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.jse-kennzahl { display: flex; flex-direction: column; align-items: center; }
.jse-kennzahl-value {
	font-family: var(--jse-font-display, inherit); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
	font-weight: 600; color: var(--jse-gold, #9fc31a); line-height: 1;
}
.jse-kennzahl-unit { font-family: var(--jse-font-mono, monospace); font-size: .85rem; color: var(--jse-night, #10161F); margin-top: 6px; }
.jse-kennzahl-label { font-size: .78rem; color: var(--jse-slate-light, #8A94A3); margin-top: 2px; }
.jse-kennzahlen-note { text-align: center; font-size: .78rem; color: var(--jse-slate-light, #8A94A3); max-width: 560px; margin: 24px auto 0; }

@media (max-width: 640px) {
	.jse-kennzahlen-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
}

.jse-lokale-projekte-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}

/* ==========================================================================
   Vorher/Nachher-Regler
   ========================================================================== */
.jse-vergleich-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.jse-vergleich h3 { font-family: var(--jse-font-display, inherit); font-size: 1rem; color: var(--jse-night, #10161F); margin: 0 0 14px; }

.jse-vergleich-frame {
	position: relative; aspect-ratio: 4/3; border-radius: var(--jse-radius-md, 16px); overflow: hidden;
	box-shadow: var(--jse-shadow-card, 0 10px 30px -12px rgba(16,22,31,.16)); user-select: none;
}
.jse-vergleich-nach, .jse-vergleich-vor {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.jse-vergleich-vor-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }

.jse-vergleich-tag {
	position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .7rem;
	font-family: var(--jse-font-mono, monospace); color: #fff; background: rgba(16,22,31,.72); z-index: 2;
	pointer-events: none;
}
.jse-vergleich-tag-vorher { left: 14px; }
.jse-vergleich-tag-nachher { right: 14px; }

.jse-vergleich-handle {
	position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
	transform: translateX(-50%); z-index: 3; pointer-events: none;
	display: flex; align-items: center; justify-content: center;
}
.jse-vergleich-handle::before, .jse-vergleich-handle::after {
	content: ''; position: absolute; left: 50%; width: 1px; height: 100%; background: rgba(255,255,255,.6);
	transform: translateX(-50%);
}
.jse-vergleich-handle svg {
	width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--jse-night, #10161F);
	box-shadow: 0 3px 10px rgba(16,22,31,.35); padding: 10px; box-sizing: border-box;
}

.jse-vergleich-slider {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
	z-index: 4; -webkit-appearance: none; appearance: none;
}
.jse-vergleich-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 100%; height: 100%; }

.jse-empty-hint {
	padding: 20px; background: rgba(0,0,0,.03); border-radius: 12px; font-size: .9rem; color: #666;
}
.jse-empty-hint-light { color: rgba(247,248,246,.7); background: rgba(255,255,255,.06); }

/* ==========================================================================
   Marquee (automatisch laufendes Band)
   ========================================================================== */
.jse-marquee {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.jse-marquee-track {
	display: flex;
	gap: 22px;
	width: max-content;
	animation: jse-marquee-scroll var(--jse-marquee-duration, 40s) linear infinite;
}

.jse-marquee:hover .jse-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.jse-marquee-track { animation: none; }
	.jse-marquee { overflow-x: auto; }
}

@keyframes jse-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Projekt-Karten (identisch zum bisherigen Kartenlayout des Themes) */
.jse-marquee .jse-project-card, .jse-lokale-projekte-grid .jse-project-card {
	flex: 0 0 300px;
	background: var(--jse-white, #fff);
	border-radius: var(--jse-radius-md, 16px);
	overflow: hidden;
	box-shadow: var(--jse-shadow-card, 0 10px 30px -12px rgba(16,22,31,.16));
	border-top: 4px solid var(--jse-art-color, transparent);
	outline: 1px solid color-mix(in srgb, var(--jse-art-color, transparent) 30%, transparent);
	outline-offset: -1px;
}
.jse-lokale-projekte-grid .jse-project-card { flex-basis: auto; }
.jse-project-media {
	position: relative; aspect-ratio: 4/3; width: 100%; display: block;
	border: 0; padding: 0; margin: 0; background: none; cursor: pointer; font: inherit;
}
.jse-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jse-project-badge {
	position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
	font-family: var(--jse-font-mono, monospace); font-size: .7rem; letter-spacing: .02em;
	color: #000;
}
.jse-project-zoom {
	position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
	background: rgba(16,22,31,.55); color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease;
}
.jse-project-media:hover .jse-project-zoom, .jse-project-media:focus-visible .jse-project-zoom { opacity: 1; transform: scale(1); }

.jse-project-vergleich-hint {
	position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px; border-radius: 999px; background: rgba(16,22,31,.65); color: #fff;
	font-family: var(--jse-font-mono, monospace); font-size: .68rem; backdrop-filter: blur(2px);
}

.jse-project-body { padding: 18px 20px 22px; }
.jse-project-body h3 { margin: 0 0 10px; font-family: var(--jse-font-display, inherit); font-size: 1.05rem; color: var(--jse-night, #10161F); }
.jse-project-specs { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jse-project-specs li { display: flex; align-items: center; gap: 7px; font-family: var(--jse-font-mono, monospace); font-size: .8rem; color: var(--jse-slate, #5B6675); }
.jse-project-specs svg { color: var(--jse-art-color, #9fc31a); flex-shrink: 0; }

/* ==========================================================================
   Komponenten-Overlay
   ========================================================================== */
body.jse-overlay-lock { overflow: hidden; }
.jse-overlay {
	position: fixed; inset: 0; z-index: 500; display: none;
	align-items: center; justify-content: center; padding: 24px;
}
.jse-overlay.is-open { display: flex; }
.jse-overlay-backdrop { position: absolute; inset: 0; background: rgba(10,14,22,.72); backdrop-filter: blur(3px); }
.jse-overlay-panel {
	position: relative; background: var(--jse-white, #fff); border-radius: var(--jse-radius-lg, 24px);
	max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
	box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
}
.jse-overlay-close {
	position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(16,22,31,.55); color: #fff; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.jse-overlay-media { width: 100%; }
.jse-overlay-media > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.jse-overlay-media .jse-vergleich-frame { border-radius: 0; box-shadow: none; aspect-ratio: 16/10; }
.jse-overlay-body { padding: 24px 28px 30px; }
.jse-overlay-body h3 { font-family: var(--jse-font-display, inherit); font-size: 1.3rem; color: var(--jse-night, #10161F); margin: 0 0 4px; }
.jse-overlay-subhead { font-family: var(--jse-font-mono, monospace); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--jse-slate-light, #8A94A3); margin: 0 0 14px; }
.jse-overlay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jse-overlay-list li {
	display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px;
	border-bottom: 1px solid var(--jse-line, #E4E7EA); font-size: .92rem;
}
.jse-overlay-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.jse-overlay-list-label { color: var(--jse-slate-light, #8A94A3); }
.jse-overlay-list-value { color: var(--jse-night, #10161F); font-weight: 600; text-align: right; }
.jse-overlay-empty { color: var(--jse-slate-light, #8A94A3); font-size: .88rem; margin: 0; }

@media (max-width: 560px) {
	.jse-overlay-panel { max-height: 92vh; }
	.jse-overlay-body { padding: 20px; }
}

/* ==========================================================================
   Bewertungs-Karten
   ========================================================================== */
.jse-marquee .jse-review-card {
	flex: 0 0 320px;
	background: var(--jse-white, #fff);
	border-radius: var(--jse-radius-md, 16px);
	padding: 26px 24px;
	box-shadow: var(--jse-shadow-card, 0 10px 30px -12px rgba(16,22,31,.16));
	display: flex;
	flex-direction: column;
}
.jse-review-quote { color: var(--jse-gold, #9fc31a); margin-bottom: 6px; }
.jse-review-stars { color: var(--jse-gold, #9fc31a); display: flex; gap: 2px; margin-bottom: 12px; }
.jse-review-text { font-size: .92rem; color: var(--jse-slate, #5B6675); flex: 1; margin: 0 0 18px; line-height: 1.6; }
.jse-review-author { display: flex; align-items: center; gap: 12px; }
.jse-review-avatar {
	width: 38px; height: 38px; border-radius: 50%; background: var(--jse-night-2, #1B2A38); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: var(--jse-font-display, inherit);
	font-weight: 600; flex-shrink: 0;
}
.jse-review-author strong { display: block; font-size: .88rem; color: var(--jse-night, #10161F); font-family: var(--jse-font-display, inherit); }
.jse-review-ort { display: block; font-size: .78rem; color: var(--jse-slate-light, #8A94A3); }

/* ==========================================================================
   Kundenkarte
   ========================================================================== */
.jse-kundenkarte-wrap { position: relative; }
.jse-kundenkarte {
	width: 100%;
	height: 480px;
	border-radius: var(--jse-radius-lg, 24px);
	overflow: hidden;
	filter: grayscale(0.15);
}

.jse-map-pin { position: relative; display: block; }
.jse-map-pin-drop { animation: jse-pin-drop .55s cubic-bezier(.34,1.56,.64,1) both; transform-origin: bottom center; }
@keyframes jse-pin-drop {
	0% { transform: translateY(-24px) scale(.4); opacity: 0; }
	60% { transform: translateY(2px) scale(1.08); opacity: 1; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}
.jse-map-pin-svg {
	display: block;
	filter: drop-shadow(0 3px 5px rgba(16,22,31,.45));
}
.jse-map-pin-pulse {
	position: absolute; left: 50%; bottom: 1px; width: 14px; height: 6px;
	background: rgba(229,71,58,.4); border-radius: 50%;
	transform: translateX(-50%); z-index: -1;
	animation: jse-pin-pulse 2.2s ease-out infinite;
}
@keyframes jse-pin-pulse {
	0%   { transform: translateX(-50%) scale(1); opacity: .6; }
	100% { transform: translateX(-50%) scale(3.2); opacity: 0; }
}

.jse-kundenkarte-gated {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #1B2A38, #10161F);
	background-image:
		linear-gradient(135deg, #1B2A38, #10161F),
		repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 26px);
}
.jse-kundenkarte-gate {
	max-width: 360px; text-align: center; color: rgba(247,248,246,.85); padding: 20px;
}
.jse-kundenkarte-gate svg { color: var(--jse-gold, #9fc31a); margin: 0 auto 12px; }
.jse-kundenkarte-gate p { font-size: .85rem; line-height: 1.5; margin: 0 0 18px; color: rgba(247,248,246,.65); }

.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--jse-font-body, inherit); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.jse-map-popup { min-width: 220px; }
.jse-popup-media { aspect-ratio: 16/10; overflow: hidden; }
.jse-popup-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jse-popup-body { padding: 14px 16px 16px; }
.jse-map-popup strong { display: block; font-family: var(--jse-font-display, inherit); font-size: 1rem; color: var(--jse-night, #10161F); margin: 8px 0 10px; }
.jse-popup-badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .7rem;
	font-family: var(--jse-font-mono, monospace); color: #fff; background: var(--jse-gold-dark, #9fc31a);
}
.jse-popup-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.jse-popup-specs li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--jse-night, #10161F); }
.jse-popup-specs li svg { color: var(--jse-gold-dark, #9fc31a); flex-shrink: 0; }
.jse-popup-specs li span { font-family: var(--jse-font-mono, monospace); }
.jse-popup-empty { font-size: .8rem; color: var(--jse-slate-light, #8A94A3); margin: 4px 0 0; }
.leaflet-popup-close-button {
	background: rgba(255,255,255,.9) !important; border-radius: 50%; width: 22px !important; height: 22px !important;
	line-height: 20px !important; top: 8px !important; right: 8px !important; text-align: center;
}

@media (max-width: 640px) {
	.jse-marquee .jse-project-card,
	.jse-marquee .jse-review-card { flex-basis: 260px; }
	.jse-kundenkarte { height: 360px; }
}

/* ==========================================================================
   Anfrage-Formulare (PV / Reinigung / Schnellanfrage)
   ========================================================================== */
.jse-anfrage-form-wrap { max-width: 760px; margin-inline: auto; }
.jse-anfrage-schnell { max-width: 480px; }

.jse-form-status {
	padding: 16px 20px; border-radius: 12px; margin-bottom: 28px; font-size: .92rem;
}
.jse-form-status-erfolg { background: rgba(159,195,26,.12); color: var(--jse-green-dark, #9fc31a); border: 1px solid rgba(159,195,26,.3); }
.jse-form-status-fehler { background: rgba(217,73,73,.1); color: #B23A3A; border: 1px solid rgba(217,73,73,.3); }

.jse-form-section-head { margin: 0 0 20px; }
.jse-form-section-head h3 { font-family: var(--jse-font-display, inherit); font-size: 1.25rem; color: var(--jse-night, #10161F); margin: 0 0 4px; }
.jse-form-section-head p { font-size: .85rem; color: var(--jse-slate-light, #8A94A3); margin: 0; }

.jse-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.jse-field-wide { grid-column: 1 / -1; }

.jse-field label, .jse-field-label { display: block; font-family: var(--jse-font-display, inherit); font-size: .85rem; color: var(--jse-night, #10161F); margin-bottom: 6px; }
.jse-req { color: #C6453E; }

.jse-field input[type="text"], .jse-field input[type="email"], .jse-field input[type="tel"],
.jse-field input[type="date"], .jse-field input[type="number"], .jse-field select, .jse-field textarea {
	width: 100%; border: 1px solid var(--jse-line, #E4E7EA); border-radius: 10px; padding: 11px 14px;
	font-family: var(--jse-font-body, inherit); font-size: .92rem; color: var(--jse-night, #10161F);
	background: #fff; box-sizing: border-box;
}
.jse-field input:focus, .jse-field select:focus, .jse-field textarea:focus {
	outline: none; border-color: var(--jse-gold, #9fc31a); box-shadow: 0 0 0 3px rgba(159,195,26,.15);
}
.jse-field textarea { resize: vertical; min-height: 70px; }
.jse-field input[type="file"] { width: 100%; font-size: .85rem; }
.jse-field-hint { font-size: .78rem; color: var(--jse-slate-light, #8A94A3); margin: 6px 0 0; }

.jse-conditional { background: var(--jse-fog, #F7F8F6); border-radius: 10px; padding: 14px 16px; margin-top: -4px; }

.jse-range { width: 100%; accent-color: var(--jse-gold, #9fc31a); }
.jse-range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--jse-slate-light, #8A94A3); margin-top: 4px; }
.jse-range-value { display: inline-block; margin-top: 4px; font-family: var(--jse-font-mono, monospace); font-size: .8rem; color: var(--jse-gold-dark, #9fc31a); }

.jse-field-checkbox { display: flex; margin-top: 18px; }
.jse-field-checkbox label { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--jse-slate, #5B6675); font-family: var(--jse-font-body, inherit); }
.jse-field-checkbox input[type="checkbox"] { margin-top: 3px; accent-color: var(--jse-gold, #9fc31a); flex-shrink: 0; }

.jse-hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jse-datenschutz-box {
	background: var(--jse-fog, #F7F8F6); border-radius: 12px; padding: 20px 22px; margin-top: 40px;
	font-size: .8rem; color: var(--jse-slate, #5B6675); max-height: 260px; overflow-y: auto;
}
.jse-datenschutz-box p { margin: 0 0 10px; }
.jse-datenschutz-box ul { margin: 0 0 10px; padding-left: 20px; }
.jse-datenschutz-box a { color: var(--jse-gold-dark, #9fc31a); }

.jse-form-submit { margin-top: 28px; width: 100%; justify-content: center; }

/* Dach-Diagramm */
.jse-dach-diagramm { width: 100%; max-width: 480px; display: block; margin: 0 auto 16px; }
.jse-dach-label { font-family: var(--jse-font-mono, monospace); font-size: 13px; fill: var(--jse-night, #10161F); font-weight: 600; }
.jse-dach-label-sm { font-size: 11px; }
.jse-dach-legende { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .82rem; color: var(--jse-slate, #5B6675); }
.jse-dach-legende strong { color: var(--jse-night, #10161F); }

@media (max-width: 640px) {
	.jse-form-grid { grid-template-columns: 1fr; }
	.jse-dach-legende { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Formular: Button-Toggles, Info-Buttons, aufklappbare Dachskizze
   ========================================================================== */
.jse-field-label { display: flex; align-items: center; gap: 8px; }

.jse-tile-group { display: flex; gap: 12px; flex-wrap: wrap; }
.jse-tile-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.jse-tile {
	display: flex; align-items: center; gap: 10px; min-width: 120px;
	padding: 14px 22px; border-radius: 12px; border: 2px solid var(--jse-line, #E4E7EA);
	background: #fff; cursor: pointer; user-select: none;
	font-family: var(--jse-font-display, inherit); font-size: .92rem; font-weight: 600;
	color: var(--jse-slate, #5B6675); margin: 0;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, transform .1s ease;
}
.jse-tile:hover { border-color: var(--jse-gold, #9fc31a); transform: translateY(-1px); }
.jse-tile-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
	border-radius: 50%; background: var(--jse-fog, #F7F8F6); color: var(--jse-slate-light, #8A94A3);
	flex-shrink: 0; transition: background-color .15s ease, color .15s ease;
}
.jse-tile-radio:checked + .jse-tile {
	border-color: var(--jse-gold, #9fc31a); background: rgba(159,195,26,.1); color: var(--jse-night, #10161F);
	box-shadow: 0 4px 14px -6px rgba(159,195,26,.5);
}
.jse-tile-radio:checked + .jse-tile .jse-tile-icon-yes { background: var(--jse-green, #9fc31a); color: #fff; }
.jse-tile-radio:checked + .jse-tile .jse-tile-icon-no { background: var(--jse-gold, #9fc31a); color: var(--jse-night, #10161F); }
.jse-tile-radio:focus-visible + .jse-tile { outline: 2px solid var(--jse-gold, #9fc31a); outline-offset: 2px; }

.jse-info-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
	border-radius: 50%; border: 1.5px solid var(--jse-slate-light, #8A94A3); background: transparent;
	color: var(--jse-slate-light, #8A94A3); font-family: var(--jse-font-display, inherit); font-size: .68rem;
	font-style: italic; font-weight: 700; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.jse-info-btn:hover, .jse-info-btn[aria-expanded="true"] { border-color: var(--jse-gold, #9fc31a); color: var(--jse-gold-dark, #9fc31a); background: rgba(159,195,26,.1); }

.jse-info-panel {
	display: block; margin-top: 8px; padding: 10px 14px; background: rgba(159,195,26,.08);
	border-left: 3px solid var(--jse-gold, #9fc31a); border-radius: 6px; font-size: .8rem;
	color: var(--jse-slate, #5B6675); font-weight: 400;
}

.jse-diagramm-toggle {
	display: inline-flex; align-items: center; gap: 8px; background: var(--jse-fog, #F7F8F6);
	border: 1px solid var(--jse-line, #E4E7EA); border-radius: 999px; padding: 10px 18px;
	font-family: var(--jse-font-display, inherit); font-size: .85rem; color: var(--jse-night, #10161F);
	cursor: pointer; margin-bottom: 20px; transition: background-color .15s ease, border-color .15s ease;
}
.jse-diagramm-toggle:hover, .jse-diagramm-toggle[aria-expanded="true"] { background: rgba(159,195,26,.12); border-color: var(--jse-gold, #9fc31a); }
.jse-diagramm-toggle svg { color: var(--jse-gold-dark, #9fc31a); flex-shrink: 0; }

.jse-dach-diagramm-panel { margin-bottom: 20px; padding: 20px; background: var(--jse-fog, #F7F8F6); border-radius: 16px; }

/* ==========================================================================

/* ==========================================================================
   Anfrage-Tool: Bildschirme, Übergänge, Auswahl-Kacheln
   ========================================================================== */
.jse-tool { max-width: 820px; margin-inline: auto; }

.jse-tool-screen {
	animation: jse-screen-in .4s cubic-bezier(.2,.7,.3,1);
}
@keyframes jse-screen-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.jse-tool-screen { animation: none; }
}

.jse-tool-backlink {
	display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0 0 24px;
	font-family: var(--jse-font-display, inherit); font-weight: 600; font-size: .85rem;
	color: var(--jse-slate-light, #8A94A3); cursor: pointer; transition: color .15s ease;
}
.jse-tool-backlink:hover { color: var(--jse-gold-dark, #9fc31a); }
.jse-tool-backlink svg { flex-shrink: 0; }

/* Auswahl-Kacheln (Schnell/Ausführlich, PV/Reinigung) */
.jse-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.jse-choice-tile {
	position: relative; text-align: left; background: #fff; border: 2px solid var(--jse-line, #E4E7EA);
	border-radius: var(--jse-radius-lg, 24px); padding: 32px 28px; cursor: pointer;
	display: flex; flex-direction: column; gap: 10px; overflow: hidden;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.jse-choice-tile::before {
	content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; z-index: 0;
}
.jse-choice-tile-gold::before { background: radial-gradient(circle at 100% 0%, rgba(159,195,26,.14), transparent 60%); }
.jse-choice-tile-blue::before { background: radial-gradient(circle at 100% 0%, rgba(159,195,26,.14), transparent 60%); }
.jse-choice-tile-green::before { background: radial-gradient(circle at 100% 0%, rgba(159,195,26,.14), transparent 60%); }
.jse-choice-tile:hover { transform: translateY(-4px); box-shadow: var(--jse-shadow-lift, 0 20px 45px -18px rgba(16,22,31,.35)); }
.jse-choice-tile:hover::before { opacity: 1; }
.jse-choice-tile-gold:hover { border-color: var(--jse-gold, #9fc31a); }
.jse-choice-tile-blue:hover { border-color: var(--jse-blue, #9fc31a); }
.jse-choice-tile-green:hover { border-color: var(--jse-green, #9fc31a); }

.jse-choice-tag {
	position: relative; z-index: 1; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
	font-family: var(--jse-font-mono, monospace); font-size: .68rem; background: var(--jse-fog, #F7F8F6);
	color: var(--jse-slate, #5B6675);
}
.jse-choice-icon {
	position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center; margin-top: 4px;
}
.jse-choice-tile-gold .jse-choice-icon { background: rgba(159,195,26,.14); color: var(--jse-gold-dark, #9fc31a); }
.jse-choice-tile-blue .jse-choice-icon { background: rgba(159,195,26,.14); color: var(--jse-blue, #9fc31a); }
.jse-choice-tile-green .jse-choice-icon { background: rgba(159,195,26,.14); color: var(--jse-green-dark, #9fc31a); }

.jse-choice-title { position: relative; z-index: 1; font-family: var(--jse-font-display, inherit); font-size: 1.15rem; color: var(--jse-night, #10161F); font-weight: 700; }
.jse-choice-subtitle { position: relative; z-index: 1; font-size: .85rem; color: var(--jse-slate, #5B6675); line-height: 1.5; flex: 1; }
.jse-choice-cta {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
	font-family: var(--jse-font-display, inherit); font-weight: 700; font-size: .85rem; color: var(--jse-gold-dark, #9fc31a);
}
.jse-choice-tile-blue .jse-choice-cta { color: var(--jse-blue, #9fc31a); }
.jse-choice-tile-green .jse-choice-cta { color: var(--jse-green-dark, #9fc31a); }
.jse-choice-cta svg { transition: transform .18s ease; }
.jse-choice-tile:hover .jse-choice-cta svg { transform: translateX(4px); }

@media (max-width: 640px) {
	.jse-choice-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Assistent: Icon-Fortschrittsleiste mit Verbindungslinie
   ========================================================================== */
.jse-stepper { margin-bottom: 40px; }
.jse-stepper-track { display: none; }

.jse-stepper-dots {
	display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px;
	padding: 6px 2px;
}
.jse-stepper-dots::-webkit-scrollbar { display: none; }

.jse-stepper-dot {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 68px;
	background: none; border: 0; cursor: pointer; padding: 0;
}
.jse-stepper-dot:not(:first-child)::before {
	content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 2px;
	background: var(--jse-line, #E4E7EA); z-index: 0; transition: background-color .3s ease;
}
.jse-stepper-dot.is-active:not(:first-child)::before,
.jse-stepper-dot.is-done:not(:first-child)::before { background: var(--jse-gold, #9fc31a); }

.jse-stepper-num {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--jse-line, #E4E7EA);
	color: var(--jse-slate-light, #8A94A3); transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.jse-stepper-num svg { width: 18px; height: 18px; }
.jse-stepper-label {
	font-size: .66rem; color: var(--jse-slate-light, #8A94A3); text-align: center; white-space: nowrap;
	font-family: var(--jse-font-body, inherit); transition: color .2s ease;
}
.jse-stepper-dot.is-active .jse-stepper-num {
	background: var(--jse-gold, #9fc31a); border-color: var(--jse-gold, #9fc31a); color: var(--jse-night, #10161F);
	transform: scale(1.12); box-shadow: 0 0 0 6px rgba(159,195,26,.15);
}
.jse-stepper-dot.is-active .jse-stepper-label { color: var(--jse-night, #10161F); font-weight: 700; }
.jse-stepper-dot.is-done .jse-stepper-num { background: var(--jse-green, #9fc31a); border-color: var(--jse-green, #9fc31a); color: #fff; }

.jse-stepper-status { font-size: .78rem; color: var(--jse-slate-light, #8A94A3); margin: 0; font-family: var(--jse-font-mono, monospace); text-align: center; }

.jse-step-hint { font-size: .85rem; color: var(--jse-slate-light, #8A94A3); margin: -8px 0 20px; }

/* Schritt-Wechsel-Animation */
.jse-step-viewport { position: relative; }
.jse-step { animation: jse-step-in .35s cubic-bezier(.2,.7,.3,1); }
.jse-step.is-backward { animation-name: jse-step-in-back; }
@keyframes jse-step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes jse-step-in-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
	.jse-step, .jse-step.is-backward { animation: none; }
}

.jse-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; gap: 12px; }
button.jse-step-back {
	display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--jse-line, #E4E7EA);
	border-radius: 999px; padding: 12px 20px; font-family: var(--jse-font-display, inherit); font-weight: 600;
	font-size: .88rem; color: var(--jse-slate, #5B6675); cursor: pointer; transition: border-color .15s ease;
}
button.jse-step-back:hover { border-color: var(--jse-gold, #9fc31a); }
.jse-step-nav .jse-btn { margin-left: auto; }

@media (max-width: 640px) {
	.jse-stepper-label { display: none; }
	.jse-stepper-dot { min-width: auto; }
}

/* ==========================================================================
   Erfolgs-Animation
   ========================================================================== */
.jse-erfolg { text-align: center; padding: 50px 20px; }
.jse-erfolg-check { margin-bottom: 20px; }
.jse-erfolg-circle {
	stroke: var(--jse-green, #9fc31a); stroke-dasharray: 226; stroke-dashoffset: 226;
	animation: jse-circle-draw .6s ease forwards;
}
.jse-erfolg-haken {
	stroke: var(--jse-green, #9fc31a); stroke-dasharray: 50; stroke-dashoffset: 50;
	animation: jse-haken-draw .4s ease forwards .5s;
}
@keyframes jse-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes jse-haken-draw { to { stroke-dashoffset: 0; } }
.jse-erfolg h3 { font-family: var(--jse-font-display, inherit); font-size: 1.4rem; color: var(--jse-night, #10161F); margin: 0 0 10px; }
.jse-erfolg p { color: var(--jse-slate, #5B6675); max-width: 400px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
	.jse-erfolg-circle, .jse-erfolg-haken { animation: none; stroke-dashoffset: 0; }
}

/* 1.2: besser lesbare Formulare und gut bedienbare Eingabefelder. */
.jse-tool { --jse-form-border: #cbd3db; }
.jse-tool .jse-anfrage-form { padding: clamp(20px, 4vw, 36px); background: #fff; border: 1px solid #e4e7ea; border-radius: 20px; box-shadow: 0 18px 48px -32px rgba(16,22,31,.25); }
.jse-tool .jse-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) { min-height: 48px; border-color: var(--jse-form-border); font-size: 16px; line-height: 1.5; padding: 12px 14px; }
.jse-tool .jse-field label, .jse-tool .jse-field-label { font-size: .93rem; line-height: 1.5; }
.jse-tool .jse-field-hint { color: #596777; font-size: .85rem; line-height: 1.6; }
.jse-tool .jse-field-checkbox label { display: block; line-height: 1.75; }
.jse-tool .jse-field-checkbox input { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.jse-tool .jse-field-checkbox a { text-decoration: underline; text-underline-offset: 3px; }
.jse-tool :is(button, input, select, textarea, a):focus-visible { outline: 3px solid #9fc31a; outline-offset: 3px; }
.jse-tool-backlink { min-height: 44px; }
.jse-stepper-status { color: #596777; font-size: .87rem; }
.jse-choice-subtitle { line-height: 1.7; }
.jse-tool .jse-step-nav { gap: 12px; flex-wrap: wrap; }
@media (max-width: 540px) {
 .jse-tool .jse-anfrage-form { padding: 20px 16px; border-radius: 14px; }
 .jse-tool .jse-step-nav .jse-btn { flex: 1; justify-content: center; }
 .jse-choice-tile { padding: 24px; }
}

/* Ausgeblendete Formularteile dürfen nicht von display-Regeln geöffnet werden. */
.jse-tool [hidden], .jse-anfrage-form-wrap [hidden], .jse-info-panel[hidden] { display: none !important; }
.jse-field-label { flex-wrap: wrap; }
.jse-field-label .jse-info-panel { flex-basis: 100%; width: 100%; }

.jse-required-note { margin: 20px 0 0; font-size: .85rem; line-height: 1.6; color: #5b6675; }

/* Schritte zeigen nur den Fortschritt; Navigation ausschließlich unten. */
.jse-tool .jse-stepper-dot { cursor: default; pointer-events: none; }

.jse-kennzahlen-intro { text-align: center; font-size: 1rem; font-weight: 600; margin: 0 0 28px; color: var(--jse-slate, #5B6675); }
