/*
Theme Name: Profile Haircompany
Description: Theme für profilehaircompany.de, Child-Theme von Twenty Twenty-Five. Übernimmt Gestaltung und Verhalten der IONOS-Fassung (Stand September 2026).
Author: Tyler
Template: twentytwentyfive
Version: 0.1.2
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profile-haircompany
Update URI: false
*/

/* ============================================================
   Grundwerte
   ============================================================ */

:root {
	--color-red: #e10813;
	--color-red-dark: #b90009;
	--color-black: #1d1d1b;
	--color-text: #303033;
	--color-muted: #6f7277;
	--color-line: #e4e5e7;
	--color-surface: #ffffff;
	--color-background: #f4f5f6;
	--page-padding: clamp(1.5rem, 5vw, 6rem);
	--radius: 4px;
	--header-height: 150px;
	/* 88svh statt 100svh: der Info-Streifen lugt unter die Falz und lädt zum Scrollen ein. */
	--hero-height: clamp(480px, calc(88svh - var(--header-height)), 900px);
	--card-width: min(320px, 34vw);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

/* Kopf, Inhalt und Fuß – und die Bausteine der Startseite – schließen ohne Lücke aneinander an. */
.wp-site-blocks > *,
.profile-main--front > * {
	margin-block: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(225, 8, 19, 0.28);
	outline-offset: 3px;
}

/* Kleines Label mit rotem Strich (Info-Streifen, Fußzeile) */
.profile-label {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--color-black);
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.profile-label::before {
	width: 2rem;
	height: 3px;
	background: var(--color-red);
	content: "";
}

/* ============================================================
   Header
   Ungescrollt: Wortlogo mittig, Menü darunter (150 px).
   Gescrollt (site.js setzt .is-scrolled): Symbol links, Menü rechts (62 px).
   Header-Glas: Deckkraft (0.82) und Unschärfe (12px) hier einstellen.
   ============================================================ */

.profile-header-part {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-line);
	transition: box-shadow 220ms ease;
}

/* Angemeldet: unter der Admin-Leiste kleben bleiben. */
.admin-bar .profile-header-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* Das mobile Menü ist position: fixed – ein backdrop-filter am Vorfahren
   würde es in den Header einsperren. Solange es offen ist, Glas aus. */
.has-modal-open .profile-header-part {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.profile-header-part.is-scrolled {
	box-shadow: 0 8px 28px rgba(29, 29, 27, 0.08);
}

.profile-header {
	position: relative;
	height: var(--header-height);
	transition: height 360ms var(--ease-out);
}

.profile-header-part.is-scrolled .profile-header {
	height: 62px;
}

.profile-header > .wp-block-shortcode,
.profile-header > p {
	margin: 0;
}

/* Logo-Paar. Die Rasterzentrierung (statt top: 50% + translateY(-50%)) vermeidet
   den Safari-Sprung am Ende der Animation – Befund in Header_Safari.md. */
.profile-brand {
	position: absolute;
	top: 6px;
	left: 50%;
	z-index: 2;
	display: block;
	width: 270px;
	height: 94px;
	text-decoration: none;
	transform: translateX(-50%);
	transition: top 360ms var(--ease-out), left 360ms var(--ease-out), width 360ms var(--ease-out), transform 360ms var(--ease-out);
}

.profile-brand__frame {
	display: grid;
	place-items: center start;
	width: 100%;
	height: 100%;
}

.profile-brand__logo {
	grid-area: 1 / 1;
	display: block;
	max-width: none;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: opacity, transform;
	transform-origin: left center;
	transition: opacity 260ms ease, transform 360ms var(--ease-out);
}

.profile-brand__full {
	width: 270px;
	height: auto;
}

.profile-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 2px;
	opacity: 0;
	transform: scale(0.72) rotate(-5deg);
}

.profile-header-part.is-scrolled .profile-brand {
	top: -16px;   /* feste Höhe 94 px, mittig in 62 px */
	left: var(--page-padding);
	width: 44px;
	transform: none;
	pointer-events: none;
}

.profile-header-part.is-scrolled .profile-brand__full {
	opacity: 0;
	transform: scale(0.78);
}

.profile-header-part.is-scrolled .profile-brand__mark {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Navigation (Kern-Block „Navigation"). WordPress hängt die Klasse auch an die
   Liste darin – Positionierung deshalb nur am <nav>. */
nav.profile-nav {
	position: absolute;
	margin: 0;
	top: 100px;
	right: var(--page-padding);
	left: var(--page-padding);
	justify-content: center;
	transition: top 360ms var(--ease-out), left 360ms var(--ease-out), transform 360ms var(--ease-out);
}

.profile-header-part.is-scrolled nav.profile-nav {
	top: 50%;
	left: calc(var(--page-padding) + 64px);
	justify-content: flex-end;
	transform: translateY(-50%);
}

.profile-nav .wp-block-navigation__container {
	gap: clamp(0.1rem, 0.8vw, 0.65rem);
}

.profile-header-part.is-scrolled .profile-nav .wp-block-navigation__container {
	justify-content: flex-end;
}

.profile-nav .wp-block-navigation-item__content {
	display: block;
	padding: 0.6rem 0.8rem;
	border-radius: var(--radius);
	color: var(--color-black);
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease;
}

.profile-nav .wp-block-navigation-item__content:hover {
	background: #f3f3f3;
	color: var(--color-red);
}

/* Aktiver Punkt: nur rote Schrift, kein Unterstrich (Tyler, 08.09.2026). */
.profile-nav .current-menu-item > .wp-block-navigation-item__content,
.profile-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--color-red);
}

/* Pfeil neben Menüpunkten mit Unterseiten */
.profile-nav .wp-block-navigation__submenu-icon {
	margin-left: -0.45rem;
	margin-right: 0.35rem;
}

.profile-nav .has-child > .wp-block-navigation-item__content {
	padding-right: 0.45rem;
}

/* Aufklappmenü (Desktop): Glas wie der Header */
.profile-nav .wp-block-navigation__submenu-container {
	min-width: 230px !important;
	padding: 0.4rem !important;
	background: rgba(255, 255, 255, 0.96) !important;
	border: 1px solid var(--color-line) !important;
	border-radius: var(--radius);
	box-shadow: 0 14px 35px rgba(29, 29, 27, 0.1);
}

.profile-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
}

/* Das letzte Aufklappmenü am rechten Rand ausrichten, sonst ragt es über den Bildschirm. */
.profile-nav .wp-block-navigation__container > .has-child:last-child > .wp-block-navigation__submenu-container {
	right: 0;
	left: auto;
}

/* Mobil: Header 80 px, Wortlogo mittig, Menü-Taste rechts, Menü als Vollbild.
   WordPress schaltet erst unter 600 px auf die Menü-Taste; wir schon ab 900 px. */
@media (max-width: 900px) {
	:root {
		--page-padding: clamp(1rem, 4vw, 2rem);
		--header-height: 80px;
	}

	.profile-header,
	.profile-header-part.is-scrolled .profile-header {
		height: 80px;
		transition: none;
	}

	.profile-brand {
		top: 9px;
		width: min(180px, 48vw);
		height: 62px;
		transition: left 280ms ease, width 280ms ease, transform 280ms ease;
	}

	.profile-brand__full {
		width: min(180px, 48vw);
		transition: opacity 280ms ease, transform 280ms ease;
	}

	.profile-header-part.is-scrolled .profile-brand {
		top: 9px;
		transform: none;
	}

	/* Kein transform am <nav>: Er würde das Vollbild-Menü (position: fixed) einsperren. */
	nav.profile-nav,
	.profile-header-part.is-scrolled nav.profile-nav {
		top: 16px;   /* (80 − 48) / 2 */
		left: auto;
		right: var(--page-padding);
		transform: none;
	}

	.profile-nav .wp-block-navigation__responsive-container-open {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		color: var(--color-black);
	}

	.profile-nav .wp-block-navigation__responsive-container-open svg {
		width: 28px;
		height: 28px;
	}

	.profile-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	/* Menü offen: Vollbild, große Tippflächen, Unterpunkte eingerückt */
	.profile-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 1rem var(--page-padding) calc(1.5rem + env(safe-area-inset-bottom, 0px));
	}

	.profile-nav .wp-block-navigation__responsive-container-close {
		top: 0.25rem;
		right: 0;
		width: 48px;
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.profile-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 3.5rem !important;
		gap: 0;
	}

	.profile-nav .is-menu-open .wp-block-navigation__container {
		width: 100%;
		gap: 0 !important;
	}

	/* Desktop-Menü ist mittig ausgerichtet; im Vollbild alles linksbündig. */
	.profile-nav .is-menu-open .wp-block-navigation__responsive-container-content,
	.profile-nav .is-menu-open .wp-block-navigation__container,
	.profile-nav .is-menu-open .wp-block-navigation-item {
		align-items: stretch !important;
	}

	.profile-nav .is-menu-open .wp-block-navigation-item {
		width: 100%;
	}

	.profile-nav .is-menu-open .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 48px;
		padding: 0.75rem !important;
		font-size: 1rem;
	}

	.profile-nav .is-menu-open .wp-block-navigation__submenu-container {
		min-width: 0 !important;
		padding: 0 0 0.5rem 1rem !important;
		border: 0 !important;
		box-shadow: none;
		background: transparent !important;
	}

	.profile-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-weight: 500;
		text-transform: none;
	}
}

/* ============================================================
   Startseite: Hero, Info-Streifen, Kontaktkarte
   ============================================================ */

.profile-front-top {
	position: relative;
}

.profile-hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--hero-height);
	overflow: hidden;
	background: var(--color-black);
	color: #ffffff;

	/* Graufilter – die beiden Stellschrauben.
	   --hero-entsaettigung  0 = volle Farbe … 1 = Schwarzweiß
	   --hero-schleier       Deckkraft des grauen Schleiers, 0 = keiner */
	--hero-entsaettigung: 0.45;   /* von Tyler eingestellt */
	/* Auf der IONOS-Seite lag der Schleier hinter dem Foto und war unsichtbar;
	   der abgestimmte Look hat also keinen. 0 = wie live, 0.5 = ursprünglich geplant. */
	--hero-schleier: 0;

	/* Dunkle Leiste hinter Claim und Buttons: Deckkraft ist die Stellschraube
	   (0.25 Hauch … 0.55 klares Band). 0.55 von Tyler gesetzt (11.09.2026). */
	--hero-leiste: rgba(29, 29, 27, 0.55);
}

.profile-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	/* Fokus oben: Auf breiten Bildschirmen wird nur unten beschnitten, die roten
	   Quadrate in den Oberlichtern bleiben sichtbar (hero3-Fassade, Tyler 27.09.2026). */
	object-position: center 10%;
	filter: grayscale(var(--hero-entsaettigung)) brightness(0.95);
}

/* Gleichmäßiger Grauschleier – nimmt dem Ziegel- und Laubgewimmel die Unruhe. */
.profile-hero::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(96, 96, 98, var(--hero-schleier));
	content: "";
	pointer-events: none;
}

.profile-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	/* Text und Buttons mittig zwischen linkem Rand und Karte */
	padding: 2rem calc(var(--page-padding) + var(--card-width) + 3rem) 2rem var(--page-padding);
	background: var(--hero-leiste);
	text-align: center;
}

.profile-hero__inner::before {
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0 auto 1.25rem;
	background: var(--color-red);
	content: "";
}

.profile-hero__title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.9rem, 4.2vw, 3.6rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.profile-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

.profile-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--radius);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-hero__button:hover,
.profile-hero__button:focus-visible {
	background: var(--color-red);
	border-color: var(--color-red);
	color: #ffffff;
	transform: translateY(-1px);
}

.profile-hero__button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.55);
}

/* Kontaktkarte auf dem Hero (Desktop): heller Stil wie der Header */
.profile-front-card {
	position: absolute;
	top: calc(var(--hero-height) / 2);
	right: var(--page-padding);
	z-index: 3;
	width: var(--card-width);
	transform: translateY(-50%);
}

.profile-card {
	padding: 1.5rem 1.6rem 1.4rem;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--color-text);
}

.profile-card::before {
	display: block;
	width: 2.75rem;
	height: 3px;
	margin-bottom: 1rem;
	background: var(--color-red);
	content: "";
}

.profile-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.profile-card p {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.profile-card p:last-child {
	margin-bottom: 0;
}

@media (max-height: 760px) and (min-width: 901px) {
	.profile-card {
		padding: 1.1rem 1.25rem 1rem;
	}

	.profile-card__title {
		font-size: 1.05rem;
	}

	.profile-card p {
		margin-bottom: 0.8rem;
		font-size: 0.88rem;
		line-height: 1.45;
	}
}

/* Info-Streifen: Öffnungszeiten links, Anruf-Button rechts.
   Stellschrauben: max-width in .profile-info__inner = Gesamtbreite;
   --hours-width = Breite der Zeiten-Tabelle; padding = Höhe/Luft. */
.profile-info {
	--hours-width: 380px;
	position: relative;
	z-index: 2;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-line);
}

.profile-info__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 4rem);
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem var(--page-padding) 1.6rem;
}

.profile-info__hours {
	display: flex;
	flex: 0 1 var(--hours-width);
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}

/* Öffnungszeiten-Liste (überall gleich: Streifen, Fußzeile, Seite) */
.profile-hours {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-hours li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	white-space: nowrap;
}

.profile-hours__day {
	color: var(--color-muted);
}

.profile-hours__time {
	color: var(--color-black);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.profile-hours li.is-today .profile-hours__day {
	color: var(--color-red);
	font-weight: 600;
}

.profile-hours li.is-today .profile-hours__day::after {
	content: " · heute";
	font-weight: 500;
}

.profile-content .profile-hours {
	max-width: 380px;
	margin: 1.5rem 0;
}

/* Anruf-Button (Schwarz, Hover Rot) mit Telefon-Icon */
.profile-call {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 50px;
	padding: 0.75rem 1.5rem;
	background: var(--color-black);
	border: 1.5px solid var(--color-black);
	border-radius: var(--radius);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-call:hover,
.profile-call:focus-visible {
	background: var(--color-red);
	border-color: var(--color-red);
	color: #ffffff;
	transform: translateY(-1px);
}

.profile-call::before {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	content: "";
}

.profile-call__number {
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

/* Bildband „Leistungen" unter dem Info-Streifen – gleiche Machart wie der Hero:
   Foto mit Graufilter, dunkle Leiste, weiße Schrift. Eigene Stellschrauben, damit
   Hero und Band getrennt nachjustiert werden können.
   --band-hoehe = Höhe; --band-entsaettigung / --band-leiste wie beim Hero. */
.profile-band {
	--band-hoehe: clamp(420px, 70svh, 760px);
	--band-entsaettigung: 0.45;
	--band-leiste: rgba(29, 29, 27, 0.55);
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--band-hoehe);
	overflow: hidden;
	background: var(--color-black);
	color: #ffffff;
}

/* Solange kein Foto da ist: ruhige dunkle Fläche statt Bild. */
.profile-band--platzhalter {
	background: linear-gradient(135deg, #4a4a4d 0%, #2b2b2c 55%, #1d1d1b 100%);
}

.profile-band__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	filter: grayscale(var(--band-entsaettigung)) brightness(0.95);
}

.profile-band__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 2.5rem var(--page-padding);
	background: var(--band-leiste);
	text-align: center;
}

.profile-band__inner::before {
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0 auto 1.25rem;
	background: var(--color-red);
	content: "";
}

.profile-band__title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.7rem, 3.4vw, 2.8rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.profile-band__text {
	max-width: 62ch;
	margin: 1rem auto 0;
	color: #ffffff;
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.7;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.profile-band__actions {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

@media (max-width: 900px) {
	.profile-band {
		--band-hoehe: clamp(360px, 62svh, 540px);
	}

	.profile-band__inner {
		padding: 2.5rem var(--page-padding);
	}

	.profile-band__actions .profile-hero__button {
		width: 100%;
		max-width: 400px;
	}
}

/* Inhalt der Startseite unter dem Streifen (derzeit leer) */
.profile-front-content:not(:empty) {
	padding: clamp(2.5rem, 5vw, 4.5rem) var(--page-padding);
}

@media (max-width: 900px) {
	.profile-hero {
		height: auto;
		min-height: clamp(360px, 62svh, 540px);
	}

	.profile-hero__inner {
		padding: 3rem var(--page-padding);
	}

	/* Claim in einer Zeile, genau so breit wie die Button-Reihe (Tyler, 10.09.2026).
	   11.75 = Breite des Claims in em bei Avenir Next 500 mit -0.02em.
	   Ändert sich der Claim-Text, muss die Zahl neu gemessen werden. */
	.profile-hero__title {
		font-size: calc(min(100vw - 2 * var(--page-padding), 400px) / 11.75);
		line-height: 1.15;
		white-space: nowrap;
	}

	.profile-hero__actions {
		gap: 0.75rem;
		max-width: 400px;
		margin: 1.5rem auto 0;
	}

	.profile-hero__button {
		flex: 1 1 140px;
		min-width: 0;
		min-height: 50px;
		padding: 0.8rem 1rem;
		font-size: 0.9375rem;
	}

	.profile-info__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.25rem var(--page-padding) 1.4rem;
	}

	.profile-info__hours {
		flex: 0 0 auto;
	}

	.profile-call {
		width: 100%;
	}

	/* Karte im Fluss unter dem Streifen */
	.profile-front-card {
		position: static;
		width: auto;
		padding: 2rem var(--page-padding);
		transform: none;
	}

	.profile-card {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.profile-card p {
		font-size: 1rem;
		line-height: 1.6;
	}
}

/* ============================================================
   Unterseiten: Inhalt links, Kontaktkarte rechts
   ============================================================ */

.profile-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
	gap: clamp(2.5rem, 6vw, 7rem);
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 7rem) var(--page-padding);
}

.profile-page__content {
	min-width: 0;
}

.profile-page__aside {
	position: sticky;
	top: calc(62px + 2rem);
}

.profile-page__aside .profile-card {
	background: var(--color-surface);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.profile-page__aside > p,
.profile-page__aside > .wp-block-shortcode {
	margin: 0;
}

.profile-title {
	position: relative;
	margin: 0 0 2rem;
	padding-bottom: 1.25rem;
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	font-weight: 500;
	overflow-wrap: break-word;
}

.profile-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	background: var(--color-red);
	content: "";
}

.profile-content > * {
	max-width: 68ch;
}

.profile-content > .wp-block-gallery,
.profile-content > .wp-block-image.alignwide,
.profile-content > .wp-block-shortcode {
	max-width: none;
}

.profile-content h2 {
	margin: 2.75rem 0 1rem;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.profile-content h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
}

.profile-content ul:not(.profile-hours) {
	padding-left: 1.2rem;
}

/* Galerien: ruhiges Raster, Klick öffnet die Großansicht (Lightbox von WordPress).
   Abstand über die WordPress-Variable setzen – die Spaltenbreiten rechnen damit. */
.profile-content .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: clamp(0.75rem, 1.5vw, 1.25rem);
	gap: var(--wp--style--unstable-gallery-gap);
	margin-top: 2rem;
}

/* Letzte Reihe nicht aufdehnen – alle Bilder gleich groß. */
.profile-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}

/* Einheitlich quadratisch zuschneiden, damit alle Reihen gleich hoch sind.
   Stellschraube: aspect-ratio (z. B. 4 / 3 für Querformat). */
.profile-content .wp-block-gallery.is-cropped figure.wp-block-image img {
	aspect-ratio: 1 / 1;
}

.profile-content .wp-block-gallery .wp-block-image img {
	border-radius: var(--radius);
}

@media (max-width: 900px) {
	.profile-page {
		grid-template-columns: 1fr;
		gap: 3rem;
		padding-top: 2.5rem;
		padding-bottom: 3rem;
	}

	.profile-page__aside {
		position: static;
	}

	.profile-title {
		font-size: clamp(2rem, 7vw, 3rem);
	}
}

/* ============================================================
   Buttons, Formular, Hinweise, Anfahrt
   ============================================================ */

.profile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.4rem;
	background: var(--color-red);
	border: 1.5px solid var(--color-red);
	border-radius: var(--radius);
	color: #ffffff;
	font: inherit;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-button:hover,
.profile-button:focus-visible {
	background: var(--color-red-dark);
	border-color: var(--color-red-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.profile-button--outline {
	background: transparent;
	border-color: var(--color-black);
	color: var(--color-black);
}

.profile-button--outline:hover,
.profile-button--outline:focus-visible {
	background: var(--color-black);
	border-color: var(--color-black);
}

.profile-form {
	display: grid;
	gap: 1rem;
	max-width: 560px;
	margin-top: 1.5rem;
}

.profile-form p {
	margin: 0;
}

.profile-form__field {
	display: grid;
	gap: 0.35rem;
}

.profile-form label {
	color: var(--color-black);
	font-weight: 600;
}

.profile-form input,
.profile-form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	background: #ffffff;
	border: 1px solid #cfd1d4;
	border-radius: var(--radius);
	color: var(--color-text);
	font: inherit;
}

.profile-form input:focus,
.profile-form textarea:focus {
	border-color: var(--color-red);
}

.profile-form__note {
	color: var(--color-muted);
	font-size: 0.9rem;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld. */
.profile-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.profile-notice {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--color-red);
	background: var(--color-surface);
	color: var(--color-black);
}

.profile-notice--ok {
	border-left-color: #2e7d32;
}

.profile-route__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.25rem 0 0.75rem;
}

.profile-route__hint {
	color: var(--color-muted);
	font-size: 0.9rem;
}

/* ============================================================
   Fußzeile
   ============================================================ */

.profile-footer {
	background: #eceef0;
	border-top: 1px solid #d9dbde;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.profile-footer > p,
.profile-footer > .wp-block-shortcode {
	margin: 0;
}

.profile-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem clamp(2rem, 5vw, 5rem);
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem var(--page-padding) 2rem;
}

.profile-footer__col {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.profile-footer__col p {
	margin: 0;
}

.profile-footer .profile-hours {
	max-width: 280px;
}

.profile-footer a {
	color: var(--color-black);
}

.profile-footer a:hover {
	color: var(--color-red);
}

.profile-footer__links a {
	width: fit-content;
}

.profile-footer__copy {
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 1.25rem var(--page-padding) calc(1.5rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #d9dbde;
	font-size: 0.85rem;
}

@media (max-width: 900px) {
	.profile-footer__inner {
		grid-template-columns: 1fr;
		padding-top: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
