/**
 * Zintl Formular – Branding & Layout (Wandakzent).
 * Farben werden über Inline-CSS-Variablen (.zintl-form[style]) gesetzt.
 */

.zintl-form {
	--zintl-radius: 10px;
	--zintl-radius-sm: 7px;
	--zintl-gap: 18px;
	font-family: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--zintl-text, #313131);
	max-width: 920px;
	margin: 0 auto;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.zintl-form *,
.zintl-form *::before,
.zintl-form *::after {
	box-sizing: border-box;
}

/* ---------- Step indicator ---------- */
.zintl-steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	counter-reset: step;
	flex-wrap: wrap;
}
.zintl-step {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 4px;
	color: var(--zintl-muted, #7a7a7a);
	font-size: 14px;
	border-bottom: 2px solid var(--zintl-line, #e2e0db);
	transition: color .2s, border-color .2s;
}
.zintl-step__num {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	background: var(--zintl-sand, #cfcabe);
	color: #fff;
	transition: background .2s;
}
.zintl-step__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.zintl-step.is-active {
	color: var(--zintl-text, #313131);
	border-bottom-color: var(--zintl-accent, #d8613c);
	font-weight: 600;
}
.zintl-step.is-active .zintl-step__num { background: var(--zintl-accent, #d8613c); }
.zintl-step.is-done { color: var(--zintl-primary, #61787c); border-bottom-color: var(--zintl-primary, #61787c); }
.zintl-step.is-done .zintl-step__num { background: var(--zintl-primary, #61787c); }

/* ---------- Panels ---------- */
.zintl-panel { display: none; animation: zintl-fade .25s ease; }
.zintl-panel.is-active { display: block; }
@keyframes zintl-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.zintl-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.zintl-h2 {
	font-size: clamp( 22px, 3vw, 30px );
	line-height: 1.15;
	margin: 0 0 6px;
	color: var(--zintl-text, #313131);
	font-weight: 700;
	text-align: left;
}
.zintl-lead { margin: 0 0 22px; color: var(--zintl-muted, #7a7a7a); max-width: 60ch; }
.zintl-hint { font-size: 13px; color: var(--zintl-muted, #7a7a7a); margin: 8px 0 0; }
.zintl-optional { color: var(--zintl-muted, #7a7a7a); font-weight: 400; font-size: .85em; }
.zintl-req { color: var(--zintl-accent, #d8613c); }

/* ---------- Fieldset / legend ---------- */
.zintl-fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.zintl-legend { font-weight: 700; font-size: 15px; padding: 0; margin: 0 0 12px; }

/* ---------- Model cards ---------- */
.zintl-cards { display: grid; grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) ); gap: var(--zintl-gap); }
.zintl-card { position: relative; cursor: pointer; display: block; }
.zintl-card input { position: absolute; opacity: 0; pointer-events: none; }
.zintl-card__body {
	display: block;
	height: 100%;
	padding: 20px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius);
	background: #fff;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.zintl-card:hover .zintl-card__body { border-color: var(--zintl-primary, #61787c); }
.zintl-card input:checked + .zintl-card__body {
	border-color: var(--zintl-primary, #61787c);
	box-shadow: 0 0 0 1.5px var(--zintl-primary, #61787c) inset, 0 8px 22px rgba( 97, 120, 124, .14 );
}
.zintl-card input:focus-visible + .zintl-card__body { outline: 2px solid var(--zintl-accent, #d8613c); outline-offset: 2px; }
.zintl-card__title { display: block; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.zintl-card__claim { display: block; color: var(--zintl-primary, #61787c); font-weight: 600; margin: 2px 0 8px; font-size: 14px; }
.zintl-card__desc { display: block; font-size: 14px; color: var(--zintl-muted, #7a7a7a); }

/* ---------- Pills (heights / yes-no) ---------- */
.zintl-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.zintl-pill { position: relative; cursor: pointer; }
.zintl-pill input { position: absolute; opacity: 0; pointer-events: none; }
.zintl-pill span {
	display: inline-block;
	padding: 11px 22px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: 40px;
	background: #fff;
	font-weight: 600;
	font-size: 15px;
	transition: all .16s;
}
.zintl-pill:hover span { border-color: var(--zintl-primary, #61787c); }
.zintl-pill input:checked + span { background: var(--zintl-primary, #61787c); border-color: var(--zintl-primary, #61787c); color: #fff; }
.zintl-pill input:focus-visible + span { outline: 2px solid var(--zintl-accent, #d8613c); outline-offset: 2px; }
.zintl-pills--sm span { padding: 8px 16px; font-size: 14px; }

/* ---------- Walls ---------- */
.zintl-walls { display: grid; gap: var(--zintl-gap); margin: 18px 0 6px; }
.zintl-wall {
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius);
	padding: 18px 18px 0;
	background: #fff;
}
.zintl-wall__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.zintl-wall__index { font-weight: 700; color: var(--zintl-primary, #61787c); }
.zintl-wall__remove {
	border: 0; background: transparent; color: var(--zintl-muted, #7a7a7a);
	font-size: 24px; line-height: 1; cursor: pointer; width: 30px; height: 30px; border-radius: 50%;
	transition: background .15s, color .15s;
}
.zintl-wall__remove:hover { background: #f3eceb; color: var(--zintl-accent, #d8613c); }
.zintl-wall__price {
	display: flex; align-items: center; justify-content: space-between;
	margin: 4px -18px 0; padding: 12px 18px;
	border-top: 1px dashed var(--zintl-line, #e2e0db);
	background: var(--zintl-bg, #f9f9f9);
	border-radius: 0 0 var(--zintl-radius) var(--zintl-radius);
	font-size: 14px;
}
.zintl-wall__price strong { font-size: 17px; color: var(--zintl-text, #313131); }

/* ---------- Add-wall button (unter der Liste, immer sichtbar) ---------- */
.zintl-add-wall-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 16px 0 4px;
	padding: 15px 20px;
	font: inherit;
	font-weight: 700;
	color: var(--zintl-primary, #61787c);
	background: var(--zintl-bg, #f9f9f9);
	border: 1.5px dashed var(--zintl-primary, #61787c);
	border-radius: var(--zintl-radius);
	cursor: pointer;
	transition: background .16s, color .16s, border-color .16s;
}
.zintl-add-wall-bottom:hover { background: var(--zintl-primary, #61787c); color: #fff; }
.zintl-add-wall-bottom__plus {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--zintl-primary, #61787c);
	color: #fff;
	font-size: 17px;
	line-height: 1;
}
.zintl-add-wall-bottom:hover .zintl-add-wall-bottom__plus { background: #fff; color: var(--zintl-primary, #61787c); }

/* ---------- Help box ---------- */
.zintl-help {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--zintl-primary, #61787c); font-weight: 600; font-size: 14px;
	text-decoration: underline; text-underline-offset: 3px;
}
.zintl-help__box {
	margin: 12px 0 0; padding: 16px 18px;
	background: var(--zintl-bg, #f9f9f9);
	border: 1px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius-sm);
}
.zintl-help__box p { margin: 0 0 10px; font-size: 14px; }
.zintl-help__box img { max-width: 100%; height: auto; border-radius: var(--zintl-radius-sm); display: block; }

/* ---------- Fields ---------- */
.zintl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--zintl-gap); }
.zintl-field { display: flex; flex-direction: column; }
.zintl-field--full { grid-column: 1 / -1; }
.zintl-label { font-weight: 600; font-size: 14px; margin-bottom: 7px; }

.zintl-input,
.zintl-select,
.zintl-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius-sm);
	font: inherit;
	color: var(--zintl-text, #313131);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.zintl-textarea { resize: vertical; min-height: 96px; }
.zintl-input:focus,
.zintl-select:focus,
.zintl-textarea:focus {
	outline: 0;
	border-color: var(--zintl-primary, #61787c);
	box-shadow: 0 0 0 3px rgba( 97, 120, 124, .15 );
}
.zintl-select {
	appearance: none;
	background-image: url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2361787c' d='M6 8 0 0h12z'/></svg>" );
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.zintl-input-suffix { position: relative; display: flex; align-items: center; }
.zintl-input-suffix .zintl-input { padding-right: 46px; }
.zintl-suffix { position: absolute; right: 14px; color: var(--zintl-muted, #7a7a7a); font-size: 14px; pointer-events: none; }

/* ---------- Upload ---------- */
.zintl-upload {
	position: relative;
	border: 1.5px dashed var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius-sm);
	padding: 18px;
	text-align: center;
	color: var(--zintl-muted, #7a7a7a);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.zintl-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zintl-upload:hover, .zintl-upload.is-drag { border-color: var(--zintl-primary, #61787c); background: var(--zintl-bg, #f9f9f9); }
.zintl-upload.has-file { border-style: solid; border-color: var(--zintl-primary, #61787c); color: var(--zintl-text, #313131); }
.zintl-upload__hint { font-size: 14px; }
.zintl-upload__name { display: block; font-size: 13px; font-weight: 600; color: var(--zintl-primary, #61787c); margin-top: 4px; }
.zintl-upload.has-file .zintl-upload__hint { display: none; }

/* ---------- Sets ---------- */
.zintl-sets { display: grid; grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) ); gap: var(--zintl-gap); margin-bottom: 24px; }
.zintl-set { position: relative; cursor: pointer; display: block; }
.zintl-set input { position: absolute; opacity: 0; pointer-events: none; }
.zintl-set__body {
	display: block; height: 100%; padding: 18px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius);
	background: #fff; transition: border-color .15s, box-shadow .15s;
}
.zintl-set:hover .zintl-set__body { border-color: var(--zintl-primary, #61787c); }
.zintl-set input:checked + .zintl-set__body {
	border-color: var(--zintl-primary, #61787c);
	box-shadow: 0 0 0 1.5px var(--zintl-primary, #61787c) inset;
}
.zintl-set input:focus-visible + .zintl-set__body { outline: 2px solid var(--zintl-accent, #d8613c); outline-offset: 2px; }
.zintl-set__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.zintl-set__title { font-weight: 700; font-size: 17px; }
.zintl-set__price { font-weight: 700; color: var(--zintl-primary, #61787c); white-space: nowrap; }
.zintl-set__desc { font-size: 14px; color: var(--zintl-muted, #7a7a7a); }

/* ---------- Sonderfarbe Reveal ---------- */
.zintl-color-extra {
	margin-top: 16px;
	padding: 18px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-left: 3px solid var(--zintl-accent, #d8613c);
	border-radius: var(--zintl-radius-sm);
	background: #fff;
	animation: zintl-fade .2s ease;
}
.zintl-color-extra[hidden] { display: none; }
.zintl-colorcard { margin: 14px 0 12px; }
.zintl-infobox {
	background: var(--zintl-bg, #f9f9f9);
	border-radius: var(--zintl-radius-sm);
	padding: 14px 16px;
	font-size: 13.5px;
	color: var(--zintl-muted, #7a7a7a);
}
.zintl-infobox strong { color: var(--zintl-text, #313131); display: block; margin-bottom: 4px; }
.zintl-infobox p { margin: 0 0 8px; }
.zintl-infobox p:last-child { margin-bottom: 0; }
.zintl-infobox__note { font-weight: 600; color: var(--zintl-primary, #61787c); }

/* ---------- Checkbox (privacy) ---------- */
.zintl-checkbox { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 4px; font-size: 14px; cursor: pointer; }
.zintl-checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--zintl-primary, #61787c); flex: 0 0 auto; }
.zintl-checkbox a { color: var(--zintl-primary, #61787c); }

/* ---------- Honeypot ---------- */
.zintl-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Feedback ---------- */
.zintl-feedback {
	margin: 18px 0 0; padding: 13px 16px; border-radius: var(--zintl-radius-sm); font-size: 14px; font-weight: 600;
}
.zintl-feedback.is-error { background: #fbeae5; color: #a23d1f; border: 1px solid #f1c3b3; }
.zintl-feedback.is-ok { background: #e9f1ec; color: #2f6a47; border: 1px solid #bcd9c8; }

/* ---------- Actions / buttons ---------- */
.zintl-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.zintl-btn {
	font: inherit; font-weight: 700; cursor: pointer; border: 0;
	padding: 13px 26px; border-radius: 40px; transition: background .16s, transform .06s, box-shadow .16s;
	line-height: 1.2;
}
.zintl-btn:active { transform: translateY( 1px ); }
.zintl-btn--primary { background: var(--zintl-primary, #61787c); color: #fff; }
.zintl-btn--primary:hover { background: var(--zintl-primary-dark, #4a5d61 ); }
.zintl-btn--accent { background: var(--zintl-accent, #d8613c); color: #fff; box-shadow: 0 6px 18px rgba( 216, 97, 60, .25 ); }
.zintl-btn--accent:hover { background: var(--zintl-accent-dark, #c0502e ); }
.zintl-btn--accent:disabled { opacity: .65; cursor: default; box-shadow: none; }
.zintl-btn--ghost { background: #fff; color: var(--zintl-primary, #61787c); border: 1.5px solid var(--zintl-primary, #61787c); padding: 11px 20px; }
.zintl-btn--ghost:hover { background: var(--zintl-primary, #61787c); color: #fff; }
.zintl-btn--text { background: none; color: var(--zintl-muted, #7a7a7a); padding-left: 4px; padding-right: 4px; }
.zintl-btn--text:hover { color: var(--zintl-text, #313131); }

/* ---------- Summary ---------- */
.zintl-summary {
	margin-top: 26px; padding: 18px 20px;
	background: var(--zintl-bg, #f9f9f9);
	border: 1px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius);
}
.zintl-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.zintl-summary__label { color: var(--zintl-muted, #7a7a7a); font-size: 14px; }
.zintl-summary__config { font-weight: 600; text-align: right; }
.zintl-summary__row--total { border-top: 1px solid var(--zintl-line, #e2e0db); margin-top: 6px; padding-top: 12px; font-size: 16px; }
.zintl-summary__row--total strong { font-size: 22px; color: var(--zintl-primary, #61787c); }
.zintl-summary__note { font-size: 12px; color: var(--zintl-muted, #7a7a7a); margin: 10px 0 0; }
.zintl-summary__note strong { display: block; color: var(--zintl-text, #313131); font-size: 13px; margin-bottom: 2px; }
.zintl-summary__note p { margin: 0; }

/* ---------- Model card image ---------- */
.zintl-card__img { display: block; margin: -20px -20px 14px; overflow: hidden; border-radius: var(--zintl-radius) var(--zintl-radius) 0 0; background: var(--zintl-bg, #f9f9f9); }
.zintl-card__img img { width: 100%; height: 160px; object-fit: cover; display: block; }

/* ---------- Height cards (optional image) ---------- */
.zintl-hcards { display: flex; gap: 14px; flex-wrap: wrap; }
.zintl-hcard { position: relative; cursor: pointer; }
.zintl-hcard input { position: absolute; opacity: 0; pointer-events: none; }
.zintl-hcard__body {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	border: 1.5px solid var(--zintl-line, #e2e0db);
	border-radius: var(--zintl-radius);
	background: #fff;
	transition: border-color .16s, box-shadow .16s;
	overflow: hidden;
}
.zintl-hcards.no-img .zintl-hcard__body { padding: 13px 26px; min-width: 110px; }
.zintl-hcards.has-img .zintl-hcard__body { padding: 0 0 11px; width: 170px; }
.zintl-hcard__img { display: block; width: 100%; background: var(--zintl-bg, #f9f9f9); }
.zintl-hcard__img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.zintl-hcard__label { font-weight: 700; font-size: 15px; }
.zintl-hcard:hover .zintl-hcard__body { border-color: var(--zintl-primary, #61787c); }
.zintl-hcard input:checked + .zintl-hcard__body {
	border-color: var(--zintl-primary, #61787c);
	box-shadow: 0 0 0 1.5px var(--zintl-primary, #61787c) inset, 0 8px 20px rgba( 97, 120, 124, .14 );
}
.zintl-hcard input:focus-visible + .zintl-hcard__body { outline: 2px solid var(--zintl-accent, #d8613c); outline-offset: 2px; }

/* ---------- Tooltip ---------- */
.zintl-tip {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--zintl-primary, #61787c); color: #fff;
	font-size: 11px; font-style: italic; font-weight: 700;
	margin-left: 5px; cursor: help; position: relative; vertical-align: middle;
}
.zintl-tip__bubble {
	position: absolute; bottom: 150%; left: 50%; transform: translateX( -50% );
	width: 240px; max-width: 70vw;
	background: var(--zintl-text, #313131); color: #fff;
	font-size: 12px; font-weight: 400; font-style: normal; line-height: 1.45;
	padding: 10px 12px; border-radius: 8px;
	opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 20;
	text-align: left; pointer-events: none;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, .18 );
}
.zintl-tip:hover .zintl-tip__bubble,
.zintl-tip:focus .zintl-tip__bubble { opacity: 1; visibility: visible; }
.zintl-tip__bubble::after {
	content: ''; position: absolute; top: 100%; left: 50%; transform: translateX( -50% );
	border: 6px solid transparent; border-top-color: var(--zintl-text, #313131);
}

/* ---------- Room sketch ---------- */
.zintl-roomsketch { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--zintl-line, #e2e0db); }

/* ---------- Responsive ---------- */
@media ( max-width: 600px ) {
	.zintl-grid { grid-template-columns: 1fr; }
	.zintl-step__label { display: none; }
	.zintl-step { flex: 0 0 auto; justify-content: center; }
	.zintl-panel__head { flex-direction: column; }
	.zintl-panel__head [data-add-wall] { width: 100%; }
	.zintl-actions { flex-direction: column-reverse; }
	.zintl-actions .zintl-btn { width: 100%; }
}
