/*!
 * HSP Stromerzeuger-Konfigurator – Frontend
 * Layout reagiert auf die tatsächliche Breite des Widgets (Container Queries),
 * nicht nur auf die Bildschirmbreite – funktioniert daher auch in schmalen Elementor-Spalten.
 */

.hsp-gk {
	/* Vorgaben – werden durch Dashboard-Farben (Inline-CSS) und Elementor-Stile überschrieben. */
	--hsp-primary: #84985B;
	--hsp-primary-text: #FFFFFF;
	--hsp-heading: #303030;
	--hsp-text: #4A4A4A;
	--hsp-muted: #7A7A7A;
	--hsp-bg: #FFFFFF;
	--hsp-surface: #F5F6F1;
	--hsp-border: #DEE1D6;
	--hsp-promo: #C62828;
	--hsp-promo-text: #FFFFFF;
	--hsp-radius: 6px;
	--hsp-sticky-top: 24px;
	--hsp-gap: 24px;
	--hsp-pad: 24px;
	--hsp-radius-lg: calc(var(--hsp-radius) * 1.5);
	--hsp-focus: 0 0 0 3px color-mix(in srgb, var(--hsp-primary) 35%, transparent);

	container-type: inline-size;
	container-name: hspgk;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	color: var(--hsp-text);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
	hyphens: auto;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.hsp-gk { --hsp-focus: 0 0 0 3px rgba(132, 152, 91, .35); }
}

/*
 * Elementor-Container (Flexbox mit Umbruch) messen die Höhe eines Widgets bei
 * "schrumpfender" Breite. Weil .hsp-gk seine Breite per Container Query selbst bestimmt,
 * würde diese Messung bei nahezu 0 px Breite erfolgen und eine riesige Höhe ergeben
 * (großer Leerraum unter dem Konfigurator). Eine feste Breite von 100 % verhindert das.
 * Eine in Elementor gesetzte individuelle Widget-Breite hat weiterhin Vorrang.
 */
.elementor-widget-hsp_stromerzeuger_konfigurator,
.elementor-widget:has(> .elementor-widget-container > .hsp-gk),
.elementor-widget:has(> .hsp-gk) {
	width: 100%;
	max-width: 100%;
}
.elementor-widget-hsp_stromerzeuger_konfigurator > .elementor-widget-container { width: 100%; }

.hsp-gk *,
.hsp-gk *::before,
.hsp-gk *::after { box-sizing: border-box; }

.hsp-gk [hidden] { display: none !important; }

/* Theme-Stile neutralisieren */
.hsp-gk h2, .hsp-gk h3, .hsp-gk h4, .hsp-gk p, .hsp-gk ul, .hsp-gk li, .hsp-gk table, .hsp-gk figure {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-transform: none;
	letter-spacing: normal;
}
.hsp-gk ul { list-style: none; }
.hsp-gk table { border-collapse: collapse; width: 100%; table-layout: auto; }
.hsp-gk th, .hsp-gk td { border: 0; background: none; text-align: left; vertical-align: top; font-size: inherit; }
.hsp-gk img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.hsp-gk button {
	font: inherit;
	line-height: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	margin: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.hsp-gk button:focus { outline: none; }
.hsp-gk button:focus-visible, .hsp-gk a:focus-visible { outline: none; box-shadow: var(--hsp-focus); }

.hsp-gk-ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.hsp-gk-ico--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Kopf ---------------- */
.hsp-gk__head { margin-bottom: 20px; }
.hsp-gk .hsp-gk__headline {
	color: var(--hsp-heading);
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 8px;
	font-family: inherit;
}
.hsp-gk .hsp-gk__intro { color: var(--hsp-text); max-width: 70ch; }

/* ---------------- Auswahlschritte ---------------- */
.hsp-gk__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	padding: var(--hsp-pad);
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-radius-lg);
}
.hsp-gk__step { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hsp-gk .hsp-gk__label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 600;
	font-size: 15px;
	color: var(--hsp-heading);
	line-height: 1.3;
	min-height: 2.6em; /* gleiche Höhe, auch wenn eine Beschriftung umbricht */
}
.hsp-gk__num {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	background: var(--hsp-bg);
	color: var(--hsp-muted);
	border: 2px solid var(--hsp-border);
	transition: background .2s, color .2s, border-color .2s;
}
.hsp-gk__step.is-active .hsp-gk__num { border-color: var(--hsp-primary); color: var(--hsp-primary); }
.hsp-gk__step.is-done .hsp-gk__num { background: var(--hsp-primary); border-color: var(--hsp-primary); color: var(--hsp-primary-text); }
.hsp-gk__label-text { min-width: 0; }

.hsp-gk__select-wrap { position: relative; }
.hsp-gk__select-wrap::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--hsp-heading);
	border-bottom: 2px solid var(--hsp-heading);
	transform: rotate(45deg);
	pointer-events: none;
}
.hsp-gk .hsp-gk__select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 50px;
	margin: 0;
	padding: 12px 44px 12px 14px;
	font: inherit;
	font-size: 16px; /* verhindert Zoom auf iOS */
	line-height: 1.3;
	color: var(--hsp-heading);
	background: var(--hsp-bg);
	border: 1.5px solid var(--hsp-border);
	border-radius: var(--hsp-radius);
	box-shadow: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.hsp-gk .hsp-gk__select:hover:not(:disabled) { border-color: var(--hsp-primary); }
.hsp-gk .hsp-gk__select:focus { outline: none; border-color: var(--hsp-primary); box-shadow: var(--hsp-focus); }
.hsp-gk .hsp-gk__select:disabled { cursor: not-allowed; color: var(--hsp-muted); background: var(--hsp-surface); opacity: 1; }
.hsp-gk__step.is-done .hsp-gk__select { border-color: var(--hsp-primary); }

/* ---------------- Ergebnis ---------------- */
.hsp-gk__result { margin-top: var(--hsp-gap); scroll-margin-top: var(--hsp-sticky-top); animation: hsp-gk-in .35s ease both; }
@keyframes hsp-gk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hsp-gk__result { animation: none; } }

.hsp-gk__card {
	background: var(--hsp-bg);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-radius-lg);
	padding: var(--hsp-pad);
}
.hsp-gk__rhead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px 16px;
	padding-bottom: 18px;
	margin-bottom: var(--hsp-gap);
	border-bottom: 1px solid var(--hsp-border);
}
.hsp-gk__rtitle { min-width: 0; flex: 1 1 260px; }
.hsp-gk__name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hsp-gk .hsp-gk__name {
	color: var(--hsp-heading);
	font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.2;
	font-family: inherit;
	hyphens: manual;
}
.hsp-gk__chip {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hsp-promo);
	color: var(--hsp-promo-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
}
.hsp-gk .hsp-gk__subtitle { margin-top: 4px; color: var(--hsp-text); }
.hsp-gk .hsp-gk__gear-info { margin-top: 4px; color: var(--hsp-muted); font-size: 15px; }
.hsp-gk .hsp-gk__gear-info strong { color: var(--hsp-heading); }

.hsp-gk .hsp-gk__link-btn {
	flex: none;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--hsp-primary);
	font-weight: 600;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
	border-radius: 2px;
}
.hsp-gk .hsp-gk__link-btn:hover { color: var(--hsp-heading); background: none; }

/* Raster: mobil eine Spalte, breit zwei Spalten mit mitlaufender Preisübersicht */
.hsp-gk__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "gallery" "desc" "specs" "acc" "price" "dl";
	align-items: start;
}
.hsp-gk__section { min-width: 0; margin-bottom: var(--hsp-gap); }
.hsp-gk__section:last-child { margin-bottom: 0; }
.hsp-gk__gallery { grid-area: gallery; }
.hsp-gk__desc { grid-area: desc; }
.hsp-gk__specs-wrap { grid-area: specs; }
.hsp-gk__acc-wrap { grid-area: acc; }
.hsp-gk__pricebox { grid-area: price; }
.hsp-gk__dl-wrap { grid-area: dl; }

.hsp-gk .hsp-gk__h {
	color: var(--hsp-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 12px;
	font-family: inherit;
}

.hsp-gk__desc p { margin-bottom: .8em; }
.hsp-gk__desc p:last-child { margin-bottom: 0; }
.hsp-gk__desc ul { list-style: disc; padding-left: 1.3em; margin-bottom: .8em; }
.hsp-gk__desc a { color: var(--hsp-primary); }

/* Galerie */
.hsp-gk__main-wrap { position: relative; }
.hsp-gk .hsp-gk__main {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-radius);
	background: var(--hsp-surface);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: zoom-in;
}
.hsp-gk .hsp-gk__main:hover { background: var(--hsp-surface); }
.hsp-gk .hsp-gk__main-img { width: 100%; height: 100%; object-fit: contain; }
.hsp-gk__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--hsp-heading);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.hsp-gk .hsp-gk__gnav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--hsp-heading);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.hsp-gk .hsp-gk__gnav:hover { background: #fff; color: var(--hsp-primary); }
.hsp-gk__gnav--prev { left: 10px; }
.hsp-gk__gnav--next { right: 10px; }

.hsp-gk__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 3px;
	scrollbar-width: thin;
}
.hsp-gk .hsp-gk__thumb {
	flex: 0 0 76px;
	width: 76px;
	height: 60px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--hsp-radius);
	background: var(--hsp-surface);
	overflow: hidden;
	scroll-snap-align: start;
	opacity: .7;
	transition: opacity .2s, border-color .2s;
}
.hsp-gk .hsp-gk__thumb:hover { opacity: 1; background: var(--hsp-surface); }
.hsp-gk .hsp-gk__thumb.is-current { border-color: var(--hsp-primary); opacity: 1; }
.hsp-gk .hsp-gk__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Technische Daten */
.hsp-gk__specs { border: 1px solid var(--hsp-border); border-radius: var(--hsp-radius); overflow: hidden; border-collapse: separate !important; border-spacing: 0; }
.hsp-gk .hsp-gk__specs th, .hsp-gk .hsp-gk__specs td { padding: 10px 14px; border-bottom: 1px solid var(--hsp-border); line-height: 1.4; }
.hsp-gk .hsp-gk__specs tr:last-child th, .hsp-gk .hsp-gk__specs tr:last-child td { border-bottom: 0; }
.hsp-gk .hsp-gk__specs tr:nth-child(odd) th, .hsp-gk .hsp-gk__specs tr:nth-child(odd) td { background: var(--hsp-surface); }
.hsp-gk .hsp-gk__specs th { width: 48%; font-weight: 500; color: var(--hsp-text); }
.hsp-gk .hsp-gk__specs td { font-weight: 600; color: var(--hsp-heading); }

/* Zubehör */
.hsp-gk__acc-list { display: grid; gap: 10px; }
.hsp-gk .hsp-gk__acc-label {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	grid-template-areas: "box img text" "box img price";
	align-items: start;
	gap: 4px 14px;
	margin: 0;
	padding: 14px;
	border: 1.5px solid var(--hsp-border);
	border-radius: var(--hsp-radius);
	background: var(--hsp-bg);
	cursor: pointer;
	font-weight: 400;
	transition: border-color .2s, background .2s;
}
.hsp-gk .hsp-gk__acc-label:hover { border-color: var(--hsp-primary); }
.hsp-gk__acc.is-checked .hsp-gk__acc-label { border-color: var(--hsp-primary); background: color-mix(in srgb, var(--hsp-primary) 7%, var(--hsp-bg)); }
.hsp-gk__acc-label > .hsp-gk__box { grid-area: box; margin-top: 2px; }
.hsp-gk__acc-img { grid-area: img; width: 56px; height: 56px; border-radius: calc(var(--hsp-radius) * .75); overflow: hidden; background: var(--hsp-surface); }
.hsp-gk__acc-img img { width: 100%; height: 100%; object-fit: cover; }
.hsp-gk__acc-text { grid-area: text; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hsp-gk__acc-name { font-weight: 600; color: var(--hsp-heading); line-height: 1.35; }
.hsp-gk__acc-no { font-size: 13px; color: var(--hsp-muted); }
.hsp-gk__acc-desc { font-size: 14px; color: var(--hsp-text); line-height: 1.45; }
.hsp-gk__acc-price { grid-area: price; font-weight: 700; color: var(--hsp-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Checkbox */
.hsp-gk .hsp-gk__cb {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	pointer-events: none;
}
.hsp-gk__box {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	border: 2px solid var(--hsp-border);
	border-radius: calc(var(--hsp-radius) * .6);
	background: var(--hsp-bg);
	color: transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.hsp-gk__box .hsp-gk-ico { width: 16px; height: 16px; stroke-width: 3; }
.hsp-gk .hsp-gk__cb:checked + .hsp-gk__box { background: var(--hsp-primary); border-color: var(--hsp-primary); color: var(--hsp-primary-text); }
.hsp-gk .hsp-gk__cb:focus-visible + .hsp-gk__box { box-shadow: var(--hsp-focus); }

/* Preisübersicht */
.hsp-gk__price {
	padding: 20px;
	border-radius: var(--hsp-radius-lg);
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-border);
}
.hsp-gk .hsp-gk__lines th, .hsp-gk .hsp-gk__lines td { padding: 7px 0; line-height: 1.4; border-bottom: 1px dashed var(--hsp-border); }
.hsp-gk .hsp-gk__lines th { font-weight: 400; color: var(--hsp-text); padding-right: 12px; }
.hsp-gk .hsp-gk__lines td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--hsp-heading); font-weight: 600; }
.hsp-gk .hsp-gk__lines td span { white-space: nowrap; }
.hsp-gk .hsp-gk__orig { color: var(--hsp-muted); font-weight: 400; display: block; font-size: 14px; }
.hsp-gk .hsp-gk__lines tr.is-sum th, .hsp-gk .hsp-gk__lines tr.is-sum td { border-top: 2px solid var(--hsp-border); padding-top: 12px; font-weight: 700; color: var(--hsp-heading); }
.hsp-gk .hsp-gk__lines tr.is-vat th, .hsp-gk .hsp-gk__lines tr.is-vat td { font-weight: 400; color: var(--hsp-text); }
.hsp-gk .hsp-gk__lines tr.is-total th, .hsp-gk .hsp-gk__lines tr.is-total td { border-bottom: 0; padding-top: 10px; font-weight: 700; color: var(--hsp-heading); font-size: 19px; }
.hsp-gk .hsp-gk__on-request { font-size: 20px; font-weight: 700; color: var(--hsp-heading); margin: 4px 0 16px; }
.hsp-gk .hsp-gk__note { margin-top: 8px; font-size: 13px; color: var(--hsp-muted); line-height: 1.45; }

/* Aktions-Badge */
.hsp-gk__badge {
	position: relative;
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: var(--hsp-radius);
	background: var(--hsp-promo);
	color: var(--hsp-promo-text);
	overflow: hidden;
}
.hsp-gk__badge-kicker {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hsp-gk__badge-title { display: block; font-size: 17px; line-height: 1.3; }
.hsp-gk .hsp-gk__badge-desc { margin-top: 4px; font-size: 14px; line-height: 1.45; }
.hsp-gk .hsp-gk__badge-meta { margin-top: 4px; font-size: 13px; opacity: .92; line-height: 1.4; }
.hsp-gk__badge-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hsp-gk__badge-price {
	flex: 1 1 120px;
	display: flex;
	flex-direction: column;
	padding: 8px 10px;
	border-radius: calc(var(--hsp-radius) * .75);
	background: rgba(255, 255, 255, .16);
	line-height: 1.25;
}
.hsp-gk__badge-price small { font-size: 12px; opacity: .9; }
.hsp-gk__badge-price strong { font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Buttons */
.hsp-gk .hsp-gk__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 26px;
	border: 0;
	border-radius: var(--hsp-radius);
	background: var(--hsp-primary);
	color: var(--hsp-primary-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: filter .2s, transform .1s;
}
.hsp-gk .hsp-gk__btn:hover { background: var(--hsp-primary); color: var(--hsp-primary-text); filter: brightness(.92); }
.hsp-gk .hsp-gk__btn:active { transform: translateY(1px); }
.hsp-gk .hsp-gk__btn:disabled { opacity: .6; cursor: wait; }
.hsp-gk .hsp-gk__btn.is-loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: hsp-gk-spin .7s linear infinite;
}
@keyframes hsp-gk-spin { to { transform: rotate(360deg); } }
.hsp-gk .hsp-gk__cta { width: 100%; margin-top: 16px; }

/* Downloads */
.hsp-gk__dl-list { display: grid; gap: 8px; }
.hsp-gk .hsp-gk__dl {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-radius);
	color: var(--hsp-heading);
	text-decoration: none;
	background: var(--hsp-bg);
	transition: border-color .2s, background .2s;
}
.hsp-gk .hsp-gk__dl:hover { border-color: var(--hsp-primary); background: var(--hsp-surface); color: var(--hsp-heading); }
.hsp-gk__dl-ico { color: var(--hsp-primary); display: grid; }
.hsp-gk__dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hsp-gk__dl-name { font-weight: 600; line-height: 1.35; }
.hsp-gk__dl-meta { font-size: 13px; color: var(--hsp-muted); }
.hsp-gk__dl-go { color: var(--hsp-muted); display: grid; }

/* ---------------- Anfrageformular ---------------- */
.hsp-gk__form-wrap {
	margin-top: var(--hsp-gap);
	scroll-margin-top: var(--hsp-sticky-top);
	padding: var(--hsp-pad);
	background: var(--hsp-bg);
	border: 1px solid var(--hsp-border);
	border-top: 4px solid var(--hsp-primary);
	border-radius: var(--hsp-radius-lg);
}
.hsp-gk .hsp-gk__form-title { font-size: 20px; }
.hsp-gk .hsp-gk__form-title:focus { outline: none; }
.hsp-gk .hsp-gk__form-intro { margin-bottom: 14px; }
.hsp-gk__summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: var(--hsp-radius);
	background: var(--hsp-surface);
	border-left: 4px solid var(--hsp-primary);
}
.hsp-gk__summary-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hsp-muted); }
.hsp-gk__summary strong { color: var(--hsp-heading); }
.hsp-gk__summary-acc { font-size: 14px; }

.hsp-gk__fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.hsp-gk__field { grid-column: span 6; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hsp-gk .hsp-gk__field > label { margin: 0; font-size: 14px; font-weight: 600; color: var(--hsp-heading); line-height: 1.3; }
.hsp-gk__req { color: var(--hsp-promo); }
.hsp-gk__opt { font-weight: 400; color: var(--hsp-muted); }
.hsp-gk .hsp-gk__field input:not([type="checkbox"]),
.hsp-gk .hsp-gk__field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 11px 13px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--hsp-heading);
	background: var(--hsp-bg);
	border: 1.5px solid var(--hsp-border);
	border-radius: var(--hsp-radius);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.hsp-gk .hsp-gk__field textarea { resize: vertical; min-height: 110px; }
.hsp-gk .hsp-gk__field input:focus, .hsp-gk .hsp-gk__field textarea:focus { outline: none; border-color: var(--hsp-primary); box-shadow: var(--hsp-focus); }
.hsp-gk .hsp-gk__field.has-error input, .hsp-gk .hsp-gk__field.has-error textarea { border-color: var(--hsp-promo); }
.hsp-gk__err { font-size: 13px; color: var(--hsp-promo); min-height: 0; }
.hsp-gk__err:empty { display: none; }

.hsp-gk__field--privacy { margin-top: 16px; }
.hsp-gk .hsp-gk__check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--hsp-text); cursor: pointer; line-height: 1.5; }
.hsp-gk__check .hsp-gk__box { margin-top: 1px; }
.hsp-gk__field--privacy.has-error .hsp-gk__box { border-color: var(--hsp-promo); }
.hsp-gk .hsp-gk__privacy-text { font-weight: 400; }
.hsp-gk__privacy-text a { color: var(--hsp-primary); text-decoration: underline; }

.hsp-gk__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hsp-gk__form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.hsp-gk__req-note { font-size: 13px; color: var(--hsp-muted); }
.hsp-gk__status { margin-top: 12px; font-size: 15px; }
.hsp-gk__status:empty { display: none; }
.hsp-gk__status.is-error { padding: 10px 14px; border-radius: var(--hsp-radius); background: color-mix(in srgb, var(--hsp-promo) 9%, var(--hsp-bg)); color: var(--hsp-promo); font-weight: 600; }

.hsp-gk__success { display: flex; gap: 16px; align-items: flex-start; outline: none; }
.hsp-gk__success-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hsp-primary);
	color: var(--hsp-primary-text);
}
.hsp-gk__success strong { display: block; font-size: 18px; color: var(--hsp-heading); margin-bottom: 4px; }

.hsp-gk__noscript { padding: 12px; background: var(--hsp-surface); border-radius: var(--hsp-radius); }

/* ---------------- Breitenabhängiges Layout ---------------- */
@container hspgk (max-width: 420px) {
	.hsp-gk > * { --hsp-pad: 16px; --hsp-gap: 20px; }
	.hsp-gk .hsp-gk__acc-label { gap: 4px 10px; padding: 12px; }
	.hsp-gk__acc-img { width: 44px; height: 44px; }
	.hsp-gk .hsp-gk__specs tr { display: block; padding: 8px 12px; border-bottom: 1px solid var(--hsp-border); }
	.hsp-gk .hsp-gk__specs tr:last-child { border-bottom: 0; }
	.hsp-gk .hsp-gk__specs tr:nth-child(odd) { background: var(--hsp-surface); }
	.hsp-gk .hsp-gk__specs th, .hsp-gk .hsp-gk__specs td { display: block; width: auto; padding: 0; border: 0; background: none !important; }
	.hsp-gk .hsp-gk__specs th { font-size: 13px; color: var(--hsp-muted); }
	.hsp-gk__price { padding: 16px; }
	.hsp-gk .hsp-gk__form-actions .hsp-gk__btn { width: 100%; }
}

@container hspgk (min-width: 520px) {
	.hsp-gk__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
	.hsp-gk__field--firstname, .hsp-gk__field--lastname, .hsp-gk__field--email, .hsp-gk__field--phone { grid-column: span 3; }
	.hsp-gk__field--zip { grid-column: span 2; }
	.hsp-gk__field--city { grid-column: span 4; }
}

@container hspgk (min-width: 860px) {
	.hsp-gk > * { --hsp-pad: 28px; --hsp-gap: 28px; }
	.hsp-gk__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hsp-gk__layout {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
		grid-template-areas: "gallery price" "desc price" "specs price" "acc price" "dl price";
		column-gap: 32px;
	}
	.hsp-gk__pricebox { grid-row: 1 / span 5; align-self: stretch; margin-bottom: 0; }
	.hsp-gk__price { position: sticky; top: var(--hsp-sticky-top); }
	.hsp-gk__form-wrap .hsp-gk__form { max-width: 760px; }
}

/* Browser ohne Container Queries (sehr alte Versionen): Fallback über Bildschirmbreite */
@supports not (container-type: inline-size) {
	@media (min-width: 600px) {
		.hsp-gk__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		.hsp-gk__field--firstname, .hsp-gk__field--lastname, .hsp-gk__field--email, .hsp-gk__field--phone { grid-column: span 3; }
		.hsp-gk__field--zip { grid-column: span 2; }
		.hsp-gk__field--city { grid-column: span 4; }
	}
	@media (min-width: 1024px) {
		.hsp-gk__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
		.hsp-gk__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 36%); grid-template-areas: "gallery price" "desc price" "specs price" "acc price" "dl price"; column-gap: 32px; }
		.hsp-gk__pricebox { grid-row: 1 / span 5; align-self: stretch; margin-bottom: 0; }
		.hsp-gk__price { position: sticky; top: var(--hsp-sticky-top); }
	}
}

/* ---------------- Lightbox ---------------- */
html.hsp-gk-lock, html.hsp-gk-lock body { overflow: hidden !important; }
.hsp-gk-lb {
	--hsp-primary: #84985B;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 15, 15, .96);
	animation: hsp-gk-fade .2s ease both;
	font-size: 16px;
	-webkit-user-select: none;
	user-select: none;
}
.hsp-gk-lb[hidden] { display: none !important; }
@keyframes hsp-gk-fade { from { opacity: 0; } to { opacity: 1; } }
.hsp-gk-lb *, .hsp-gk-lb *::before, .hsp-gk-lb *::after { box-sizing: border-box; }
.hsp-gk-lb__stage { position: absolute; inset: 56px 64px 56px; display: flex; align-items: center; justify-content: center; }
.hsp-gk-lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.hsp-gk-lb button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s;
}
.hsp-gk-lb button:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hsp-gk-lb button:focus { outline: none; }
.hsp-gk-lb button:focus-visible { box-shadow: 0 0 0 3px var(--hsp-primary); }
.hsp-gk-lb button[hidden] { display: none; }
.hsp-gk-lb .hsp-gk-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hsp-gk-lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.hsp-gk-lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
.hsp-gk-lb__close { top: 8px; right: 10px; }
.hsp-gk-lb__bar {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
	line-height: 1.4;
}
.hsp-gk-lb__caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsp-gk-lb__counter { flex: none; font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
	.hsp-gk-lb__stage { inset: 60px 8px 110px; }
	.hsp-gk-lb__prev, .hsp-gk-lb__next { top: auto; bottom: 46px; transform: none; }
	.hsp-gk-lb__prev { left: calc(50% - 60px); }
	.hsp-gk-lb__next { right: calc(50% - 60px); }
}
