/*
 * Startseite.
 *
 * Seit dem 3.10.2026 mit den Maßen aus `Startseite.dc.html`, Abschnitt für
 * Abschnitt. Die Zahlen stehen deshalb ausgeschrieben und nicht über die
 * Tokens: der Entwurf setzt sie inline (112px Abstand, 460px Kachelhöhe,
 * 13/14/15px Kartenpolster …), und ein Token, der zufällig denselben Wert
 * hat, würde beim nächsten Ändern des Tokens still mitwandern.
 *
 * Bühne, Abschnittsköpfe, Kontakt, FAQ und Ratgeber stehen seit dem
 * 3.10.2026 in sections.css — der Shop zeigt sie genauso.
 *
 * Alles unter eigenen Namen (`pl-brand`, `pl-band`, `pl-stock*` …):
 * `pl-faq` gehört der CAD-Seite, und deren Entwurf hat andere Maße.
 */

/* Vertrauensleiste ----------------------------------------------------- */

.pl-trust {
	background: #fafafb;
}

.pl-trust__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.pl-trust__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: #5f5f69;
}

.pl-trust__dot {
	flex: none;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: #0a4bf5;
}

/* Einstieg nach Hersteller --------------------------------------------- */

.pl-brands {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.pl-brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	min-height: 460px;
	padding: 32px 36px;
	overflow: hidden;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
	background-color: var(--pl-surface-inverse);
	background-size: cover;
	background-position: center;
	text-decoration: none;
	transition: border-color 160ms var(--pl-ease-out), box-shadow 160ms var(--pl-ease-out);
}

.pl-brand:hover {
	border-color: #d1d1d8;
	box-shadow: var(--pl-shadow-card-hover);
}

.pl-brand__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 15, 18, 0.3) 0%, rgba(15, 15, 18, 0.38) 55%, rgba(15, 15, 18, 0.62) 100%);
}

.pl-brand__device {
	position: absolute;
	top: 20px;
	right: 4%;
	bottom: 150px;
	left: 4%;
	z-index: 2;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	filter: drop-shadow(0 14px 30px rgba(15, 15, 18, 0.4));
	pointer-events: none;
}

.pl-brand__title {
	position: relative;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
}

.pl-brand__count {
	position: relative;
	font-family: var(--pl-font-mono);
	font-size: 15px;
	color: rgba(255, 255, 255, 0.78);
}

.pl-brand__more {
	position: relative;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Konfigurator-Band ------------------------------------------------------ */

.pl-band {
	position: relative;
	overflow: hidden;
	padding: 52px 56px;
	border-radius: 16px;
	background: #0f0f12;
}

.pl-band__eyebrow {
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5a8bff;
}

.pl .pl-band__title {
	max-width: 640px;
	margin: 0;
	font-family: inherit;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
	color: #fff;
	text-wrap: pretty;
}

.pl-band__lead {
	max-width: 600px;
	margin: 14px 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.64);
}

.pl-band__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

/* Der Knopf im Band hat im Entwurf keinen Hover-Zustand (der in der Bühne
   schon). */
.pl-band .pl-btn--light:hover {
	background: #fff;
}

.pl-band__chip {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 4px;
	font-family: var(--pl-font-mono);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
}

/* Ab Lager verfügbar ---------------------------------------------------- */

.pl-stockfilter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

/*
 * Die Auswahlfelder behalten ihr natives Aussehen samt Pfeil — wie im
 * Entwurf, der ein gewöhnliches <select> mit Rahmen setzt. Zwei Klassen
 * tief, weil das Eltern-Theme `select` selbst stylt (Höhe, Polster, Rahmen).
 */
.pl .pl-stockfilter__select {
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #d1d1d8;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	line-height: normal;
	color: #0f0f12;
	cursor: pointer;
}

/* Ohne Javascript braucht es einen Knopf; mit lädt `home.js` beim Ändern. */
.js .pl-stockfilter__apply {
	display: none;
}

/* `button.` davor: ohne Javascript gälte sonst `button[type=submit]` des
   Eltern-Themes (Inter 12px, Versalien, weiss auf #313131). */
.pl button.pl-stockfilter__apply {
	height: 40px;
	padding: 0 14px;
	border: 1px solid #d1d1d8;
	border-radius: 6px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: #0f0f12;
}

.pl a.pl-stockfilter__reset {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #0a4bf5;
}

.pl a.pl-stockfilter__reset:hover {
	background: #eef3ff;
	color: #0a4bf5;
}

.pl-stocklist {
	transition: opacity var(--pl-dur-med) var(--pl-ease-out);
}

.pl-stocklist.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* Zeilenhöhe ausdrücklich: ohne sie greift `p { line-height: 1.6 }` des
   Eltern-Themes, der Entwurf setzt hier ein div mit den 1.5 des Body. */
.pl-stocklist__empty {
	margin: 0;
	padding: 28px 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #5f5f69;
}

/* Im Entwurf tragen die Textlinks ihre Farbe inline und bleiben beim
   Überfahren gleich — die Linkregel aus base.css dunkelte sie ab. */
.pl .pl-stocklist__empty a,
.pl .pl-stocklist__empty a:hover {
	color: #0a4bf5;
}

.pl .pl-stocklist__empty a {
	font-weight: 600;
}

.pl-stocklist__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.pl-home-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	transition: border-color 160ms var(--pl-ease-out), box-shadow 160ms var(--pl-ease-out);
}

.pl-home-card:hover {
	border-color: #d1d1d8;
	box-shadow: var(--pl-shadow-card-hover);
}

.pl-home-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: #f5f5f7;
}

.pl-home-card__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 4px;
	background: #eef3ff;
	font-size: 12px;
	font-weight: 500;
	color: #0840d1;
}

/* Zwei Klassen: `.pl img` setzt `height: auto` mit (0,1,1). */
.pl-home-card .pl-home-card__img {
	width: 78%;
	height: 78%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.pl-home-card__noimg {
	font-family: var(--pl-font-mono);
	font-size: 11px;
	color: #82828c;
}

.pl-home-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 13px 14px 15px;
}

.pl-home-card__brand {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #82828c;
}

.pl-home-card__name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #0f0f12;
}

.pl-home-card__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 14px;
	color: #0b6b39;
}

.pl-home-card__dot {
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: #0e8345;
}

.pl-home-card__price,
.pl-home-card__net {
	font-family: var(--pl-font-mono);
}

.pl-home-card__price {
	font-size: 16px;
	font-weight: 600;
	color: #0f0f12;
}

.pl-home-card__net {
	font-size: 12px;
	color: #82828c;
}

/* `wc_price()` bringt eigene Spannen mit; sie erben hier nur. */
.pl-home-card .amount,
.pl-home-card bdi {
	color: inherit;
	font: inherit;
}

/* Beschaffung ------------------------------------------------------------ */

.pl-procure {
	padding: 44px 48px;
	border: 1px solid #e3e3e8;
	border-radius: 16px;
	background: #fafafb;
}

.pl-home-sec__lead.pl-procure__lead {
	margin-bottom: 30px;
}

.pl-procure__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 24px;
}

.pl-procure__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	color: #0f0f12;
}

.pl-procure__item > .pl-icon {
	flex: none;
}

.pl-procure__title {
	font-size: 16px;
	font-weight: 600;
}

.pl-procure__text {
	display: block;
	font-size: 16px;
	color: #82828c;
}

.pl-procure__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.pl-procure__btn {
	padding: 0 24px;
	font-size: 15px;
}

/* Im Entwurf ohne Rahmen; `.pl-btn` trägt einen durchsichtigen 1px-Rahmen,
   und der machte den Knopf 2px breiter. */
.pl-procure .pl-btn--primary {
	border-width: 0;
}

/* Schmalere Fenster ------------------------------------------------------
 *
 * Der Entwurf kennt nur die Desktopbreite. Darunter brechen die Raster um;
 * Bühne, Kontakt, FAQ und Ratgeber regelt sections.css.
 */

@media (max-width: 1100px) {
	.pl-stocklist__grid,
	.pl-procure__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.pl-brands {
		grid-template-columns: minmax(0, 1fr);
	}

	.pl-brand {
		min-height: 380px;
	}
}

@media (max-width: 760px) {
	.pl-band,
	.pl-procure {
		padding: 32px 24px;
	}
}

@media (max-width: 620px) {
	.pl-stocklist__grid,
	.pl-procure__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pl-brand,
	.pl-home-card,
	.pl-stocklist {
		transition: none;
	}
}
