/*
Theme Name: Allemann und Hotz 2
Description: Variante 2 für die Allemann und Hotz GmbH: gleicher Inhalt, neues Design. Diese Datei enthält die Bausteine der bestehenden Seiten; das neue Gestaltungssystem steht in assets/css/v2.css.
Author: Picline GmbH
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: aundh
*/

:root {
	--aundh-abstand: clamp(3rem, 6vw, 5rem);
	--aundh-braun: var(--wp--preset--color--braun);
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

a {
	text-underline-offset: 0.18em;
}

:where(a, button, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--hellbraun);
	outline-offset: 3px;
}

/* ---------- Schaltflächen ---------- */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	font-size: 1.0625rem;
	text-align: center;
	text-decoration: none;
}

.wp-block-button.aundh-knopf-gross > .wp-block-button__link {
	min-height: 4rem;
	padding: 1rem clamp(1.5rem, 5vw, 3.25rem);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-radius: 100px;
}

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

.aundh-main {
	margin-block: 0;
}

.aundh-main--seite {
	padding-block: var(--aundh-abstand);
	min-height: 50vh;
}

.aundh-abschnitt {
	margin-block: 0;
	padding-block: var(--aundh-abstand);
}

.aundh-abschnitt--beige {
	background: var(--wp--preset--color--beige);
}

.aundh-mitte {
	text-align: center;
}

.aundh-mitte > .wp-block-buttons {
	justify-content: center;
}

.aundh-main .aundh-schmal {
	max-width: 50rem;
}

.aundh-titel-mittel {
	font-size: var(--wp--preset--font-size--titel-mittel);
}

/* ---------- 1 Einstieg ---------- */

.aundh-einstieg {
	padding-top: clamp(2.75rem, 6vw, 5.5rem);
	padding-bottom: var(--aundh-abstand);
}

.aundh-einstieg h1 {
	max-width: 56rem;
	margin-bottom: 2rem;
}

.aundh-einstieg h1 a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.14em;
}

.aundh-einstieg h1 a:hover {
	color: var(--wp--preset--color--hellbraun);
}

.aundh-einstieg > .wp-block-buttons {
	margin-top: 2rem;
	gap: 0.625rem;
}

.aundh-einstieg__bild {
	margin-top: clamp(2.5rem, 6vw, 5rem);
	margin-bottom: 0;
}

/* Rund 2 zu 1 wie in der Vorschau, höchstens 664px und nie höher als der sichtbare Bereich. */
.aundh-einstieg .aundh-einstieg__bild img {
	display: block;
	width: 100%;
	height: min(50vw, 41.5rem, calc(100vh - 6rem));
	object-fit: cover;
	object-position: 50% 40%;
}

.aundh-einstieg__zeile {
	position: relative;
	margin-top: -9.5rem;
}

/* Gleich breit wie die rechte Spalte im Abschnitt darunter (halbe Inhaltsbreite). */
.aundh-einstieg__kasten {
	box-sizing: border-box;
	width: 50%;
	margin-left: auto;
	padding: clamp(1.75rem, 4vw, 3.125rem);
	color: var(--wp--preset--color--weiss);
	text-align: center;
	background: rgb(72 57 44 / 0.93);
}

.aundh-einstieg__kasten h2 {
	color: var(--wp--preset--color--weiss);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* ---------- 2, 3 und 7 Bild und Text nebeneinander ---------- */

.aundh-teiler {
	gap: 0;
	margin-block: 0;
	align-items: stretch;
}

.aundh-abschnitt--teiler {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.aundh-teiler > .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
}

/* Text und Bild je genau die halbe Inhaltsbreite. */
@media (min-width: 782px) {
	.wp-block-columns.aundh-teiler:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 0 0 50%;
	}
}

.aundh-teiler__text {
	padding: clamp(2rem, 5vw, 4rem);
}

/* Abschnitte 2 und 3: Text im beigen Kasten, gleich hoch wie das Bild. */
.aundh-abschnitt--teiler .aundh-teiler__text {
	background: var(--wp--preset--color--beige);
}

.aundh-teiler__text > * + * {
	margin-top: 1.25rem;
}

.aundh-teiler__text .wp-block-buttons {
	margin-top: 1.875rem;
}

.aundh-teiler .aundh-teiler__bild {
	position: relative;
	flex: 1;
	min-height: 31rem;
	margin: 0;
}

.aundh-teiler .aundh-teiler__bild img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aundh-teiler .aundh-teiler__bild--oben img {
	object-position: 50% 24%;
}

/* ---------- 4 Zehn Punkte ---------- */

/* Desktop zwei Reihen zu je fünf, Tablet zwei pro Reihe, Handy einer pro Reihe. */
.aundh-punkte {
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 3rem 2.5rem;
	margin-top: clamp(2.5rem, 6vw, 5.5rem);
	text-align: left;
}

@media (max-width: 1199px) {
	.aundh-punkte {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 3rem 3.75rem;
	}
}

@media (max-width: 599px) {
	.aundh-punkte {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

.aundh-punkt > * {
	margin-block: 0;
}

.aundh-punkt h3 {
	margin-bottom: 0.75rem;
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.aundh-punkt p + p {
	margin-top: 0.625rem;
}

.aundh-fussnote {
	margin-top: 2.5rem;
	font-size: var(--wp--preset--font-size--klein);
	text-align: left;
}

/* Linien-Symbole: Auswahl im Editor über «Stile» des Gruppen-Blocks. */
.wp-block-group[class*="is-style-symbol-"]::before {
	content: "";
	display: block;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1.25rem;
	border: 2px solid var(--aundh-braun);
	background: var(--aundh-symbol) center / 3.1rem no-repeat;
	box-sizing: border-box;
}

.is-style-symbol-person { --aundh-symbol: url(assets/icons/person.svg); }
.is-style-symbol-ort { --aundh-symbol: url(assets/icons/ort.svg); }
.is-style-symbol-team { --aundh-symbol: url(assets/icons/team.svg); }
.is-style-symbol-moebel { --aundh-symbol: url(assets/icons/moebel.svg); }
.is-style-symbol-haus { --aundh-symbol: url(assets/icons/haus.svg); }
.is-style-symbol-uhr { --aundh-symbol: url(assets/icons/uhr.svg); }
.is-style-symbol-erfahrung { --aundh-symbol: url(assets/icons/erfahrung.svg); }
.is-style-symbol-garantie { --aundh-symbol: url(assets/icons/garantie.svg); }
.is-style-symbol-offerte { --aundh-symbol: url(assets/icons/offerte.svg); }
.is-style-symbol-montage { --aundh-symbol: url(assets/icons/montage.svg); }
.is-style-symbol-budget { --aundh-symbol: url(assets/icons/budget.svg); }
.is-style-symbol-geraet { --aundh-symbol: url(assets/icons/geraet.svg); }

/* ---------- 5 Küchenbau im Fokus ---------- */

/* Text und Bild enden auf gleicher Höhe: Das Bild füllt die Höhe der Textspalte. */
.aundh-fokus {
	gap: clamp(2rem, 5vw, 4rem);
	margin-block: 0;
	align-items: stretch;
}

.aundh-fokus > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.aundh-fokus > .wp-block-column > :last-child {
	margin-bottom: 0;
}

.aundh-fokus .aundh-fokus__bild {
	position: relative;
	flex: 1;
	min-height: 22rem;
	margin: 0;
}

.aundh-fokus .aundh-fokus__bild img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.aundh-haken {
	margin-top: 1.75rem;
	padding: 0;
	list-style: none;
}

.aundh-haken li {
	position: relative;
	padding-left: 2rem;
}

.aundh-haken li + li {
	margin-top: 0.625rem;
}

.aundh-haken li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	background: url(assets/icons/haken.svg) center / contain no-repeat;
}

/* Steht unter Text und Bild, über die ganze Inhaltsbreite. */
.aundh-merkkasten {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--aundh-braun);
	background: var(--wp--preset--color--beige);
}

.aundh-merkkasten > * {
	margin-block: 0;
}

.aundh-merkkasten__titel {
	margin-bottom: 0.375rem;
	font-family: var(--wp--preset--font-family--titel);
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	text-transform: uppercase;
}

/* ---------- 8 Zwei Hinweise nebeneinander ---------- */

.aundh-doppel {
	gap: clamp(2.5rem, 5vw, 4.5rem);
	margin-block: 0;
}

.aundh-doppel .wp-block-buttons {
	justify-content: center;
	margin-top: 1.875rem;
}

/* ---------- 9 Google-Bewertungen ---------- */

.aundh-stimmen {
	gap: 1.875rem;
	margin-top: clamp(2rem, 5vw, 3.75rem);
	text-align: left;
}

.aundh-stimme {
	margin: 0;
	padding: 2.5rem 1.875rem;
	border: 2px solid var(--wp--preset--color--linie);
	border-radius: 30px;
}

.aundh-stimme > * {
	margin-block: 0;
}

.aundh-stimme h3 {
	font-size: 1.875rem;
}

.aundh-stimme__sterne {
	width: 9.5rem;
	height: 1.25rem;
	margin-top: 0.75rem;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	background: url(assets/icons/stern.svg) left center / 1.9rem 1.25rem repeat-x;
}

.aundh-stimme__text {
	margin-top: 1.5rem;
}

.aundh-stimmen + .wp-block-buttons {
	justify-content: center;
	margin-top: 2.5rem;
}

/* ---------- 10 Abschluss ---------- */

.aundh-abschluss {
	margin-block: 0;
	padding-block: clamp(2.5rem, 6vw, 4.75rem);
	background: linear-gradient(var(--wp--preset--color--beige) 0 56%, var(--wp--preset--color--weiss) 56%);
}

.aundh-abschluss__kasten {
	padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.25rem, 4vw, 2.5rem);
	text-align: center;
	background: var(--wp--preset--color--weiss);
}

.aundh-abschluss__kasten h2 {
	font-size: var(--wp--preset--font-size--titel-1);
}

.aundh-abschluss__kasten p {
	font-size: var(--wp--preset--font-size--gross);
}

.aundh-abschluss__kasten .wp-block-buttons {
	justify-content: center;
	margin-top: 1.875rem;
}

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

@media (max-width: 781px) {
	.aundh-einstieg .aundh-einstieg__bild img {
		height: auto;
		aspect-ratio: 2 / 1;
	}

	.aundh-einstieg__kasten {
		width: auto;
	}

	/* Tablet: Bilder rund 4 zu 3, Ausschnitt so, dass das Hauptmotiv im Bild bleibt. */
	.aundh-teiler .aundh-teiler__bild {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.aundh-teiler .aundh-teiler__bild img {
		object-position: 50% 60%;
	}

	.aundh-teiler .aundh-teiler__bild--oben img {
		object-position: 50% 45%;
	}

	/* Auf dem Handy steht dieses Bild wie in der Vorschau vor dem Text. */
	.aundh-teiler--bild-zuerst > .wp-block-column:first-child {
		order: 2;
	}

	.aundh-teiler__text {
		padding: 2.25rem 1.25rem;
	}

	.aundh-abschluss {
		background: linear-gradient(var(--wp--preset--color--beige) 0 40%, var(--wp--preset--color--weiss) 40%);
	}
}

@media (max-width: 520px) {
	.aundh-einstieg .aundh-einstieg__bild img {
		aspect-ratio: 3 / 2;
	}

	/* Handy unverändert: Bilder etwas höher als am Tablet. */
	.aundh-teiler .aundh-teiler__bild {
		aspect-ratio: 8 / 7;
	}

	.aundh-teiler .aundh-teiler__bild img {
		object-position: 50% 50%;
	}

	.aundh-teiler .aundh-teiler__bild--oben img {
		object-position: 50% 24%;
	}

	/* Der braune Kasten darf auf dem Handy die Gesichter nicht verdecken. */
	.aundh-einstieg__zeile {
		margin-top: -2.5rem;
	}

	.aundh-einstieg > .wp-block-buttons,
	.aundh-abschluss__kasten .wp-block-buttons,
	.aundh-stimmen + .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.aundh-einstieg > .wp-block-buttons .wp-block-button,
	.aundh-einstieg > .wp-block-buttons .wp-block-button__link,
	.aundh-abschluss__kasten .wp-block-button,
	.aundh-abschluss__kasten .wp-block-button__link,
	.aundh-stimmen + .wp-block-buttons .wp-block-button,
	.aundh-stimmen + .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}

	.wp-block-button.aundh-knopf-gross > .wp-block-button__link {
		font-size: 1.0625rem;
	}
}

@media (max-width: 781px) {
	.aundh-fokus .aundh-fokus__bild {
		flex: none;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/* ---------- 7 Badmöbel und Service: zwei Reihen mit Abstand ---------- */

/* 50px Abstand zwischen Bild und Text sowie zwischen den zwei Reihen, wie in der Vorschau gemessen. */
.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .aundh-teiler {
	gap: 3.125rem;
}

.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .aundh-teiler + .aundh-teiler {
	margin-top: 3.125rem;
}

.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .aundh-teiler > .aundh-teiler__text {
	padding: 0;
}

.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .aundh-teiler h2 {
	text-wrap: balance;
}

/* Der Textbereich ist etwas breiter als das Bild, damit der Titel auf zwei Zeilen passt. */
@media (min-width: 782px) {
	.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .wp-block-columns.aundh-teiler:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 0 0 calc(45% - 1.5625rem);
	}

	.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .wp-block-columns.aundh-teiler:not(.is-not-stacked-on-mobile) > .wp-block-column.aundh-teiler__text {
		flex-basis: calc(55% - 1.5625rem);
	}
}

@media (max-width: 781px) {
	.aundh-abschnitt:not(.aundh-abschnitt--teiler) > .aundh-teiler {
		gap: 1.75rem;
	}
}

/* ---------- 8 Zwei Hinweise: gemeinsame Zeilen für Titel, Text und Schaltfläche ---------- */

/* Ab Tablet quer stehen die Hinweise nebeneinander. Ein Raster mit gemeinsamen Zeilen hält
   Titel, Text und Schaltfläche beider Spalten auf einer Linie, auch wenn ein Text länger wird. */
@media (min-width: 782px) {
	.wp-block-columns.aundh-doppel {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto auto;
		row-gap: 0;
	}

	.wp-block-columns.aundh-doppel > .wp-block-column {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 3;
		align-items: start;
		min-width: 0;
	}

	/* Schmaler Titel: bricht wie in der Vorschau auf zwei Zeilen um («Einblick in unsere» / «Arbeiten»). */
	.aundh-doppel h2 {
		width: 100%;
		max-width: 9.4em;
		margin-inline: auto;
	}
}

/* =====================================================================
   Bausteine der Unterseiten
   ===================================================================== */

/* ---------- Seitenkopf: Bild mit dunklem Schleier und Seitentitel ---------- */

.aundh-seitenkopf {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 25rem;
	margin-block: 0;
	padding-block: 3rem;
	overflow: hidden;
	text-align: center;
	background: var(--aundh-braun);
}

.aundh-seitenkopf .aundh-seitenkopf__bild {
	position: absolute;
	inset: 0;
	max-width: none;
	margin: 0 !important;
}

.aundh-seitenkopf .aundh-seitenkopf__bild::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.58);
}

.aundh-seitenkopf .aundh-seitenkopf__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.aundh-seitenkopf h1 {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 62.5rem;
	margin-block: 0;
	color: var(--wp--preset--color--weiss);
}

/* ---------- Einleitung: Titel mittig, darunter Text und Bild ---------- */

.aundh-links {
	text-align: left;
}

.aundh-mitte > h2 + .aundh-fokus,
.aundh-mitte > p + .aundh-fokus {
	margin-top: clamp(2rem, 5vw, 3.25rem);
}

.aundh-abschnitt > h3.aundh-titel-mittel {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Brauner Abschnitt mit sechs Kacheln ---------- */

.aundh-abschnitt--braun {
	color: var(--wp--preset--color--weiss);
	background: var(--aundh-braun);
}

.aundh-abschnitt--braun > h2 {
	max-width: 56rem;
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--titel-1);
	font-weight: 600;
}

.aundh-kacheln {
	gap: 1.5rem;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	text-align: left;
}

.aundh-kachel {
	box-sizing: border-box;
	margin: 0;
	padding: 2rem;
	border: 2px solid #e2b88e;
}

.aundh-kachel > * {
	margin-block: 0;
}

.aundh-kachel h3 {
	margin-bottom: 1.25rem;
	color: inherit;
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	line-height: 1.4;
}

.aundh-kachel p {
	font-size: var(--wp--preset--font-size--klein);
}

.aundh-kachel p + p {
	margin-top: 0.75rem;
}

/* Jede zweite Kachel ist weiss gefüllt. */
.aundh-kacheln > .aundh-kachel:nth-child(odd) {
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--weiss);
	border-color: var(--wp--preset--color--weiss);
	box-shadow: inset 0 0 0 0.6rem var(--wp--preset--color--weiss), inset 0 0 0 calc(0.6rem + 1px) var(--wp--preset--color--linie);
}

/* ---------- Bild-Text-Reihen auf den Unterseiten: je halbe Breite ---------- */

.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .aundh-teiler {
	gap: 3.75rem;
}

.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .aundh-teiler + .aundh-teiler {
	margin-top: clamp(3rem, 8vw, 7.5rem);
}

.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .aundh-teiler .aundh-teiler__bild {
	min-height: 25rem;
}

.aundh-reihen .aundh-teiler__text > * + * {
	margin-top: 1.25rem;
}

@media (min-width: 782px) {
	.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .wp-block-columns.aundh-teiler:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .wp-block-columns.aundh-teiler:not(.is-not-stacked-on-mobile) > .wp-block-column.aundh-teiler__text {
		flex: 0 0 calc(50% - 1.875rem);
	}
}

@media (max-width: 781px) {
	.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .aundh-teiler {
		gap: 1.75rem;
	}

	.aundh-abschnitt.aundh-reihen:not(.aundh-abschnitt--teiler) > .aundh-teiler .aundh-teiler__bild {
		min-height: 0;
	}
}

/* ---------- Schritte ---------- */

.aundh-schritte {
	gap: 1.875rem;
	max-width: 51.25rem;
	margin-top: clamp(2rem, 5vw, 3.75rem);
	text-align: left;
}

.aundh-schritt {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	column-gap: 1.25rem;
	align-content: start;
	box-sizing: border-box;
	margin: 0;
	padding: 1.5rem 1.25rem 1.75rem;
	background: #fffbf8;
}

.aundh-schritt > * {
	margin-block: 0;
}

.aundh-schritt .aundh-schritt__zahl {
	grid-row: 1 / span 2;
	color: var(--wp--preset--color--hellbraun);
	font-family: var(--wp--preset--font-family--titel);
	font-size: 6rem;
	line-height: 1;
}

.aundh-schritt h4 {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--titel-3);
	line-height: 1.25;
}

.aundh-schritt h4 + p {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--klein);
}

@media (max-width: 520px) {
	.aundh-schritt {
		grid-template-columns: 4.5rem 1fr;
		column-gap: 1rem;
	}

	.aundh-schritt .aundh-schritt__zahl {
		font-size: 3.5rem;
	}

	.aundh-schritt h4 {
		margin-top: 0.25rem;
	}
}

/* ---------- Grosses Bild mit braunem Kasten ---------- */

.aundh-bildkasten {
	margin-block: 0;
	padding-bottom: clamp(2rem, 5vw, 3.75rem);
}

.aundh-bildkasten .aundh-bildkasten__bild {
	margin-block: 0;
}

.aundh-bildkasten .aundh-bildkasten__bild img {
	display: block;
	width: 100%;
	height: min(50vw, 40rem, calc(100vh - 6rem));
	object-fit: cover;
}

.aundh-bildkasten .aundh-einstieg__zeile {
	margin-top: -10.5rem;
}

.aundh-bildkasten .aundh-einstieg__kasten {
	width: 60%;
	text-align: left;
	background: var(--wp--preset--color--hellbraun);
}

.aundh-bildkasten .aundh-einstieg__kasten h2 {
	font-size: var(--wp--preset--font-size--titel-2);
}

@media (max-width: 781px) {
	.aundh-bildkasten .aundh-bildkasten__bild img {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.aundh-bildkasten .aundh-einstieg__zeile {
		margin-top: -3rem;
	}

	.aundh-bildkasten .aundh-einstieg__kasten {
		width: auto;
	}
}

/* ---------- Seitenkopf mit Einleitungstext ---------- */

.aundh-seitenkopf {
	grid-auto-flow: row;
	align-content: center;
	row-gap: 1.25rem;
}

.aundh-seitenkopf p {
	position: relative;
	z-index: 1;
	max-width: 50rem;
	margin-block: 0;
	color: var(--wp--preset--color--weiss);
}

/* ---------- Aufklappbare Bereiche ---------- */

.aundh-klapp__knopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.aundh-klapp__knopf::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.aundh-klapp.ist-offen > .aundh-klapp__titel .aundh-klapp__knopf::after,
.aundh-klapp.ist-offen .aundh-klapp__kopf .aundh-klapp__knopf::after {
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.aundh-klapp__inhalt[hidden] {
	display: none;
}

/* ---------- Wissenswertes: Blöcke mit Feld «Tipps anzeigen» ---------- */

/* Block, Feld, Block, Feld … im Quelltext. Das Raster füllt Lücken auf: Die Blöcke stehen paarweise,
   ein offenes Feld liegt über die ganze Breite direkt unter der Reihe seines Blocks. */
.aundh-wissen {
	gap: 1.875rem;
	grid-auto-flow: row dense;
}

.aundh-wissen__karte {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 1.875rem;
	color: var(--wp--preset--color--weiss);
	background: var(--aundh-braun);
}

.aundh-wissen__karte > * {
	margin-block: 0;
}

.aundh-wissen__karte .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.aundh-wissen__karte .aundh-wissen__titel {
	margin-top: 1.75rem;
	color: inherit;
	font-family: var(--wp--preset--font-family--titel);
	font-size: clamp(1.625rem, 1rem + 2vw, 2.1875rem);
	line-height: 1.2;
}

.aundh-wissen__karte .aundh-wissen__titel + p {
	margin-top: 1.25rem;
}

.aundh-wissen__karte .wp-block-buttons {
	margin-top: 1.875rem;
}

.wp-block-button.aundh-knopf-hell > .wp-block-button__link {
	color: var(--wp--preset--color--text);
	text-transform: uppercase;
	background: #fbf4ed;
	border-color: #fbf4ed;
}

.wp-block-button.aundh-knopf-hell > .wp-block-button__link:hover {
	background: var(--wp--preset--color--linie);
	border-color: var(--wp--preset--color--linie);
}

/* Offener Block: eine braune Spitze zeigt auf das Feld darunter. */
.aundh-wissen__karte.ist-offen::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 2rem;
	height: 1rem;
	margin-left: -1rem;
	background: var(--aundh-braun);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Feld mit dem ausführlichen Text. */
.aundh-wissen__feld {
	grid-column: 1 / -1;
	box-sizing: border-box;
	margin: 0;
	padding: clamp(1.75rem, 5vw, 4rem);
	text-align: left;
	background: var(--wp--preset--color--beige);
	border-top: 3px solid var(--aundh-braun);
	scroll-margin-top: 7rem;
}

/* Mit Skript rückt das Feld bis an die Spitze des Blocks heran. */
.aundh-wissen.ist-bereit .aundh-wissen__feld {
	margin-top: -0.875rem;
}

.aundh-wissen__feld[hidden] {
	display: none;
}

.aundh-wissen__feld > * {
	margin-block: 0;
}

.aundh-wissen__feld > p,
.aundh-wissen__feld > h3 {
	max-width: 46rem;
}

.aundh-wissen__feld > p {
	margin-top: 1rem;
}

.aundh-wissen__feld > h3 {
	margin-top: 2.5rem;
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem);
}

.aundh-wissen__feld > h3:first-child {
	margin-top: 0;
}

.aundh-wissen__feld .aundh-fokus {
	margin-top: 1.75rem;
}

.aundh-wissen__feld .aundh-fokus h4 {
	margin-block: 0;
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	text-transform: uppercase;
}

.aundh-wissen__feld .aundh-fokus h4 + p {
	margin-top: 0.5rem;
}

.aundh-wissen__feld .aundh-fokus p + h4 {
	margin-top: 1.75rem;
}

/* ---------- Wissenswertes: Unterseiten ---------- */

/* Seitenkopf der Unterseiten: Titel und Einleitung nutzen die ganze Inhaltsbreite. */
.aundh-seitenkopf--breit h1,
.aundh-seitenkopf--breit p {
	width: 100%;
	max-width: var(--wp--style--global--content-size);
}

/* Titel und Einleitung stehen senkrecht mittig. Über den Grossbuchstaben des Titels ist in der Zeile mehr Luft
   als unter der letzten Textzeile; der kleine Ausgleich macht den sichtbaren Abstand oben und unten gleich. */
.aundh-seitenkopf--breit h1 {
	margin-top: -0.1em;
}

/* Die Einleitung füllt die Zeilen bis an beide Kanten, der Browser vermeidet ein einzelnes Schlusswort. */
.aundh-seitenkopf--breit p {
	text-wrap: pretty;
}

/* Zweiter Zwischentitel im selben Abschnitt. */
.aundh-abschnitt > p + h2 {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Vier Kacheln: höchstens zwei pro Reihe. Eine pro Reihe, sobald zwei Kacheln zu je 19rem keinen Platz mehr haben
   (gleicher Umbruch wie bei den sechs Kacheln). */
.aundh-kacheln--vier {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(19rem, calc(50% - 0.75rem))), 1fr)) !important;
}

/* Links zu den anderen Themen: unter dem letzten Abschnitt, vor dem Schlussaufruf. */
.aundh-themen {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.aundh-themen > * {
	margin-block: 0;
}

.aundh-themen__titel {
	font-family: var(--wp--preset--font-family--titel);
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	text-transform: uppercase;
}

.aundh-themen ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 2rem;
	margin-top: 0.5rem;
	padding: 0;
	list-style: none;
}

.aundh-themen a {
	display: inline-block;
	padding-block: 0.5rem;
}

/* ---------- Referenzen: Projektkarten ---------- */

/* Der Abstand zwischen den Reihen sitzt als Innenabstand unten an jeder Karte, damit das gemeinsame Raster keine Lücken bekommt. */
.aundh-projekte {
	gap: 0 1.875rem;
	margin-bottom: -2.5rem !important;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	text-align: left;
}

/* Gemeinsames Raster: Bild, Projektart, Titel und Beschreibung liegen in einer Reihe bei beiden Karten auf denselben Linien. */
.aundh-projekt {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 4;
	align-content: start;
	margin: 0;
	padding-bottom: 2.5rem;
}

/* Titelbereich so hoch wie der längste Titel der Reihe: Text oben, Plus-Zeichen senkrecht mittig, Linie unten. */
.aundh-projekt h3 {
	display: flex;
}

.aundh-projekt h3 .aundh-klapp__knopf {
	flex: 1;
	align-items: flex-start;
}

.aundh-projekt h3 .aundh-klapp__knopf::after {
	align-self: center;
}

.aundh-projekt > * {
	margin-block: 0;
}

.aundh-projekt .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.aundh-projekt__art {
	margin-top: 1.25rem;
	color: var(--wp--preset--color--hellbraun);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--klein);
}

.aundh-projekt h3 {
	margin-top: 0.375rem;
	padding-bottom: 0.875rem;
	font-size: clamp(1.5rem, 1rem + 1.4vw, 1.875rem);
	border-bottom: 2px solid var(--wp--preset--color--linie);
}

.aundh-projekt .aundh-klapp__inhalt {
	margin-top: 1rem;
}

.aundh-projekt .aundh-klapp__inhalt > * {
	margin-block: 0;
}

.aundh-projekt .aundh-klapp__inhalt > * + * {
	margin-top: 0.75rem;
}

/* ---------- Referenzen: Galerie ---------- */

.aundh-galerie {
	gap: 1.25rem;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	text-align: left;
}

.aundh-galerie > .wp-block-image {
	margin: 0;
}

.aundh-galerie > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Lange Galerie: Mit Skript sind zuerst zwölf Bilder sichtbar, «Mehr anzeigen» blendet die übrigen ein. */
.aundh-galerie > .wp-block-image[hidden] {
	display: none;
}

.aundh-galerie__mehr {
	margin-top: 2.5rem;
}

.aundh-bildinfo {
	display: grid;
	gap: 0.25rem;
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--klein);
	text-align: left;
}

.aundh-bildinfo__titel {
	font-family: var(--wp--preset--font-family--titel);
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 500;
}

.aundh-bildinfo__ort {
	color: var(--wp--preset--color--hellbraun);
	font-weight: 700;
}

/* Tippfläche der aufklappbaren Titel und Galerie auf dem Handy. */
.aundh-klapp__knopf {
	min-height: 2.75rem;
}

@media (max-width: 520px) {
	.aundh-galerie {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem;
	}
}

/* ---------- Seitenkopf: Untertitel ---------- */

.aundh-seitenkopf .aundh-seitenkopf__unter {
	font-family: var(--wp--preset--font-family--titel);
	font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	line-height: 1.25;
}

/* ---------- Über uns: weisse Symbole auf Braun ---------- */

.aundh-abschnitt--braun .aundh-punkt h3 {
	color: var(--wp--preset--color--weiss);
}

.aundh-abschnitt--braun .wp-block-group[class*="is-style-symbol-"]::before {
	filter: brightness(0) invert(1);
}

/* ---------- Über uns: Team ---------- */

.aundh-team {
	gap: 3rem 3.75rem;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	text-align: left;
}

.aundh-person {
	margin: 0;
}

.aundh-person > * {
	margin-block: 0;
}

.aundh-person .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	object-position: 50% 20%;
}

.aundh-person h3 {
	margin-top: 1.5rem;
	font-size: var(--wp--preset--font-size--titel-mittel);
}

.aundh-person .aundh-person__funktion {
	margin-top: 0.375rem;
	color: var(--wp--preset--color--hellbraun);
	font-family: var(--wp--preset--font-family--titel);
	font-size: var(--wp--preset--font-size--titel-3);
}

.aundh-person .aundh-person__funktion ~ p {
	margin-top: 1rem;
}

/* ---------- Über uns: Hersteller ---------- */

.aundh-hersteller {
	gap: 1.25rem;
	justify-content: center;
	margin-top: 2.5rem;
}

.aundh-hersteller > * {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 11.5rem;
	height: 6rem;
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--linie);
}

.aundh-hersteller .wp-block-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.aundh-hersteller .wp-block-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 4rem;
	object-fit: contain;
}

.aundh-hersteller .aundh-hersteller__name {
	font-family: var(--wp--preset--font-family--titel);
	font-size: 1.5rem;
}

.aundh-hersteller .aundh-hersteller__name a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.aundh-hersteller a:hover {
	opacity: 0.8;
}

.aundh-garantie {
	margin-top: 2.5rem;
}

.aundh-garantie + .aundh-hinweis-klein,
.aundh-hinweis-klein {
	font-size: var(--wp--preset--font-size--klein);
}

/* ---------- Kontakt ---------- */

.aundh-kontakt {
	gap: clamp(2rem, 5vw, 4rem);
	margin-block: 0;
	align-items: flex-start;
}

.aundh-kontakt h2 {
	font-size: var(--wp--preset--font-size--titel-mittel);
}

.aundh-kontakt__daten {
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--wp--preset--color--beige);
}

.aundh-kontakt__daten > * {
	margin-block: 0;
}

.aundh-kontakt__daten > h2 + p {
	margin-top: 0.75rem;
}

.aundh-kontakt__daten h3 {
	margin-top: 1.75rem;
	font-size: var(--wp--preset--font-size--titel-3);
	font-weight: 600;
	text-transform: uppercase;
}

.aundh-kontakt__daten h3 + p,
.aundh-kontakt__daten p + p {
	margin-top: 0.5rem;
}

.aundh-kontakt__daten p a {
	display: inline-block;
	padding-block: 0.375rem;
}

/* ---------- Formular ---------- */

.aundh-formular-rahmen {
	scroll-margin-top: 7rem;
}

.aundh-formular__feld {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.375rem;
	margin: 0 0 1.25rem;
}

.aundh-formular label {
	font-weight: 700;
}

.aundh-formular input[type="text"],
.aundh-formular input[type="email"],
.aundh-formular input[type="tel"],
.aundh-formular select,
.aundh-formular textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.625rem 0.875rem;
	color: var(--wp--preset--color--text);
	font: inherit;
	background: var(--wp--preset--color--weiss);
	border: 1px solid #8d8379;
	border-radius: 0;
}

.aundh-formular textarea {
	min-height: 9rem;
	resize: vertical;
}

.aundh-formular input[type="file"] {
	max-width: 100%;
	padding-block: 0.5rem;
	font: inherit;
}

.aundh-formular :is(input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--hellbraun);
	outline-offset: 2px;
}

.aundh-formular [aria-invalid="true"] {
	border-color: #a32020;
	border-width: 2px;
}

/* Felderpaare: PLZ schmal und Ort breit, E-Mail und Telefon gleich breit. */
.aundh-formular__zeile {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	column-gap: 1rem;
	align-items: start;
}

.aundh-formular__zeile--plz {
	grid-template-columns: 7.5rem minmax(0, 1fr);
}

@media (max-width: 340px) {
	.aundh-formular__zeile--plz {
		grid-template-columns: minmax(0, 1fr);
	}

	.aundh-formular__zeile--plz input[name="aundh_plz"] {
		max-width: 7.5rem;
	}
}

.aundh-formular__fehler {
	color: #a32020;
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 700;
}

/* Die Meldung zur PLZ darf unter das Feld «Ort» laufen, statt im schmalen Feld umzubrechen. */
.aundh-formular__zeile--plz .aundh-formular__fehler {
	width: max-content;
	max-width: calc(100vw - 2.5rem);
}

.aundh-formular__hinweis {
	margin: 0;
	font-size: var(--wp--preset--font-size--klein);
}

.aundh-formular__senden {
	margin: 1.75rem 0 1rem;
}

.aundh-formular__senden button {
	cursor: pointer;
}

/* Verstecktes Feld gegen Spam: für Menschen unsichtbar. */
.aundh-formular__extra {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aundh-formular__meldung {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--aundh-braun);
	background: var(--wp--preset--color--beige);
}

.aundh-formular__meldung--gut {
	font-size: var(--wp--preset--font-size--gross);
}

.aundh-formular__meldung--fehler {
	border-left-color: #a32020;
	background: #fbeeee;
}

.aundh-formular__meldung p {
	margin: 0;
}

.aundh-formular__meldung ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

@media (max-width: 520px) {
	.aundh-formular__senden button {
		width: 100%;
	}
}

/* Team: zwei Personen nebeneinander, auf schmalen Bildschirmen untereinander. */
.aundh-team {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	max-width: 58rem;
}

@media (max-width: 700px) {
	.aundh-team {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---------- Textseiten (Impressum, Datenschutz, AGB) ---------- */

.aundh-main--seite > .wp-block-post-title,
.aundh-main--seite > .entry-content > * {
	max-width: 50rem;
}

.aundh-main--seite > .wp-block-post-title {
	margin-bottom: 2rem;
}

.aundh-main--seite h2 {
	margin-top: 2.5rem;
	font-size: var(--wp--preset--font-size--titel-mittel);
}

.aundh-main--seite p a {
	overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */

.aundh-nicht-gefunden {
	min-height: 50vh;
}

.aundh-nicht-gefunden .wp-block-buttons {
	margin-top: 2rem;
}

/* ---------- Über uns: «Dafür stehen wir» als vier weisse Karten (Masse wie in der Vorschau) ---------- */

.aundh-abschnitt--hellbraun {
	padding-block: 3.75rem;
	color: var(--wp--preset--color--weiss);
	background: var(--wp--preset--color--hellbraun);
}

.aundh-abschnitt--hellbraun > h2 {
	margin-bottom: 3.75rem;
	color: var(--wp--preset--color--weiss);
}

/* Gemeinsame Zeilen: Symbole, Titel und Texte beginnen in allen Karten auf gleicher Höhe. */
.aundh-werte {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.875rem;
}

.aundh-werte > .aundh-wert {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
	align-content: start;
	justify-items: center;
	box-sizing: border-box;
	margin: 0;
	padding: 2.5rem 1.25rem;
	color: #454545;
	text-align: center;
	background: var(--wp--preset--color--weiss);
}

.aundh-wert > * {
	margin-block: 0;
}

/* Gefülltes Symbol ohne Rahmen, 64px wie in der Vorschau. */
.aundh-werte > .aundh-wert.wp-block-group[class*="is-style-symbol-"]::before {
	width: 4rem;
	height: 4rem;
	margin: 0;
	border: 0;
	background-size: contain;
	filter: none;
}

.is-style-symbol-voll-handschlag { --aundh-symbol: url(assets/icons/voll-handschlag.svg); }
.is-style-symbol-voll-auszeichnung { --aundh-symbol: url(assets/icons/voll-auszeichnung.svg); }
.is-style-symbol-voll-standort { --aundh-symbol: url(assets/icons/voll-standort.svg); }
.is-style-symbol-voll-haende { --aundh-symbol: url(assets/icons/voll-haende.svg); }

.aundh-wert h3 {
	color: var(--aundh-braun);
	font-size: 1.5625rem;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
}

.aundh-wert p {
	font-size: 1rem;
	font-style: italic;
	line-height: 1.6;
}

.aundh-werte__abschluss {
	margin-top: 2.5rem;
	margin-bottom: 0;
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--gross);
}

/* Zwei pro Reihe schon unter 1200px: Bei vier Spalten ist «LÖSUNGSORIENTIERT» sonst breiter als die Karte. */
@media (max-width: 1199px) {
	.aundh-werte {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.aundh-werte {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Über uns: «Unser Team» wie in der Vorschau ----------
   Je Person: Porträt oben, darunter ein beiger Kasten. Ein gemeinsames Raster hält Name,
   Funktion, Text, den Absatz mit den Aufgaben, die Mobilnummer und die E-Mail in beiden Kästen auf gleicher Höhe. */

:is(.aundh-abschnitt, .a2-abschnitt) .aundh-team {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 1.875rem;
	row-gap: 0;
	max-width: var(--wp--style--global--content-size);
}

.aundh-team > .aundh-person {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 7;
	margin: 0;
}

.aundh-team > .aundh-person > *,
.aundh-team > .aundh-person > .aundh-person__funktion ~ p {
	margin: 0;
}

.aundh-team > .aundh-person .wp-block-image img {
	aspect-ratio: 555 / 536;
	object-position: 50% 22%;
}

/* Der beige Kasten entsteht aus den sechs Textzeilen, die lückenlos aneinanderstossen. */
.aundh-team > .aundh-person > :not(.wp-block-image) {
	padding: 1.25rem 1.875rem 0;
	background: #fbf4ed;
}

.aundh-team > .aundh-person > h3 {
	padding-top: 1.875rem;
}

.aundh-team > .aundh-person > :last-child {
	padding-bottom: 1.875rem;
}

.aundh-team > .aundh-person > .aundh-person__funktion {
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--titel-3);
	line-height: 1.2;
}

/* Mobilnummer und E-Mail: Linien-Symbol und Text auf einer Linie. */
.aundh-person__kontakt a {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	max-width: 100%;
}

.aundh-person__kontakt a::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: url(assets/icons/handy.svg) center / contain no-repeat;
}

.aundh-person__kontakt a[href^="mailto:"]::before {
	background-image: url(assets/icons/umschlag.svg);
}

.aundh-team > .aundh-person > .aundh-person__kontakt + .aundh-person__kontakt {
	padding-top: 0.375rem;
}

@media (max-width: 1023px) {
	:is(.aundh-abschnitt, .a2-abschnitt) .aundh-team {
		grid-template-columns: minmax(0, 1fr) !important;
		max-width: 36rem;
	}

	.aundh-team > .aundh-person + .aundh-person {
		margin-top: 1.875rem;
	}

	/* Tippfläche mindestens 44 Punkte hoch; die Abstände gleichen die höheren Zeilen aus. */
	.aundh-person__kontakt a {
		min-height: 2.75rem;
	}

	.aundh-team > .aundh-person > .aundh-person__kontakt {
		padding-top: 0.75rem;
	}

	.aundh-team > .aundh-person > .aundh-person__kontakt + .aundh-person__kontakt {
		padding-top: 0;
	}

	.aundh-team > .aundh-person > .aundh-person__kontakt:last-child {
		padding-bottom: 1.375rem;
	}
}

/* ---------- Über uns: Herstellerlogos als Raster mit drei Karten pro Reihe ---------- */

:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: 50rem;
}

:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller > * {
	width: auto;
	height: 7.5rem;
	padding: 1rem;
}

/* Logos optisch gleich gross: Breite je Logo nach seinem Seitenverhältnis, nichts wird verzerrt. */
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller .wp-block-image img {
	width: min(9.25rem, 78%);
	max-width: none;
	height: auto;
	max-height: 5rem;
}

:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-veriset"] { width: min(9.75rem, 80%); }
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-alpnach"] { width: min(6.75rem, 56%); }
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-schueller"] { width: min(10.25rem, 84%); }
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-next125"] { width: min(9.75rem, 80%); }
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-elbau"] { width: min(10.5rem, 86%); }
:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller img[src*="hersteller-nobilia"] { width: min(9.75rem, 80%); }

@media (max-width: 599px) {
	:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.875rem;
	}

	:is(.aundh-abschnitt, .a2-abschnitt) .aundh-hersteller > * {
		height: 6rem;
		padding: 0.75rem;
	}
}

/* ---------- Kontakt: Anfahrt mit Karte (lädt erst nach Klick) ---------- */

.aundh-anfahrt__werkstatt {
	margin-top: 0.75rem;
}

.aundh-karte {
	width: 100%;
	max-width: var(--wp--style--global--content-size) !important;
	margin-top: 2rem;
	text-align: center;
}

.aundh-karte__flaeche {
	box-sizing: border-box;
	display: grid;
	height: 450px;
	background: #fbf4ed;
	border: 1px solid var(--wp--preset--color--linie);
}

.aundh-karte__platzhalter {
	display: grid;
	gap: 1.25rem;
	place-content: center;
	justify-items: center;
	padding: 1.5rem;
}

.aundh-karte__symbol {
	width: 3.5rem;
	height: 3.5rem;
	background: url(assets/icons/voll-standort.svg) center / contain no-repeat;
}

.aundh-karte__adresse {
	margin: 0;
}

.aundh-karte__knopf {
	cursor: pointer;
}

.aundh-karte__rahmen {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.aundh-karte__hinweis {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--klein);
}

@media (max-width: 600px) {
	.aundh-karte__flaeche {
		height: 320px;
	}

	.aundh-karte__platzhalter {
		gap: 0.875rem;
	}

	.aundh-karte__symbol {
		width: 2.75rem;
		height: 2.75rem;
	}
}

/* ---------- Schaltfläche «Nach oben» ---------- */

.aundh-nach-oben {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	padding: 0;
	color: var(--wp--preset--color--weiss);
	background: rgb(124 84 43 / 0.85);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.aundh-nach-oben[hidden] {
	display: none;
}

.aundh-nach-oben:hover,
.aundh-nach-oben:focus-visible {
	background: var(--wp--preset--color--hellbraun);
}

.aundh-nach-oben:focus-visible {
	outline: 3px solid var(--wp--preset--color--weiss);
	outline-offset: -6px;
	box-shadow: 0 0 0 3px var(--aundh-braun);
}

/* Freier Platz am Seitenende, damit die Schaltfläche im Footer nichts verdeckt. */
@media (max-width: 1399px) {
	.aundh-footer {
		padding-bottom: 6.5rem;
	}
}

@media (max-width: 600px) {
	.aundh-nach-oben {
		right: 1rem;
		bottom: 1rem;
		width: 3.25rem;
		height: 3.25rem;
	}

	.aundh-nach-oben svg {
		width: 1.75rem;
		height: 1.75rem;
	}

	.aundh-footer {
		padding-bottom: 5.25rem;
	}
}

/* ---------- Zeilenumbruch: kein einzelnes Wort auf der letzten Zeile ---------- */

/* Fliesstext: Der Browser vermeidet ein einzelnes Schlusswort. */
body {
	text-wrap: pretty;
}

/* Titel und mittig gesetzter Text: Zeilen ausgewogen verteilt. */
h1,
h2,
h3,
h4,
.aundh-mitte,
.aundh-einstieg,
.aundh-einstieg__kasten,
.aundh-abschluss__kasten,
.aundh-karte,
.aundh-seitenkopf,
.has-text-align-center {
	text-wrap: balance;
}

/* Linksbündiger Text innerhalb mittiger Abschnitte bleibt Fliesstext. */
.has-text-align-left,
.aundh-bildkasten .aundh-einstieg__kasten,
.aundh-punkte,
.aundh-fussnote,
.aundh-stimmen,
.aundh-links,
.aundh-kacheln,
.aundh-schritte,
.aundh-projekte,
.aundh-galerie,
.aundh-team,
.aundh-formular,
.aundh-kontakt__daten {
	text-wrap: pretty;
}

/* Schmale Bildschirme: Mittige Absätze werden dort lang. Der Browser gleicht nur kurze Absätze aus,
   darum gilt für Absätze wieder die Regel «kein einzelnes Schlusswort». Titel bleiben ausgewogen. */
@media (max-width: 781px) {
	.aundh-mitte p,
	.aundh-einstieg p,
	.aundh-abschluss__kasten p,
	.aundh-seitenkopf p,
	p.has-text-align-center {
		text-wrap: pretty;
	}
}
