/*
Theme Name: HatzFleck
Theme URI: https://parkett-schleifen.info
Author: Gemini CLI
Author URI: 
Description: Maßgeschneidertes Theme für HatzFleck - "Retten statt Ersetzen". Entwickelt mit Fokus auf Performance, modernes CI (Deep Marine Blue & Eichenholz), und tiefe Gutenberg-Integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hatzfleck
*/

/* 
 * Basis-Stile, die durch theme.json ergänzt werden.
 * Diese Datei ist absichtlich schlank, da vieles über den Block-Editor gesteuert wird.
 */

:root {
	/* Diese Variablen werden größtenteils durch theme.json ergänzt, dienen hier als Fallback */
	--wp--preset--color--hauptgruen: #059f4f;
	--wp--preset--color--eiche-dunkel: #8b5a2b;
	--wp--preset--color--eiche-hell: #c69c6d;
	--wp--preset--color--weiss: #ffffff;
	--wp--preset--color--hellgrau: #f5f7fa;

	--wp--preset--font-family--inter: "Inter", sans-serif;
	--wp--preset--font-family--montserrat: "Montserrat", sans-serif;

	--header-height: 80px;
	--topbar-height: 40px;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--inter);
	background-color: var(--wp--preset--color--weiss);
	color: #333333;
	line-height: 1.6;
}

/* --- MODERN HEADER STYLES --- */

.site-header {
	background: var(--wp--preset--color--weiss);
	box-shadow: 0 2px 15px rgba(0,0,0,0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Top Bar - Modern 3-Row Premium Layout */
.header-top-bar {
	background: #059f4f; /* Fallback */
	background: linear-gradient(135deg, #034d26 0%, #059f4f 45%, #059f4f 55%, #034d26 100%);
	color: #ffffff;
	font-size: 11.5px; /* Klein und fein */
	padding: 6px 0;
	font-family: var(--wp--preset--font-family--inter);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
	letter-spacing: 0.3px;
	position: relative;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.top-bar-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
}

/* Row 1 Highlights */
.top-bar-row.row-1 {
	padding-bottom: 5px;
	margin-bottom: 3px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company-name {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--montserrat);
}

.person-name {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.top-bar-links a, 
.contact-item a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: all 0.3s ease;
}

.top-bar-links a:hover, 
.contact-item a:hover {
	color: #ffffff;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sep {
	display: inline-block;
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.2);
	font-weight: 300;
}

.top-bar-links {
	font-weight: 600;
}

.contact-item {
	display: flex;
	align-items: center;
}

@media (max-width: 768px) {
	.header-top-bar {
		display: block !important; /* Auf Mobilgeräten anzeigen, falls gewünscht */
		font-size: 10px;
	}
	.top-bar-row {
		flex-direction: column;
		text-align: center;
		gap: 2px;
		padding: 5px 0;
	}
	.top-bar-right {
		margin-top: 2px;
	}
	.sep {
		margin: 0 5px;
	}
}

/* Main Header */
.header-main {
	height: var(--header-height);
	display: flex;
	align-items: center;
}

.header-main .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-logo .logo-wrapper {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 15px;
}

.logo-hoernchen {
	height: 60px;
	width: auto;
}

.logo-text {
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--hauptgruen);
	font-size: 20px;
	line-height: 1.1;
	text-transform: uppercase;
	display: inline-block;
	transform: rotate(-2deg); /* Leicht schief */
	transition: transform 0.3s ease;
}

.logo-text strong {
	font-size: 24px;
	display: block;
}

.logo-wrapper:hover .logo-text {
	transform: rotate(0deg); /* Effekt beim Hover */
}

@media (max-width: 768px) {
	.logo-hoernchen {
		height: 45px;
	}
	.logo-text {
		font-size: 16px;
	}
	.logo-text strong {
		font-size: 18px;
	}
}

/* --- END MODERN HEADER STYLES --- */
/* Navigation */
.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 25px;
}

.main-navigation ul li {
	position: relative;
	padding: 25px 0; /* Padding für bessere Hover-Area */
}

.main-navigation ul li a {
	text-decoration: none;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.main-navigation ul li a:hover {
	color: var(--wp--preset--color--hauptgruen);
}

/* Pfeil für Submenüs */
.main-navigation ul li.menu-item-has-children > a::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -4px;
	transition: transform 0.3s ease;
}

.main-navigation ul li.menu-item-has-children:hover > a::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

/* Sub-Menu Styles (Dropdown) */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	min-width: 300px; /* Deutlich breiter */
	width: max-content; /* Passt sich dem längsten Text an */
	max-width: 400px; /* Sicherheitsobergrenze */
	box-shadow: 0 15px 45px rgba(0,0,0,0.12);
	display: block;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 999;
	padding: 0;
	border-radius: 0 0 10px 10px;
	border-top: 3px solid var(--wp--preset--color--hauptgruen);
	overflow: hidden;
}

.main-navigation ul li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation ul ul li {
	padding: 0;
	width: 100%;
	margin: 0;
}

.main-navigation ul ul li a {
	padding: 14px 25px;
	font-size: 14px;
	color: #333;
	font-weight: 500;
	width: 100%;
	display: block;
	border-bottom: 1px solid rgba(0,0,0,0.03);
	transition: all 0.2s ease;
}

.main-navigation ul ul li:last-child a {
	border-bottom: none;
}

.main-navigation ul ul li a:hover {
	background: #f4f7f5; /* Ganz leichtes Grün-Grau für edlen Look */
	color: var(--wp--preset--color--hauptgruen);
	padding-left: 32px; /* Etwas stärkerer Slide-Effekt */
}

/* Tiefer verschachtelte Menüs (Optional) */
.main-navigation ul ul ul {
	top: 0;
	left: 100%;
	border-radius: 0 8px 8px 8px;
}

/* ===== Mobile Navigation Toggle (Hamburger) ===== */
.mobile-nav-toggle {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 10001;
	position: relative;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
}

.mobile-nav-toggle .hamburger-line {
	display: block;
	width: 26px;
	height: 3px;
	background-color: var(--wp--preset--color--hauptgruen);
	border-radius: 3px;
	transition: transform 0.35s ease, opacity 0.25s ease;
	transform-origin: center;
}

/* Hamburger → X animation */
.mobile-nav-toggle.is-active .hamburger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Body lock when menu is open */
body.mobile-nav-open {
	overflow: hidden;
}

@media (max-width: 992px) {
	.header-top-bar { display: none; }

	/* Show hamburger button */
	.mobile-nav-toggle {
		display: flex;
	}

	/* Transform main-navigation into fullscreen mobile overlay */
	.main-navigation {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(255, 255, 255, 0.98);
		z-index: 10000;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		padding-top: 100px;
	}

	/* When toggled open */
	.main-navigation.is-mobile-open {
		display: flex;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 400px;
		padding: 0 24px;
		gap: 0;
	}

	.main-navigation ul li {
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.main-navigation ul li a {
		display: block;
		padding: 16px 0;
		font-family: var(--wp--preset--font-family--montserrat);
		font-size: 18px;
		font-weight: 600;
		color: var(--wp--preset--color--hauptgruen);
		text-decoration: none;
		transition: color 0.2s ease, padding-left 0.2s ease;
	}

	.main-navigation ul li a:hover,
	.main-navigation ul li a:focus {
		color: var(--wp--preset--color--eiche-dunkel);
		padding-left: 8px;
	}

	.main-navigation ul li.current-menu-item > a,
	.main-navigation ul li.current_page_item > a {
		color: var(--wp--preset--color--eiche-dunkel);
		font-weight: 700;
	}

	/* Sub-menus in mobile */
	.main-navigation ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		box-shadow: none;
		border: none;
		padding-left: 16px;
		min-width: 0;
	}

	.main-navigation ul ul li a {
		font-size: 15px;
		font-weight: 500;
		color: #555;
		padding: 12px 0;
	}

	.main-navigation ul ul li a:hover {
		color: var(--wp--preset--color--hauptgruen);
	}

	/* Hide dropdown arrow on mobile */
	.main-navigation ul li.menu-item-has-children > a::after {
		display: none;
	}
}

/* --- END MODERN HEADER STYLES --- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--hauptgruen);
	margin-top: 0;
	font-weight: 700;
}

/* Anpassungen für viel Weißraum */
.wp-block-group, .wp-block-columns {
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Buttons */
.wp-block-button__link {
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Sticky Conversion Bar (Mobile) - Redesigned to fit CI & look premium */
.sticky-conversion-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0; /* Spans exactly across the viewport edges */
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 12px 16px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
	z-index: 9999;
	text-align: center;
	gap: 12px;
	justify-content: center;
	border-top: 1px solid rgba(0,0,0,0.06);
	box-sizing: border-box; /* Verhindert das Hinausragen durch Padding */
}

@media (max-width: 768px) {
	.sticky-conversion-bar {
		display: flex;
	}
	body {
		padding-bottom: 74px; /* Platz für die Bar */
	}
}

.sticky-conversion-bar a {
	color: var(--wp--preset--color--weiss) !important;
	text-decoration: none;
	padding: 12px 10px; /* Reduzierter horizontaler Innenabstand zur Vermeidung von Überläufen */
	border-radius: 8px;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--montserrat), sans-serif;
	font-size: 13px; /* Leicht verkleinert als Standardwert */
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	white-space: nowrap;
	box-sizing: border-box; /* Verhindert Überlauf */
}

.sticky-conversion-bar a:active {
	transform: scale(0.97);
	box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.sticky-conversion-bar .btn-call {
	background-color: var(--wp--preset--color--eiche-dunkel);
}

.sticky-conversion-bar .btn-whatsapp {
	background-color: #128c7e; /* Premium WhatsApp Dark Green */
}

.sticky-conversion-bar a i {
	font-size: 15px;
}

/* Optimierung für sehr schmale Bildschirme (z.B. iPhone SE) */
@media (max-width: 360px) {
	.sticky-conversion-bar {
		padding: 10px 8px;
		gap: 8px;
	}
	.sticky-conversion-bar a {
		font-size: 11px;
		padding: 10px 4px;
		gap: 4px;
	}
	.sticky-conversion-bar a i {
		font-size: 12px;
	}
}

/* Helpers */
.has-hauptgruen-background-color {
	background-color: var(--wp--preset--color--hauptgruen);
	color: var(--wp--preset--color--weiss);
}

.has-eiche-hell-background-color {
	background-color: var(--wp--preset--color--eiche-hell);
}

/* Vorher-Nachher Slider Wrapper */
.vorher-nachher-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 800px;
	margin: 0 auto 2rem auto;
}

/* Typography & Headings - Harmonized Layout */
body {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--inter);
	background-color: #ffffff;
	color: #444444; /* Angenehmes, weiches Grau */
	line-height: 1.7; /* Mehr Luft zum Atmen */
	font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--montserrat);
	color: #1a1a1a; /* Sattes Anthrazit für Fokus */
	line-height: 1.25;
	margin-top: 1.8em;
	margin-bottom: 0.8em;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 { 
	font-size: clamp(2rem, 5vw, 3rem); 
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 1.5rem; /* Etwas mehr Abstand nach oben für H1 */
    margin-bottom: 1.5rem;
}

h2 { 
	font-size: clamp(1.6rem, 4vw, 2.2rem); 
	border-left: 4px solid var(--wp--preset--color--hauptgruen); /* Eleganter Akzent */
	padding-left: 20px;
}

h3 { 
	font-size: clamp(1.3rem, 3vw, 1.6rem); 
	color: #2c3e50;
}

p {
	margin-bottom: 1.6em;
}

/* Listen und Links */
a {
	color: var(--wp--preset--color--hauptgruen);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--wp--preset--color--eiche-dunkel);
}

/* Image Effects */
.site-main img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Moderner, weicher Schatten */
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-main img:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

/* Layout & Block Alignment */
.site-main > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* Blocks with alignment */
.site-main > .alignfull {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.site-main > .alignwide {
	max-width: 1400px;
}

/* Specific text alignment for better readability */
.site-main > p, 
.site-main > h1, 
.site-main > h2, 
.site-main > h3, 
.site-main > ul, 
.site-main > ol {
	max-width: 1200px; /* Einheitlich mit anderen Blöcken */
}

.site-main {
	padding: 0; /* Padding wird über Blöcke gesteuert */
	min-height: 50vh;
}

/* --- PREMIUM SLIDER V2 --- */
.hatzfleck-slider {
	width: 100%;
	height: 80vh; /* Großzügige Höhe */
	min-height: 500px;
	max-height: 800px;
	position: relative;
	overflow: hidden;
}

.hatzfleck-slider .swiper-slide {
	position: relative;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(10, 35, 66, 0.7) 0%, rgba(10, 35, 66, 0.3) 100%);
}

.slide-content {
	position: relative;
	z-index: 10;
	color: #ffffff;
	max-width: 900px;
	text-align: center;
	padding: 0 40px;
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s ease 0.3s;
}

.swiper-slide-active .slide-content {
	opacity: 1;
	transform: translateY(0);
}

.slide-content h2 {
	font-size: clamp(2rem, 6vw, 4.5rem) !important;
	color: #ffffff !important;
	font-weight: 500 !important; /* Elegant & Leicht */
	margin-bottom: 20px !important;
	border-left: none !important; /* Kein Strich im Slider */
	padding-left: 0 !important;
	margin-left: 0 !important;
	text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-content p {
	font-size: clamp(1.1rem, 2vw, 1.6rem);
	color: rgba(255,255,255,0.95);
	margin-bottom: 40px;
	font-weight: 300;
}

.slide-cta .btn {
	display: inline-block;
	padding: 15px 40px;
	background-color: var(--wp--preset--color--hauptgruen);
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 1px;
	border-radius: 50px;
	transition: all 0.3s ease;
	text-decoration: none;
}

.slide-cta .btn:hover {
	background-color: #fff;
	color: var(--wp--preset--color--hauptgruen);
	transform: scale(1.05);
	box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Navigation & Pagination */
.hatzfleck-slider .swiper-button-next,
.hatzfleck-slider .swiper-button-prev {
	color: #fff;
	width: 60px;
	height: 60px;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(5px);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.hatzfleck-slider .swiper-button-next:hover,
.hatzfleck-slider .swiper-button-prev:hover {
	background: var(--wp--preset--color--hauptgruen);
	transform: scale(1.1);
}

.hatzfleck-slider .swiper-button-next:after,
.hatzfleck-slider .swiper-button-prev:after {
	font-size: 20px;
}

.hatzfleck-slider .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.5;
	width: 12px;
	height: 12px;
}

.hatzfleck-slider .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--hauptgruen) !important;
	opacity: 1;
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.hatzfleck-slider {
		height: 60vh;
	}
	.site-main > * {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* --- SERVICES OVERVIEW BLOCK - PREMIUM UPGRADE --- */
.hatzfleck-services-section {
	padding: 100px 0;
	background: #fdfdfd;
	position: relative;
	overflow: hidden;
}

.hatzfleck-services-section::before {
	content: '';
	position: absolute;
	top: -10%;
	right: -5%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(5, 159, 79, 0.03) 0%, transparent 70%);
	pointer-events: none;
}

.services-main-title {
	text-align: center;
	margin-bottom: 60px !important;
	font-size: clamp(2.2rem, 4vw, 3rem) !important;
	color: #1a1a1a !important;
	position: relative;
	padding-bottom: 20px !important;
	border-left: none !important;
}

.services-main-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: var(--wp--preset--color--hauptgruen);
	border-radius: 2px;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 40px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.service-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.04);
	transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
	transform: translateY(-12px);
	box-shadow: 0 25px 60px rgba(0,0,0,0.1);
	border-color: rgba(5, 159, 79, 0.1);
}

.service-card-image {
	position: relative;
	overflow: hidden;
	height: 240px;
}

.service-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}

.service-card:hover .service-card-image img {
	transform: scale(1.1);
}

.service-card-content {
	padding: 35px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.service-card-content h3 {
	margin-top: 0;
	margin-bottom: 18px;
	font-size: 1.5rem;
	color: #1a1a1a !important;
	font-weight: 700;
}

.service-card-content p {
	font-size: 16px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 30px;
}

.service-link {
	margin-top: auto;
	color: var(--wp--preset--color--hauptgruen);
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.service-link:after {
	content: '→';
	transition: transform 0.3s ease;
}

.service-link:hover:after {
	transform: translateX(8px);
}

@media (max-width: 768px) {
	.hatzfleck-services-section {
		padding: 50px 0;
	}
	.services-grid {
		grid-template-columns: 1fr;
	}
}

/* --- PREMIUM BEFORE-AFTER SLIDER --- */
.hatzfleck-ba-premium {
	width: 100%;
	margin: 60px 0;
	position: relative;
}

.ba-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
	line-height: 0;
}

.ba-layer {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.ba-layer img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none !important; /* Wichtig für Maskierung */
}

/* Vorher-Layer liegt oben */
.ba-before {
	z-index: 2;
}

/* Das Bild im Vorher-Layer muss IMMER 100% Breite des Containers haben, nicht des eigenen Layers! */
.ba-before img {
	width: 100vw; /* Fallback */
}

/* Wir setzen die Bildbreite via JS oder CSS calc für perfekte Ausrichtung */
.hatzfleck-ba-premium .ba-before img {
	width: 100%;
	height: 100%;
}

.ba-badge {
	position: absolute;
	z-index: 5;
	padding: 8px 16px;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 4px;
	font-weight: 600;
	pointer-events: none;
}

.ba-badge-before { top: 30px; left: 30px; }
.ba-badge-after { bottom: 30px; right: 30px; }

.ba-divider {
	position: absolute;
	z-index: 10;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
	pointer-events: none;
}

.ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--hauptgruen);
	box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.ba-handle svg { width: 28px; height: 28px; }

.ba-range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 20;
	cursor: ew-resize;
	opacity: 0;
	margin: 0;
}

@media (max-width: 768px) {
	.ba-container { aspect-ratio: 4 / 3; }
	.ba-badge { padding: 5px 10px; font-size: 9px; }
}

/* ==========================================================================
   Modern Dark Footer with Gradients
   ========================================================================== */

.site-footer {
    position: relative;
    background: #0a0e14; /* Deep Marine / Midnight Blue */
    background: linear-gradient(135deg, #0a0e14 0%, #16212e 100%);
    color: #e0e0e0;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Subtle modern decoration */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a5f 0%, #3a5a82 50%, #1e3a5f 100%);
    opacity: 0.8;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 58, 95, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

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

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

/* Footer Headings - Overwrite global heading styles */
.site-footer .footer-column h1,
.site-footer .footer-column h2,
.site-footer .footer-column h3,
.site-footer .footer-column h4,
.site-footer .footer-column h5,
.site-footer .footer-column h6,
.site-footer .footer-column .widget-title {
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 0.5px;
    border-left: none; /* Falls globale h2 border-left haben */
    padding-left: 0;   /* Falls globale h2 padding-left haben */
}

.site-footer .footer-column h1:after,
.site-footer .footer-column h2:after,
.site-footer .footer-column h3:after,
.site-footer .footer-column h4:after,
.site-footer .footer-column h5:after,
.site-footer .footer-column h6:after,
.site-footer .footer-column .widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3a5a82; /* Muted Marine Accent */
    border-radius: 2px;
}

.footer-column .widget {
    margin-bottom: 2rem;
}

.footer-column p, 
.footer-column li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0aec0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Bottom Site Info */
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
}

.site-info-inner {
    font-size: 0.85rem;
    color: #718096;
}

.site-info-inner span {
    display: inline-block;
    margin-top: 0.5rem;
    font-style: italic;
}


/* ==========================================================================
   Modern UX & Glassmorphism Upgrades
   ========================================================================== */

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

/* Modern Section Titles */
.section-title-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-modern span {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--wp--preset--color--hauptgruen);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title-modern h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1a1a1a;
    border-left: none !important;
    padding-left: 0 !important;
    position: relative;
    display: inline-block;
}

.section-title-modern h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--wp--preset--color--hauptgruen);
    border-radius: 2px;
}

/* Process Steps Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--wp--preset--color--hauptgruen);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 0 8px rgba(5, 159, 79, 0.1);
}

/* Floating Image Effect */
.floating-img {
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05), -20px -20px 60px rgba(255,255,255,0.8);
    transition: transform 0.5s ease;
}

.floating-img:hover {
    transform: scale(1.02) rotate(1deg);
}


/* ==========================================================================
   Premium Hero & Trust Bar Styles
   ========================================================================== */

/* Enhanced Hero Slider */
.hatzfleck-slider {
    height: 85vh !important; /* Deeper Hero for more impact */
}

.slide-overlay {
    background: linear-gradient(to right, rgba(10, 14, 20, 0.8) 0%, rgba(10, 14, 20, 0.4) 50%, transparent 100%) !important;
}

.slide-content {
    max-width: 800px !important;
    text-align: left !important;
    padding: 4rem !important;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-left: 5px solid var(--wp--preset--color--hauptgruen);
    border-radius: 0 20px 20px 0;
    margin-top: 0 !important; /* Margin-top entfernt */
}

.slide-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    font-weight: 800 !important;
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 1.4rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px;
    margin-bottom: 2.5rem !important;
}

.slide-cta .btn-primary {
    padding: 18px 45px !important;
    font-size: 1.1rem !important;
    background: var(--wp--preset--color--hauptgruen) !important;
    box-shadow: 0 10px 25px rgba(5, 159, 79, 0.4);
    border: none !important;
}

.slide-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(5, 159, 79, 0.6);
    background: #06bc5d !important;
}

/* Premium Trust Bar (to be added below hero) */
.hero-trust-bar {
    background: #ffffff;
    padding: 2rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -30px; /* Slight overlap with hero */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.trust-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--wp--preset--color--hauptgruen);
}

.trust-text strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.trust-text span {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .hatzfleck-slider { height: 70vh !important; }
    .slide-content { 
        padding: 2rem !important; 
        border-radius: 0;
        margin-top: 5vh;
    }
    .hero-trust-bar {
        width: 100%;
        margin-top: 0;
        border-radius: 0;
    }
    .trust-bar-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Premium Split-Screen & Z-Pattern Layout
   ========================================================================== */

.premium-split-section {
    padding: 80px 0;
    align-items: center !important;
    gap: 60px !important;
}

/* Automatisch jede zweite Sektion spiegeln */
.premium-split-section:nth-of-type(even) {
    flex-direction: row-reverse !important;
}

.premium-split-section .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Text-Veredelung in Split-Sektionen */
.premium-split-section .wp-block-column:not(:has(figure)) {
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.premium-split-section h2 {
    margin-top: 0 !important;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Akzent-Linie für die Überschrift im Split-Layout */
.premium-split-section h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--wp--preset--color--hauptgruen);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Bild-Veredelung */
.premium-split-section figure {
    margin: 0 !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-split-section img {
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.premium-split-section:hover figure {
    transform: scale(1.03) translateY(-5px);
}

@media (max-width: 992px) {
    .premium-split-section {
        flex-direction: column !important;
        gap: 40px !important;
        padding: 40px 0;
    }
    .premium-split-section .wp-block-column {
        flex-basis: 100% !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   Full-Width Heading & Boxed Split-Content
   ========================================================================== */

.premium-section-wrapper {
    max-width: 1240px;
    margin: 60px auto !important;
    padding: 40px 50px !important;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04); /* Subtilerer Rahmen */
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.02); /* Deutlich präsenterer Schatten */
    overflow: hidden;
}

/* Fix für das Kleben am Rand bei Full-Width Templates */
.site-main > .premium-section-wrapper,
.site-main > .wp-block-group.premium-section-wrapper {
    width: calc(100% - 40px);
}

.premium-section-wrapper h2 {
    width: 100%;
    margin-bottom: 30px !important;
    font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
    text-align: left;
    border-left: none !important;
    padding-left: 0 !important;
    color: #1a1a1a;
}

.premium-section-wrapper h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--wp--preset--color--hauptgruen);
    margin-top: 15px;
    border-radius: 2px;
}

.premium-split-grid {
    display: flex;
    align-items: flex-start !important; /* Text fängt oben an */
    gap: 40px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Alternierender Rhythmus für die Spalten innerhalb der Box */
.premium-section-wrapper:nth-of-type(even) .premium-split-grid {
    flex-direction: row-reverse !important;
}

.premium-split-grid .wp-block-column {
    flex: 1;
    margin: 0 !important; /* Entfernt WP-Standard-Abstände */
    padding: 0 !important;
}

.premium-split-grid .wp-block-column:not(:has(figure)) {
    background: transparent !important; /* Box ist schon außen rum */
    padding: 0 !important;
}

.premium-split-grid figure img {
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

@media (max-width: 992px) {
    .premium-section-wrapper {
        padding: 30px !important;
    }
    .premium-split-grid {
        flex-direction: column !important;
        gap: 30px !important;
    }
}

/* Force global layout constraints to match our premium section width */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure the main container itself is centered */
.site-main {
    width: 100%;
    overflow-x: hidden;
}

/* Global H3 Margin Adjustment for better spacing in text flow */
h3 {
    margin-top: 2rem !important;
    margin-bottom: 1.25rem !important;
}

.premium-section-wrapper h3:first-child {
    margin-top: 0 !important;
}

/* ==========================================================================
   Modern Contact Page Styles
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card-premium {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.contact-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-card-premium h3 {
    color: var(--wp--preset--color--hauptgruen);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

.contact-info-list li i {
    width: 20px;
    color: var(--wp--preset--color--hauptgruen);
    font-size: 1.1rem;
}

.contact-form-wrapper-modern {
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    margin-top: 40px;
}

.contact-form-wrapper-modern h2 {
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper-modern {
        padding: 30px;
    }
}

/* ==========================================================================
   Premium High-Conversion CTA Section
   ========================================================================== */

.premium-cta-section {
    margin: 80px auto !important;
    max-width: 1240px;
    padding: 0 !important;
    border-radius: 30px;
    overflow: hidden;
    background: #0a0e14; /* Deep Marine */
    background: linear-gradient(135deg, #0a0e14 0%, #1a2a3a 100%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    position: relative;
}

.cta-content-wrapper {
    padding: 60px 80px;
    flex: 1;
    z-index: 2;
}

.premium-cta-section h2 {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.premium-cta-section h2::after {
    background: #ffffff !important;
    width: 60px;
    height: 4px;
    margin-top: 20px;
}

.premium-cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-button-wrapper {
    padding-right: 80px;
    z-index: 2;
}

.btn-premium-cta {
    display: inline-block;
    padding: 20px 50px;
    background: var(--wp--preset--color--hauptgruen);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(5, 159, 79, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium-cta:hover {
    transform: scale(1.05) translateY(-5px);
    background: #06bc5d;
    box-shadow: 0 15px 40px rgba(5, 159, 79, 0.5);
    color: #ffffff;
}

/* Decoration */
.premium-cta-section::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 159, 79, 0.15) 0%, transparent 70%);
    z-index: 1;
}

@media (max-width: 992px) {
    .premium-cta-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px !important;
    }
    .cta-content-wrapper {
        padding: 0;
        margin-bottom: 40px;
    }
    .cta-button-wrapper {
        padding: 0;
    }
    .premium-cta-section p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Smooth Scroll-Reveal Animations
   ========================================================================== */

/* Initialzustand: Unsichtbar und leicht nach unten versetzt */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

/* Sichtbarer Zustand: Sanftes Einfliegen */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Verzögerung für ein natürlicheres Gefühl bei aufeinanderfolgenden Elementen */
.reveal-on-scroll:nth-of-type(even) {
    transition-delay: 0.1s;
}

/* ==========================================================================
   Instagram Navigation Icon Styling
   ========================================================================== */
.instagram-menu-item {
    display: flex;
    align-items: center;
}

.instagram-menu-item a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 10px !important;
}

.instagram-menu-item a i {
    font-size: 19px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
    color: #1a1a1a;
}

.instagram-menu-item a:hover i {
    transform: scale(1.2);
    color: #e1306c !important; /* Instagram Brand Pink/Magenta on Hover */
}

@media (max-width: 992px) {
    .instagram-menu-item {
        justify-content: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .instagram-menu-item a {
        padding: 16px 0 !important;
        width: 100%;
        justify-content: center;
    }
    
    .instagram-menu-item a i {
        font-size: 24px;
        color: var(--wp--preset--color--hauptgruen); /* Default color in mobile menu */
    }
    
    .instagram-menu-item a:hover i {
        color: #e1306c !important;
    }
}
/* ==========================================================================
   Header Language Switcher Styling (DE | EN) - Always Visible
   ========================================================================== */
.header-language-switcher {
    display: inline-flex;
    align-items: center;
    font-family: var(--wp--preset--font-family--montserrat), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    gap: 0;
    margin-left: 20px;
    z-index: 1000;
}

.header-language-switcher .lang-link {
    color: #555555 !important;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    padding: 4px 6px;
    border-bottom: 2px solid transparent;
    line-height: 1;
}

.header-language-switcher .lang-link:hover {
    color: var(--wp--preset--color--eiche-dunkel) !important;
}

.header-language-switcher .lang-link.active {
    color: var(--wp--preset--color--eiche-dunkel) !important;
    border-bottom-color: var(--wp--preset--color--eiche-dunkel);
}

.header-language-switcher .lang-separator {
    color: #e0e0e0;
    font-weight: 300;
    user-select: none;
    margin: 0 2px;
}

@media (max-width: 992px) {
    /* On mobile, place it nicely in the flex container next to the toggle */
    .header-language-switcher {
        margin-left: auto; /* push it to the right, next to the hamburger toggle */
        margin-right: 10px;
        font-size: 14px;
    }
}

