/*
 * LAGO Suche - Oberflaeche (SHOP-SEARCH-01, Bauteil B2)
 *
 * Bewusst zurueckhaltend: die Suche soll wie ein Teil des Shops wirken,
 * nicht wie ein Fremdkoerper. Farben und Radien orientieren sich an den
 * vorhandenen Elementen des Themes.
 */

/* ---------- Typeahead ---------- */

.lago-typeahead {
	position: absolute;
	z-index: 999;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, .12 );
}

.lago-ta-treffer,
.lago-ta-mehr {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f0;
	color: inherit;
	text-decoration: none;
}

.lago-ta-treffer:hover,
.lago-ta-treffer:focus {
	background: #f6f8fa;
}

.lago-ta-bild {
	flex: 0 0 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lago-ta-bild img {
	max-width: 48px;
	max-height: 48px;
	width: auto;
	height: auto;
}

.lago-ta-ohne-bild {
	background: #f2f2f2;
	border-radius: 3px;
}

.lago-ta-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lago-ta-name {
	font-weight: 600;
	line-height: 1.25;
}

.lago-ta-kerndaten,
.lago-ta-sku {
	font-size: 12px;
	color: #6a6a6a;
}

.lago-ta-rechts {
	flex: 0 0 auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lago-ta-preis {
	font-weight: 600;
	white-space: nowrap;
}

.lago-ta-netto,
.lago-ta-verfuegbar {
	font-size: 11px;
	color: #6a6a6a;
}

.lago-ta-nicht-lieferbar .lago-ta-verfuegbar {
	color: #b3261e;
}

.lago-ta-mehr {
	justify-content: center;
	font-weight: 600;
	border-bottom: 0;
}

.lago-ta-leer {
	padding: 14px 12px;
	color: #6a6a6a;
}

/* ---------- Ergebnisseite ---------- */

.lago-suche-seite,
.lago-katalog {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.lago-suche-kopf h1,
.lago-katalog-kopf h1 {
	margin: 0 0 4px;
	font-size: 26px;
}

.lago-suche-zahl,
.lago-katalog-zahl {
	margin: 0 0 20px;
	color: #6a6a6a;
}

.lago-suche-raster,
.lago-katalog-raster {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 28px;
	align-items: start;
}

.lago-filter-block {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.lago-filter-block h2 {
	margin: 0 0 8px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #444;
}

.lago-filter-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lago-filter-liste li {
	margin: 0 0 2px;
}

.lago-filter-liste a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 8px;
	border-radius: 3px;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
}

.lago-filter-liste a:hover {
	background: #f4f6f8;
}

.lago-filter-aktiv {
	background: #eef3f8;
	font-weight: 600;
}

.lago-filter-anzahl {
	color: #8a8a8a;
	font-size: 12px;
}

.lago-filter-spanne,
.lago-filter-hinweis {
	margin: 0 0 8px;
	font-size: 13px;
	color: #6a6a6a;
}

.lago-filter-zuruecksetzen {
	font-size: 13px;
	color: #b3261e;
}

.lago-suche-sortierung {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
	color: #6a6a6a;
}

.lago-sort {
	color: inherit;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid #dcdcdc;
	border-radius: 3px;
}

.lago-sort-aktiv {
	border-color: #2b6cb0;
	color: #2b6cb0;
	font-weight: 600;
}

.lago-suche-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lago-treffer {
	border-bottom: 1px solid #ececec;
}

.lago-treffer-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 4px;
	color: inherit;
	text-decoration: none;
}

.lago-treffer-link:hover {
	background: #fafbfc;
}

.lago-treffer-bild {
	flex: 0 0 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lago-treffer-bild img {
	max-width: 90px;
	max-height: 90px;
	width: auto;
	height: auto;
}

.lago-treffer-ohne-bild {
	background: #f2f2f2;
	border-radius: 3px;
}

.lago-treffer-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lago-treffer-name {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
}

.lago-treffer-kerndaten {
	font-size: 13px;
	color: #444;
}

.lago-treffer-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #8a8a8a;
}

.lago-treffer-rechts {
	flex: 0 0 auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lago-treffer-preis {
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.lago-treffer-preishinweis,
.lago-treffer-verfuegbar {
	font-size: 12px;
	color: #6a6a6a;
}

.lago-treffer-nicht-lieferbar .lago-treffer-verfuegbar {
	color: #b3261e;
}

.lago-suche-leer,
.lago-katalog-leer {
	padding: 28px 0;
	color: #6a6a6a;
}

.lago-suche-blaettern {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
}

.lago-suche-blaettern a {
	padding: 6px 12px;
	border: 1px solid #dcdcdc;
	border-radius: 3px;
	color: inherit;
	text-decoration: none;
}

.lago-blaettern-aktiv {
	border-color: #2b6cb0;
	color: #2b6cb0;
	font-weight: 600;
}

/* ---------- Responsive ---------- */

@media ( max-width: 900px ) {
	.lago-suche-raster,
.lago-katalog-raster {
		grid-template-columns: 1fr;
	}

	.lago-suche-filter {
		order: 2;
		border-top: 1px solid #ececec;
		padding-top: 18px;
	}

	.lago-suche-ergebnisse {
		order: 1;
	}
}

@media ( max-width: 600px ) {
	.lago-treffer-link {
		flex-wrap: wrap;
		gap: 10px;
	}

	.lago-treffer-bild {
		flex: 0 0 60px;
		height: 60px;
	}

	.lago-treffer-bild img {
		max-width: 60px;
		max-height: 60px;
	}

	.lago-treffer-rechts {
		flex: 1 1 100%;
		flex-direction: row;
		align-items: baseline;
		gap: 10px;
		text-align: left;
	}

	.lago-treffer-name {
		font-size: 15px;
	}

	.lago-ta-bild {
		flex: 0 0 40px;
		height: 40px;
	}

	.lago-ta-bild img {
		max-width: 40px;
		max-height: 40px;
	}

	.lago-typeahead {
		max-height: 60vh;
	}
}

/* ---------- Facettennavigation ---------- */

.lago-filterform {
	margin: 0;
}

fieldset.lago-filter-block {
	border: 0;
	border-bottom: 1px solid #ececec;
	margin: 0 0 18px;
	padding: 0 0 14px;
}

fieldset.lago-filter-block legend {
	padding: 0;
	margin: 0 0 8px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #444;
}

.lago-filter-zeile {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px;
	border-radius: 3px;
	font-size: 14px;
	cursor: pointer;
}

.lago-filter-zeile:hover {
	background: #f4f6f8;
}

.lago-filter-zeile input {
	flex: 0 0 auto;
	margin: 0;
}

.lago-filter-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lago-filter-preis {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.lago-filter-preis label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
}

.lago-filter-preis input {
	width: 90px;
	padding: 5px 7px;
	border: 1px solid #dcdcdc;
	border-radius: 3px;
	font-size: 14px;
}

.lago-filter-preishinweis {
	flex: 1 1 100%;
	font-size: 12px;
	color: #8a8a8a;
}

.lago-filter-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.lago-filter-knopf {
	padding: 8px 16px;
	border: 1px solid #2b6cb0;
	border-radius: 3px;
	background: #2b6cb0;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.lago-filter-knopf:hover {
	background: #24578f;
	border-color: #24578f;
}

/* Rueckweg in den Hub, wenn der Gruppenblock entfaellt. */
.lago-filter-hub {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ececec;
	font-size: 14px;
}

.lago-filter-hub a {
	color: #2b6cb0;
	text-decoration: none;
}
