/*
Theme Name: Twenty Twenty-Five Child
Theme URI: http://localhost/projekte/ic-carmen-friedl_de/
Description: Child-Theme von Twenty Twenty-Five. Eigene Anpassungen liegen hier, das Parent-Theme bleibt unverändert.
Template: twentytwentyfive
Version: 1.0.37
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/**
 * Eigene CSS-Anpassungen unter diesem Kommentar ergänzen.
 * Die Datei wird nach dem Stylesheet des Parent-Themes geladen.
 */
:root {
	--wp--preset--font-size--xx-large: clamp(1.37rem, 1.37rem + ((0.75vw - 0.2rem) * 1.333), 2.5rem);
	--wp--preset--font-size--x-large: clamp(1.25rem, 1.25rem + ((0.9vw - 0.2rem) * 0.392), 2rem);
	--wp--preset--font-size--large: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
}

header.wp-block-template-part:has(.cf-site-header) {
	position: sticky;
	top: 0;
	z-index: 20;
}

body.admin-bar header.wp-block-template-part:has(.cf-site-header) {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar header.wp-block-template-part:has(.cf-site-header) {
		top: 46px;
	}
}

header.wp-block-template-part:has(.cf-site-header),
.cf-site-header {
	background-color: #000;
	color: #fff;
	border-bottom: 1px solid color-mix(in srgb, #fff 16%, transparent);
}

.wp-block-navigation__responsive-container-open svg {
    height: 48px;
    width: 48px;
}

.cf-site-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1340px);
	margin-inline: auto;
	padding: 12px var(--wp--preset--spacing--40, 30px);
	box-sizing: border-box;
}

.cf-site-header__menu {
	justify-self: start;
	width: auto;
}

.cf-site-header__brand {
	margin: 0;
	justify-self: center;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	max-width: 100%;
}

.cf-site-header__logo {
	flex: 0 0 auto;
	line-height: 0;
}

.cf-site-header__wordmark {
	margin: 0;
	min-width: 0;
	overflow: hidden;
	color: #fff;
	line-height: 1.05;
	text-align: left;
}

.cf-site-header__menu .wp-block-navigation__responsive-container-open {
	color: #fff;
}

.cf-site-header__wordmark-line {
	display: block;
	white-space: nowrap;
}

.cf-site-header__wordmark-line--brand {
	font-size: clamp(0.62rem, 1.5vw, 1.5rem);
	font-weight: 500;
	letter-spacing: 0.14em;
}

.cf-site-header__wordmark-line--name {
	margin-top: 0.12em;
	font-size: clamp(0.78rem, 2vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.045em;
}

.cf-site-header__wordmark-line--place {
	margin-top: 0.16em;
	font-size: clamp(0.52rem, 1.25vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.05em;
}

.cf-site-header__logo img,
.cf-site-header__logo .custom-logo {
	display: block;
	width: auto;
	height: 72px;
}

.cf-site-header__cta {
	justify-self: end;
	margin: 0;
}

.cf-site-header__cta .wp-block-button__link {
	background-color: #c9a13b;
	color: #fff;
	border-radius: 8px;
	font-weight: 700;
	padding: 0.7rem 1.15rem;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
}

.cf-site-header__cta .wp-block-button__link:hover,
.cf-site-header__cta .wp-block-button__link:focus {
	background-color: #a8862e;
	color: #fff;
}

@media (max-width: 640px) {
	.cf-site-header__bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		column-gap: 8px;
		padding-inline: 12px;
	}

	.cf-site-header__brand {
		gap: 0.35rem;
	}

	.cf-site-header__logo img,
	.cf-site-header__logo .custom-logo {
		max-height: 48px;
	}

	.cf-site-header__wordmark-line--brand {
		font-size: 0.68rem;
		letter-spacing: 0.08em;
	}

	.cf-site-header__wordmark-line--name {
		font-size: 0.84rem;
		letter-spacing: 0.03em;
	}

	.cf-site-header__wordmark-line--place {
		font-size: 0.58rem;
		letter-spacing: 0.02em;
	}

	.cf-site-header__cta .wp-block-button__link {
		padding: 0.45rem 0.55rem;
		font-size: 0.72rem;
	}
}

@media (max-width: 375px) {
	.cf-site-header__cta .wp-block-button__link {
		padding: 0.35rem 0.4rem;
	}
}
@media (max-width: 425px) {
	.cf-site-header__cta .cf-booking-button .wp-block-button__link {
		font-size: 0;
		line-height: 0;
	}
    .cf-site-header__cta .cf-booking-button .wp-block-button__link::after {
        content: "Termin";
        line-height: 1.2;
        font-size: 1rem;
    }

    .cf-site-header__logo {
        display: none;
    }
}

.cf-site-footer {
	color: var(--wp--preset--color--base, #fff);
	padding-top: var(--wp--preset--spacing--70, 70px);
	padding-bottom: var(--wp--preset--spacing--50, 40px);
}

.cf-site-footer__cta {
	text-align: center;
}

.cf-site-footer__cta .wp-block-heading {
	text-wrap: balance;
	margin-block: 0;
}

.cf-site-footer__cta .has-text-align-center {
	max-width: 38rem;
	margin-inline: auto;
}

.cf-site-footer__actions {
	margin-top: 0.85rem;
}

.cf-site-footer__button .wp-block-button__link {
	background-color: var(--wp--preset--color--accent-1, #cea03f);
	color: var(--wp--preset--color--base, #fff);
	border-radius: 8px;
	font-weight: 700;
	text-transform: none;
	padding: 0.7rem 1.15rem;
	line-height: 1.2;
	text-decoration: none;
}

.cf-site-footer__button .wp-block-button__link:hover,
.cf-site-footer__button .wp-block-button__link:focus {
	background-color: #a8862e;
	color: var(--wp--preset--color--base, #fff);
}

.cf-site-footer__phone {
	margin-top: 0.35rem;
	font-weight: 500;
}

.cf-site-footer__phone a {
	color: inherit;
	text-decoration: none;
}

.cf-site-footer__phone a:hover,
.cf-site-footer__phone a:focus {
	text-decoration: underline;
}

.cf-site-footer__address {
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
}

.cf-site-footer__address .iccf-field {
	margin: 0;
}

.cf-site-footer__place {
	column-gap: 0.35rem;
}

.cf-site-footer__hours.iccf-field {
	margin: 0;
	font-weight: 400;
	line-height: 1.4;
}

.cf-site-footer .iccf-hours {
	column-gap: 1.75rem;
	row-gap: 0.35rem;
}

.cf-site-footer .iccf-hours dt,
.cf-site-footer .iccf-hours dd {
	margin: 0;
	font-weight: 400;
}

.cf-site-footer__social {
	margin: 0;
}

.cf-site-footer__social .iccf-field {
	margin: 0;
}

.cf-site-footer__social .iccf-field a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: inherit;
	text-decoration: none;
	line-height: 1.4;
}

.cf-site-footer__social .iccf-field a:hover,
.cf-site-footer__social .iccf-field a:focus {
	text-decoration: underline;
}

.cf-site-footer__social-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
}

.cf-site-footer__social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.cf-site-footer__nav {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base, #fff) 28%, transparent);
	padding-top: var(--wp--preset--spacing--40, 30px);
}

.cf-site-footer__menu .wp-block-navigation__container {
	justify-content: center;
	gap: 0.65rem 1.35rem;
}

.cf-site-footer__menu .wp-block-navigation-item__content {
	color: inherit;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.cf-site-footer__menu .wp-block-navigation-item__content:hover,
.cf-site-footer__menu .wp-block-navigation-item__content:focus {
	text-decoration: none;
}

@media (min-width: 782px) {
	.cf-site-footer__details > .wp-block-column {
		flex-basis: 0;
		flex-grow: 1;
		width: auto;
	}
}

body.page-id-1158 h1.wp-block-post-title {
	text-wrap: balance;
	max-width: 18em;
}

body.page-template-page-leistungen,
body.page-template-page-home {
	--cf-header-height: 116px;
}

@media (max-width: 640px) {
	body.page-template-page-leistungen,
	body.page-template-page-home {
		--cf-header-height: 92px;
	}
}

body.page-template-page-leistungen .wp-site-blocks > main.cf-leistungen,
body.page-template-page-home .wp-site-blocks > main.cf-leistungen {
	margin-block-start: calc(-1 * var(--cf-header-height));
}

.cf-leistungen-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	align-items: stretch;
	width: 100%;
	max-width: none;
	min-height: calc(var(--cf-header-height, 116px) + clamp(18rem, 48vh, 32rem));
	margin-block: 0;
	background-color: #000;
	overflow: hidden;
	container-type: inline-size;
}

.cf-leistungen-hero > * {
	margin: 0;
}

body.page-template-page-leistungen header.wp-block-template-part:has(.cf-site-header),
body.page-template-page-leistungen .cf-site-header,
body.page-template-page-home header.wp-block-template-part:has(.cf-site-header),
body.page-template-page-home .cf-site-header {
	background-color: transparent;
	border-bottom-color: transparent;
	transition: background-color 0.2s ease, border-bottom-color 0.2s ease;
}

body.page-template-page-leistungen.cf-header-is-solid header.wp-block-template-part:has(.cf-site-header),
body.page-template-page-leistungen.cf-header-is-solid .cf-site-header,
body.page-template-page-home.cf-header-is-solid header.wp-block-template-part:has(.cf-site-header),
body.page-template-page-home.cf-header-is-solid .cf-site-header {
	background-color: #000;
	border-bottom-color: color-mix(in srgb, #fff 16%, transparent);
}

.cf-leistungen-hero__copy {
	justify-self: stretch;
	align-self: stretch;
	position: relative;
	z-index: 2;
	width: auto;
	max-width: none;
	box-sizing: border-box;
	background-color: transparent;
	color: #fff;
}

.cf-leistungen-intro {
	box-sizing: border-box;
	width: min(
		var(--wp--style--global--content-size, 645px),
		calc(100cqi - var(--wp--style--root--padding-left, 30px) - var(--wp--style--root--padding-right, var(--wp--style--root--padding-left, 30px)))
	);
	margin-left: max(
		var(--wp--style--root--padding-left, 30px),
		calc((100cqi - var(--wp--style--global--content-size, 645px)) / 2)
	);
	margin-right: 0;
	text-align: start;
}

/* Startseite setzt den Einzug in den eigenen Breakpoints. Darunter bleibt er bei 0. */
@media (max-width: 640px) {
	body.page-template-page-home .cf-leistungen-intro {
		margin-left: 0;
	}
}

.cf-leistungen-intro > * + * {
	margin-top: 0.85rem;
}

.cf-leistungen-hero__copy > * {
	margin-block: 0;
}

.cf-leistungen-hero__copy :where(h1, h2, h3, h4, p, li, a) {
	color: #fff;
}

.cf-leistungen-hero__copy :where(h1, .wp-block-heading) {
	font-weight: 500;
	text-wrap: balance;
}

.cf-leistungen-hero__media.wp-block-cover {
	align-self: stretch;
	min-height: 100%;
	height: 100%;
	padding: 0;
	background-color: #000;
}

.cf-leistungen-hero__media .wp-block-cover__image-background {
	object-fit: cover;
}

.cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
	opacity: 1;
	background-color: transparent;
	background-image: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.8),
		rgba(0, 0, 0, 0.6)
	);
}

/*
 * Startseite: Das Cover füllt die ganze Breite, ohne Abdunklung.
 * Die Textspalte ist erst ab 700 Pixel auf die linke Hälfte begrenzt.
 */
body.page-template-page-home .cf-leistungen-hero {
	grid-template-columns: minmax(0, 1fr);
}

body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover {
	grid-column: 1 / -1;
	width: 100%;
	max-width: none;
	min-height: 100%;
}

body.page-template-page-home .cf-leistungen-hero__media .wp-block-cover__image-background {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Start- und Leistungsseiten bis 640px: Text und Abdunklung starten unsichtbar
 * und blenden nach einer Sekunde über 2,5 Sekunden ein.
 */
@keyframes cf-leistungen-hero-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 640px) {
	body.page-template-page-home .cf-leistungen-hero__copy,
	body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,
	body.page-template-page-leistungen .cf-leistungen-hero__copy,
	body.page-template-page-leistungen .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		animation: cf-leistungen-hero-fade-in 2.5s ease-in-out 1s both;
	}

	body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,
	body.page-template-page-leistungen .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		background-color: transparent;
		background-image: linear-gradient(
			to right,
			rgba(0, 0, 0, 0.7),
			rgba(0, 0, 0, 0.5)
		);
	}
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
	body.page-template-page-home .cf-leistungen-hero__copy,
	body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,
	body.page-template-page-leistungen .cf-leistungen-hero__copy,
	body.page-template-page-leistungen .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		animation: none;
		opacity: 1;
	}
}

/*
 * Leistungsseiten: zwischen 640 und 700 Pixel bleibt der Text
 * bei höchstens 66 Prozent der Bildschirmbreite.
 * Ab 700 Pixel nimmt er die linke Hälfte ein, die Abdunklung entfällt.
 */
@media (min-width: 640.1px) and (max-width: 699.98px) {
	body.page-template-page-leistungen .cf-leistungen-hero {
		grid-template-columns: minmax(0, 66vw) minmax(0, 1fr);
	}

	body.page-template-page-leistungen .cf-leistungen-intro {
		width: calc(66vw - var(--wp--style--root--padding-left, 30px));
		max-width: calc(66vw - var(--wp--style--root--padding-left, 30px));
		margin-left: var(--wp--style--root--padding-left, 30px);
		margin-right: 0;
	}
}

@media (min-width: 700px) {
	body.page-template-page-leistungen .cf-leistungen-intro {
		--cf-leistungen-intro-inset: max(
			var(--wp--style--root--padding-left, 30px),
			calc((100cqi - var(--wp--style--global--content-size, 645px)) / 2)
		);
		width: calc(50vw - var(--cf-leistungen-intro-inset));
		max-width: calc(50vw - var(--cf-leistungen-intro-inset));
		margin-left: var(--cf-leistungen-intro-inset);
		margin-right: 0;
	}

	body.page-template-page-leistungen .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		opacity: 0;
		background-image: none;
	}
}
@media (max-width:425px) {
	body.page-template-page-home .spacer-top {
		height: 100px;
	}
	body.page-template-page-leistungen .spacer-top {
		height: 100px;
	}
}
@media (min-width: 426px) {
	body.page-template-page-leistungen .spacer-top {
		height: calc(10vh + 100px);
	}
}
@media (min-width: 640.1px) {
	body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		opacity: 0;
		background-image: none;
	}
	body.page-template-page-home .wp-block-cover__inner-container > .cf-leistungen-hero__copy {
		width: 75%;
		max-width: 75% !important;
		margin-right: auto !important;
		margin-left: 0 !important;
	}
	body.page-template-page-home .cf-leistungen-intro {
		width: auto;
		max-width: none;
		margin-right: var(--wp--style--root--padding-right, var(--wp--style--root--padding-left, 30px));
		/* Der Cover-Innenabstand ist schon der Seitenrand. Der Rest rückt den Text auf die linke Kante des Hauptinhalts. */
		margin-left: max(
			0px,
			calc((100cqi - var(--wp--style--global--content-size, 645px)) / 2 - var(--wp--style--root--padding-left, 30px))
		);
	}
	body.page-template-page-home .spacer-top {
		height: 100px;
	}
}

@media (min-width: 768px) {
	body.page-template-page-home .wp-block-cover__inner-container > .cf-leistungen-hero__copy {
		width: 50%;
		max-width: 50% !important;
		margin-right: auto !important;
		margin-left: 0 !important;
	}

	body.page-template-page-home .spacer-top {
		height: 100px;
	}
}

.cf-leistungen-content > * {
	margin-block-start: 0;
}
@media (min-width: 1024px) {
	body.page-template-page-home .spacer-top {
		height: calc(10vh + 100px);
	}
	body.page-template-page-home .spacher-bottom {
		height: 10vh;
	}
}
@media (max-width: 700px) {
	.cf-leistungen-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cf-leistungen-hero__media.wp-block-cover {
		min-height: 100%;
		height: 100%;
	}
	.spacer-top {
		height: 100px;
	}
	.spacer-bottom {
		height: 5vh;
	}
}

@media (max-width: 425px) {
	.cf-leistungen-hero {
		position: relative;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.cf-leistungen-hero__media.wp-block-cover {
		position: absolute;
		inset: 0;
		z-index: 1;
		width: 100%;
		height: 100%;
	}

	/*
	 * Auf der Startseite steckt der Text im Cover. Absolut positioniert
	 * hätte der Hero keine Höhe und das Bild würde verschwinden.
	 */
	body.page-template-page-home .cf-leistungen-hero__media.wp-block-cover {
		position: relative;
		inset: auto;
		z-index: auto;
		width: 100%;
		height: auto;
		min-height: calc(var(--cf-header-height, 92px) + clamp(18rem, 48vh, 32rem));
	}
}

@media (min-width: 700.1px) {
	.spacer-top {
		height: 20vh;
	}
	.spacer-bottom {
		height: 10vh;
	}
}
.wp-block-post-featured-image {
	margin: 0
}

/*
 * Standard-Tabellen: kein Zellenrahmen, nur eine Linie unter jeder Zeile.
 * Die letzte Zeile der Tabelle bleibt ohne Linie.
 */
.wp-block-table.is-style-regular :is(td, th),
.wp-block-table:not([class*="is-style-"]) :is(td, th) {
	border-width: 0 0 1px;
}

.wp-block-table.is-style-regular table > :last-child > tr:last-child > :is(td, th),
.wp-block-table:not([class*="is-style-"]) table > :last-child > tr:last-child > :is(td, th) {
	border-bottom-width: 0;
}

.wp-block-table.is-style-regular :is(thead, tfoot),
.wp-block-table:not([class*="is-style-"]) :is(thead, tfoot) {
	border-width: 0;
}

/*
 * Galerie: jede Kachel behält die eingestellte Spaltenbreite.
 * Eine unvollständige letzte Zeile wird zentriert, statt die Bilder
 * auf die volle Zeilenbreite zu strecken.
 */
figure.wp-block-gallery.has-nested-images,
.wp-block-gallery:not(.has-nested-images),
.blocks-gallery-grid:not(.has-nested-images) {
	justify-content: center;
}

figure.wp-block-gallery.has-nested-images > figure.wp-block-image,
.wp-block-gallery:not(.has-nested-images) > .blocks-gallery-item,
.wp-block-gallery:not(.has-nested-images) > .blocks-gallery-image,
.blocks-gallery-grid:not(.has-nested-images) > .blocks-gallery-item,
.blocks-gallery-grid:not(.has-nested-images) > .blocks-gallery-image {
	flex-grow: 0;
}