/* Suchformular und Trefferhinweis (bpp-verzeichnis 0.9.2). Felder, Karten und Fokus wie im Konto (Tokens des Themes). */
.bpp-suche {
	--bpp-s-rand: var(--bpp-ink, #323a41);
	--bpp-s-linie: var(--bpp-hair, #e6e0d8);
	--bpp-s-flaeche: var(--bpp-surface, #fff);
	--bpp-s-text: var(--bpp-ink, #323a41);
	--bpp-s-abstand: var(--bpp-sp-md, 12px);
	display: grid;
	gap: var(--bpp-s-abstand);
	margin: 0;
	color: var(--bpp-s-text);
}

.bpp-suche fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.bpp-suche__haupt {
	display: grid;
	gap: var(--bpp-s-abstand);
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.bpp-suche--kompakt {
	grid-template-columns: 1fr;
}

.bpp-suche p {
	margin: 0;
}

.bpp-suche__feld {
	display: flex;
	flex-direction: column;
	gap: var(--bpp-sp-xs, 4px);
}

.bpp-suche label,
.bpp-suche legend,
.bpp-sortierwahl label {
	font-weight: 600;
	color: var(--bpp-ink, #323a41);
	font-size: var(--bpp-fs-body-sm, 1rem);
}

.bpp-suche input[type="text"],
.bpp-suche input[type="search"],
.bpp-suche input[type="number"],
.bpp-suche select,
.bpp-sortierwahl select {
	width: 100%;
	min-height: var(--bpp-touch, 3rem);
	padding: var(--bpp-sp-md, 12px) var(--bpp-sp-lg, 16px);
	border: var(--bpp-line, 1px) solid var(--bpp-s-rand);
	border-radius: var(--bpp-r-sm, 6px);
	background: var(--bpp-s-flaeche);
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.bpp-suche input:focus-visible,
.bpp-suche select:focus-visible,
.bpp-suche summary:focus-visible,
.bpp-suche button:focus-visible,
.bpp-sortierwahl select:focus-visible,
.bpp-sortierwahl button:focus-visible {
	outline: var(--bpp-fokus, 3px) solid var(--bpp-ink-strong, #1a1d21);
	outline-offset: var(--bpp-fokus-abstand, 2px);
}

.bpp-suche__filter {
	border: var(--bpp-line, 1px) solid var(--bpp-s-linie);
	border-radius: var(--bpp-r-md, 12px);
	padding: var(--bpp-sp-sm, 8px) var(--bpp-sp-lg, 16px);
	background: var(--bpp-s-flaeche);
}

.bpp-suche__filter summary {
	cursor: pointer;
	font-weight: 600;
	min-height: 2.75rem;
	display: list-item;
	padding-block: var(--bpp-sp-sm, 8px);
}

.bpp-suche__filterinhalt {
	display: grid;
	gap: var(--bpp-s-abstand);
	padding-top: var(--bpp-s-abstand);
}

.bpp-suche__gruppe legend {
	margin-bottom: var(--bpp-sp-xs, 4px);
}

.bpp-suche__optionen {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bpp-sp-xs, 4px) var(--bpp-sp-lg, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bpp-suche__optionen li {
	display: flex;
	align-items: center;
	gap: var(--bpp-sp-md, 12px);
	min-height: 2.75rem;
}

.bpp-suche__optionen label {
	font-weight: 400;
}

.bpp-suche__optionen input[type="checkbox"] {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	accent-color: var(--bpp-ink-strong, #1a1d21);
}

.bpp-suche__zeile {
	display: grid;
	gap: var(--bpp-s-abstand);
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.bpp-suche__absenden .bpp-btn {
	width: 100%;
}

@media (min-width: 48rem) {
	.bpp-suche--kompakt {
		grid-template-columns: 1fr auto;
		align-items: end;
	}

	.bpp-suche__absenden .bpp-btn {
		width: auto;
	}
}

.bpp-kapsel:has(.bpp-suche--voll) {
	max-width: none;
}

.bpp-trefferinfo {
	display: grid;
	gap: var(--bpp-sp-xs, 4px);
	font-size: var(--bpp-fs-body-sm, 1rem);
	color: var(--bpp-body, inherit);
}

.bpp-trefferinfo p {
	margin: 0;
}

.bpp-trefferinfo__hinweis {
	color: var(--bpp-ink, inherit);
	font-weight: 600;
}

.bpp-sortierwahl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpp-sp-sm, 8px);
	margin-top: var(--bpp-sp-xs, 4px);
}

.bpp-sortierwahl select {
	width: auto;
	min-width: 12rem;
}

.bpp-karte__entfernung {
	white-space: nowrap;
}
