/*
 * Produktdetailseite: Galerie, Kaufbox, Konfigurationsachsen.
 *
 * Seit dem 3.10.2026 mit den Maßen aus `Produkt Standard.dc.html` und
 * `Produkt CTO.dc.html`. Viele Regeln tragen `.pl` davor: das Eltern-Theme
 * setzt `h1`/`h2` auf Inter, `label` fett mit Abstand, `button` mit Fläche
 * und Versalien und `input` mit 44px Höhe — gegen eine einzelne Klasse
 * gewinnt es.
 */

/*
 * 64px bis zum Footer auf BEIDEN Seiten. Unter der Standard-Kaufbox stehen sie
 * nicht mehr an den Alternativen: findet deren Abfrage nichts, fehlt der
 * Abschnitt, und das Datenblatt lag direkt auf dem Footer.
 */
.pl-pdp-wrap {
	padding-top: 24px;
	padding-bottom: 64px;
}

.pl-pdp-layout {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 56px;
	align-items: start;
	margin-top: 20px;
}

/*
 * Die Kaufbox klebt (seit dem 18.10.2026, so gewünscht), 24px unter der
 * klebenden Kopfzeile. Einspaltig (unter 900px) klebt nichts.
 *
 * Die CTO-Box ist meist höher als das Fenster und scrollt deshalb IN SICH —
 * ohne sichtbaren Rollbalken. Seit dem 28.10.2026 gilt das auch für die
 * Standard-Box: mit den Technischen Daten darin ist sie ebenfalls höher als
 * das Fenster, und klebend wäre ihr Kaufknopf sonst nicht zu erreichen.
 * Passt sie ins Fenster, ändert sich nichts. Beim Scrollen der Seite nach unten zieht
 * product.js sie mit, bis ihr Ende (der Kaufknopf) im Bild ist: dasselbe Bild
 * wie ein Kleben am unteren Rand. Wer darin nach oben scrollt und danach die
 * Seite weiter nach unten, ist mit dem nächsten Stück wieder unten. Der
 * Innenabstand von 4px lässt den Fokusring der Knöpfe am Rand stehen — ein
 * Bereich mit `overflow` schneidet ab, was über ihn hinausragt.
 */
.pl-pdp__summary {
	position: sticky;
	top: calc(var(--pl-header-h) + 24px);
	max-height: calc(100vh - var(--pl-header-h) - 48px);
	margin: -4px;
	padding: 4px;
	overflow-y: auto;
	scrollbar-width: none;
}

.pl-pdp__summary::-webkit-scrollbar {
	display: none;
}

/* Im Entwurf folgt der Footer der Produktseite ohne die 128px Abstand, die
   Startseite und Shop vor ihm haben. */
.pl-pdp .pl-footer {
	margin-top: 0;
}

/* Galerie ------------------------------------------------------------- */

.pl-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pl-gallery__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3.4;
	overflow: hidden;
	background: #f5f5f7;
	border-radius: 10px;
}

/*
 * Drei Klassen aus demselben Grund wie bei `.pl-card__img` im Raster, nur
 * eine Stufe tiefer: `.pl img` in base.css und `.woocommerce img` von
 * WooCommerce setzen beide `height: auto` und haben mit (0,1,1) die
 * hoehere Spezifitaet als eine einzelne BEM-Klasse (0,1,0). Die 86 % Hoehe
 * kamen hier nie an.
 *
 * Sichtbar war das nicht, weil `object-fit: contain` bei einem Foto, das
 * schmaler ist als die Buehne, ohnehin dasselbe Bild ergibt -- bei einem
 * hohen Foto aber nicht: es waere ueber die Buehne hinausgewachsen und
 * haette an `overflow: hidden` Kopf und Fuss verloren. Gemessen am
 * 16.9.2026: Buehne 696x592, Bild 598x449 statt 598x509.
 */
.pl .pl-gallery__stage .pl-gallery__img {
	width: 86%;
	height: 86%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/*
 * Video in der Galerie, seit dem 13.9.2026.
 *
 * Kein `mix-blend-mode: multiply` wie beim Bild: das rechnet den Weissanteil
 * gegen den Hintergrund und ist fuer freigestellte Produktfotos gedacht. Auf
 * ein Video angewandt verwaescht es jedes helle Bild.
 */
.pl-gallery__video {
	width: 86%;
	max-height: 86%;
	background: #000;
	border-radius: var(--pl-radius-sm);
}

/* Abspielmarke auf der Miniatur eines Videos. */
.pl-gallery__play {
	font-size: 20px;
	line-height: 1;
	color: var(--pl-text-secondary);
}

/* Liegt ueber dem Standbild, wenn eines gesetzt ist. */
.pl-gallery__play.is-overlay {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 50%;
}

.pl-gallery__noimg {
	font-family: var(--pl-font-mono);
	font-size: 12px;
	color: #82828c;
}

/*
 * `1fr` und NICHT `minmax(0, 1fr)`, wie im Entwurf — mit einer Folge, die man
 * kennen muss: eine Miniatur ist mindestens 130px hoch und 150:130, also
 * mindestens 150px breit. Bei fünf Bildern sind das 790px, und die linke
 * Spalte wird so breit (im CTO-Entwurf gemessen: 790 statt 700px). Unter
 * 900px fällt die Mindesthöhe, sonst liefe die Reihe aus dem Fenster.
 */
.pl-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

/* Im Entwurf mindestens 130px hoch, sonst 150:130. `button.` davor gegen die
   Knopf-Regeln des Eltern-Themes. */
.pl button.pl-gallery__thumb {
	position: relative; /* Bezug fuer die Abspielmarke. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 130px;
	aspect-ratio: 150 / 130;
	margin: 0;
	padding: 0;
	background: #f5f5f7;
	border: 1px solid #e3e3e8;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
}

.pl button.pl-gallery__thumb.is-active {
	border: 1.5px solid #0f0f12;
}

/*
 * `.pl-gallery__thumb img` waere mit (0,1,1) gleichauf mit `.pl img` und
 * gewaenne nur, weil product.css nach base.css geladen wird. Genau darauf
 * zu bauen ist das, was oben schiefgegangen ist -- eine Klasse mehr, und
 * die Reihenfolge entscheidet nichts mehr.
 */
.pl .pl-gallery__thumb img {
	width: 82%;
	height: 82%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Text unter der Galerie ---------------------------------------------- */

/* 12px Lücke der Galerie + 20px wie im Entwurf. */
.pl-pdp__text {
	margin-top: 32px;
}

.pl .pl-pdp__subhead {
	margin: 18px 0 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	color: #0f0f12;
}

.pl .pl-pdp__text > .pl-pdp__subhead:first-child {
	margin-top: 0;
}

/* „Produktbeschreibung" grösser als die übrigen Abschnittsköpfe (seit dem
   15.11.2026, so gewünscht). */
.pl .pl-pdp__subhead--beschreibung {
	margin-bottom: 12px;
	font-size: 20px;
	line-height: 1.35;
}

/* Über die ganze Breite der Spalte (seit dem 15.11.2026, so gewünscht; vorher
   die 760px aus `.pl-prose` in base.css, die anderswo bleiben). */
.pl-pdp__text .pl-prose {
	max-width: none;
	font-size: 16px;
	line-height: 1.65;
	color: #5f5f69;
}

.pl-pdp__text .pl-prose p {
	margin: 0 0 1em;
	line-height: 1.65;
}

.pl-pdp__text .pl-prose > :last-child {
	margin-bottom: 0;
}

/*
 * Zwischenüberschriften links, Text rechts (seit dem 15.11.2026, so gewünscht,
 * `pl_description_sections()`): die linke Spalte so breit wie die längste
 * Überschrift, zwischen den Abschnitten nur Abstand. Bis 600px steht die
 * Überschrift über ihrem Text.
 */
.pl-pdp__text .pl-desc-sections {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 16px 32px;
}

.pl-pdp__text .pl-desc-sections__kopf {
	font-weight: var(--pl-weight-semibold);
	color: var(--pl-text-primary);
}

.pl-pdp__text .pl-prose .pl-desc-sections__text > p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.pl-pdp__text .pl-desc-sections {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.pl-pdp__text .pl-desc-sections__text {
		margin: 4px 0 16px;
	}
}

/* Werksoptionen: 6px Zeilenabstand, Punkt 4px, 9px bis zum Text. */
.pl-pdp__text .pl-bullets {
	gap: 6px;
}

.pl-pdp__text .pl-bullets li {
	padding-left: 13px;
	font-size: 16px;
	line-height: 1.5;
	color: #5f5f69;
}

.pl-pdp__text .pl-bullets li::before {
	top: 11px;
}

/*
 * Das Datenblatt hat kein Vorbild im Entwurf; es bleibt (entschieden am
 * 3.10.2026) und trägt dessen Schriftgrössen und Farben.
 */
.pl-spectable {
	margin: 0;
	max-width: 760px;
	border-top: 1px solid #e3e3e8;
}

.pl-spectable__row {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: var(--pl-space-4);
	padding: 10px 0;
	border-bottom: 1px solid #e3e3e8;
}

.pl-spectable dt {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: #0f0f12;
}

.pl-spectable dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #5f5f69;
}

.pl-spectable__value {
	display: block;
}

/*
 * Zeilenumbrüche eines Merkmals bleiben stehen (seit dem 4.10.2026) — eine
 * Anschlussliste, Zeile für Zeile gepflegt, liefe sonst zu einer Zeile
 * zusammen. `pre-line` und nicht `pre`: mehrere Leerzeichen bleiben eines,
 * und lange Zeilen brechen weiter um.
 */
.pl-spectable__value {
	white-space: pre-line;
}

/*
 * Ein Merkmal der Komponente darüber (seit dem 4.10.2026): eingerückt und in
 * der zweiten Textfarbe, damit es als Teil von ihr gelesen wird und nicht als
 * Angabe über das ganze Gerät.
 */
.pl-spectable__row--sub dt {
	padding-left: var(--pl-space-4);
	font-weight: 400;
	color: #5f5f69;
}

/*
 * Zweispaltig in der Standard-Kaufbox (seit dem 28.10.2026): unter
 * „Ausstattung", zwei Angaben nebeneinander. Seit dem 31.10.2026 auch auf der
 * CTO-Seite unter der Galerie.
 */
.pl-buybox__sheet {
	margin-top: 22px;
}

.pl-buybox__sheet:not(:has(.pl-spectable)) {
	display: none;
}

.pl-buybox__sheet .pl-spectable {
	margin-top: 12px;
}

/*
 * Gestaltet wie die Technischen Daten im Warenkorb (`.pl-cart-sheet`,
 * pages.css; seit dem 31.10.2026, so gewünscht): Bezeichnung links, Wert
 * rechtsbündig, Zeilen 10px oben und unten, keine Linie über der ersten
 * Zeile. Die Linien laufen durch: kein Spaltenabstand, der Abstand ist
 * Innenrand der Zeilen — links 40px rechts, rechts 40px links. So enden die
 * Werte der rechten Spalte an der Kante.
 *
 * Zwei Spalten über 520px Breite, darunter eine — dieselbe Grenze wie im
 * Warenkorb, entschieden über den Rahmen (`.pl-spectable-rahmen`,
 * datasheet.php), damit dieselbe Grenze auch den Innenrand bestimmt. Rechts
 * steht jede zweite SICHTBARE Zeile (`of :not([hidden])`) — `product.js`
 * blendet Zeilen der Auswahl ein und aus. Wer hier etwas ändert, ändert den
 * Warenkorb mit.
 */
.pl-spectable-rahmen {
	container: pl-sheet / inline-size;
}

.pl-spectable--spalten {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: none;
	border-top: 0;
}

.pl-spectable--spalten .pl-spectable__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--pl-space-3);
	padding: 10px 0;
}

.pl-spectable--spalten dt,
.pl-spectable--spalten dd {
	line-height: 1.45;
}

/* Die Bezeichnung bricht nicht um, der Wert darf es. */
.pl-spectable--spalten dt {
	flex: none;
	max-width: 60%;
}

.pl-spectable--spalten dd {
	min-width: 0;
	text-align: right;
	overflow-wrap: anywhere;
}

.pl-spectable--spalten .pl-spectable__row--sub dt {
	padding-left: var(--pl-space-3);
}

@container pl-sheet (min-width: 521px) {
	.pl-spectable--spalten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pl-spectable--spalten .pl-spectable__row {
		padding-right: var(--pl-space-10);
	}

	.pl-spectable--spalten .pl-spectable__row:nth-child(2n of :not([hidden])) {
		padding-right: 0;
		padding-left: var(--pl-space-10);
	}

	/* Steht die letzte Zeile allein links, läuft ihre Linie bis zum Ende
	   (seit dem 31.10.2026, so gewünscht): sie spannt beide Spalten, ihr
	   Inhalt bleibt über den Innenrand in der linken. Die Prozent im
	   Innenrand beziehen sich auf die ganze Breite der Tabelle. */
	.pl-spectable--spalten .pl-spectable__row:nth-child(2n + 1 of :not([hidden])):nth-last-child(1 of :not([hidden])) {
		grid-column: 1 / -1;
		padding-right: calc(50% + var(--pl-space-10));
	}
}

/* `display: block`/`grid` schlägt das `hidden`-Attribut — ohne diese Regel
   stünde eine abgewählte zweite SSD als leere Zeile da. */
.pl-spectable__row[hidden] {
	display: none;
}

/* Kaufbox ------------------------------------------------------------- */

/*
 * Typ-Nummer/EAN links, Lagermerker rechts in einer Zeile unter dem Titel
 * (seit dem 28.10.2026). `margin-left: auto` hält den Merker rechts, auch
 * wenn es keine Nummern gibt.
 */
.pl-buybox__kennung {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 18px;
}

/*
 * Lagermerker: 6px bis zum Punkt, Schrift 14px wie Typ-Nummer und EAN
 * daneben (seit dem 31.10.2026; vorher 12px in fest 22px wie im Entwurf).
 */
.pl-buybox__kennung .pl-stock,
.pl-buybox__price--lager .pl-stock {
	flex: none;
	margin-left: auto;
	gap: 6px;
	height: 24px;
	font-size: var(--pl-text-base);
	min-height: 0;
	padding: 0 8px;
	line-height: 1;
}

.pl .pl-buybox__title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #0f0f12;
	text-wrap: pretty;
}

/*
 * 14px seit dem 31.10.2026 (vorher 13px, davor 12px; so gewünscht). Die
 * Beschriftung („Typ-Nummer:", „EAN:") steht in der Grundschrift, nur der Wert
 * in Mono; beide Angaben nebeneinander, bei Platzmangel untereinander.
 */
.pl .pl-buybox__mpn {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	min-width: 0;
	margin: 0;
	font-size: var(--pl-text-base);
	color: #82828c;
}

.pl .pl-buybox__nummer-wert {
	font-family: var(--pl-font-mono);
}

/*
 * Der Artikelzustand („Zustand: Neu") unter dem Titel ist am 28.10.2026
 * entfallen (so gewünscht), samt `template-parts/product/condition.php`.
 * `pl_product_condition()` und das Meta `_wws_condition` bleiben — der
 * Consumer schreibt es weiter, und wer die Zeile zurückholt, braucht nur die
 * Vorlage.
 */

/* Preis mit der Steuerzeile DANEBEN, unten bündig — wie im Entwurf. */
.pl-buybox__price {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

/*
 * Preis und Steuerzeile als EIN Block (CTO-Kaufbox, seit dem 4.11.2026) — mit
 * denselben Regeln wie die Zeile selbst, damit die CTO-Produktseite aussieht
 * wie vorher.
 */
.pl-buybox__preis {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

/*
 * Serien-Konfigurator: der Lagermerker rechts in der Preiszeile (seit dem
 * 4.11.2026, so gewünscht), Preis und Steuerzeile links. Die Nummernzeile
 * darüber, die dort nur ihn trug, entfällt — deshalb der Abstand zum Titel.
 */
.pl-buybox__price--lager {
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: 16px;
}

/*
 * Wird es eng (Telefon), gibt der Preisblock nach und die Steuerzeile bricht
 * darin um — der Merker bleibt rechts auf der Höhe des Preises, statt in eine
 * eigene Zeile zu rutschen.
 */
.pl-buybox__price--lager .pl-buybox__preis {
	flex: 0 1 auto;
}

.pl-buybox__price .pl-price,
.pl-buybox__price .pl-price .amount,
.pl-buybox__price .pl-price bdi {
	font-size: 24px;
	font-weight: 500;
	line-height: 1; /* seit dem 28.10.2026, so gewünscht (vorher 1.5) */
}

/* Zeilenhöhe 1 seit dem 31.10.2026 (so gewünscht; vorher 1.5). */
.pl-buybox__tax {
	margin-top: 2px;
	font-size: 14px;
	line-height: 1;
	color: #82828c;
}

.pl-buybox__tax--sm {
	font-size: 12px;
}

.pl .pl-buybox__subhead {
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	color: #0f0f12;
}

.pl-buybox__delivery {
	margin: 10px 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #82828c;
}

.pl-buybox__delivery--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* 44px unter dem Preis seit dem 31.10.2026 (so gewünscht; vorher 22px). */
.pl-note {
	margin-top: 44px;
	padding: 16px;
	background: #fafafb;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
}

/* Ohne Überschrift (seit dem 28.10.2026) steht der Text oben im Kasten — seit
   dem 9.11.2026 ein fester Satz statt der Kurzbeschreibung. */
.pl .pl-note .pl-note__text {
	margin: 0;
}

.pl-note__text {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: #5f5f69;
}

.pl .pl-note__text a,
.pl .pl-note__text a:hover {
	font-weight: 600;
	color: #0a4bf5;
}

/* „Zum Konfigurator →" bricht nicht in sich um (seit dem 9.11.2026, so
   gewünscht): passt er samt Pfeil nicht mehr hinter die Frage, steht er als
   Ganzes in der nächsten Zeile. */
.pl-note__link {
	white-space: nowrap;
}

/* Zahlungslogos neben der Lieferzeit (CTO), wie im Entwurf in HTML gebaut. */
/* Die Marken selbst (`.pl-paymark`) stehen seit dem 9.11.2026 in base.css —
   der Footer zeigt sie auf jeder Seite (`pl_paymarks_html()`). */

/* Ausstattung --------------------------------------------------------- */

.pl-equip {
	margin-top: 22px;
}

.pl-equip__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.pl-equip__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: #5f5f69;
	overflow-wrap: anywhere;
}

/* Wie im Entwurf ein Block in Zeilenhöhe (23,2px) mit 1px Abstand oben, das
   Symbol 1px darunter: jede Zeile wird damit 24,2px hoch, nicht 23,2. */
.pl-equip__icon {
	flex: none;
	display: block;
	height: 1.45em;
	margin-top: 1px;
	color: #0a4bf5;
}

.pl-equip__icon .pl-icon {
	display: block;
	margin-top: 1px;
}

/* Konfigurationsachsen ------------------------------------------------ */

.pl-config {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.pl-axis {
	background: #fff;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
	overflow: hidden;
}

.pl button.pl-axis__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	background: #fafafb;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: normal;
	/* `normal` wie beim Knopf im Entwurf: 46px Kopf statt 49. */
	line-height: normal;
	text-align: left;
	text-transform: none;
	color: #0f0f12;
	cursor: pointer;
}

.pl .pl-axis.is-open button.pl-axis__head {
	border-bottom-color: #e3e3e8;
}

.pl button.pl-axis__head:hover,
.pl button.pl-axis__head:focus {
	background: #f5f5f7;
	color: #0f0f12;
	outline: none;
}

/*
 * Der Fokusring aus base.css ist ein Schatten NACH AUSSEN, und `.pl-axis`
 * wie `.pl-qty` schneiden mit `overflow: hidden` alles ab, was über ihren
 * Rand hinausgeht — beim zugeklappten Achsenkopf füllt der Knopf die Achse
 * ganz aus, und vom Ring blieb nichts. Hier liegt er deshalb INNEN.
 */
.pl .pl-axis button.pl-axis__head:focus-visible,
.pl .pl-qty button.pl-qty__btn:focus-visible,
.pl .pl-qty .pl-qty__input:focus-visible {
	box-shadow: inset 0 0 0 2px var(--pl-blue-600) !important;
}

.pl-axis__icon {
	display: inline-flex;
	color: #0a4bf5;
}

.pl-axis__label {
	flex: 1;
	line-height: normal;
	font-size: 16px;
	font-weight: 600;
	color: #0f0f12;
}

.pl-axis__value {
	max-width: 40%;
	line-height: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--pl-font-mono);
	font-size: 14px;
	color: #82828c;
}

.pl-axis__chevron {
	display: inline-flex;
	color: #5f5f69;
	transform: rotate(-90deg);
	transition: transform 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.pl-axis.is-open .pl-axis__chevron {
	transform: rotate(0deg);
}

.pl-axis__body {
	display: none;
	flex-direction: column;
	padding: 8px 16px 12px;
}

.pl-axis.is-open .pl-axis__body {
	display: flex;
}

/* Optionen wie im Entwurf: 13px Radio, 9px Lücke, 16px Text, Aufpreis 14px
   Mono — nicht fett (das Eltern-Theme setzt `label` auf bold). */
.pl .pl-axis .pl-option {
	gap: 9px;
	min-height: 28px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #0f0f12;
}

.pl .pl-axis .pl-option__input {
	width: 13px;
	height: 13px;
	margin: 0;
	accent-color: #0a4bf5;
}

.pl-option--radio .pl-option__label {
	font-size: 16px;
}

.pl-option--radio .pl-option__delta {
	font-size: 14px;
	color: #82828c;
}

/*
 * Der Hinweis einer Komponente als „i" (seit dem 8.10.2026, `pl_hint_html()`):
 * hinter der Option im Konfigurator und in der Ausstattung der Standardseite.
 * Der Text geht als kleines Pop-up auf und verschiebt nichts — als
 * `popover` in der obersten Ebene, die `.pl-axis` mit `overflow: hidden`
 * nicht abschneidet; `product.js` setzt es unter das „i". `.pl` davor: das
 * Eltern-Theme gibt jedem `button` Fläche, Polster und Versalien.
 */
.pl .pl-hint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-height: 0;
	margin: 0 0 0 6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--pl-accent);
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	vertical-align: -4px;
	cursor: pointer;
	transition: background-color 120ms ease-out;
}

.pl .pl-hint:hover,
.pl .pl-hint[aria-expanded='true'] {
	background: var(--pl-accent-subtle);
	color: var(--pl-accent);
}

/* Das Pop-up. Geschlossen trägt es `hidden` (für Browser ohne Popover); zum
   Öffnen nimmt `product.js` das Attribut weg — Bootstrap und `base.css`
   setzen `[hidden]` mit `!important` auf `display: none`. */
.pl-hint__text:popover-open {
	position: fixed;
	inset: auto;
	display: block;
	width: max-content;
	max-width: min(320px, calc(100vw - 32px));
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 28px rgb(15 15 18 / 0.12), 0 1px 4px rgb(15 15 18 / 0.06);
	color: #47474f;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	white-space: pre-line;
	overflow-wrap: anywhere;
	cursor: auto;
}

/*
 * Ohne Popover-Unterstützung klappt der Text im Fluss auf: `product.js` setzt
 * dann `is-inline`. Eine Klasse und kein `:not(:popover-open)`: ein Browser,
 * der die Pseudoklasse nicht kennt, verwürfe die ganze Regel — und das ist
 * genau der Browser, für den sie da ist.
 */
.pl-hint__text.is-inline {
	display: block;
	margin-top: 6px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #f4f4f6;
	color: #47474f;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* Im Rückfall wird die Option hoch: Auswahlpunkt und Aufpreis bleiben auf
   der Höhe des Namens. */
.pl .pl-axis .pl-option:has(.pl-hint__text.is-inline) {
	align-items: flex-start;
}

.pl .pl-axis .pl-option:has(.pl-hint__text.is-inline) .pl-option__input {
	margin-top: 6px;
}

.pl .pl-axis .pl-option:has(.pl-hint__text.is-inline) .pl-option__delta {
	margin-top: 2px;
}

/*
 * Der Merker „Lieferzeit" an einzelnen Optionen ist am 3.10.2026 entfallen
 * (so entschieden). Ob eine gewählte Option die Lieferung verzögert, sagt
 * weiterhin der Hinweis unter dem Kaufknopf.
 */
.pl-buy__delivery {
	color: var(--pl-amber-600);
	font-size: var(--pl-text-base);
}

/* Kaufen -------------------------------------------------------------- */

/* Der zweite Preis der CTO-Kaufbox: 22px halbfett, Steuerzeile 13px darunter. */
.pl-buy__total {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 22px;
}

.pl-buy__total .pl-price,
.pl-buy__total .pl-price .amount,
.pl-buy__total .pl-price bdi {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.5;
}

.pl-buy__total .pl-price__legal {
	font-size: 13px;
	color: #82828c;
}

.pl-buy__actions {
	display: flex;
	gap: 12px;
	margin: 22px 0 0;
}

.pl-buy__total + .pl-buy__actions {
	margin-top: 14px;
}

/* Unter den Technischen Daten der Standard-Kaufbox doppelt so viel Luft
   (seit dem 31.10.2026, so gewünscht). */
.pl-buybox__sheet + .pl-buy .pl-buy__actions {
	margin-top: 44px;
}

.pl-qty {
	display: inline-flex;
	align-items: center;
	height: 48px;
	border: 1px solid #d1d1d8;
	border-radius: 4px;
	overflow: hidden;
}

.pl button.pl-qty__btn {
	width: 36px;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	color: #5f5f69;
	cursor: pointer;
}

.pl button.pl-qty__btn:hover,
.pl button.pl-qty__btn:focus {
	background: none;
	color: #5f5f69;
	outline: none;
}

/* Beim Darüberfahren ein helles Grau wie im Warenkorb (seit dem 31.10.2026,
   so gewünscht). Die Ecken schneidet `.pl-qty` mit `overflow: hidden`, der
   Fokusring liegt dort innen. */
.pl button.pl-qty__btn:hover {
	background: var(--pl-gray-50);
}

.pl .pl-qty .pl-qty__input {
	width: 36px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-align: center;
	font-family: var(--pl-font-mono);
	font-size: 14px;
	font-weight: 500;
	color: #0f0f12;
	-moz-appearance: textfield;
}

.pl-qty__input::-webkit-outer-spin-button,
.pl-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Der Warenkorb-Knopf: blau, 48px, ohne Symbol. `button.` davor, sonst setzt
   das Eltern-Theme `button[type=submit]` schwarz und in Versalien. */
.pl button.pl-buy__submit {
	flex: 1;
	height: 48px;
	margin: 0;
	padding: 0 24px;
	background: #0a4bf5;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
}

.pl button.pl-buy__submit:hover,
.pl button.pl-buy__submit:focus {
	background: #0840d1;
	color: #fff;
}

.pl-buy--request {
	margin-top: 22px;
}

.pl-buy__requesttext {
	margin: 0 0 var(--pl-space-3);
	font-size: 16px;
	color: #5f5f69;
	line-height: 1.55;
}

/* Konfigurierbare Alternativen (nur Standard-Kaufbox) ---------------- */

/* Die 64px darunter trägt `.pl-pdp-wrap`. */
.pl-alts {
	padding-top: 72px;
}

.pl-alts__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.pl .pl-alts__title {
	margin: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.5;
	color: #0f0f12;
}

.pl a.pl-alts__more,
.pl a.pl-alts__more:hover {
	font-size: 13px;
	font-weight: 600;
	color: #0a4bf5;
}

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

.pl-alt {
	display: flex;
	flex-direction: column;
}

.pl a.pl-alt__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #f5f5f7;
	border: 1px solid transparent;
	border-radius: 10px;
	transition: border-color var(--pl-dur-fast) var(--pl-ease-out);
}

.pl a.pl-alt__media:hover {
	border-color: #d1d1d8;
}

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

.pl .pl-alt__media .pl-alt__img {
	position: absolute;
	top: 20%;
	left: 14%;
	width: 72%;
	height: 72%;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.pl-alt__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 14px 2px 0;
}

.pl a.pl-alt__name,
.pl a.pl-alt__name:hover {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #0f0f12;
}

.pl-alt__pricing {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
}

.pl-alt__price,
.pl-alt__net {
	font-family: var(--pl-font-mono);
}

.pl-alt__price {
	font-size: 16px;
	font-weight: 500;
	color: #0f0f12;
}

.pl-alt__net {
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
	color: #82828c;
}

.pl-alt .amount,
.pl-alt bdi {
	color: inherit;
	font: inherit;
}

.pl-alt__actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.pl a.pl-alt__details {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	height: 40px;
	border: 1px solid #d1d1d8;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #0f0f12;
	transition: border-color var(--pl-dur-fast) var(--pl-ease-out);
}

.pl a.pl-alt__details:hover {
	border-color: #82828c;
	color: #0f0f12;
}

/* `contents`: der KNOPF ist das Flex-Element wie im Entwurf — sein Polster
   zählt dann zur Basis, und „Details" wird 181,6 statt 186,8px breit. */
.pl-alt__cartform {
	display: contents;
}

.pl button.pl-alt__cart {
	flex: 1.3;
	height: 40px;
	margin: 0;
	/* Das Polster eines gewöhnlichen <button> wie im Entwurf: die Breiten
	   von „Details" und „In den Warenkorb" teilt `flex` nach dem Inhalt auf. */
	padding: 1px 6px;
	background: #0a4bf5;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	cursor: pointer;
}

.pl button.pl-alt__cart:hover,
.pl button.pl-alt__cart:focus {
	background: #0840d1;
	color: #fff;
}

/* Ähnliche Produkte (nicht mehr auf der Produktseite, seit dem 3.10.2026;
   die Regeln bleiben für Plugins, die sie anderswo ausgeben). ---------- */

.pl .related,
.pl .up-sells {
	padding: var(--pl-space-16) 0 var(--pl-space-16);
}

.pl .related > h2,
.pl .up-sells > h2 {
	margin: 0 0 var(--pl-space-5);
	font-size: var(--pl-text-xl);
	font-weight: var(--pl-weight-semibold);
	letter-spacing: var(--pl-tracking-tight);
}

/* Schmale Bildschirme -------------------------------------------------- */

@media (max-width: 1100px) {
	.pl-pdp-layout {
		gap: var(--pl-space-10);
	}
}

@media (max-width: 900px) {
	.pl-pdp-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--pl-space-8);
	}

	/*
	 * Einspaltig: Bilder, dann Kaufbox, dann Beschreibung — so entschieden am
	 * 3.10.2026. Bis dahin stand die Kaufbox vorn, und auf der CTO-Seite kam
	 * das Foto erst nach dem ganzen Konfigurator. Galerie und Beschreibung
	 * teilen sich eine Spalte; `display: contents` macht beide zu eigenen
	 * Zeilen des Rasters, sonst ginge die Kaufbox nicht dazwischen. Die
	 * 32px dazwischen trägt der Abstand des Rasters.
	 */
	.pl-pdp__media {
		display: contents;
	}

	.pl-pdp-layout .pl-gallery {
		order: 1;
	}

	.pl-pdp__summary,
	.pl-pdp-wrap--cto .pl-pdp__summary {
		position: static;
		order: 2;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.pl-pdp-layout .pl-pdp__text {
		order: 3;
		margin-top: 0;
	}

	.pl-spectable__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	/* Zwei statt drei: bei drei Spalten stossen die beiden Knöpfe einer
	   Karte unter 900px aneinander. Eine Spalte erst unter 620px — vorher
	   wurde jede Karte über 800px breit und ihr Bild höher als das Fenster. */
	.pl-alts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pl-gallery__thumbs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.pl button.pl-gallery__thumb {
		min-height: 0;
	}
}

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

	.pl-alts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pl-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.pl button.pl-gallery__thumb {
		min-height: 0;
	}

	.pl-buybox__delivery--row {
		flex-wrap: wrap;
	}
}

/* Versandkosten-Pop-up ------------------------------------------------ */

/*
 * „Versandkosten" in der Steuerzeile ist ein Link (seit dem 31.10.2026, so
 * gewünscht) und öffnet den Abschnitt „Versand & Lieferung" der Seite
 * Rechtliches in einem `<dialog>` (`pl_legal_dialogs()`). Mit `.pl` davor:
 * die Linkregel aus base.css färbte ihn sonst blau.
 */
.pl .pl-versand-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pl .pl-versand-link:hover {
	color: var(--pl-text-primary);
}

/* Das Pop-up selbst steht seit dem 3.11.2026 in base.css (`.pl-legal-dialog`):
   die Kasse öffnet AGB, Datenschutz, Cookies und Widerruf genauso. */
