/*
 * Pristav & Schreider: zusätzliche Gestaltung
 *
 * Grundfarben, Schriftgrößen und Abstände stehen in theme.json.
 * Hier steht nur, was theme.json nicht kann. Abschnitte:
 *   1. Grundlagen (Schrift, Fokus, Überschriften auf dunklem Grund)
 *   2. Dachform (Giebel) als Gestaltungselement
 *   3. Kopfbereich
 *   4. Startbereich (Hero)
 *   5. Abschnitte, Kacheln, Ablauf, Galerie
 *   6. Unterseiten (Seitenkopf, Leistungen, Stellen, Kontakt)
 *   7. Kontaktformular
 *   8. Fußbereich
 *   9. Handy und Tablet
 */

/* ---------- 1. Grundlagen ---------- */

:root {
	--ps-giebel: clamp(28px, 5.5vw, 88px);
	--ps-schmal: 78%;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Überschriften im halbschmalen Schnitt: wirkt kräftig wie Baustellenschilder, spart Platz */
h1, h2, h3, h4,
.wp-block-post-title,
.wp-block-navigation {
	font-stretch: var(--ps-schmal);
}

.wp-block-heading,
.wp-block-post-title {
	text-wrap: balance;
	hyphens: manual;
}

p {
	text-wrap: pretty;
}

/* Sichtbarer Tastaturfokus überall */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--ziegel);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Auf farbigem Hintergrund erben Überschriften und Links die Textfarbe */
.has-text-color :where(h1, h2, h3, h4, h5, h6):not(.has-text-color),
.wp-block-cover.is-dark :where(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: inherit;
}
.has-text-color a:not(.wp-block-button__link):not(.has-text-color),
.wp-block-cover.is-dark a:not(.wp-block-button__link) {
	color: inherit;
}
.has-schiefer-background-color :focus-visible,
.has-ziegel-background-color :focus-visible,
.wp-block-cover.is-dark :focus-visible {
	outline-color: #fff;
}

/* Umriss Buttons (auch für Buttons aus Shortcodes und eigenen Blöcken) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--ziegel);
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--ziegel);
	border-color: var(--wp--preset--color--ziegel);
	color: #fff;
}
.has-schiefer-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-ziegel-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover.is-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.ps-kontakt-buttons.ps-kontakt-buttons--hell .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}
.wp-block-cover.is-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ps-kontakt-buttons.ps-kontakt-buttons--hell .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.14);
	border-color: #fff;
}

/* Einleitungstext etwas größer */
.ps-einleitung {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	max-width: 40rem;
	color: var(--wp--preset--color--grau);
}
.has-text-color .ps-einleitung {
	color: inherit;
}

/* Bilder grundsätzlich responsiv */
img {
	height: auto;
	max-width: 100%;
}

/* ---------- 2. Dachform (Giebel) ----------
 * Das wiederkehrende Motiv: Die Unterkante des Startbilds steigt zur Mitte an wie ein
 * Dachfirst, der Fußbereich hat oben dieselbe Form. Beide zeigen nach oben wie ein Dach.
 */

.ps-giebel {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--ps-giebel)), 0 100%);
	padding-bottom: calc(var(--ps-giebel) + var(--wp--preset--spacing--50)) !important;
}

.ps-giebel-oben {
	clip-path: polygon(0 var(--ps-giebel), 50% 0, 100% var(--ps-giebel), 100% 100%, 0 100%);
	padding-top: calc(var(--ps-giebel) + var(--wp--preset--spacing--60)) !important;
	margin-top: 0;
}

/* Seitenaufbau: keine Lücken zwischen Kopf, Inhalt und Fuß.
 * Der Fußbereich rutscht um die Giebelhöhe nach oben, damit in den abgeschnittenen
 * Ecken der Abschnitt darüber zu sehen ist (statt weißer Dreiecke). */
.wp-site-blocks > .ps-haupt,
.wp-site-blocks > main {
	margin-block-start: 0;
}
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: calc(-1 * var(--ps-giebel));
	position: relative;
	z-index: 2;
}

/* ---------- 3. Kopfbereich ---------- */

.ps-kopf {
	position: relative;
	z-index: 50;
}

.ps-topleiste {
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}
.ps-topleiste p {
	margin: 0;
}
.ps-topleiste-telefon {
	gap: 1.5rem;
}
.ps-topleiste a {
	text-decoration: none;
	font-weight: 600;
}
.ps-topleiste a:hover {
	text-decoration: underline;
}

.ps-kopfzeile {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--zink-dunkel);
}
.ps-kopfzeile-zeile {
	align-items: center;
	gap: 1.5rem;
}
.ps-kopf-rechts {
	align-items: center;
	gap: 1.75rem;
}
.ps-logo img {
	width: 150px;
	height: auto;
	display: block;
}

.ps-navigation {
	gap: 1.5rem;
}
.ps-navigation .wp-block-navigation-item__content {
	text-decoration: none;
	color: var(--wp--preset--color--schiefer);
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
}
.ps-navigation .wp-block-navigation-item__content:hover,
.ps-navigation .current-menu-item > .wp-block-navigation-item__content,
.ps-navigation [aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--ziegel);
	color: var(--wp--preset--color--schiefer);
}
/* Untermenü Leistungen */
.ps-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--zink-dunkel) !important;
	border-radius: 3px;
	padding: 0.5rem 0;
	min-width: 17rem !important;
	box-shadow: 0 10px 24px rgba(43, 48, 54, 0.12);
}
.ps-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.1rem;
	border-bottom: 0;
	font-weight: 500;
	font-stretch: 100%;
}
.ps-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--zink);
	color: var(--wp--preset--color--ziegel);
}

.ps-kopf-button .wp-block-button__link {
	padding: 0.6rem 1.1rem;
	white-space: nowrap;
}

/* ---------- 4. Startbereich (Hero) ---------- */

.ps-hero {
	align-items: flex-end;
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}
/* Inhalt bündig mit Logo und Kacheln (breite Spalte), nicht am Bildschirmrand */
.ps-hero.wp-block-cover .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-bottom: var(--wp--preset--spacing--20);
}
.ps-hero-inhalt {
	max-width: var(--wp--style--global--wide-size);
}
.ps-hero-titel {
	font-stretch: 72%;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.012em;
	max-width: 13ch;
	margin-bottom: 1.25rem;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}
.ps-hero-text {
	max-width: 36rem;
	line-height: 1.45;
	margin-bottom: 2rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
/* Bild leicht abdunkeln nach links unten, damit Text lesbar bleibt */
.ps-hero .wp-block-cover__background {
	background: linear-gradient(20deg, rgba(43, 48, 54, 0.92) 0%, rgba(43, 48, 54, 0.55) 45%, rgba(43, 48, 54, 0.2) 100%) !important;
	opacity: 1 !important;
}

/* ---------- 5. Abschnitte ---------- */

.ps-abschnitt-kopf {
	margin-bottom: var(--wp--preset--spacing--50);
}
.ps-abschnitt-kopf > .ps-abschnitt-titel {
	margin-bottom: 0.75rem;
}
.ps-abschnitt-titel {
	margin-top: 0;
}

/* Leistungen als Kacheln */
.ps-kacheln.ps-kacheln {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
}
.ps-kachel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ps-kachel--gross {
	grid-column: span 2;
}
.ps-kachel > * {
	margin: 0;
}
.ps-kachel .ps-kachel-bild {
	margin: 0 0 1rem;
	overflow: hidden;
	border-radius: 2px;
	background: var(--wp--preset--color--zink);
}
.ps-kachel .ps-kachel-bild img {
	width: 100%;
	height: clamp(11rem, 15vw, 14.5rem);
	aspect-ratio: auto;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.ps-kachel-titel {
	margin: 0 0 0.35rem;
}
.ps-kachel-titel a {
	color: var(--wp--preset--color--schiefer);
	text-decoration: none;
}
/* Ganze Kachel klickbar, ohne doppelte Links für Screenreader */
.ps-kachel-titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.ps-kachel:hover .ps-kachel-titel a {
	color: var(--wp--preset--color--ziegel);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.ps-kachel:hover .ps-kachel-bild img {
	transform: scale(1.03);
}
.ps-kachel-text {
	color: var(--wp--preset--color--grau);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

/* Ablauf: echte Reihenfolge, deshalb Nummern */
.ps-ablauf {
	list-style: none;
	counter-reset: schritt;
	padding: 0 !important;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
}
.ps-ablauf > li {
	counter-increment: schritt;
	position: relative;
	padding-top: 4.25rem;
	line-height: 1.5;
}
.ps-ablauf > li::before {
	content: counter(schritt);
	position: absolute;
	top: 0;
	left: 0;
	font-size: 3.25rem;
	font-weight: 800;
	font-stretch: 70%;
	line-height: 1;
	color: var(--wp--preset--color--ziegel);
}
/* feine Linie vom Schritt zum nächsten Schritt */
.ps-ablauf > li::after {
	content: "";
	position: absolute;
	top: 1.6rem;
	left: 2.75rem;
	right: calc(-1 * var(--wp--preset--spacing--40));
	height: 2px;
	background: var(--wp--preset--color--zink-dunkel);
}
.ps-ablauf > li:last-child::after {
	display: none;
}
.ps-ablauf strong + br {
	display: none;
}
.ps-ablauf strong {
	display: block;
	font-size: var(--wp--preset--font-size--large);
	font-stretch: var(--ps-schmal);
	color: var(--wp--preset--color--schiefer);
	margin-bottom: 0.35rem;
}

/* Sturmschaden */
.ps-sturm-zeile {
	gap: var(--wp--preset--spacing--40);
}
.ps-sturm-text {
	max-width: 40rem;
}
.ps-sturm-text p {
	margin-bottom: 0;
}

/* Galerie */
.ps-galerie.wp-block-gallery.has-nested-images figure.wp-block-image {
	border-radius: 2px;
	overflow: hidden;
}
.ps-galerie.wp-block-gallery.has-nested-images figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.ps-referenzen-auswahl .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

/* Bild und Text nebeneinander */
.ps-spalten-bild-text {
	gap: var(--wp--preset--spacing--60);
}
.ps-team-bild img {
	width: 100%;
	object-fit: cover;
}

/* Stellen Kasten auf der Startseite */
.ps-karriere-box {
	border-radius: 3px;
	height: 100%;
}
.ps-karriere-box > * {
	margin-top: 0;
}
.ps-karriere-box .wp-block-heading {
	margin-bottom: 0.75rem;
}
.ps-karriere-box .wp-block-buttons {
	margin-top: 1.5rem;
}

/* Kontakt Aufruf */
.ps-kontakt-cta-zeile {
	gap: var(--wp--preset--spacing--40);
}
.ps-kontakt-cta-text {
	max-width: 36rem;
}
.ps-kontakt-cta-text p {
	margin-bottom: 0;
}

/* ---------- 6. Unterseiten ---------- */

.ps-haupt {
	margin-top: 0;
}
.ps-seitenkopf .wp-block-post-title {
	margin: 0;
}
.ps-brotkrumen {
	margin: 0 0 0.5rem;
}
.ps-brotkrumen a {
	color: var(--wp--preset--color--grau);
	text-decoration: none;
}
.ps-brotkrumen a::before {
	content: "← ";
}
.ps-brotkrumen a:hover {
	color: var(--wp--preset--color--ziegel);
	text-decoration: underline;
}
.ps-leistung-kopf {
	gap: var(--wp--preset--spacing--60);
}
.ps-leistung-einleitung {
	color: var(--wp--preset--color--schrift);
	line-height: 1.5;
	margin: 1rem 0 1.75rem;
}
.ps-leistung-einleitung .wp-block-post-excerpt__more-link {
	display: none;
}
.ps-leistung-bild img {
	border-radius: 2px;
}

/* Leistungsseite: Text links, Kontaktkarte rechts (bleibt beim Scrollen stehen) */
.ps-leistung-inhalt {
	gap: var(--wp--preset--spacing--60);
}
.ps-leistung-inhalt .ps-inhalt > h2:first-child {
	margin-top: 0;
}
.ps-seitenleiste {
	position: sticky;
	top: 1.5rem;
	border-radius: 3px;
	border-top: 4px solid var(--wp--preset--color--ziegel);
}
.ps-seitenleiste > * {
	margin-top: 0;
}
.ps-seitenleiste .wp-block-heading {
	margin-bottom: 0.5rem;
}
.ps-seitenleiste .ps-kontakt-buttons {
	flex-direction: column;
	align-items: stretch;
	margin-top: 1.25rem;
}
.ps-seitenleiste .ps-kontakt-buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}
@media (max-width: 781px) {
	.ps-seitenleiste {
		position: static;
	}
}

/* Inhalt linksbündig an der breiten Spalte ausrichten (gleiche Kante wie Logo und Seitentitel).
 * Textblöcke behalten ihre lesefreundliche Breite (44rem), breite Elemente wie Galerien
 * und Spalten nutzen die volle breite Spalte. */
.ps-inhalt.is-layout-constrained:not(.ps-inhalt--voll) > :where(:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.ps-einleitung {
	margin-left: 0;
}

/* Inhalt: Abstände zwischen Abschnitten */
.ps-inhalt > h2 {
	margin-top: var(--wp--preset--spacing--60);
}
.ps-inhalt > h2:first-child,
.ps-inhalt > .ps-einleitung + h2 {
	margin-top: var(--wp--preset--spacing--40);
}
.ps-inhalt > .wp-block-gallery {
	margin-bottom: var(--wp--preset--spacing--50);
}
.ps-inhalt > .ps-kacheln {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--60);
}
/* Bausteine am Seitenende schließen bündig an den Fußbereich an */
.ps-inhalt > .ps-sektion:last-child {
	margin-bottom: calc(-1 * var(--wp--preset--spacing--70));
}
.ps-inhalt--voll > .ps-sektion:last-child {
	margin-bottom: 0;
}
.ps-inhalt:not(.ps-inhalt--voll) > .ps-sektion {
	margin-top: var(--wp--preset--spacing--60);
}
.ps-inhalt--voll > * {
	margin-block-start: 0 !important;
}

/* Listen mit Häkchen in Fließtexten */
.ps-inhalt ul.wp-block-list:not(.ps-fuss-links),
.ps-stelle ul.wp-block-list {
	list-style: none;
	padding-left: 0 !important;
}
.ps-inhalt ul.wp-block-list:not(.ps-fuss-links) > li,
.ps-stelle ul.wp-block-list > li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.4rem;
}
.ps-inhalt ul.wp-block-list:not(.ps-fuss-links) > li::before,
.ps-stelle ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.45em;
	width: 0.55rem;
	height: 0.95rem;
	border: solid var(--wp--preset--color--ziegel);
	border-width: 0 3px 3px 0;
	transform: rotate(40deg);
}

/* Weitere Leistungen */
.ps-weitere-leistungen {
	border-top: 1px solid var(--wp--preset--color--zink-dunkel);
}

/* Stellen */
.ps-stelle {
	border-top: 4px solid var(--wp--preset--color--ziegel);
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--60) !important;
}
.ps-stelle > h2 {
	margin-top: 0;
}
.ps-bewerbung {
	border-radius: 3px;
	margin-top: var(--wp--preset--spacing--60) !important;
}
.ps-bewerbung > * {
	margin-top: 0;
}

/* Kontaktseite */
.ps-kontakt-spalten {
	gap: var(--wp--preset--spacing--60);
}
.ps-kontakt-daten {
	background: var(--wp--preset--color--zink);
	padding: var(--wp--preset--spacing--50);
	border-radius: 3px;
	align-self: flex-start;
}
.ps-kontakt-daten > h2 {
	margin-top: 0;
}
#anfrage {
	scroll-margin-top: 1.5rem;
	margin-top: 0;
}

/* ---------- 7. Kontaktformular (Contact Form 7) ---------- */

.wpcf7-form {
	display: grid;
	gap: 1.1rem;
}
.wpcf7-form p {
	margin: 0;
}
.ps-formular-zeile {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}
.wpcf7-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}
.wpcf7-form .ps-optional {
	font-weight: 400;
	color: var(--wp--preset--color--grau);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--schrift);
	background: #fff;
	border: 2px solid var(--wp--preset--color--zink-dunkel);
	border-radius: 3px;
	padding: 0.7rem 0.85rem;
	min-height: 3rem;
}
.wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	border-color: var(--wp--preset--color--schiefer);
	outline: 3px solid rgba(122, 28, 28, 0.25);
	outline-offset: 0;
}
.wpcf7-form input[type="file"] {
	box-sizing: border-box;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	width: 100%;
	padding: 0.6rem;
	border: 2px dashed var(--wp--preset--color--zink-dunkel);
	border-radius: 3px;
	background: #fff;
}
.wpcf7-form .ps-hinweis {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grau);
}
.wpcf7-form input[type="submit"] {
	font: inherit;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	background: var(--wp--preset--color--ziegel);
	color: #fff;
	border: 2px solid var(--wp--preset--color--ziegel);
	border-radius: 3px;
	padding: 0.8rem 1.6rem;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--ziegel-dunkel);
	border-color: var(--wp--preset--color--ziegel-dunkel);
}
.wpcf7-not-valid-tip {
	color: var(--wp--preset--color--ziegel);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.3rem;
}
.wpcf7-form .wpcf7-response-output {
	margin: 0 !important;
	padding: 0.85rem 1rem !important;
	border-radius: 3px;
	border-width: 2px !important;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--whatsapp) !important;
	background: #eef7f1;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--wp--preset--color--ziegel) !important;
	background: #fbf0f0;
}

/* ---------- 8. Fußbereich ---------- */

.ps-fuss {
	margin-top: 0;
}
.ps-fuss-spalten {
	gap: var(--wp--preset--spacing--50);
}
.ps-fuss-titel {
	font-size: var(--wp--preset--font-size--medium) !important;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #fff;
	opacity: 0.75;
	font-stretch: 100%;
	letter-spacing: 0.01em;
}
.ps-fuss-marke {
	font-size: var(--wp--preset--font-size--medium);
	margin-top: 0;
}
.ps-fuss-marke strong {
	font-size: var(--wp--preset--font-size--large);
	font-stretch: var(--ps-schmal);
}
.ps-fuss a {
	text-decoration: none;
}
.ps-fuss a:hover {
	text-decoration: underline;
}
.ps-fuss .ps-kontaktdaten p,
.ps-fuss p {
	line-height: 1.7;
}
.ps-fuss-links {
	list-style: none;
	padding: 0 !important;
	margin: 0;
}
.ps-fuss-links li {
	margin-bottom: 0.3rem;
}
.ps-fuss-unten {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--schiefer-hell);
	opacity: 0.85;
}
.ps-fuss-unten p {
	margin: 0;
}
.ps-fuss-rechtliches a + a {
	margin-left: 1.5rem;
}

/* ---------- 9. Tablet und Handy ---------- */

@media (max-width: 1080px) {
	.ps-kacheln.ps-kacheln {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ps-ablauf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: var(--wp--preset--spacing--50);
	}
	.ps-ablauf > li::after {
		display: none;
	}
	.ps-kopfzeile .ps-kopf-button {
		display: none !important;
	}
}

/* Unterhalb 600px schaltet WordPress das Menü auf den Menüknopf um */
@media (max-width: 599px) {
	/* Auf dem Handy übernimmt die Leiste unten (Anrufen, WhatsApp) die Telefonnummern */
	.ps-topleiste {
		display: none;
	}
	.ps-logo img {
		width: 118px;
	}
	/* Kacheln als kompakte Liste: Bild links, Text rechts */
	.ps-kacheln.ps-kacheln {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
	.ps-kachel,
	.ps-kachel--gross {
		grid-column: auto;
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		column-gap: 1rem;
		align-items: start;
	}
	.ps-kachel .ps-kachel-bild {
		grid-row: span 2;
		margin: 0;
	}
	.ps-kachel .ps-kachel-bild img,
	.ps-kachel--gross .ps-kachel-bild img {
		height: 6.5rem;
		aspect-ratio: 1 / 1;
	}
	.ps-kachel-titel {
		margin-top: 0.15rem;
	}
	.ps-kachel-text {
		font-size: var(--wp--preset--font-size--small);
	}
	/* Ablauf: Nummer links neben dem Text */
	.ps-ablauf {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--40);
	}
	.ps-ablauf > li {
		padding-top: 0;
		padding-left: 3rem;
	}
	.ps-ablauf > li::before {
		font-size: 2.5rem;
	}
	.ps-team-bild img {
		max-height: 26rem;
		object-position: center 35%;
	}
	.ps-formular-zeile {
		grid-template-columns: minmax(0, 1fr);
	}
	.ps-hero {
		min-height: 88vh !important;
	}
	.ps-fuss-rechtliches a + a {
		margin-left: 1rem;
	}
}

/* Menü auf dem Handy (Overlay) */
.ps-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}
.ps-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
	border-bottom: 0;
}
.ps-navigation .wp-block-navigation__responsive-container-open svg,
.ps-navigation .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

@media (prefers-reduced-motion: reduce) {
	.ps-kachel .ps-kachel-bild img {
		transition: none;
	}
	.ps-kachel:hover .ps-kachel-bild img {
		transform: none;
	}
}

/* Im Editor: Dachform nicht abschneiden, damit alles bearbeitbar bleibt */
.editor-styles-wrapper .ps-giebel,
.editor-styles-wrapper .ps-giebel-oben {
	clip-path: none;
}

/* Fotos im Kontaktformular */
.wpcf7-form .ps-fotos {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}
.wpcf7-form .ps-fotos legend {
	font-weight: 600;
	margin-bottom: 0.3rem;
	padding: 0;
}

/* Letzter Abschnitt vor dem Fußbereich: Platz für die Dachform des Fußbereichs lassen */
.ps-haupt > .ps-sektion:last-child,
.ps-inhalt > .ps-sektion:last-child {
	padding-bottom: calc(var(--ps-giebel) + var(--wp--preset--spacing--50)) !important;
}

/* Überschriften auf Unterseiten: Seitentitel groß, Zwischenüberschriften eine Stufe kleiner */
.ps-seitenkopf .wp-block-post-title,
.ps-seitenkopf h1.wp-block-heading {
	font-size: var(--wp--preset--font-size--huge);
	font-stretch: 74%;
	line-height: 1.04;
}
.ps-inhalt:not(.ps-inhalt--voll) > h2:not([class*="-font-size"]) {
	font-size: var(--wp--preset--font-size--x-large);
}
