@charset "UTF-8";
/* ==========================================================================
   Freihelden Theme – Custom Styles
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
	--fh-primary: #3ab54a;
	--fh-primary-hover: #42cd13;
	--fh-foreground: #333333;
	--fh-muted: #737373;
	--fh-secondary-bg: #f2f7f0;
	--fh-border: #e5e5e5;
	--fh-radius: 0.5rem;
	--fh-transition: 0.3s ease;
}

/* ---------- Global ---------- */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */

/* Sticky: Target the FSE template-part wrapper AND the inner group */
header.wp-block-template-part,
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
}

.site-header {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: all var(--fh-transition);
}

.site-header .header-accent-bar {
	height: 2px;
	background: var(--fh-primary);
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0rem;
	max-width: 1200px;
	margin: 0 auto;
	transition: padding var(--fh-transition);
}

.site-header.scrolled .header-inner {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

/* Logo */
.site-header .custom-logo,
.site-header .custom-logo-link img {
	height: 7.8rem;
	width: auto;
	transition: height var(--fh-transition);
}

.site-header.scrolled .custom-logo,
.site-header.scrolled .custom-logo-link img {
	height: 3rem;
}

/* Header Nav Wrapper – flex alignment */
.site-header .header-nav-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Header Nav Links */
.site-header .wp-block-navigation {
	gap: 0.25rem;
}

.site-header .wp-block-navigation-item a {
	padding: 0.5rem 0.75rem;
	border-radius: var(--fh-radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fh-foreground);
	transition: all var(--fh-transition);
}

.site-header .wp-block-navigation-item a:hover,
.site-header .wp-block-navigation-item.current-menu-item a {
	background: rgba(58, 181, 74, 0.1);
	color: var(--fh-primary);
}

/* Phone Button in Header – extra left margin for spacing from nav */
.header-phone-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: 2rem;
	padding: 0.625rem 1.25rem;
	background: var(--fh-primary);
	color: #fff !important;
	border-radius: var(--fh-radius);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background var(--fh-transition);
}

.header-phone-btn:hover {
	background: var(--fh-primary-hover);
	color: #fff !important;
}

.header-phone-btn svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

/* ---------- Hero Section ---------- */
.fh-hero {
	background-color: var(--fh-primary);
	color: #fff;
	padding: 5rem 2rem;
	text-align: center;
}

.fh-hero h1,
.fh-hero h2 {
	color: #fff;
}

.fh-hero p {
	opacity: 0.9;
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
}

.fh-hero .wp-block-buttons {
	justify-content: center;
}

/* Hero Buttons */
.fh-hero .wp-block-button.is-style-fill .wp-block-button__link {
	background: #fff;
	color: var(--fh-primary);
	border-radius: var(--fh-radius);
	font-weight: 500;
	padding: 0.75rem 2rem;
}

.fh-hero .wp-block-button.is-style-fill .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.9);
}

.fh-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid #fff;
	color: #fff;
	background: transparent;
	border-radius: var(--fh-radius);
	font-weight: 500;
	padding: 0.75rem 2rem;
}

.fh-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------- Sections ---------- */
.fh-section {
	padding: 4rem 0;
}

.fh-section-alt {
	padding: 4rem 0;
	background: var(--fh-secondary-bg);
}

.fh-section h2 {
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--fh-foreground);
}

.fh-section .fh-muted-text {
	color: var(--fh-muted);
}

/* ---------- Service Cards ---------- */
.fh-service-card {
	background: #fff;
	border-radius: var(--fh-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: box-shadow var(--fh-transition);
}

.fh-service-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.fh-service-card img {
	width: 100%;
	height: 12rem;
	object-fit: cover;
}

.fh-service-card .fh-card-content {
	padding: 1.5rem;
}

.fh-service-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--fh-foreground);
}

.fh-service-card p {
	color: var(--fh-muted);
	margin-bottom: 1rem;
}

/* ---------- Steps ---------- */
.fh-step-icon {
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background: rgba(58, 181, 74, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.fh-step-icon svg,
.fh-step-icon img {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--fh-primary);
}

.fh-step-label {
	font-size: 0.875rem;
	color: var(--fh-primary);
	font-weight: 600;
	margin-bottom: 0.25rem;
}

/* ---------- Vorteile ---------- */
.fh-vorteil-icon {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(58, 181, 74, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
}

.fh-vorteil-icon svg,
.fh-vorteil-icon img {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--fh-primary);
}

.fh-vorteil-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fh-foreground);
	text-align: center;
}

/* ---------- CTA Section ---------- */
.fh-cta {
	background-color: var(--fh-primary);
	color: #fff;
	padding: 4rem 2rem;
	text-align: center;
}

.fh-cta h2 {
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.fh-cta p {
	opacity: 0.9;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

.fh-cta .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid #fff;
	color: #fff;
	background: transparent;
}

.fh-cta .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--fh-primary);
}

.fh-cta .wp-block-button.is-style-fill .wp-block-button__link {
	background: #fff;
	color: var(--fh-primary);
}

/* ---------- Contact Form Section ---------- */
.fh-form-primary {
	background: var(--fh-primary);
	padding: 4rem 2rem;
}

.fh-form-primary .wp-block-form input,
.fh-form-primary input[type="text"],
.fh-form-primary input[type="email"],
.fh-form-primary input[type="tel"],
.fh-form-primary textarea,
.fh-form-primary select {
	background: #fff;
	border: 0;
	height: 3rem;
	padding: 0.5rem 1rem;
	border-radius: var(--fh-radius);
	font-size: 1rem;
	width: 100%;
}

.fh-form-primary textarea {
	min-height: 10rem;
	height: auto;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--fh-foreground);
	color: #fff;
	padding: 3rem 0 0;
}

.site-footer h3 {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color var(--fh-transition);
}

.site-footer a:hover {
	color: var(--fh-primary);
}

.site-footer .footer-meta {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 2rem;
	padding: 2rem 0;
	text-align: center;
	font-size: 0.875rem;
	opacity: 0.6;
}

/* Footer Logo */
.site-footer .footer-logo {
	height: 2.5rem;
	width: auto;
	filter: brightness(0) invert(1);
	margin-bottom: 1rem;
}

/* Footer Rating Box */
.fh-rating-box {
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--fh-radius);
	padding: 1rem;
}

.fh-rating-stars {
	color: var(--fh-primary);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

/* ---------- Buttons – Global ---------- */

/* Base button reset for all WP buttons */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--fh-radius);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	transition: all var(--fh-transition);
	cursor: pointer;
	border: 2px solid transparent;
}

/* Fill (Default) – Primary Green */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--fh-primary);
	color: #fff;
	border-color: var(--fh-primary);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--fh-primary-hover);
	border-color: var(--fh-primary-hover);
}

/* Outline – Green Border */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--fh-primary);
	border: 2px solid var(--fh-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--fh-primary);
	color: #fff;
}

/* Buttons container gap */
.wp-block-buttons {
	gap: 1rem;
}

/* Small button size for cards */
.fh-service-card .wp-block-button__link {
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
}

/* ---- Custom Button Styles (fh- classes for use outside Gutenberg) ---- */

/* --- Block Style Variations: Buttons (registered in functions.php) --- */

/* Primär (Grün) */
.wp-block-button.is-style-fh-primary .wp-block-button__link {
	background: var(--fh-primary) !important;
	color: #fff !important;
	border: 2px solid var(--fh-primary);
}

.wp-block-button.is-style-fh-primary .wp-block-button__link:hover {
	background: var(--fh-primary-hover) !important;
	border-color: var(--fh-primary-hover);
}

/* Outline Grün */
.wp-block-button.is-style-fh-outline-green .wp-block-button__link {
	background: transparent !important;
	color: var(--fh-primary) !important;
	border: 2px solid var(--fh-primary);
}

.wp-block-button.is-style-fh-outline-green .wp-block-button__link:hover {
	background: var(--fh-primary) !important;
	color: #fff !important;
}

/* Weiß (für dunkle Hintergründe) */
.wp-block-button.is-style-fh-white .wp-block-button__link {
	background: #fff !important;
	color: var(--fh-primary) !important;
	border: 2px solid #fff;
}

.wp-block-button.is-style-fh-white .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.9) !important;
}

/* Weiß Outline (für dunkle Hintergründe) */
.wp-block-button.is-style-fh-white-outline .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid #fff;
}

.wp-block-button.is-style-fh-white-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

/* --- Block Style Variations: Groups --- */
.wp-block-group.is-style-fh-section {
	padding: 4rem 2rem;
}

.wp-block-group.is-style-fh-section-alt {
	padding: 4rem 2rem;
	background: var(--fh-secondary-bg);
}

.wp-block-group.is-style-fh-hero {
	background: var(--fh-primary);
	color: #fff;
	padding: 5rem 2rem;
	text-align: center;
}

.wp-block-group.is-style-fh-hero h1,
.wp-block-group.is-style-fh-hero h2,
.wp-block-group.is-style-fh-hero h3,
.wp-block-group.is-style-fh-hero p {
	color: #fff;
}

.wp-block-group.is-style-fh-cta {
	background: var(--fh-primary);
	color: #fff;
	padding: 4rem 2rem;
	text-align: center;
}

.wp-block-group.is-style-fh-cta h2,
.wp-block-group.is-style-fh-cta h3,
.wp-block-group.is-style-fh-cta p {
	color: #fff;
}

/* ---- fh-btn helper classes ---- */
.fh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--fh-radius);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: all var(--fh-transition);
	cursor: pointer;
}

.fh-btn-primary {
	background: var(--fh-primary);
	color: #fff;
}

.fh-btn-primary:hover {
	background: var(--fh-primary-hover);
	color: #fff;
}

.fh-btn-outline {
	background: transparent;
	color: var(--fh-primary);
	border: 2px solid var(--fh-primary);
}

.fh-btn-outline:hover {
	background: var(--fh-primary);
	color: #fff;
}

.fh-btn-white {
	background: #fff;
	color: var(--fh-primary);
	border: 2px solid #fff;
}

.fh-btn-white:hover {
	background: rgba(255, 255, 255, 0.9);
}

.fh-btn-white-outline {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}

.fh-btn-white-outline:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------- Text with Image Layout ---------- */
.fh-text-image {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.fh-text-image.reverse .fh-text-content {
	order: 2;
}

.fh-text-image img {
	width: 100%;
	height: 20rem;
	object-fit: cover;
	border-radius: var(--fh-radius);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ---------- Brand Highlight ---------- */
.fh-brand {
	color: var(--fh-primary);
	font-weight: 600;
}

/* ---------- Content Image ---------- */
.fh-content-image {
	border-radius: var(--fh-radius);
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.fh-content-image img {
	width: 100%;
	height: 20rem;
	object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.fh-hero {
		padding: 3rem 1rem;
	}

	.fh-section,
	.fh-section-alt {
		padding: 2.5rem 0;
	}

	.fh-text-image {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.fh-text-image.reverse .fh-text-content {
		order: unset;
	}

	.site-header .custom-logo,
	.site-header .custom-logo-link img {
		height: 3.5rem;
	}

	.site-header .header-inner {
		padding: 0.5rem 1rem;
	}

	.header-phone-btn {
		margin-left: 0.5rem;
		padding: 0.5rem 0.75rem;
		font-size: 0.8125rem;
	}

	.header-phone-btn span {
		display: none;
	}
}
