/*
Theme Name: Berlintherapie
Theme URI: https://example.com/
Author: Berlintherapie Team
Author URI: https://example.com/
Description: Custom theme for the Berlintherapie website.
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berlintherapie
Tags: custom, therapy, responsive
*/

/* Custom properties für Theme-spezifische Werte */
:root {
	--bt-container-padding: 1.5rem;
}

/* Body nur für Reset und nicht in theme.json enthaltene Styles */
body {
	margin: 0;
}

/* Container nutzt WordPress Layout-Werte */
.container {
	max-width: var(--wp--style--global--wide-size, 1080px);
	margin: 0 auto;
	padding: 0 var(--bt-container-padding);
}

.site-header {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(102, 177, 170, 0.25);
	padding: 1.25rem 0 1rem;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
	backdrop-filter: blur(10px);
}

/* Header beim Scrollen */
.site-header.scrolled {
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 2px 10px rgba(74, 90, 87, 0.1);
}

.site-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	font-weight: 600;
	margin: 0;
}

.site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--neutral-900);
}

.site-description {
	margin-top: 0.25rem;
	color: var(--wp--preset--color--neutral-500);
	font-size: 1rem;
}

/* Links: nur Transitions, Farben kommen aus theme.json */
a {
	transition: color 0.2s ease;
}

main {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

/* Add top padding for non-homepage pages to account for fixed header */
body:not(.home) main {
	padding-top: 8rem;
	padding-bottom: 3rem;
}

.wp-block-group {
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 16px 30px rgba(74, 90, 87, 0.08);
}

.wp-block-group.has-background,
.wp-block-group.is-style-unstyled {
	background-color: inherit;
	box-shadow: none;
}

.breadcrumbs {
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--neutral-500);
}

.breadcrumbs a {
	color: var(--wp--preset--color--neutral-500);
}

.breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
}

/* Buttons: nur zusätzliche Layout-Styles, Farben/Typography aus theme.json */
.wp-element-button,
button,
input[type="submit"],
.button,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	border-radius: 50px !important;
}

.wp-element-button:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.btn:hover {
	background-color: var(--wp--preset--color--secondary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 177, 170, 0.3);
}

/* Button-Varianten */
.button--ghost {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid currentColor;
	padding: 0.75rem 1.75rem;
	border-radius: 6px;
	font-weight: 600;
}

.button--ghost:hover {
	background-color: rgba(102, 177, 170, 0.12);
}

.card {
	background-color: var(--wp--preset--color--accent);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(102, 177, 170, 0.12);
}

/* Two-column article teaser: image left, content right */

.gutenberg-group-artikel-b-l {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto 1fr auto;
	column-gap: 2.5rem;
	row-gap: 0.25rem;
	align-items: start;
}


.gutenberg-group-artikel-b-l > figure,
.gutenberg-group-artikel-b-l > .wp-block-image {
	margin: 0;
	grid-column: 1;
	grid-row: 1 / span 3;
	justify-self: center;
	align-self: center;
}

.gutenberg-group-artikel-b-l > h2 {
	grid-column: 2;
	grid-row: 1;
}

.gutenberg-group-artikel-b-l > p {
	grid-column: 2;
	grid-row: 2;
}


.gutenberg-group-artikel-b-l h2.wp-block-heading {
	margin: 0;
	width: 100%;
}

.gutenberg-group-artikel-b-l .wp-block-heading {
	margin-bottom: 0 !important;
}

.gutenberg-group-artikel h2.wp-block-heading {
	text-align: center;
}

.gutenberg-group-artikel p {
	text-align: justify;
}

.gutenberg-group-artikel h2.wp-block-heading::after,
.gutenberg-group-artikel-b-l h2.wp-block-heading::after,
.gutenberg-group-artikel-b-r h2.wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-kontakt h2.wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: 0;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-artikel-b-l > h2 + p {
	margin-top: 0;
}

.gutenberg-group-artikel-b-l > p {
	margin: 0;
	text-align: justify !important;
}

.gutenberg-group-artikel-b-l > p:last-of-type {
	margin-bottom: 0;
}

/* Button placement and alignment for left-image layout */
.gutenberg-group-artikel-b-l > .wp-block-buttons {
	grid-column: 2;
	grid-row: 3;
	justify-self: end !important;
	margin-top: 1rem;
	display: flex !important;
	justify-content: flex-end !important;
	width: 100%;
}

/* Figcaption alignment for left-image layout */
.gutenberg-group-artikel-b-l figcaption {
	text-align: left;
}

/* Artikel Umlauf (Text wraps around image) - Common styles */
[class*="gutenberg-group-artikel-umlauf-"] {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
	box-sizing: border-box;
	display: block;
}

/* Sub-Group - completely transparent, full width, no styling */
.gutenberg-group-sub-group.wp-block-group {
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 0 !important;
	border: none !important;
}

/* Remove Gutenberg constraints from sub-group */
.gutenberg-group-sub-group.wp-block-group.is-layout-constrained > * {
	max-width: none !important;
}

[class*="gutenberg-group-artikel-umlauf-"] h3.wp-block-heading {
	font-size: clamp(1.2rem, 2.5vw, 1.5rem);
	font-weight: 600;
	margin-bottom: 1rem;
	margin-top: 0;
	clear: both;
	text-align: left !important;
}

/* H3 separator line - always left-aligned */
[class*="gutenberg-group-artikel-umlauf-"] h3.wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: 0;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

/* Text styling */
[class*="gutenberg-group-artikel-umlauf-"] p {
	text-align: justify !important;
	line-height: 1.6;
	margin: 0 0 1rem 0;
}

/* Image styling - 50% width, floats beside text */
[class*="gutenberg-group-artikel-umlauf-"] figure,
[class*="gutenberg-group-artikel-umlauf-"] .wp-block-image {
	margin: 0 !important;
	padding: 0 !important;
	width: 50% !important;
	max-width: 50% !important;
	box-sizing: border-box !important;
}

[class*="gutenberg-group-artikel-umlauf-"] img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	border-radius: 8px;
}

/* Left variant - Image floats left, text wraps around */
.gutenberg-group-artikel-umlauf-b-l figure,
.gutenberg-group-artikel-umlauf-b-l .wp-block-image {
	float: left !important;
	margin-right: 2rem !important;
	margin-bottom: 1rem !important;
}

/* Right variant - Image floats right, text wraps around */
.gutenberg-group-artikel-umlauf-b-r figure,
.gutenberg-group-artikel-umlauf-b-r .wp-block-image {
	float: right !important;
	margin-left: 2rem !important;
	margin-bottom: 1rem !important;
}

/* Text paragraphs flow around the image */
[class*="gutenberg-group-artikel-umlauf-"] p {
	text-align: justify !important;
	line-height: 1.6;
	margin: 0 0 1rem 0;
	clear: none !important;
}

/* Clearfix */
[class*="gutenberg-group-artikel-umlauf-"]::after {
	content: '';
	display: table;
	clear: both;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
	[class*="gutenberg-group-artikel-umlauf-"] figure,
	[class*="gutenberg-group-artikel-umlauf-"] .wp-block-image {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 1rem 0 !important;
	}
}

/* Two-column article teaser: image right, content left */
.gutenberg-group-artikel-b-r {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto 1fr auto;
	column-gap: 2.5rem;
	row-gap: 0.25rem;
	align-items: start;
}

.gutenberg-group-artikel-b-r > figure,
.gutenberg-group-artikel-b-r > .wp-block-image {
	margin: 0;
	grid-column: 2; /* Image on the right */
	grid-row: 1 / span 3;
	justify-self: center;
	align-self: center;
}

.gutenberg-group-artikel-b-r > h2 {
	grid-column: 1; /* Text on the left */
	grid-row: 1;
}

.gutenberg-group-artikel-b-r > p {
	grid-column: 1; /* Text on the left */
	grid-row: 2;
}

.gutenberg-group-artikel-b-r h2.wp-block-heading {
	margin: 0;
	width: 100%;
}

.gutenberg-group-artikel-b-r .wp-block-heading {
	margin-bottom: 0 !important;
}

.gutenberg-group-artikel-b-r > h2 + p {
	margin-top: 0;
}

.gutenberg-group-artikel-b-r > p {
	margin: 0;
	text-align: justify !important;
}

.gutenberg-group-artikel-b-r > p:last-of-type {
	margin-bottom: 0;
}

/* Button placement and alignment for right-image layout */
.gutenberg-group-artikel-b-r > .wp-block-buttons {
	grid-column: 1;
	grid-row: 3;
	justify-self: start !important;
	margin-top: 1rem;
	display: flex !important;
	justify-content: flex-start !important;
	width: 100%;
}

/* Figcaption alignment for right-image layout */
.gutenberg-group-artikel-b-r figcaption {
	text-align: right;
}

/* Leistungen Cards - Desktop Grid Layout */
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block) {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1rem !important;
	padding: 2rem !important;
	max-width: var(--wp--style--global--wide-size, 1080px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block) > h2,
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block) > .wp-block-heading {
	grid-column: 1 / -1 !important;
	margin-bottom: 1rem !important;
	margin-top: 0 !important;
	text-align: center !important;
}

.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block) > h2.wp-block-heading::after,
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block) > .wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-leistungen-block.wp-block-group,
.gutenberg-group-leistungen-block {
	background-color: var(--wp--preset--color--primary) !important;
	padding: 2rem !important;
	margin: 0 !important;
	border-radius: 1rem !important;
	display: flex !important;
	flex-direction: column !important;
	text-align: left !important;
	justify-content: space-between !important;
	box-shadow: 0 4px 12px rgba(102, 177, 170, 0.3) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
	min-width: 0 !important;
	cursor: pointer;
	position: relative !important;
}

/* Make entire card clickable by stretching the link */
.gutenberg-group-leistungen-block a {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 10 !important;
	text-indent: -9999px !important;
	color: transparent !important;
	font-size: 0 !important;
	border-radius: 1rem !important;
}

/* Keep other content visible */
.gutenberg-group-leistungen-block > *:not(a) {
	position: relative !important;
	z-index: 1 !important;
}

.gutenberg-group-leistungen-block.wp-block-group:hover,
.gutenberg-group-leistungen-block:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 20px rgba(102, 177, 170, 0.4) !important;
	background-color: var(--wp--preset--color--secondary) !important;
}

.gutenberg-group-leistungen-block h3,
.gutenberg-group-leistungen-block .wp-block-heading {
	color: #ffffff !important;
	margin: 0.5rem 0 !important;
	font-size: clamp(1rem, 1.6vw, 1rem) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	line-height: 1.3 !important;
	overflow-wrap: break-word !important;
	hyphens: auto !important;
}

.gutenberg-group-leistungen-block p {
	color: #ffffff !important;
	margin: 0.5rem 0 1rem !important;
	line-height: 1.5 !important;
	font-size: clamp(1rem, 1.75vw, 1.1rem) !important;
}

/* Testimonials Cards - Desktop Grid Layout (same as Leistungen but without links) */
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block) {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1rem !important;
	padding: 2rem !important;
	max-width: var(--wp--style--global--wide-size, 1080px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block) > h2,
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block) > .wp-block-heading {
	grid-column: 1 / -1 !important;
	margin-bottom: 1rem !important;
	margin-top: 0 !important;
}

.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block) > h2.wp-block-heading::after,
.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block) > .wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-testimonials-block.wp-block-group,
.gutenberg-group-testimonials-block {
	background-color: var(--wp--preset--color--neutral-100) !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 1rem !important;
	display: flex !important;
	flex-direction: column !important;
	text-align: left !important;
	justify-content: flex-start !important;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease !important;
	min-width: 0 !important;
	position: relative !important;
	overflow: hidden !important;
}

.gutenberg-group-testimonials-block.wp-block-group:hover,
.gutenberg-group-testimonials-block:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15) !important;
}

.gutenberg-group-testimonials-block h3,
.gutenberg-group-testimonials-block .wp-block-heading {
	background-color: var(--wp--preset--color--primary) !important;
	color: #ffffff !important;
	margin: 0 !important;
	padding: 1.5rem 2rem !important;
	font-size: clamp(1rem, 1.6vw, 1rem) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	line-height: 1.3 !important;
	overflow-wrap: break-word !important;
	hyphens: auto !important;
	box-shadow: none !important;
}

.gutenberg-group-testimonials-block p {
	color: var(--wp--preset--color--neutral-900) !important;
	margin: 0 !important;
	padding: 1.5rem 2rem !important;
	line-height: 1.5 !important;
	font-size: clamp(1rem, 1.75vw, 1.1rem) !important;
	box-shadow: none !important;
}

/* Me Section - Round Images */
.gutenberg-group-me {
	max-width: 400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
}

.gutenberg-group-me h2 {
	margin-bottom: 2rem !important;
}

.gutenberg-group-me h2.wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-me h3 {
	margin-top: 2rem !important;
}

.gutenberg-group-me .wp-block-image,
.gutenberg-group-me figure {
	margin-left: auto !important;
	margin-right: auto !important;
}

.gutenberg-group-me img,
.gutenberg-group-me .wp-block-image img,
.gutenberg-group-me figure img {
	border-radius: 50% !important;
	object-fit: cover !important;
	aspect-ratio: 1 / 1 !important;
	width: 75% !important;
	height: auto !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.gutenberg-group-me .wp-block-buttons {
	justify-content: center !important;
	display: flex !important;
	margin-top: 2rem !important;
}

.gutenberg-group-me .wp-block-button {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* FAQ Accordion Section */
.gutenberg-group-faq {
	max-width: var(--wp--style--global--wide-size, 1080px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.gutenberg-group-faq h2 {
	margin-bottom: 1rem !important;
	text-align: center !important;
}

.gutenberg-group-faq h2.wp-block-heading::after {
	content: '';
	display: block;
	width: 6rem;
	height: 2px;
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--wp--preset--color--neutral-900);
}

/* Master toggle button */
.faq-master-toggle {
	display: block;
	width: 100%;
	max-width: 300px;
	margin: 0 auto 2rem;
	padding: 0.75rem 1.5rem;
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-master-toggle:hover {
	background-color: var(--wp--preset--color--secondary);
	transform: translateY(-1px);
}

.faq-master-toggle.active {
	background-color: var(--wp--preset--color--secondary);
}

/* FAQ items container - hidden by default, centered with max-width */
.faq-items-container {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.gutenberg-group-faq h3 {
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	padding: 0.2rem 3.5rem 0.2rem 1.5rem;
	margin: 0 0 0.25rem 0 !important;
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	position: relative;
	font-size: 1rem !important;
	font-weight: 600 !important;
	display: flex;
	align-items: center;
	min-height: 3.5rem;
}

.gutenberg-group-faq h3:hover {
	background-color: var(--wp--preset--color--secondary);
	transform: translateX(3px);
}

.gutenberg-group-faq h3::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.8rem;
	font-weight: 400;
	transition: transform 0.3s ease;
}

.gutenberg-group-faq h3.active::after {
	content: '−';
	transform: translateY(-50%) rotate(180deg);
}

.gutenberg-group-faq h3 + p {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin: 0 0 0.5rem 0 !important;
	padding: 0 1.5rem;
	transition: max-height 0.4s ease-in-out,
	            opacity 0.3s ease,
	            padding 0.4s ease-in-out;
	line-height: 1.6 !important;
}

.gutenberg-group-faq h3.active + p {
	opacity: 1;
	padding: 1rem 1.5rem 1.5rem 1.5rem;
	margin-bottom: 0.75rem !important;
}

/* Mobile: Slider Layout with Swiper.js */
@media (max-width: 900px) {
	.wp-block-group.is-layout-constrained:has(> .gutenberg-group-leistungen-block),
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) {
		display: block !important;
		position: relative !important;
		padding-bottom: 4rem !important;
		overflow: visible !important;
	}

	/* H2 separator for leistungen slider */
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > h2,
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > .wp-block-heading {
		margin-bottom: 1rem !important;
		margin-top: 0 !important;
		text-align: center !important;
	}

	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > h2.wp-block-heading::after,
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > .wp-block-heading::after {
		content: '';
		display: block;
		width: 6rem;
		height: 2px;
		margin-top: 0.5rem;
		margin-left: auto;
		margin-right: auto;
		background-color: var(--wp--preset--color--neutral-900);
	}

	/* Swiper container */
	.leistungen-swiper {
		width: 100% !important;
		padding-bottom: 3rem !important;
		padding-top: 0.5rem !important;
		overflow-x: hidden !important;
		overflow-y: visible !important;
	}

	.leistungen-swiper .swiper-wrapper {
		display: flex !important;
		align-items: stretch !important;
	}

	.leistungen-swiper .swiper-slide {
		height: auto !important;
		display: flex !important;
	}

	.leistungen-swiper .swiper-slide .gutenberg-group-leistungen-block {
		width: 100% !important;
		margin: 0 !important;
		height: 100% !important;
	}

	/* Pagination dots styling */
	.leistungen-swiper .swiper-pagination {
		bottom: 0 !important;
		position: absolute !important;
	}

	.leistungen-swiper .swiper-pagination-bullet {
		width: 10px !important;
		height: 10px !important;
		background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent) !important;
		opacity: 1 !important;
		margin: 0 6px !important;
		transition: all 0.3s ease !important;
	}

	.leistungen-swiper .swiper-pagination-bullet-active {
		background-color: var(--wp--preset--color--secondary) !important;
		width: 24px !important;
		border-radius: 5px !important;
	}

	/* Testimonials Slider - same as Leistungen */
	.wp-block-group.is-layout-constrained:has(> .gutenberg-group-testimonials-block),
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) {
		display: block !important;
		position: relative !important;
		padding-bottom: 4rem !important;
		overflow: visible !important;
	}

	/* H2 separator for testimonials slider */
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > h2,
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > .wp-block-heading {
		margin-bottom: 1rem !important;
		margin-top: 0 !important;
		text-align: center !important;
	}

	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > h2.wp-block-heading::after,
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > .wp-block-heading::after {
		content: '';
		display: block;
		width: 6rem;
		height: 2px;
		margin-top: 0.5rem;
		margin-left: auto;
		margin-right: auto;
		background-color: var(--wp--preset--color--neutral-900);
	}

	/* Swiper container */
	.testimonials-swiper {
		width: 100% !important;
		padding-bottom: 3rem !important;
		padding-top: 0.5rem !important;
		overflow-x: hidden !important;
		overflow-y: visible !important;
	}

	.testimonials-swiper .swiper-wrapper {
		display: flex !important;
		align-items: stretch !important;
	}

	.testimonials-swiper .swiper-slide {
		height: auto !important;
		display: flex !important;
	}

	.testimonials-swiper .swiper-slide .gutenberg-group-testimonials-block {
		width: 100% !important;
		margin: 0 !important;
		height: 100% !important;
	}

	/* Pagination dots styling */
	.testimonials-swiper .swiper-pagination {
		bottom: 0 !important;
		position: absolute !important;
	}

	.testimonials-swiper .swiper-pagination-bullet {
		width: 10px !important;
		height: 10px !important;
		background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent) !important;
		opacity: 1 !important;
		margin: 0 6px !important;
		transition: all 0.3s ease !important;
	}

	.testimonials-swiper .swiper-pagination-bullet-active {
		background-color: var(--wp--preset--color--secondary) !important;
		width: 24px !important;
		border-radius: 5px !important;
	}
}

/* Desktop: Leistungen Slider (when >4 slides) */
@media (min-width: 901px) {
	/* When slider is active on desktop (>4 slides), ensure proper layout */
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) {
		display: block !important;
		position: relative !important;
		padding-bottom: 4rem !important;
		overflow: visible !important;
	}

	/* H2 separator for leistungen slider on desktop */
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > h2,
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > .wp-block-heading {
		margin-bottom: 1rem !important;
		margin-top: 0 !important;
		text-align: center !important;
	}

	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > h2.wp-block-heading::after,
	.wp-block-group.is-layout-constrained:has(.leistungen-swiper) > .wp-block-heading::after {
		content: '';
		display: block;
		width: 6rem;
		height: 2px;
		margin-top: 0.5rem;
		margin-left: auto;
		margin-right: auto;
		background-color: var(--wp--preset--color--neutral-900);
	}

	.leistungen-swiper {
		width: 100% !important;
		max-width: var(--wp--style--global--wide-size, 1080px) !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-bottom: 3rem !important;
		padding-top: 0.5rem !important;
		overflow-x: hidden !important;
		overflow-y: visible !important;
	}

	.leistungen-swiper .swiper-wrapper {
		display: flex !important;
		align-items: stretch !important;
	}

	.leistungen-swiper .swiper-slide {
		height: auto !important;
		display: flex !important;
	}

	.leistungen-swiper .swiper-slide .gutenberg-group-leistungen-block {
		width: 100% !important;
		margin: 0 !important;
		height: 100% !important;
	}

	/* Pagination dots styling for desktop */
	.leistungen-swiper .swiper-pagination {
		bottom: 0 !important;
		position: absolute !important;
	}

	.leistungen-swiper .swiper-pagination-bullet {
		width: 10px !important;
		height: 10px !important;
		background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent) !important;
		opacity: 1 !important;
		margin: 0 6px !important;
		transition: all 0.3s ease !important;
	}

	.leistungen-swiper .swiper-pagination-bullet-active {
		background-color: var(--wp--preset--color--secondary) !important;
		width: 24px !important;
		border-radius: 5px !important;
	}
}

/* Desktop: Testimonials Slider (when >4 slides) */
@media (min-width: 901px) {
	/* When slider is active on desktop (>4 slides), ensure proper layout */
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) {
		display: block !important;
		position: relative !important;
		padding-bottom: 4rem !important;
		overflow: visible !important;
	}

	/* H2 separator for testimonials slider on desktop */
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > h2,
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > .wp-block-heading {
		margin-bottom: 1rem !important;
		margin-top: 0 !important;
		text-align: center !important;
	}

	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > h2.wp-block-heading::after,
	.wp-block-group.is-layout-constrained:has(.testimonials-swiper) > .wp-block-heading::after {
		content: '';
		display: block;
		width: 6rem;
		height: 2px;
		margin-top: 0.5rem;
		margin-left: auto;
		margin-right: auto;
		background-color: var(--wp--preset--color--neutral-900);
	}

	.testimonials-swiper {
		width: 100% !important;
		max-width: var(--wp--style--global--wide-size, 1080px) !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-bottom: 3rem !important;
		padding-top: 0.5rem !important;
		overflow-x: hidden !important;
		overflow-y: visible !important;
	}

	.testimonials-swiper .swiper-wrapper {
		display: flex !important;
		align-items: stretch !important;
	}

	.testimonials-swiper .swiper-slide {
		height: auto !important;
		display: flex !important;
	}

	.testimonials-swiper .swiper-slide .gutenberg-group-testimonials-block {
		width: 100% !important;
		margin: 0 !important;
		height: 100% !important;
	}

	/* Pagination dots styling for desktop */
	.testimonials-swiper .swiper-pagination {
		bottom: 0 !important;
		position: absolute !important;
	}

	.testimonials-swiper .swiper-pagination-bullet {
		width: 10px !important;
		height: 10px !important;
		background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent) !important;
		opacity: 1 !important;
		margin: 0 6px !important;
		transition: all 0.3s ease !important;
	}

	.testimonials-swiper .swiper-pagination-bullet-active {
		background-color: var(--wp--preset--color--secondary) !important;
		width: 24px !important;
		border-radius: 5px !important;
	}
}

blockquote,
.wp-block-quote {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--neutral-900);
	padding: 2rem;
	border-radius: 12px;
	border-left: 6px solid var(--wp--preset--color--primary);
	font-style: italic;
}

form {
	display: grid;
	gap: 1.25rem;
}

input,
textarea,
select {
	font: inherit;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	border: 1px solid rgba(123, 145, 140, 0.4);
	background-color: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(102, 177, 170, 0.25);
}

figure,
.wp-block-image {
	margin: 0 0 1.5rem;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.wp-block-columns {
	gap: 2.5rem;
}

.site-footer {
	background-color: var(--wp--preset--color--neutral-900);
	padding: 4rem 0 0;
	color: #ffffff;
	font-size: 0.95rem;
}

/* Theme Switcher */
.theme-switcher {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	text-align: center;
}

.theme-switcher__title {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
	opacity: 0.85;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.theme-switcher__buttons {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.theme-switcher__button {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 3px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	padding: 0;
}

.theme-switcher__button:hover {
	transform: scale(1.1);
	border-color: rgba(255, 255, 255, 0.5);
}

.theme-switcher__button.active {
	border-color: #ffffff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.theme-switcher__button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Theme button colors - split circle design */
.theme-switcher__button::before,
.theme-switcher__button::after {
	content: '';
	position: absolute;
	width: 50%;
	height: 100%;
	top: 0;
}

.theme-switcher__button::before {
	left: 0;
}

.theme-switcher__button::after {
	right: 0;
}

/* Default theme */
.theme-switcher__button[data-theme="default"]::before {
	background-color: #66B1AA;
}

.theme-switcher__button[data-theme="default"]::after {
	background-color: #F7B267;
}

/* Sage theme */
.theme-switcher__button[data-theme="sage"]::before {
	background-color: #9FA482;
}

.theme-switcher__button[data-theme="sage"]::after {
	background-color: #E8DCC8;
}

/* Warm theme */
.theme-switcher__button[data-theme="warm"]::before {
	background-color: #8B9A7A;
}

.theme-switcher__button[data-theme="warm"]::after {
	background-color: #E8B84D;
}

/* Lavender theme */
.theme-switcher__button[data-theme="lavender"]::before {
	background-color: #9B8FAA;
}

.theme-switcher__button[data-theme="lavender"]::after {
	background-color: #C8B6D4;
}

/* Mocha theme */
.theme-switcher__button[data-theme="mocha"]::before {
	background-color: #A67C6D;
}

.theme-switcher__button[data-theme="mocha"]::after {
	background-color: #D4A89A;
}

.site-footer a {
	color: inherit;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
	opacity: 1;
}

.footer-column__title,
.footer-column .widget-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 600;
}

.footer-column--split .footer-column__title,
.footer-column--split .widget-title {
	margin-bottom: 0;
}

.footer-column--split {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.footer-info-links {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.footer-info-links a {
	color: inherit;
}

.footer-subcolumn {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-column--map {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-map {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
	width: 100%;
	height: 220px;
	border: 0;
}

.footer-map__link {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	opacity: 0.75;
}
.footer-map__link a {
	color: inherit;
}

.site-footer h2 {
	color: #ffffff;
}

	
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.7;
}

/* Hero Section */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* Parallax-Effekt */
	margin-top: 0; /* Hero startet direkt am Viewport-Top, Header liegt darüber */
}

/* Fix für iOS: background-attachment fixed funktioniert nicht auf iOS */
@media (max-width: 991.98px) {
	.hero-section {
		background-attachment: scroll;
	}
}

/* Overlay für bessere Lesbarkeit */
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(74, 90, 87, 0.4) 0%, rgba(74, 90, 87, 0.2) 50%, rgba(74, 90, 87, 0.3) 100%);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 1rem;
}

.hero-title {
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	margin: 33.33vh 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	line-height: 1.2;
}

.hero-title__line {
	display: block;
	font-size: clamp(1.125rem, 2.625vw, 1.875rem);
	margin-bottom: 0.25rem;
}

.hero-title__line--first {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero-title__line:last-child::after {
	content: '';
	display: block;
	width: 5rem;
	height: 1px;
	margin: 0.5rem 0 0.75rem;
	background-color: #ffffff;
	opacity: 0.8;
}

.hero-subtitle {
	color: #ffffff;
	font-weight: 100;
	font-size: clamp(0.875rem, 1.5vw, 1.125rem);
	margin-bottom: 1rem;
	line-height: 1.4;
}

/* Video & Image Hero Section (for non-front pages) */
.hero-section--video,
.hero-section--image {
	background-image: none !important;
	background-attachment: scroll;
	overflow: hidden;
	height: auto !important;
	min-height: auto !important;
	padding: 0;
	position: relative;
	width: 100%;
	margin: 0 0 2rem 0;
	border-radius: 12px;
}

@media (max-width: 640px) {
	.hero-section--video,
	.hero-section--image {
		margin-bottom: 1.5rem;
		border-radius: 8px;
	}
}

.hero-video-background,
.hero-image-background {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background-color: #000000;
	border-radius: 12px;
}

@media (max-width: 640px) {
	.hero-video-background,
	.hero-image-background {
		border-radius: 8px;
	}
}

/* Video Control Buttons Container */
.hero-video-controls {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: flex;
	gap: 0.75rem;
	z-index: 10;
}

/* Individual Control Buttons */
.hero-video-control-btn {
	width: 3rem;
	height: 3rem;
	background-color: rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	pointer-events: auto !important;
	padding: 0;
}

.hero-video-control-btn:hover {
	background-color: rgba(0, 0, 0, 0.8);
	border-color: rgba(255, 255, 255, 0.6);
	transform: scale(1.1);
}

.hero-video-control-btn:active {
	transform: scale(0.95);
}

.hero-video-control-btn svg {
	width: 1.25rem;
	height: 1.25rem;
	color: #ffffff;
	transition: opacity 0.2s ease;
}

/* Show/hide icons based on play/pause state */
#hero-video-play-pause .icon-play {
	display: none;
}

#hero-video-play-pause .icon-pause {
	display: block;
}

#hero-video-play-pause:not(.playing) .icon-play {
	display: block;
}

#hero-video-play-pause:not(.playing) .icon-pause {
	display: none;
}

/* Show/hide icons based on mute state */
#hero-video-mute-toggle .icon-unmuted {
	display: none;
}

#hero-video-mute-toggle.unmuted .icon-muted {
	display: none;
}

#hero-video-mute-toggle.unmuted .icon-unmuted {
	display: block;
}

/* Mobile: smaller buttons */
@media (max-width: 640px) {
	.hero-video-controls {
		top: 0.75rem;
		left: 0.75rem;
		gap: 0.5rem;
	}

	.hero-video-control-btn {
		width: 2.5rem;
		height: 2.5rem;
	}

	.hero-video-control-btn svg {
		width: 1rem;
		height: 1rem;
	}
}

.hero-video-background iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	border-radius: 12px;
}

.hero-video-background video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	border-radius: 12px;
	object-fit: cover;
}

@media (max-width: 640px) {
	.hero-video-background iframe {
		border-radius: 8px;
	}

	.hero-video-background video {
		border-radius: 8px;
	}
}

.hero-image-background img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	border-radius: 12px;
}

@media (max-width: 640px) {
	.hero-image-background img {
		border-radius: 8px;
	}
}

/* Hero content overlay */
.hero-section--video .hero-content,
.hero-section--image .hero-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 0 var(--bt-container-padding);
	z-index: 1;
	box-sizing: border-box;
}

/* Single page hero title styling */
.hero-title--single {
	margin: 0;
}

.hero-title--single .hero-title__line {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero-title--single .hero-title__line::after {
	content: '';
	display: block;
	width: 5rem;
	height: 1px;
	margin: 0.5rem 0 0.75rem;
	background-color: #ffffff;
	opacity: 0.8;
}

/* Breadcrumbs in hero section */
.breadcrumbs--hero {
	color: #ffffff;
	margin-bottom: 1rem !important;
	margin-top: 0;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.breadcrumbs--hero a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumbs--hero a:hover {
	color: #ffffff;
}

.breadcrumbs--hero .breadcrumbs__trail {
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	main {
		padding-top: 2rem;
	}

	body:not(.home) main {
		padding-top: 7rem;
	}

	.wp-block-columns {
		gap: 1.5rem;
	}

	.gutenberg-group-artikel-b-l,
	.gutenberg-group-artikel-b-r {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		row-gap: 0.25rem;
		text-align: center !important;
	}

	.gutenberg-group-artikel-b-l > figure,
	.gutenberg-group-artikel-b-l > .wp-block-image,
	.gutenberg-group-artikel-b-l > h2,
	.gutenberg-group-artikel-b-l > p,
	.gutenberg-group-artikel-b-l > .wp-block-buttons,
	.gutenberg-group-artikel-b-l > .wp-element-button,
	.gutenberg-group-artikel-b-r > figure,
	.gutenberg-group-artikel-b-r > .wp-block-image,
	.gutenberg-group-artikel-b-r > h2,
	.gutenberg-group-artikel-b-r > p,
	.gutenberg-group-artikel-b-r > .wp-block-buttons,
	.gutenberg-group-artikel-b-r > .wp-element-button {
		grid-column: auto;
		grid-row: auto;
		justify-self: center;
	}

	.gutenberg-group-artikel-b-l > h2,
	.gutenberg-group-artikel-b-r > h2 {
		margin-top: 2rem;
	}

	.gutenberg-group-artikel-b-l > p,
	.gutenberg-group-artikel-b-r > p {
		align-self: start !important;
	}

	.gutenberg-group-artikel-b-l h2.wp-block-heading,
	.gutenberg-group-artikel-b-l .has-text-align-center,
	.gutenberg-group-artikel-b-r h2.wp-block-heading,
	.gutenberg-group-artikel-b-r .has-text-align-center {
		text-align: center !important;
		justify-self: center;
	}

	.gutenberg-group-artikel-b-l h2.wp-block-heading::after,
	.gutenberg-group-artikel-b-r h2.wp-block-heading::after {
		margin-left: auto;
		margin-right: auto;
	}

	.gutenberg-group-artikel-b-l > figure,
	.gutenberg-group-artikel-b-l > .wp-block-image,
	.gutenberg-group-artikel-b-r > figure,
	.gutenberg-group-artikel-b-r > .wp-block-image {
		order: 0;
	}

	.gutenberg-group-artikel-b-l > h2,
	.gutenberg-group-artikel-b-r > h2 {
		order: 1;
	}

	.gutenberg-group-artikel-b-l > p,
	.gutenberg-group-artikel-b-r > p {
		order: 2;
	}

	.gutenberg-group-artikel-b-l > .wp-block-buttons,
	.gutenberg-group-artikel-b-l > .wp-element-button,
	.gutenberg-group-artikel-b-r > .wp-block-buttons,
	.gutenberg-group-artikel-b-r > .wp-element-button {
		order: 3;
	}
}

@media (max-width: 768px) {
	.footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.footer-widgets {
		grid-template-columns: 1fr;
	}
}

/* Header Inner Container */
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 3.5rem; /* Mindesthöhe für konsistente Zentrierung */
}

.site-brand {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 400;
}

.site-brand a {
	color: var(--wp--preset--color--neutral-900);
}


.site-navigation {
	margin-left: auto;
}

.site-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 1.75rem;
}

.site-navigation a {
	font-weight: 500;
	color: var(--wp--preset--color--neutral-900);
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}


.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--neutral-900);
	background-color: transparent;
	color: var(--wp--preset--color--neutral-900);
	margin-left: auto;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
	position: relative;
}

/* Hamburger-Menu Striche */
.nav-toggle span {
	display: block;
	width: 1.25rem;
	height: 2px;
	background-color: currentColor;
	border-radius: 2px;
	transition: background-color 0.2s ease;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.nav-toggle span:nth-child(1) {
	top: calc(50% - 8px);
}

.nav-toggle span:nth-child(2) {
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
}

.nav-toggle span:nth-child(3) {
	bottom: calc(50% - 8px);
}

.nav-toggle:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	background-color: transparent;
	transform: none;
	box-shadow: none;
}

.nav-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 177, 170, 0.25);
}

/* Hide close button on desktop */
.nav-close {
	display: none;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
	/* Prevent horizontal scroll */
	html {
		overflow-x: hidden;
	}
	
	/* Slide wrapper for entire page - but keep fixed elements fixed */
	body.nav-open > *:not(.site-header):not(.site-navigation),
	body.nav-closing > *:not(.site-header):not(.site-navigation) {
		transition: transform 0.3s ease;
	}
	
	body.nav-open > *:not(.site-header):not(.site-navigation):not(.hero-section) {
		transform: translateX(-220px);
	}

	body.nav-open .hero-content {
		transform: translateX(-220px);
	}
	
	/* Mobile navigation panel - content-based width */
	.site-navigation {
		position: fixed;
		top: 0;
		right: 0; /* Positioned at the edge */
		width: 220px;
		height: 100vh;
		background-color: var(--wp--preset--color--neutral-100);
		padding: 5rem 1.5rem 2rem 1.5rem;
		overflow-y: auto;
		z-index: 999;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transform: translateX(100%); /* Initially off-screen */
	}
	
	/* Add transition only when nav is being toggled */
	body.nav-open .site-navigation,
	body.nav-closing .site-navigation {
		transition: transform 0.3s ease;
	}
	
	/* Close button in mobile navigation */
	.nav-close {
		display: block;
		position: absolute;
		top: 1rem;
		right: 1rem;
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		background: transparent;
		border: none;
		cursor: pointer;
		z-index: 1001;
	}
	
	.nav-close span {
		display: block;
		width: 1.5rem;
		height: 2px;
		background-color: var(--wp--preset--color--neutral-900);
		position: absolute;
		left: 50%;
		top: 50%;
		transition: background-color 0.2s ease;
	}
	
	.nav-close span:first-child {
		transform: translate(-50%, -50%) rotate(45deg);
	}
	
	.nav-close span:last-child {
		transform: translate(-50%, -50%) rotate(-45deg);
	}
	
	.nav-close:hover span {
		background-color: var(--wp--preset--color--primary);
	}
	
	body.nav-open .site-navigation {
		transform: translateX(0); /* Slide in */
	}
	
	/* Stack navigation items vertically */
	.site-navigation ul {
		flex-direction: column;
		gap: 0;
	}
	
	.site-navigation li {
		width: 100%;
	}
	
	.site-navigation a {
		display: block;
		padding: 1rem 0;
		border-bottom: 1px solid rgba(102, 177, 170, 0.15);
		font-size: 1.125rem;
		transition: all 0.2s ease;
	}
	
	.site-navigation a:hover,
	.site-navigation .current-menu-item > a {
		color: var(--wp--preset--color--primary);
		transform: translateX(5px);
	}
	
	/* Show toggle button */
	.nav-toggle {
		display: inline-flex;
	}
	
	/* Overlay for dimming background */
	body.nav-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(74, 90, 87, 0.5);
		z-index: 998;
		animation: fadeIn 0.3s ease;
	}
	
	@keyframes fadeIn {
		from { opacity: 0; }
		to { opacity: 1; }
	}
	
/* Animate hamburger to X when open */
body.nav-open .nav-toggle span:nth-child(1) {
	transform: translateX(-50%) rotate(45deg);
	top: 50%;
}

body.nav-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
	transform: translateX(-50%) rotate(-45deg);
	bottom: 50%;
	top: 50%;
}


}

/* Contact Form 7 - Two Column Layout */
.gutenberg-group-kontakt {
	overflow: hidden;
}

/* Google Map with 1:1 aspect ratio */
.gutenberg-group-kontakt iframe {
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	max-width: 200px !important;
	height: auto !important;
	border-radius: 8px;
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Prevent wrapping of contact info and map row */
.gutenberg-group-kontakt > .wp-block-columns {
	flex-wrap: nowrap !important;
	padding: 1rem !important;
	background-color: var(--wp--preset--color--neutral-100) !important;
	border-radius: 16px;
	margin-top: 2rem !important;
	align-items: center !important;
}

.gutenberg-group-kontakt h3 {
	font-weight: 400;
	color: var(--wp--preset--color--neutral-500);
}

/* Align contact info text to the right */
.gutenberg-group-kontakt > .wp-block-columns .wp-block-column:first-child p {
	text-align: center !important;
}

.gutenberg-group-kontakt .wpcf7-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	width: 100%;
	max-width: 100%;
}

.gutenberg-group-kontakt .wpcf7-form > p {
	margin: 0;
	min-width: 0;
}

/* Make input fields responsive and fit within grid */
.gutenberg-group-kontakt .wpcf7-form input[type="text"],
.gutenberg-group-kontakt .wpcf7-form input[type="email"],
.gutenberg-group-kontakt .wpcf7-form input[type="tel"],
.gutenberg-group-kontakt .wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.gutenberg-group-kontakt .wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	min-width: 0;
}

/* Full width for paragraphs containing textarea, checkbox, captcha and submit */
.gutenberg-group-kontakt .wpcf7-form > p:has(textarea),
.gutenberg-group-kontakt .wpcf7-form > p:has(.wpcf7-checkbox),
.gutenberg-group-kontakt .wpcf7-form > p:has(.wpcf7-recaptcha),
.gutenberg-group-kontakt .wpcf7-form > p:has(input[type="submit"]) {
	grid-column: 1 / -1;
}

/* Checkbox styling - align with inputs */
.gutenberg-group-kontakt .wpcf7-form .wpcf7-checkbox {
	display: block;
}

.gutenberg-group-kontakt .wpcf7-form .wpcf7-list-item {
	margin: 0;
	padding: 0;
}

.gutenberg-group-kontakt .wpcf7-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.gutenberg-group-kontakt .wpcf7-form .wpcf7-list-item input[type="checkbox"] {
	margin: 0.25rem 0 0;
	padding: 0;
	flex-shrink: 0;
	width: 21px;
	height: 21px;
	cursor: pointer;
}

.gutenberg-group-kontakt .wpcf7-form .wpcf7-list-item-label {
	flex: 1;
	margin: 0;
	text-align: left;
}

/* Captcha spacing */
.dscf7-captcha-container {
	margin-bottom: 1rem !important;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
	.gutenberg-group-kontakt .wpcf7-form {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.gutenberg-group-kontakt .wpcf7-form > p {
		width: 100%;
		max-width: 100%;
	}

	.gutenberg-group-kontakt .wpcf7-form input[type="text"],
	.gutenberg-group-kontakt .wpcf7-form input[type="email"],
	.gutenberg-group-kontakt .wpcf7-form input[type="tel"],
	.gutenberg-group-kontakt .wpcf7-form textarea {
		width: 100% !important;
		max-width: 100% !important;
	}

	.gutenberg-group-me img,
	.gutenberg-group-me .wp-block-image img,
	.gutenberg-group-me figure img {
		width: 80% !important;
	}
}

/* Extra small screens - ensure no overflow */
@media (max-width: 480px) {
	.gutenberg-group-kontakt {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.gutenberg-group-kontakt .wpcf7-form {
		gap: 0.75rem;
	}
}

/* Floating Action Button (FAB) for Contact */
#contact-fab {
	position: fixed;
	top: 87.5vh;
	right: 0;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 50px 0 0 50px !important;
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
	z-index: 999;
	transition: all 0.3s ease;
}

#contact-fab:hover {
	background-color: var(--wp--preset--color--secondary);
	transform: translateX(-3px);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
}

#contact-fab:active {
	transform: translateX(-1px);
}

body.nav-open #contact-fab {
	display: none;
}

/* Pulse animation for FAB button */
@keyframes fab-pulse {
	0%, 100% {
		box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 6px 20px color-mix(in srgb, var(--wp--preset--color--primary) 80%, transparent);
		transform: scale(1.05);
	}
}

#contact-fab.pulse {
	animation: fab-pulse 0.6s ease-in-out;
}

/* ============================================
   PREISE SEKTION
   ============================================ */

/* Entferne WordPress constrained layout - ABER NICHT von Preisitems und Section */
.gutenberg-group-preise-header.is-layout-constrained,
.gutenberg-group-preise-cards-container.is-layout-constrained,
.gutenberg-group-preise-cta.is-layout-constrained {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

/* Ermäßigung & Info - Background behalten, ZENTRIEREN */
.gutenberg-group-preise-ermassigung.is-layout-constrained,
.gutenberg-group-preise-info.is-layout-constrained {
	max-width: 60% !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Section bekommt 1rem Padding */
.gutenberg-group-preise-section.is-layout-constrained {
	max-width: none !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
}

/* Preiskarten - OHNE constrained padding */
.gutenberg-group-preise-card.is-layout-constrained {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.gutenberg-group-preise-section.is-layout-constrained > *,
.gutenberg-group-preise-header.is-layout-constrained > *,
.gutenberg-group-preise-cards-container.is-layout-constrained > *,
.gutenberg-group-preise-card.is-layout-constrained > *,
.gutenberg-group-preise-cta.is-layout-constrained > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Hauptsektion */
.gutenberg-group-preise-section {
	padding: 4rem 0;
}

/* Header - unsichtbar */
.gutenberg-group-preise-header {
	text-align: center;
	margin: 0;
	padding: 0;
	box-shadow: none !important;
	background: none !important;
}

.gutenberg-group-preise-header h2 {
	font-size: 2.5rem;
	color: var(--wp--preset--color--neutral-900);
	font-weight: 700;
}

/* Karten-Container - Grid Layout - unsichtbar */
.gutenberg-group-preise-cards-container {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem !important;
	margin-top: 0 !important;
	margin-bottom: 3rem !important;
	padding-top: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

@media (max-width: 992px) {
	.gutenberg-group-preise-cards-container {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.gutenberg-group-preise-cards-container {
		grid-template-columns: 1fr !important;
	}
}

/* Einzelne Karte - NUR DIESE bekommt visuelles Styling */
.gutenberg-group-preise-card {
	background: var(--wp--preset--color--neutral-100) !important;
	border-radius: 8px !important;
	padding: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease !important;
	overflow: hidden !important;
}

.gutenberg-group-preise-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Card Header - kompakter */
.gutenberg-group-preise-card > h3 {
	background: var(--wp--preset--color--neutral-900) !important;
	color: white !important;
	padding: 1rem !important;
	margin: 0 !important;
	text-align: center !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
}

/* Preisitems - mit Abstand zu den Rändern */
.gutenberg-group-preise-item.is-layout-constrained {
	padding: 2rem !important;
	margin: 2rem 2rem !important;
	text-align: center !important;
	background: white !important;
	border-radius: 6px !important;
	max-width: none !important;
	box-shadow: none !important;
}

/* Listen in Preisitems - zentriert mit Bulletpoints */
.gutenberg-group-preise-item ul,
.gutenberg-group-preise-item ol {
	text-align: center !important;
	margin: 1rem 0 !important;
	padding-left: 0 !important;
	list-style-position: inside !important;
}

.gutenberg-group-preise-item li {
	text-align: center !important;
	margin-bottom: 0.5rem !important;
}

/* Erstes Preisitem - Abstand zum Header */
.gutenberg-group-preise-card > h3 + .gutenberg-group-preise-item {
	margin-top: 2rem !important;
}

/* Letztes Preisitem - Abstand zum unteren Rand */
.gutenberg-group-preise-item:last-of-type {
	margin-bottom: 2rem !important;
}

.gutenberg-group-preise-item p {
	margin: 0.5rem 0 !important;
	padding: 0 !important;
}

.gutenberg-group-preise-item p:first-child {
	font-size: 0.9rem;
	color: var(--wp--preset--color--neutral-500);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gutenberg-group-preise-item p:nth-child(2) {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.25rem;
	line-height: 1;
}

.gutenberg-group-preise-item p:last-child {
	font-size: 0.85rem;
	color: var(--wp--preset--color--neutral-500);
	font-style: italic;
}

/* Zusätzlicher Text in Karten (z.B. "Für Paare, Familien...") */
.gutenberg-group-preise-card > p {
	text-align: center;
	font-size: 0.9rem;
	color: var(--wp--preset--color--neutral-500);
	margin-top: 1rem;
	line-height: 1.6;
}

/* Ermäßigung & Info */
.gutenberg-group-preise-ermassigung,
.gutenberg-group-preise-info {
	text-align: center;
	padding: 1rem;
	background: var(--wp--preset--color--neutral-100);
	border-radius: 8px;
	width: 60% !important;
	display: block !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ermäßigung & Info Wrapper - ZENTRIEREN */
.gutenberg-group-preise-section .gutenberg-group-preise-ermassigung,
.gutenberg-group-preise-section .gutenberg-group-preise-info {
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 2rem !important;
}

/* Ermäßigung & Info - Mobile 100% Breite */
@media (max-width: 768px) {
	.gutenberg-group-preise-ermassigung,
	.gutenberg-group-preise-info {
		width: 100% !important;
	}

	.gutenberg-group-preise-ermassigung.is-layout-constrained,
	.gutenberg-group-preise-info.is-layout-constrained {
		max-width: 100% !important;
	}
}

.gutenberg-group-preise-ermassigung p,
.gutenberg-group-preise-info p {
	margin: 0.5rem 0;
	color: var(--wp--preset--color--neutral-900);
}

.gutenberg-group-preise-ermassigung p:first-child {
	font-weight: 600;
	font-size: 1rem;
}

.gutenberg-group-preise-ermassigung p:last-child {
	font-size: 0.9rem;
	color: var(--wp--preset--color--neutral-500);
}

.gutenberg-group-preise-info p {
	font-weight: normal !important;
	font-size: inherit !important;
	color: var(--wp--preset--color--neutral-900) !important;
}

/* Listen in Info - linksbündig aber horizontal zentriert */
.gutenberg-group-preise-info ul,
.gutenberg-group-preise-info ol {
	text-align: left !important;
	margin: 1rem auto !important;
	padding-left: 1.5rem !important;
	list-style-position: outside !important;
	display: table !important;
}

.gutenberg-group-preise-info li {
	text-align: left !important;
	margin-bottom: 0.5rem !important;
}

/* CTA */
.gutenberg-group-preise-cta {
	text-align: center;
	display: flex;
	justify-content: center;
}

.gutenberg-group-preise-cta .wp-block-button {
	margin: 0;
}

.gutenberg-group-preise-cta .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: white;
	padding: 1rem 3rem;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 50px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gutenberg-group-preise-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--secondary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
}
