.rp-suit-widget {
	--green-600:#38B44A; --green-700:#2e8f3a; --green-100:#e8f3e5;
	--amber-600:#c9821f; --amber-100:#fbf1e0;
	--red-600:#c94a3f; --red-100:#fbe9e7;
	--ink:#1f2937; --ink-soft:#6b7280; --ink-faint:#9ca3af;
	--line:#ebebeb; --paper:#ffffff;
	width: 100%;
	font-family: Ubuntu, sans-serif;
	color: var(--ink);
}

/* Card — simple flat style matching the Figma design */
.rp-suit-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 32px;
}

/* Step tracker — one continuous line, green fill grows with progress */
.rp-suit-tracker {
	margin-bottom: 44px;
}

.rp-suit-tracker-labels {
	position: relative;
	height: 20px;
	margin-bottom: 14px;
}

.rp-suit-step-label {
	position: absolute;
	top: 0;
	font-size: 14px;
	color: var(--ink-faint);
	white-space: nowrap;
	transition: color 0.25s ease;
}

.rp-suit-label-1 { left: 0; }
.rp-suit-label-2 { left: 50%; transform: translateX(-50%); }
.rp-suit-label-3 { left: 100%; transform: translateX(-100%); }

.rp-suit-step-label.active,
.rp-suit-step-label.done {
	color: var(--ink);
}

.rp-suit-track-wrap {
	position: relative;
	height: 16px;
}

.rp-suit-track-bg,
.rp-suit-track-fill {
	position: absolute;
	top: 50%;
	left: 0;
	height: 2px;
	transform: translateY(-50%);
}

.rp-suit-track-bg {
	width: 100%;
	background: var(--line);
}

.rp-suit-track-fill {
	width: 0%;
	background: var(--green-600);
	transition: width 0.3s ease;
}

.rp-suit-dot {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
	transform: translate(0, -50%);
	transition: all 0.25s ease;
}

.rp-suit-dot-1 { left: 0; }
.rp-suit-dot-2 { left: 50%; transform: translate(-50%, -50%); }
.rp-suit-dot-3 { left: 100%; transform: translate(-100%, -50%); }

.rp-suit-dot.done {
	background: var(--green-600);
}

.rp-suit-dot.active {
	width: 16px;
	height: 16px;
	background: var(--green-600);
	box-shadow: 0 0 0 4px var(--green-100);
}

.rp-suit-dot-2.active { transform: translate(-50%, -50%); }
.rp-suit-dot-3.active { transform: translate(-100%, -50%); }

/* Panels */
.rp-suit-panel {
	display: none;
}

.rp-suit-panel.active {
	display: block;
}

.rp-suit-step3-title {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 4px;
}

.rp-suit-step3-sub {
	font-size: 13.5px;
	color: var(--ink-soft);
	margin: 0 0 22px;
}

.rp-suit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 28px;
}

.rp-suit-full {
	grid-column: 1 / -1;
}

.rp-suit-item {
	display: none !important;
}

.rp-suit-item.revealed {
	display: flex !important;
	flex-direction: column;
	animation: rpSuitFadeIn 0.35s ease;
}

.rp-suit-full.rp-suit-item.revealed {
	display: block !important;
}

@keyframes rpSuitFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.rp-suit-field label {
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 8px;
	display: block;
}

.rp-suit-field select,
.rp-suit-field input,
.rp-suit-field textarea {
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 0 14px;
	font-size: 15px;
	color: var(--ink);
	background: #fff;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
}

.rp-suit-field textarea {
	height: 80px;
	padding: 12px 14px;
	resize: vertical;
}

.rp-suit-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%235b6270' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
	cursor: pointer;
}

.rp-suit-field select:focus,
.rp-suit-field input:focus,
.rp-suit-field textarea:focus {
	outline: none;
	border-color: var(--green-600);
	box-shadow: 0 0 0 3px var(--green-100);
}

/* Toggle buttons (Denkmalschutz / Bauweise / Nutzungsstatus / Aufstockung) */
.rp-suit-toggle-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.rp-suit-toggle-row-narrow {
	max-width: 260px;
}

.rp-suit-toggle-btn {
	flex: 1;
	min-width: 120px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #fff;
	font-size: 14px;
	color: var(--ink-soft);
	cursor: pointer;
	font-family: inherit;
	transition: all 0.15s;
	padding: 0 10px;
}

.rp-suit-toggle-btn.selected {
	border-color: var(--green-600);
	background: var(--green-100);
	color: var(--green-700);
	font-weight: 500;
}

/* Kubatur cards (Gebäudekubatur) */
.rp-suit-kubatur-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.rp-suit-kubatur-card {
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 16px 12px 14px;
	text-align: center;
	cursor: pointer;
	background: #fff;
	transition: all 0.15s;
}

.rp-suit-kubatur-card:hover {
	border-color: #c3cad6;
}

.rp-suit-kubatur-card.selected {
	border-color: var(--green-600);
	background: var(--green-100);
}

.rp-suit-kubatur-card svg {
	margin-bottom: 10px;
}

.rp-suit-k-title {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 3px;
}

.rp-suit-k-sub {
	font-size: 11.5px;
	color: var(--ink-faint);
	line-height: 1.4;
}

/* Privacy row */
.rp-suit-privacy-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 6px;
}

.rp-suit-privacy-row input[type="checkbox"] {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	accent-color: var(--green-600);
}

.rp-suit-privacy-row label {
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.55;
}

.rp-suit-privacy-row a {
	color: var(--green-700);
	text-decoration: underline;
}

/* Nav buttons */
.rp-suit-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	gap: 14px;
}

.rp-suit-btn {
	height: 52px;
	border: none;
	border-radius: 9px;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}

.rp-suit-btn-primary {
	background: var(--green-600);
	color: #fff;
	flex: 1;
}

.rp-suit-btn-primary:hover:not(:disabled) {
	background: var(--green-700);
}

.rp-suit-btn-primary:disabled {
	background: #c7ccd6;
	cursor: not-allowed;
}

.rp-suit-btn-ghost {
	background: transparent;
	color: var(--ink-soft);
	border: 1px solid var(--line);
	padding: 0 22px;
}

.rp-suit-btn-ghost:hover {
	background: #f5f6f8;
}

/* Result panel */
.rp-suit-confirm-wrap {
	text-align: center;
	padding: 8px 0 4px;
	margin-bottom: 22px;
}

.rp-suit-confirm-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--green-100);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.rp-suit-confirm-sub {
	font-size: 13.5px;
	color: var(--ink-soft);
}

.rp-suit-result-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
}

.rp-suit-result-badge.badge-A { background: var(--green-100); color: var(--green-700); }
.rp-suit-result-badge.badge-B { background: var(--amber-100); color: var(--amber-600); }
.rp-suit-result-badge.badge-C { background: var(--red-100); color: var(--red-600); }

.rp-suit-dot-badge {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.dot-A { background: var(--green-600); }
.dot-B { background: var(--amber-600); }
.dot-C { background: var(--red-600); }

.rp-suit-result-headline {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 14px;
	color: var(--ink);
}

.rp-suit-result-body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 26px;
}

.rp-suit-factor-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
	padding: 18px 20px;
	background: #f8f9fb;
	border-radius: 12px;
}

.rp-suit-factor-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	color: var(--ink-soft);
}

.rp-suit-factor-row span:last-child {
	font-weight: 500;
	color: var(--ink);
	text-align: right;
}

.rp-suit-result-cta {
	width: 100%;
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.rp-suit-loading {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 640px) {
	.rp-suit-card {
		padding: 26px 20px 30px;
	}
	.rp-suit-grid,
	.rp-suit-kubatur-grid {
		grid-template-columns: 1fr;
	}
	.rp-suit-step-node {
		width: auto;
	}
	.rp-suit-step-label {
		font-size: 11px;
	}
}
