/*
 * Abschnitte, die Startseite UND Shop zeigen.
 *
 * Die Bühne (`pl-stage`), die Abschnittsköpfe (`pl-home-sec`), Beratung &
 * Kontakt (`pl-visit`), häufige Fragen (`pl-qa`) und Ratgeber (`pl-guide`)
 * stehen in `Startseite.dc.html` und in `Shop.dc.html` mit denselben Maßen.
 * Seit dem 3.10.2026 deshalb hier und nicht in home.css — eine zweite Fassung
 * in shop.css liefe beim ersten geänderten Abstand auseinander.
 *
 * Die Präfixe heissen weiter `pl-home-*`, weil die Startseite sie zuerst
 * hatte; umbenannt hiesse das jede Vorlage anfassen, ohne dass sich etwas
 * ändert.
 */

/* Bühne ---------------------------------------------------------------- */

.pl-stage {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - 150px);
	overflow: hidden;
	border-bottom: 1px solid #e3e3e8;
	background-color: var(--pl-surface-inverse);
	background-size: cover;
	background-position: center;
}

.pl-stage__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 18, 46, 0.62) 0%, rgba(10, 18, 46, 0.44) 55%, rgba(10, 18, 46, 0.28) 100%);
}

/* Das freigestellte Gerätebild rechts. Rechnung und Breite wörtlich aus dem
   Entwurf: es rückt bei breiten Fenstern an die 1280er-Mitte heran und
   ragt bei schmalen höchstens 40px über den Rand. */
.pl-stage__devices {
	position: absolute;
	top: 0;
	bottom: 0;
	right: max(-40px, calc((100% - 1280px) / 2 - 120px));
	width: clamp(480px, 56vw, 880px);
	background-size: contain;
	background-position: center right;
	background-repeat: no-repeat;
	filter: drop-shadow(0 18px 40px rgba(10, 18, 46, 0.45));
	pointer-events: none;
}

.pl-stage__inner {
	position: relative;
	padding-top: 60px;
	padding-bottom: 52px;
}

.pl .pl-stage__title {
	width: 700px;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	font-size: clamp(40px, 4.6vw, 64px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.08;
	color: #fff;
	text-wrap: pretty;
	text-shadow: 0 1px 24px rgba(10, 18, 46, 0.35);
}

.pl-stage__lead {
	width: 580px;
	max-width: 100%;
	margin: 18px 0 30px;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 16px rgba(10, 18, 46, 0.35);
}

.pl-stage__actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px;
}

.pl-stage__btn {
	padding: 0 28px;
}

/*
 * Die Bühne des Shops: seit dem 18.10.2026 rund ein Drittel des Fensters
 * (33dvh, so gewünscht — zuerst 20dvh) statt 55dvh wie in `Shop.dc.html` — die Produkte
 * sollen ohne Scrollen im Bild stehen. Ohne Gerätebild (seit demselben Tag,
 * siehe archive-product.php), dafür Titel und Text eine Spur grösser als
 * zuvor in der niedrigen Bühne (38–60px, 18px).
 */
/* min-height und nicht height: ein langer Kategorietext lief sonst nach OBEN
   aus der Bühne, und `overflow: hidden` schnitt die Überschrift ab. Bei
   niedrigem Fenster wächst die Bühne deshalb über die 33dvh hinaus.

   Seit dem 11.11.2026 pflegt der Kunde Höhe, Mindesthöhe und Innenabstände
   unter „Shop-Inhalte" (inc/content.php). Die Vorlage setzt dann die
   Variablen am Element; ohne Wert gilt der Rückfall in `var()` — die Maße
   von vorher. Eine FESTE Höhe hat er ausdrücklich verlangt, mit dem Risiko
   von oben; das Feld sagt es dazu. Zwei Spalten: links der Text unten
   bündig wie bisher, rechts ein Bild mittig — oder eine leere Spalte. */
.pl-stage--shop {
	height: var(--pl-stage-h, auto);
	min-height: var(--pl-stage-min, 33dvh);
}

/* Die linke Spalte so breit wie ihr Inhalt (seit dem 14.11.2026, so
   gewünscht), die rechte nimmt den Rest. */
.pl-stage--shop .pl-stage__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	align-self: stretch;
	padding-top: var(--pl-stage-pt, 24px);
	padding-bottom: var(--pl-stage-pb, 24px);
}

.pl-stage__text {
	min-width: 0;
}

.pl-stage__media {
	display: flex;
	align-self: center;
	justify-content: flex-end;
	min-width: 0;
}

.pl .pl-stage__img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: calc(var(--pl-stage-h, 60dvh) - var(--pl-stage-pt, 24px) - var(--pl-stage-pb, 24px));
	object-fit: contain;
}

/* Weitere Texte unter dem Text: Absätze oder eine Aufzählung aus dem Editor
   (wpautop). Mit `.pl` davor — das Eltern-Theme gibt <p> und <ul> eigene
   Abstände und nimmt Listen die Punkte. */
.pl-stage__more {
	max-width: 680px;
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 16px rgba(10, 18, 46, 0.35);
}

.pl .pl-stage__more p,
.pl .pl-stage__more ul,
.pl .pl-stage__more ol {
	margin: 0;
}

.pl .pl-stage__more > * + p,
.pl .pl-stage__more > * + ul,
.pl .pl-stage__more > * + ol {
	margin-top: 8px;
}

.pl .pl-stage__more ul,
.pl .pl-stage__more ol {
	padding-left: 1.25em;
}

.pl .pl-stage__more ul {
	list-style: disc;
}

.pl .pl-stage__more ol {
	list-style: decimal;
}

.pl .pl-stage__more a {
	color: #fff;
	text-decoration: underline;
}

/* Zeilenhöhe 0,9 und ohne max-width (seit dem 14.11.2026, so gewünscht). */
.pl .pl-stage--shop .pl-stage__title {
	width: 900px;
	max-width: none;
	font-size: clamp(38px, 4vw, 60px);
	line-height: 0.9;
}

.pl-stage--shop .pl-stage__lead {
	width: 680px;
	margin: 14px 0 0;
	font-size: 18px;
}

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

/* Nur Abstand nach OBEN, wie im Entwurf: der letzte Abschnitt endet bündig,
   und die 128px bis zum Footer trägt dessen `margin-top`. */
.pl-home-sec {
	padding-top: 112px;
}

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

.pl .pl-home-sec__title--flush {
	margin: 0;
}

.pl-home-sec__lead {
	max-width: 680px;
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.5;
	color: #5f5f69;
}

.pl-home-sec__lead--narrow {
	width: 550px;
	max-width: 100%;
}

.pl-home-sec__lead--tight {
	margin-bottom: 20px;
}

.pl-home-sec__lead--faq {
	margin-bottom: 12px;
}

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

.pl-home-sec__more {
	flex: none;
	font-size: 13px;
	font-weight: 600;
}

/* Beratung & Kontakt ----------------------------------------------------- */

.pl-visit {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
}

.pl-visit__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 40px;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
}

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

.pl-visit__text {
	font-size: 16px;
	line-height: 1.6;
	color: #5f5f69;
}

.pl-visit__person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2px;
}

/* Der graue Kreis aus dem Entwurf — derselbe Ton wie dessen leerer
   Bildplatz. Ein Foto setzt der Filter `pl_home_contact_photo`. */
.pl-visit__photo {
	flex: none;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.08);
}

.pl .pl-visit__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-visit__who {
	font-size: 14px;
	color: #0f0f12;
}

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

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

.pl a.pl-visit__phone,
.pl a.pl-visit__phone:hover {
	font-family: var(--pl-font-mono);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #0f0f12;
	text-decoration: none;
}

/*
 * Statt der eingebetteten Karte des Entwurfs (OpenStreetMap-iframe): eine
 * Fläche in derselben Grösse mit Adresse und Link. Das iframe lüde beim
 * Seitenaufruf von einem Drittanbieter — entschieden am 3.10.2026. Das feine
 * Raster deutet eine Karte an, ohne eine zu sein.
 */
/*
 * Die Karte: seit dem 14.11.2026 ein statisches Bild aus OpenStreetMap
 * (template-parts/sections/visit.php), mittig auf der Adresse. Die Nadel
 * steht mit ihrer Spitze in der Mitte; Beschriftung unten links, Lizenz-
 * hinweis unten rechts. Leicht entsättigt, damit das Blau der Nadel und der
 * Links das einzige Akzent bleibt.
 */
.pl-visit__map {
	position: relative;
	min-height: 280px;
	overflow: hidden;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
	background-color: #f5f5f7;
}

.pl .pl-visit__mapimg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.55);
}

.pl-visit__pin {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	color: #0a4bf5;
	transform: translate(-50%, -92%);
	filter: drop-shadow(0 2px 3px rgba(15, 15, 18, 0.35));
}

.pl .pl-visit__pin svg {
	fill: #fff;
}

.pl-visit__label {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: calc(100% - 32px);
	padding: 12px 16px;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 8px rgba(15, 15, 18, 0.08);
}

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

.pl-visit__hint {
	font-size: 14px;
	color: #5f5f69;
}

.pl-visit__maplink {
	margin-top: 4px;
	font-size: 16px;
	font-weight: 600;
}

.pl-visit__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 2px 6px;
	border-top-left-radius: 4px;
	background: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	color: #5f5f69;
}

.pl .pl-visit__credit a {
	color: inherit;
	font-weight: 400;
}

/* Häufige Fragen --------------------------------------------------------- */

.pl-qa {
	max-width: 860px;
}

.pl-qa__item {
	border-bottom: 1px solid #e3e3e8;
}

.pl-qa__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 2px;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	color: #0f0f12;
}

/* Das Dreieck von Safari und Chrome ersetzt der eigene Chevron. */
.pl-qa__q::-webkit-details-marker {
	display: none;
}

.pl-qa__q::marker {
	content: "";
}

.pl-qa__chevron {
	display: flex;
	flex: none;
	transition: transform 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.pl-qa__item[open] .pl-qa__chevron {
	transform: rotate(180deg);
}

.pl-qa__a {
	max-width: 760px;
	padding: 0 2px 18px;
	font-size: 16px;
	line-height: 1.6;
	color: #5f5f69;
}

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

/*
 * Die Antworten kommen seit dem 11.11.2026 aus dem Editor unter
 * „Shop-Inhalte" und laufen durch wpautop(): eine einzeilige Antwort steht
 * damit in einem <p>, und das darf nicht höher stehen als vorher. Das
 * Eltern-Theme gibt jedem <p> einen Abstand nach unten, deshalb mit `.pl`.
 */
.pl .pl-qa__a p,
.pl .pl-qa__a ul,
.pl .pl-qa__a ol {
	margin: 0;
}

/* Gleich spezifisch wie die Regel darüber und dahinter — `> * + *` allein
   verlöre gegen sie, der Abstand zwischen zwei Absätzen bliebe 0. */
.pl .pl-qa__a > * + p,
.pl .pl-qa__a > * + ul,
.pl .pl-qa__a > * + ol {
	margin-top: 10px;
}

.pl .pl-qa__a ul,
.pl .pl-qa__a ol {
	padding-left: 1.25em;
}

/* Ratgeber --------------------------------------------------------------- */

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

.pl-guide {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	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-guide:hover {
	border-color: #d1d1d8;
	box-shadow: var(--pl-shadow-card-hover);
}

.pl-guide__title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #0f0f12;
	text-wrap: pretty;
}

.pl-guide__text {
	font-size: 16px;
	line-height: 1.55;
	color: #5f5f69;
}

.pl-guide__more {
	margin-top: auto;
	font-size: 16px;
	font-weight: 600;
	color: #0a4bf5;
}


/* Textlinks behalten beim Überfahren ihre Farbe — im Entwurf inline gesetzt. */
.pl a.pl-home-sec__more:hover,
.pl .pl-qa__a a:hover {
	color: #0a4bf5;
}

/* Schmalere Fenster ------------------------------------------------------
 *
 * Der Entwurf kennt nur die Desktopbreite. Darunter gilt: Raster brechen
 * um, das Gerätebild der Bühne weicht, bevor es den Text überdeckt.
 */

@media (max-width: 1100px) {
	/* Ohne max-width passten 900px hier nicht mehr in die Seite: der Titel
	   bricht dann in seiner Spalte um. */
	.pl .pl-stage--shop .pl-stage__title {
		width: auto;
	}

	.pl-stage__devices {
		opacity: 0.35;
	}
}

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

	.pl-stage__devices {
		display: none;
	}
}

@media (max-width: 760px) {
	.pl-home-sec {
		padding-top: 72px;
	}

	.pl-stage {
		min-height: 0;
	}

	/* Auf dem Telefon keine feste Höhe (der Text liefe hinaus), die
	   Mindesthöhe nur, wenn sie gepflegt ist; das Bild unter den Text, eine
	   leere rechte Spalte fällt weg. */
	.pl-stage--shop {
		height: auto;
		min-height: var(--pl-stage-min, 0px);
	}

	.pl-stage--shop .pl-stage__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.pl-stage__media {
		justify-content: flex-start;
	}

	.pl-stage__media.is-empty {
		display: none;
	}

	.pl .pl-stage__img {
		max-height: 50dvh;
	}

	.pl-stage__inner {
		padding-top: 48px;
		padding-bottom: 44px;
	}

	.pl-visit__card {
		padding: 28px 24px;
	}

	/* Schmal verdeckte die Beschriftung die Nadel: sie steht dann unter dem Bild. */
	.pl-visit__map {
		min-height: 0;
		padding-top: 220px;
	}

	.pl .pl-visit__mapimg {
		bottom: auto;
		height: 220px;
	}

	.pl-visit__pin {
		top: 110px;
	}

	.pl-visit__label {
		position: static;
		max-width: none;
		border: 0;
		border-top: 1px solid #e3e3e8;
		border-radius: 0;
		box-shadow: none;
	}

	.pl-visit__credit {
		top: 200px;
		bottom: auto;
		border-radius: 4px 0 0 0;
	}
}

@media (max-width: 620px) {
	.pl-home-sec__head {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pl-guide,
	.pl-qa__chevron {
		transition: none;
	}
}
