/*
 * PhysioFit Mannheim – Startseite.
 * Reihenfolge wie auf der Seite: Einstieg, Vorteile, Aktuelles, Standorte, Leistungen, Über uns,
 * Fotoband, Infos zur Behandlung. Terminanfrage, Bewertungen und Fotoband stehen in main.css.
 */

/* ---------- Einstieg ---------- */

.pf-einstieg {
	padding-block: clamp(2.5rem, 1.75rem + 4vw, 5.5rem);
	background:
		linear-gradient(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.9)),
		var(--pf-einstieg-bild) center / cover no-repeat;
}

.pf-einstieg__raster {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
	align-items: center;
}

.pf-einstieg__titel {
	display: grid;
	gap: 0.15rem;
}

/* Erste Zeile der zweifarbigen Überschrift (Ort), auf einer echten Überschriftenstufe. */
.pf-einstieg__ort {
	color: var(--pf-lime-tief);
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
	line-height: 1.2;
}

.pf-einstieg__claim {
	font-size: clamp(2.25rem, 1.6rem + 2vw, 2.875rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.pf-einstieg__text > p {
	max-width: 54ch;
	margin-top: 1rem;
}

.pf-einstieg__text > .pf-einstieg__lead {
	margin-top: 1.5rem;
	font-size: 1.125rem;
}

.pf-einstieg__aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
	margin-top: 2rem;
}

.pf-einstieg__bild {
	margin: 0;
}

.pf-einstieg__bild img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--pf-radius);
	box-shadow: var(--pf-schatten-hoch);
}

@media (max-width: 39.99em) {
	.pf-einstieg__aktionen .pf-btn {
		width: 100%;
	}
}

@media (min-width: 56em) {
	.pf-einstieg__raster {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: clamp(2rem, 1rem + 2.5vw, 3rem);
	}

	.pf-einstieg__aktionen .pf-btn {
		padding-inline: 1.4rem;
	}
}

/* ---------- Vorteile ---------- */

.pf-vorteile {
	padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
	background: var(--pf-flaeche);
}

.pf-vorteile__liste {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-vorteil {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.35rem 1.5rem;
	border-radius: var(--pf-radius);
	background: var(--pf-weiss);
}

.pf-vorteil__icon {
	display: inline-grid;
	flex: none;
	place-items: center;
	color: var(--pf-lime);
}

.pf-vorteil__icon .pf-icon {
	width: 2rem;
	height: 2rem;
}

.pf-vorteil__titel {
	display: block;
	color: var(--pf-titel);
	font-family: var(--pf-font-titel);
	font-size: 1.25rem;
	line-height: 1.25;
}

.pf-vorteil__text {
	display: block;
	margin-top: 0.15rem;
	color: var(--pf-grau);
	font-size: var(--pf-klein);
}

@media (min-width: 52em) {
	.pf-vorteile__liste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

/* ---------- Aktuelles ---------- */

.pf-aktuell {
	padding-top: var(--pf-abstand);
}

.pf-aktuell__text {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.pf-aktuell__titel {
	margin-bottom: 1rem;
	font-size: var(--pf-h3);
	text-wrap: balance;
}

.pf-aktuell__text p + p {
	margin-top: 0.85rem;
}

/* Kein einzelnes Wort allein in der letzten Zeile, ohne die Absätze ungleich breit zu machen. */
.pf-aktuell__text p {
	text-wrap: pretty;
}

.pf-aktuell__signatur {
	color: var(--pf-gruen);
	font-family: var(--pf-font-titel);
	font-weight: 700;
}

/* ---------- Leistungen ---------- */

.pf-leistungen-start {
	padding-top: 0;
}

.pf-leistungen-start__raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-leistung {
	position: relative;
	padding: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
	border-radius: var(--pf-radius);
	background: var(--pf-weiss);
	box-shadow: var(--pf-schatten);
	transition: box-shadow 0.35s var(--pf-ease), transform 0.35s var(--pf-ease);
}

.pf-leistung:hover {
	box-shadow: var(--pf-schatten-hoch);
	transform: translateY(-3px);
}

.pf-leistung:focus-within {
	outline: 3px solid var(--pf-gruen);
	outline-offset: 3px;
}

.pf-leistung__icon {
	display: inline-grid;
	place-items: center;
	color: var(--pf-lime);
}

.pf-leistung__icon .pf-icon {
	width: 2rem;
	height: 2rem;
}

.pf-leistung__titel {
	margin-top: 1rem;
	font-size: var(--pf-h4);
}

.pf-leistung__titel a {
	color: inherit;
	text-decoration: none;
}

.pf-leistung__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.pf-leistung__titel a:focus-visible {
	outline: none;
}

.pf-leistung:hover .pf-leistung__titel {
	color: var(--pf-gruen);
}

.pf-leistung__text {
	margin-top: 0.5rem;
	font-size: var(--pf-klein);
}

.pf-leistung__punkte {
	display: grid;
	gap: 0.45rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--pf-klein);
}

.pf-leistung__punkte li {
	position: relative;
	padding-left: 1.1rem;
}

.pf-leistung__punkte li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--pf-lime);
}

/* ---------- Über uns und Fotoband ---------- */

.pf-ueber {
	background: var(--pf-flaeche);
}

.pf-ueber__karte {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
	align-items: center;
	max-width: 62rem;
	margin-inline: auto;
	padding: clamp(1.5rem, 1rem + 3vw, 3.25rem);
	border-radius: var(--pf-radius);
	background: var(--pf-weiss);
}

.pf-ueber__bild {
	width: 100%;
	max-width: 17rem;
	margin: 0;
}

.pf-ueber__bild img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: var(--pf-radius);
}

.pf-ueber__titel {
	font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
}

.pf-ueber__unter {
	margin: 0.85rem 0 1.1rem;
	font-size: 1.25rem;
}

.pf-ueber__text p + p {
	margin-top: 0.9rem;
}

.pf-ueber__text strong {
	color: var(--pf-titel);
}

@media (min-width: 48em) {
	.pf-ueber__karte {
		grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr);
	}
}

/* ---------- Infos zur Behandlung ---------- */

.pf-faq__aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin-top: 2rem;
}


.pf-faq__liste {
	max-width: 52rem;
	margin-inline: auto;
	border-top: 1px solid var(--pf-lime);
}

.pf-faq__eintrag {
	border-bottom: 1px solid var(--pf-lime);
}

.pf-faq__eintrag summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.75rem;
	padding-block: 0.9rem;
	color: var(--pf-titel);
	font-family: var(--pf-font-titel);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.pf-faq__eintrag summary::-webkit-details-marker {
	display: none;
}

.pf-faq__eintrag summary .pf-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--pf-lime-tief);
	stroke-width: 2.25;
	transition: transform 0.3s var(--pf-ease);
}

.pf-faq__eintrag[open] summary .pf-icon {
	transform: rotate(90deg);
}

.pf-faq__eintrag summary:hover {
	color: var(--pf-gruen);
}

.pf-faq__eintrag p {
	max-width: 62ch;
	padding: 0 0 1.35rem 2rem;
}

/* Sanftes Auf- und Zuklappen, wo der Browser es kann. */
@supports (interpolate-size: allow-keywords) {
	.pf-faq {
		interpolate-size: allow-keywords;
	}

	.pf-faq__eintrag::details-content {
		block-size: 0;
		overflow: clip;
		transition: block-size 0.4s var(--pf-ease), content-visibility 0.4s allow-discrete;
	}

	.pf-faq__eintrag[open]::details-content {
		block-size: auto;
	}
}
