/* Product Finder – Wizard */

.product-finder {
	--pf-bg: #f5f5f5;
	--pf-card: #fff;
	--pf-border: #e0e0e0;
	--pf-text: #333;
	--pf-primary: #000;
	--pf-radius: 12px;
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem;
	background: var(--pf-bg);
	border-radius: var(--pf-radius);
	font-family: inherit;
}

/* Layout: main content + sidebar (step 2 and results) */
.pf-wizard-layout {
	display: flex;
	gap: 0;
	min-height: 0;
}

.pf-wizard-main {
	flex: 1;
	min-width: 0;
}

.pf-sidebar {
	flex-shrink: 0;
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
	border-left: none;
}

.pf-sidebar.pf-sidebar-visible {
	width: 200px;
	opacity: 1;
	padding-left: 1.25rem;
	margin-left: 1.25rem;
	border-left: 1px solid var(--pf-border);
}

.pf-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pf-summary-item {
	font-size: 0.9rem;
}

.pf-summary-title {
	display: block;
	font-weight: 600;
	color: var(--pf-text);
	margin-bottom: 0.2rem;
}

.pf-summary-value {
	display: block;
	color: var(--pf-text);
	font-weight: 500;
}

/* Inactive: items after the current step – no pf-summary-active */
.pf-summary-item:not(.pf-summary-active) .pf-summary-value {
	display: none;
}

.pf-summary-item:not(.pf-summary-active) .pf-summary-title {
	color: #999;
	font-weight: 500;
}

.pf-summary-item.pf-summary-muted .pf-summary-title {
	color: #999;
	font-weight: 500;
}

.pf-step {
	display: block;
}

.pf-step[hidden] {
	display: none !important;
}

.pf-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--pf-text);
}

.pf-description {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	color: var(--pf-text);
	line-height: 1.5;
}

/* Radio options as cards */
.pf-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.pf-option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	margin: 0;
}

.pf-option input {
	margin-top: 0.35rem;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--pf-primary);
	flex-shrink: 0;
}

.pf-option-card {
	display: block;
	padding: 1rem 1.25rem;
	background: var(--pf-card);
	border: 2px solid var(--pf-border);
	border-radius: var(--pf-radius);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-option input:checked + .pf-option-card {
	border-color: var(--pf-primary);
	box-shadow: 0 0 0 1px var(--pf-primary);
}

.pf-option:hover .pf-option-card {
	border-color: #999;
}

.pf-option-title {
	display: block;
	font-weight: 600;
	color: var(--pf-text);
	margin-bottom: 0.35rem;
}

.pf-option-desc {
	display: block;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.45;
}

/* Step 5: Maximale Höhe – select dropdown */
.pf-select-wrap {
	margin-bottom: 2rem;
}

.pf-select {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--pf-text);
	background: var(--pf-card);
	border: 2px solid var(--pf-border);
	border-radius: var(--pf-radius);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
	transition: border-color 0.2s;
}

.pf-select:hover {
	border-color: #999;
}

.pf-select:focus {
	outline: none;
	border-color: var(--pf-primary);
}

/* Navigation */
.pf-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--pf-border);
}

.pf-btn {
	padding: 0.6rem 1.25rem;
	font-size: 1rem;
	font-family: inherit;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
}

.pf-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.pf-btn[aria-hidden="true"] {
	visibility: hidden;
	pointer-events: none;
}

.pf-btn-back {
	background: var(--pf-card);
	border: 1px solid var(--pf-primary);
	color: var(--pf-primary);
}

.pf-btn-back:hover:not(:disabled) {
	background: #eee;
}

.pf-btn-next {
	background: var(--pf-primary);
	border: none;
	color: #fff;
	margin-left: auto;
}

.pf-btn-next:hover {
	opacity: 0.9;
}

/* Results */
.pf-results-content {
	min-height: 120px;
}

.pf-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid var(--pf-border);
	border-top-color: var(--pf-primary);
	border-radius: 50%;
	animation: pf-spin 0.8s linear infinite;
}

@keyframes pf-spin {
	to { transform: rotate(360deg); }
}

.pf-results-list {
	display: grid;
	gap: 1rem;
	margin-bottom: 0;
}

/* ≤4 results: 2 columns; >4 results: 5 columns */
.pf-results-grid-large {
	grid-template-columns: repeat(2, 1fr);
}

.pf-results-grid-small {
	grid-template-columns: repeat(5, 1fr);
}

/* Result option: card with radio (label wraps card) */
.pf-result-option {
	display: block;
	cursor: pointer;
	margin: 0;
}

.pf-result-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pf-result-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 1.25rem 1rem 1rem;
	background: var(--pf-card);
	border: 2px solid var(--pf-border);
	border-radius: var(--pf-radius);
	transition: border-color 0.2s, box-shadow 0.2s;
	text-align: center;
}

.pf-result-option input:focus-visible + .pf-result-card {
	outline: 2px solid var(--pf-primary);
	outline-offset: 2px;
}

.pf-result-option input:checked + .pf-result-card {
	border-color: var(--pf-primary);
	box-shadow: 0 0 0 1px var(--pf-primary);
}

.pf-result-option:hover .pf-result-card {
	border-color: #999;
}

.pf-result-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	margin-bottom: 0.75rem;
}

.pf-result-option .pf-result-icon {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.pf-results-grid-small .pf-result-card-media {
	min-height: 60px;
}

.pf-results-grid-small .pf-result-option .pf-result-icon {
	width: 48px;
	height: 48px;
}

.pf-result-name {
	display: block;
	font-weight: 600;
	color: var(--pf-text);
	margin-bottom: 0.35rem;
	font-size: 1rem;
}

.pf-result-desc {
	display: block;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.4;
	margin-bottom: 0.75rem;
	flex: 1;
}

.pf-results-grid-small .pf-result-desc {
	display: none;
}

.pf-result-radio {
	display: inline-block;
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid var(--pf-border);
	border-radius: 50%;
	background: var(--pf-card);
	flex-shrink: 0;
}

.pf-result-option input:checked + .pf-result-card .pf-result-radio {
	border-color: var(--pf-primary);
	background: var(--pf-primary);
	box-shadow: inset 0 0 0 2px var(--pf-card);
}

.pf-no-results,
.pf-error {
	margin: 0;
	color: #666;
}

.pf-step-placeholder {
	padding: 1rem 0;
	color: #666;
}

/* Step 2: Aufstellort – checkboxes (Indoor / Outdoor) */
.pf-step-heading {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--pf-text);
}

.pf-question {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	color: var(--pf-text);
	line-height: 1.5;
}

.pf-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.pf-checkbox-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	margin: 0;
}

.pf-checkbox-option input {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--pf-primary);
	flex-shrink: 0;
}

.pf-checkbox-card {
	display: flex;
	align-items: center;
	flex: 1;
	padding: 1rem 1.25rem;
	background: var(--pf-card);
	border: 2px solid var(--pf-border);
	border-radius: var(--pf-radius);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-checkbox-option input:checked + .pf-checkbox-card {
	border-color: var(--pf-primary);
	box-shadow: 0 0 0 1px var(--pf-primary);
}

.pf-checkbox-option:hover .pf-checkbox-card {
	border-color: #999;
}

.pf-checkbox-label {
	font-weight: 600;
	color: var(--pf-text);
	font-size: 1rem;
}

/* Step 3: Einsatzgebiet – two-column grid */
.pf-checkboxes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 520px) {
	.pf-checkboxes-grid {
		grid-template-columns: 1fr;
	}
}
