/* 3D-Polster – Ergänzungen zum Child-Theme. Farben und Schriften kommen aus theme.json. */

:root {
	--polster-radius: 10px;
	--polster-radius-klein: 6px;
	--polster-section: clamp(3rem, 7vw, 6rem);
	--polster-gutter: clamp(1rem, 4vw, 2.5rem);

	/* Kurznamen der Palette (Werte in theme.json) */
	--papier: var(--wp--preset--color--base);
	--tinte: var(--wp--preset--color--contrast);
	--rot: var(--wp--preset--color--accent-1);
	--rot-dunkel: var(--wp--custom--farbe--signalrot-dunkel);
	--rot-hell: var(--wp--custom--farbe--signalrot-hell);
	--rot-zart: var(--wp--custom--farbe--signalrot-zart);
	--sand: var(--wp--preset--color--accent-2);
	--gruen: var(--wp--preset--color--accent-3);
	--gruen-zart: var(--wp--custom--farbe--tannengruen-zart);
	--grau: var(--wp--preset--color--accent-4);
	--grau-hell: var(--wp--custom--farbe--grau-hell);
	--weiss: var(--wp--preset--color--accent-5);
	--linie: var(--wp--preset--color--accent-6);
	--linie-dunkel: var(--wp--custom--farbe--linie-dunkel);
	--alu: var(--wp--custom--farbe--alu);

	/* Papierkorn wie in alten Werkstatthandbüchern – nur auf Sandflächen */
	--polster-korn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .33 0 0 0 0 .26 .5 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");

	/* Zierlinie wie auf alten Tanks: Rot, Luft, feine Tintenlinie */
	--polster-zierlinie: linear-gradient(to bottom, var(--rot) 0 3px, transparent 3px 6px, var(--tinte) 6px 7px);
}

/* Header, Hauptteil und Footer ohne Lücke aneinander */
:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* Vollbreite Bänder (Hero, Abschnitte, Seitenkopf) stoßen ohne Lücke aneinander */
.wp-block-post-content > .alignfull,
main.wp-block-group > .alignfull {
	margin-block-start: 0;
}

/* ---------- Header ---------- */

.polster-header {
	position: sticky;
	top: 0;
	z-index: 50;
	isolation: isolate;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 0.9rem var(--polster-gutter);
}

/* Unschärfe auf einer eigenen Ebene: backdrop-filter direkt am Header würde das
   mobile Vollbild-Menü (position: fixed) im Header einsperren. */
.polster-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	backdrop-filter: blur(8px);
}

/* Mobiles Menü: Sandfläche mit großen Slab-Links */
.polster-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--sand);
	background-image: var(--polster-korn);
	color: var(--tinte);
	padding: 1.25rem var(--polster-gutter) 2rem;
}

.polster-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	align-items: flex-start;
}

.polster-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.25rem;
	align-items: flex-start;
	width: 100%;
}

.polster-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--linie);
}

.polster-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.85rem 0;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 1.6rem;
	font-weight: 700;
	text-decoration: none;
}

.polster-header .wp-block-navigation__responsive-container-close,
.polster-header .wp-block-navigation__responsive-container-open {
	padding: 0.4rem;
	margin: -0.4rem;
}

.polster-header .wp-block-navigation :focus-visible {
	outline: 2px solid var(--rot);
	outline-offset: 2px;
}

.polster-header .wp-block-navigation__responsive-container-close svg,
.polster-header .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}

.admin-bar .polster-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.polster-header--kasse {
	position: static;
}

.polster-kasse-link {
	margin: 0;
	font-size: 0.9rem;
}

.polster-header__nav {
	gap: clamp(0.75rem, 3vw, 2rem);
}

.polster-header .wp-block-navigation {
	font-weight: 600;
	font-size: 0.95rem;
}

/* Logo aus assets/logo (erzeugt mit bin/logo.py): gestapelt, Polster über der Schrift */
.polster-logo {
	display: inline-flex;
	line-height: 0;
}

.polster-logo img {
	height: 72px;
	width: auto;
}

.polster-footer .polster-logo img {
	height: 104px;
}

@media (max-width: 600px) {
	.polster-header {
		padding-block: 0.6rem;
	}

	.polster-logo img {
		height: 58px;
	}
}

/* ---------- Browser-Details aus der Palette ---------- */

::selection {
	background: var(--wp--custom--farbe--signalrot-zart);
	color: var(--wp--preset--color--contrast);
}

body {
	caret-color: var(--wp--preset--color--accent-1);
	accent-color: var(--wp--preset--color--accent-1);
	scrollbar-color: color-mix(in srgb, var(--wp--preset--color--accent-4) 45%, var(--wp--preset--color--base)) transparent;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Twenty Twenty-Five zeichnet den Fokus in Textfarbe – bei uns rot */
.wp-site-blocks :focus {
	outline-color: var(--rot);
	outline-offset: 3px;
}

/* Fokusrahmen nur bei Tastaturbedienung, nicht nach jedem Mausklick */
.wp-site-blocks :focus:not(:focus-visible) {
	outline: none;
}

.polster-usps :focus-visible,
.polster-footer :focus-visible {
	outline-color: var(--wp--custom--farbe--signalrot-hell);
}

.wc-block-components-product-price,
.woocommerce-Price-amount,
.polster-passt td {
	font-variant-numeric: tabular-nums;
}

/* ---------- Bausteine ---------- */

.polster-lead {
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	color: var(--wp--preset--color--accent-4);
	max-width: 36rem;
}

/* Vorbestell-Hinweis im Hero: Etikett mit rotem Strich links (mu-plugin, POLSTER_VORBESTELLUNG_*) */
.polster-vorbestellen {
	max-width: 36rem;
	padding: 0.6rem 0.9rem;
	border-left: 4px solid var(--wp--preset--color--accent-1);
	background: var(--wp--custom--farbe--signalrot-zart);
	color: var(--wp--preset--color--contrast);
}

.polster-sub {
	color: var(--wp--preset--color--accent-4);
	max-width: 40rem;
	margin-inline: auto;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--contrast);
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-5);
}

.is-style-platzhalter {
	box-sizing: border-box;
	background: #fff4c2;
	border: 1.5px dashed #b38f00;
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	border-radius: 4px;
}

/* Platzhalter im Fließtext oder in Tabellenzellen */
.polster-platzhalter {
	padding: 0.05em 0.4em;
	background: #fff4c2;
	border: 1px dashed #b38f00;
	border-radius: 3px;
	font-size: 0.92em;
	white-space: nowrap;
}

/* ---------- Gemeinsame Bausteine „Werkstatthandbuch“ (siehe DESIGN.md) ---------- */

/* Papierkorn: auf Sandflächen, nie auf Papier oder Weiß */
.polster-hero,
.polster-section--sand,
.polster-seitenkopf,
.polster-korn {
	background-image: var(--polster-korn);
	background-size: 220px 220px;
}

/* Zierlinie als eigenständiger Trenner: <hr class="wp-block-separator polster-zierlinie"> */
.polster-zierlinie,
hr.polster-zierlinie {
	display: block;
	height: 7px;
	width: 100%;
	max-width: none;
	border: 0;
	margin-block: 0;
	background: var(--polster-zierlinie);
	opacity: 1;
}

/* Seitenkopf: Sandband mit Titel, Einleitung und Lenker-Zeichnung, unten Zierlinie */
.polster-seitenkopf {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--sand);
	padding: clamp(2.25rem, 5vw, 4rem) var(--polster-gutter) clamp(2.5rem, 5.5vw, 4.5rem);
}

.polster-seitenkopf::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 7px;
	background: var(--polster-zierlinie);
}

.polster-seitenkopf::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	top: 12%;
	bottom: 14%;
	right: max(var(--polster-gutter), calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
	width: min(44%, 560px);
	background: var(--linie-dunkel);
	mask: url("../img/lenker-s51-linie.svg") right center / contain no-repeat;
}

.polster-seitenkopf--schlicht::after {
	content: none;
}

.polster-seitenkopf__inhalt {
	position: relative;
}

.polster-seitenkopf__inhalt > * {
	max-width: min(100%, 40rem);
}

.polster-seitenkopf .wp-block-post-title,
.polster-seitenkopf .wp-block-query-title,
.polster-seitenkopf h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	margin: 0;
	text-wrap: balance;
}

.polster-seitenkopf__lead,
.polster-seitenkopf .wp-block-post-excerpt {
	margin-top: 1rem;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	color: var(--grau);
}

.polster-seitenkopf .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.polster-seitenkopf .wp-block-woocommerce-breadcrumbs,
.polster-seitenkopf .woocommerce-breadcrumb {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--grau);
}

@media (max-width: 781px) {
	.polster-seitenkopf::after {
		content: none;
	}
}

/* Typenschild: genietetes Alu-Schild für technische Angaben (z. B. Art.-Nr. als Typkennzeichnung) */
.polster-typenschild {
	--niet: radial-gradient(circle, var(--linie-dunkel) 0 2.5px, var(--grau) 2.5px 3.5px, transparent 4px);
	position: relative;
	background:
		var(--niet) top 9px left 9px / 9px 9px no-repeat,
		var(--niet) top 9px right 9px / 9px 9px no-repeat,
		var(--niet) bottom 9px left 9px / 9px 9px no-repeat,
		var(--niet) bottom 9px right 9px / 9px 9px no-repeat,
		var(--alu);
	border-radius: 8px;
	outline: 1px solid var(--tinte);
	outline-offset: -6px;
	padding: 1.25rem 1.75rem;
	color: var(--tinte);
}

.polster-typenschild dl,
dl.polster-typenschild {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.25rem;
	margin: 0;
}

.polster-typenschild dt {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--grau);
	align-self: baseline;
}

.polster-typenschild dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	align-self: baseline;
}

/* Icons: <span class="polster-icon polster-icon--paket" aria-hidden="true"></span> – Farbe = currentColor */
.polster-icon {
	display: inline-block;
	flex: none;
	inline-size: 1.5em;
	block-size: 1.5em;
	vertical-align: -0.38em;
	background: currentColor;
	mask: var(--polster-icon) center / contain no-repeat;
}

.polster-icon--druck { --polster-icon: url("../icons/druck.svg"); }
.polster-icon--paket { --polster-icon: url("../icons/paket.svg"); }
.polster-icon--bezahlen { --polster-icon: url("../icons/bezahlen.svg"); }
.polster-icon--post { --polster-icon: url("../icons/post.svg"); }
.polster-icon--werkzeug { --polster-icon: url("../icons/werkzeug.svg"); }
.polster-icon--lenker { --polster-icon: url("../icons/lenker.svg"); }
.polster-icon--uhr { --polster-icon: url("../icons/uhr.svg"); }
.polster-icon--zurueck { --polster-icon: url("../icons/zurueck.svg"); }
.polster-icon--hinweis { --polster-icon: url("../icons/hinweis.svg"); }
.polster-icon--lager { --polster-icon: url("../icons/lager.svg"); }
.polster-icon--wabe { --polster-icon: url("../icons/wabe.svg"); }
.polster-icon--haken { --polster-icon: url("../icons/haken.svg"); }
.polster-icon--standort { --polster-icon: url("../icons/standort.svg"); }
.polster-icon--stift { --polster-icon: url("../icons/stift.svg"); }

/* Strichzeichnung (Werkstatthandbuch) als Bild: <figure class="wp-block-image polster-zeichnung"> */
.polster-zeichnung img {
	width: 100%;
	height: auto;
}

.polster-zeichnung img[src*="lenker-s51"] {
	aspect-ratio: 1200 / 520;
}

/* Montage „Passt das an deinen Lenker?“: Tabelle links, Maßzeichnung rechts */
.polster-passt-raster {
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center !important;
}

.polster-passt-raster .polster-passt table {
	width: 100%;
}

/* Foto vom Polster am Moped (bin/fotos.py): <figure class="wp-block-image polster-foto">, Unterschrift wie bei
   den Zeichnungen. Zeigt das Foto einen Testdruck, sagt die Unterschrift das. */
.polster-foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--polster-radius);
}

.polster-zeichnung + .polster-foto {
	margin-top: 2rem;
}

.polster-zeichnung figcaption,
.polster-foto figcaption {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--grau);
	text-align: center;
	text-wrap: balance;
}

/* Tabellenstreifen aus der Palette statt WordPress-Grau (#f0f0f0) */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: color-mix(in srgb, var(--sand) 55%, var(--weiss));
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background-color: var(--weiss);
}

/* ---------- Abschnitte ---------- */

.polster-section {
	padding: var(--polster-section) var(--polster-gutter);
}

.polster-section--sand {
	background-color: var(--wp--preset--color--accent-2);
}

.polster-section h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	margin-bottom: 1rem;
}

[id] {
	scroll-margin-top: 7.5rem; /* Header ist etwa 102 px hoch */
}

/* Hero – Wabenmuster wie auf dem Polster, läuft zum Text hin aus */
.polster-hero {
	position: relative;
	isolation: isolate;
	background-color: var(--wp--preset--color--accent-2);
	padding: clamp(2.5rem, 6vw, 5rem) var(--polster-gutter);
}

@supports (mask-composite: intersect) {
	.polster-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: color-mix(in srgb, var(--wp--preset--color--accent-6) 70%, var(--wp--preset--color--accent-4));
		opacity: 0.55;
		mask:
			url("../img/wabe.svg") 0 0 / 66px auto repeat,
			linear-gradient(to right, transparent 35%, #000 85%);
		mask-composite: intersect;
	}

	@media (max-width: 781px) {
		.polster-hero::before {
			mask:
				url("../img/wabe.svg") 0 0 / 52px auto repeat,
				linear-gradient(to bottom, transparent 40%, #000 90%);
			mask-composite: intersect;
		}
	}
}

.polster-hero__medien {
	position: relative;
}

/* Plakette „Gedruckt in Gera“ */
.polster-plakette {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 8.5rem;
	aspect-ratio: 120 / 103.92;
	margin: 0;
	background: url("../img/plakette.svg") center / contain no-repeat;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.15;
	text-align: center;
	rotate: -8deg;
}

@media (max-width: 781px) {
	.polster-plakette {
		width: 6.75rem;
		font-size: 0.85rem;
	}
}

.polster-hero__title {
	font-size: clamp(2.4rem, 5.2vw, 4.2rem);
	margin: 0 0 1.25rem;
}

.polster-hero .wp-block-buttons {
	margin-top: 2rem;
	gap: 0.75rem;
}

.polster-hero__bild img {
	width: 100%;
	height: auto;
}

/* Hero mit Foto (Startseite): links der Text auf Sand mit Wabenmuster, rechts das Foto bis an den Fensterrand.
   Ab 782 px liegt das Foto absolut in der rechten Hälfte des Heros – so reicht es ohne 100vw (Scrollleiste)
   an die Kante. Die Plakette sitzt auf der Kante zwischen Sand und Foto. Mobil steht das Foto randlos unter
   dem Text. */
.polster-hero--foto .polster-hero__foto {
	position: relative;
	margin: 0;
}

.polster-hero--foto .polster-hero__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 45%;
}

.polster-hero--foto .polster-hero__foto figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0.35rem 0.75rem;
	border-top-left-radius: var(--polster-radius-klein);
	background: rgb(28 27 25 / 0.66);
	color: var(--papier);
	font-size: 0.8rem;
	line-height: 1.4;
}

@media (min-width: 782px) {
	.polster-hero--foto {
		display: grid;
		align-content: center;
		min-height: clamp(32rem, 78vh, 46rem);
	}

	.polster-hero--foto .polster-hero__medien {
		position: static;
	}

	.polster-hero--foto .polster-hero__foto {
		position: absolute;
		inset: 0 0 0 50%;
	}

	.polster-hero--foto .polster-plakette {
		top: clamp(1.5rem, 4vw, 3rem);
		left: calc(50% - 4.25rem);
	}
}

@media (max-width: 781px) {
	.polster-hero--foto {
		padding-bottom: 0;
	}

	.polster-hero--foto .polster-hero__foto {
		margin-inline: calc(-1 * var(--polster-gutter));
		aspect-ratio: 4 / 3;
	}

	.polster-hero--foto .polster-plakette {
		top: -1.5rem;
		left: 0;
	}
}

/* Fotos am Moped (Startseite): links ein großes Foto, rechts zwei kleine übereinander; Klick öffnet groß */
.polster-am-moped__kopf > * {
	max-width: 42rem;
}

.polster-fotos {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 2rem;
}

.polster-fotos > .wp-block-image {
	position: relative;
	margin: 0;
	min-height: 0;
}

.polster-fotos img {
	display: block;
	border-radius: var(--polster-radius);
}

.polster-fotos .polster-fotos__gross {
	grid-row: 1 / 3;
}

.polster-fotos .polster-fotos__gross img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* die kleinen füllen ihre Zeile; die Höhe gibt das große Foto vor */
.polster-fotos > .wp-block-image:not(.polster-fotos__gross) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 781px) {
	.polster-fotos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 0.5rem;
		margin-top: 1.5rem;
	}

	.polster-fotos .polster-fotos__gross {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.polster-fotos > .wp-block-image:not(.polster-fotos__gross) img {
		position: static;
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

/* Foto im Abschnitt Montage (Startseite): quadratisch neben den Schritten, mobil quer */
.polster-montage-foto img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

@media (max-width: 781px) {
	.polster-montage-foto img {
		aspect-ratio: 4 / 3;
	}
}

/* USP-Leiste */
.polster-usps {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-6);
	padding: 1.75rem var(--polster-gutter);
	font-size: 0.95rem;
}

.polster-usps strong {
	color: var(--wp--preset--color--accent-5);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 1.05rem;
}

.polster-usps a {
	color: var(--wp--preset--color--accent-5);
}

.polster-usps a:hover {
	color: var(--wp--custom--farbe--signalrot-hell);
}

.polster-usps .wp-block-columns {
	gap: 1.5rem;
}

/* Icon links neben dem Text, in hellem Rot auf Tinte */
.polster-usps p:has(.polster-icon) {
	position: relative;
	margin: 0;
	padding-left: 2.75rem;
}

.polster-usps .polster-icon {
	position: absolute;
	left: 0;
	top: 0.05rem;
	inline-size: 2rem;
	block-size: 2rem;
	color: var(--rot-hell);
}

@media (min-width: 782px) and (max-width: 1100px) {
	.polster-usps .wp-block-columns {
		flex-wrap: wrap !important;
		row-gap: 1.25rem;
	}

	.polster-usps .wp-block-column {
		flex-basis: calc(50% - 0.75rem) !important;
	}
}

/* Produktkarten, Produktseite und Archiv: shop.css */

.polster-pflichtangaben > * {
	margin: 0;
}

/* Germanized-Pflichtangaben (MwSt., Versand, Lieferzeit) dezent */
.polster-pflichtangaben,
.polster-pflichtangaben * {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--accent-4);
}

.wc-gzd-additional-info,
.wc-gzd-additional-wrapper,
.price-unit,
.delivery-time-info,
.shipping-costs-info,
.wc-gzd-product-info {
	font-size: 0.85rem;
	color: var(--wp--preset--color--accent-4);
}

/* Tabelle „Passt an“ (Querstreben) */
.polster-passt table {
	background: var(--wp--preset--color--accent-5);
	border-radius: var(--polster-radius);
	overflow: hidden;
	border-collapse: collapse;
}

.polster-passt th {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-5);
	text-align: left;
}

.polster-passt th,
.polster-passt td {
	padding: 0.7rem 1rem;
	border: 0;
}

/* Antwortspalte schmal halten, die Beschreibung der Strebe darf umbrechen */
.polster-passt :is(th, td):last-child {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.polster-passt th,
	.polster-passt td {
		padding: 0.6rem 0.55rem;
		font-size: 0.88rem;
	}

	.polster-passt th {
		hyphens: manual;
		line-height: 1.3;
	}
}

/* Montage-Schritte */
.polster-schritte {
	list-style: none;
	counter-reset: schritt;
	padding: 0;
}

.polster-schritte > li {
	counter-increment: schritt;
	position: relative;
	padding: 0 0 1.25rem 3.25rem;
}

/* Schrittnummer in einer Wabe */
.polster-schritte > li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: -0.15rem;
	width: 2.5rem;
	aspect-ratio: 120 / 103.92;
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
}

.polster-rund img {
	border-radius: var(--polster-radius);
}

/* FAQ */
.polster-faq {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 1.1rem 0;
}

.polster-faq summary {
	position: relative;
	padding-right: 2.5rem;
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
	list-style: none;
}

.polster-faq summary::-webkit-details-marker {
	display: none;
}

/* Plus, das sich beim Öffnen zum Minus dreht – gezeichnet aus zwei Strichen */
.polster-faq summary::before,
.polster-faq summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 0.9rem;
	height: 2px;
	margin-top: -1px;
	background: var(--rot);
	border-radius: 1px;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.polster-faq summary::after {
	transform: rotate(90deg);
}

.polster-faq[open] summary::after {
	transform: rotate(0deg);
}

.polster-faq summary:hover {
	color: var(--rot-dunkel);
}

.polster-faq[open] summary {
	margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
	.polster-faq summary::before,
	.polster-faq summary::after {
		transition: none;
	}
}

.polster-nowrap {
	white-space: nowrap;
}

/* Über uns */
.polster-about {
	text-align: center;
}

.polster-about .polster-lead {
	margin-inline: auto;
	color: var(--wp--preset--color--contrast);
}

.polster-about__marke {
	display: block;
	width: 9rem;
	height: auto;
	margin: 0 auto 1.5rem;
}

/* Blick über den Lenker – blass am unteren Rand, der Text steht im freien oberen Teil */
@media (min-width: 700px) {
	.polster-about {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		padding-bottom: clamp(12rem, 24vw, 19rem);
	}

	.polster-about::after {
		content: "";
		position: absolute;
		z-index: -1;
		pointer-events: none;
		left: 50%;
		bottom: clamp(-2.5rem, -2vw, -1rem);
		translate: -50% 0;
		width: min(1180px, 100%);
		aspect-ratio: 1600 / 900;
		background: var(--linie-dunkel);
		mask: url("../img/blick-ueber-den-lenker.svg") center bottom / contain no-repeat;
	}
}

/* ---------- Footer ---------- */

.polster-footer {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-6);
	padding: clamp(2.5rem, 6vw, 4rem) var(--polster-gutter) 1.5rem;
	font-size: 0.95rem;
}

.polster-footer a {
	color: var(--wp--preset--color--accent-5);
}

.polster-footer a:hover {
	color: var(--wp--custom--farbe--signalrot-hell);
}

.polster-footer__titel {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--custom--farbe--grau-hell);
	margin-bottom: 0.5rem;
}

.polster-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 2;
}

.polster-footer__links a {
	text-decoration: none;
}

.polster-footer .polster-widerruf {
	font-weight: 700;
	text-decoration: underline;
}

.polster-footer__basis {
	border-top: 1px solid rgb(255 255 255 / 0.12);
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	font-size: 0.85rem;
	color: var(--wp--custom--farbe--grau-hell);
}
