/* HFG – Layout- und Komponenten-Styles. Farben/Schrift kommen aus theme.json Custom Properties. */

[hidden] { display: none !important; }

:root {
	--hfg-waldgruen: var(--wp--preset--color--waldgruen, #2f7a3a);
	--hfg-naturgruen: var(--wp--preset--color--naturgruen, #4e8f4c);
	--hfg-sand: var(--wp--preset--color--sand, #f5f4ef);
	--hfg-anthrazit: var(--wp--preset--color--anthrazit, #24261f);
	--hfg-weiss: var(--wp--preset--color--weiss, #fff);
	--hfg-holzbraun: var(--wp--preset--color--holzbraun, #b5651d);
	--hfg-forest-deep: #1d3a20;
	--hfg-radius: 14px;
	--hfg-radius-sm: 9px;
	--hfg-max: 1240px;
	--hfg-shadow: 0 10px 28px rgba(24, 30, 20, .1);
	--hfg-border: 1px solid rgba(24,30,20,.12);
}

.hfg-header__inner, .hfg-highlight, .hfg-products, .hfg-faq, .hfg-footer__inner,
.hfg-page__content, .hfg-page__header, .hfg-contact-info__grid, .hfg-landingpage-list, .hfg-referenzen, .hfg-benefits, .hfg-section-head {
	max-width: var(--hfg-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.hfg-page__content--narrow { max-width: 780px; }

/* Typografie: klare, seriöse Fachhändler-Skala (Bitter fuer Ueberschriften, Inter im Fliesstext) */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.015em; }
.hfg-hero h1, .hfg-hero-box h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; font-weight: 800; }
.hfg-services h2, .hfg-trust h2, .hfg-highlight h2, .hfg-area h2, .hfg-faq h2, .hfg-form h2, .hfg-banner__copy h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -.015em; font-weight: 800;
}
.hfg-service-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -.02em; }

/* Section-Kopf: Eyebrow + Headline links, Intro-Text rechts */
.hfg-section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: end; margin-bottom: 2.5rem; }
.hfg-section-head__intro { font-size: 1.05rem; color: var(--hfg-anthrazit); opacity: .68; max-width: 640px; margin: 0; }

/* Buttons */
.hfg-btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.5em;
	border-radius: var(--hfg-radius-sm);
	font-weight: 700;
	font-size: .96rem;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hfg-btn:hover { transform: translateY(-1px); }
.hfg-btn:active { transform: scale(.97); }
.hfg-btn--primary { background: var(--hfg-waldgruen); color: var(--hfg-weiss); box-shadow: 0 6px 16px rgba(47,122,58,.25); }
.hfg-btn--primary:hover { background: #276332; box-shadow: 0 8px 20px rgba(47,122,58,.32); }
.hfg-btn--outline { background: var(--hfg-weiss); color: var(--hfg-waldgruen); border-color: rgba(24,30,20,.2); }
.hfg-btn--outline:hover { border-color: var(--hfg-waldgruen); background: var(--hfg-sand); }
.hfg-btn--light { background: var(--hfg-weiss); color: var(--hfg-waldgruen); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.hfg-btn--light:hover { background: #f2efe6; }
.hfg-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.hfg-btn--lg { padding: .95em 1.9em; font-size: 1rem; }
.hfg-icon { width: 1.2em; height: 1.2em; flex: none; }

/* Checkmark-Liste (kurze Fakten, siehe Hero) */
.hfg-check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.hfg-check-list li { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: .95rem; color: var(--hfg-anthrazit); }
.hfg-check-list .hfg-icon { color: var(--hfg-waldgruen); width: 1.05em; height: 1.05em; flex: none; }

/* Header */
.hfg-header { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow .3s ease, background-color .3s ease; }
.hfg-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--hfg-waldgruen), var(--hfg-holzbraun), var(--hfg-waldgruen)); opacity: 0; transition: opacity .3s ease; }
.hfg-header.is-scrolled { box-shadow: 0 12px 28px rgba(15,23,17,.14); }
.hfg-header.is-scrolled::after { opacity: 1; }
.hfg-header.is-scrolled .hfg-header__brand img.custom-logo { transform: scale(.759); }
/* Shrink-on-scroll is carried by the logo scale + shadow + gradient underline alone now;
   no padding animation, so there's nothing here to trigger layout thrash. */
.hfg-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.hfg-header__brand { display: flex; align-items: center; text-decoration: none; }
.hfg-header__brand-text { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem; color: var(--hfg-waldgruen); }
/* transform instead of height: compositor-only, avoids a layout+paint on every scroll-threshold cross */
.hfg-header__brand img.custom-logo { height: 58px; width: auto; max-width: none; transform-origin: left center; transition: transform .3s ease; }
.hfg-header__nav { flex: 1; }
.hfg-nav { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hfg-nav > li { position: relative; }
.hfg-nav a { text-decoration: none; font-weight: 650; color: var(--hfg-anthrazit); display: block; padding: .5rem 0; position: relative; }
.hfg-nav > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .3rem; height: 2px; background: var(--hfg-waldgruen); transition: right .25s ease; }
.hfg-nav > li > a:hover::after { right: 0; }
.hfg-nav a:hover { color: var(--hfg-waldgruen); }
.hfg-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; display: none; flex-direction: column; gap: .25rem; position: absolute; top: 100%; left: 0; background: var(--hfg-weiss); border-radius: 8px; box-shadow: var(--hfg-shadow); min-width: 200px; z-index: 10; }
.hfg-nav > li:hover > .sub-menu, .hfg-nav > li:focus-within > .sub-menu { display: flex; }
.hfg-nav .sub-menu a { padding: .5rem .75rem; border-radius: 4px; }
.hfg-nav .sub-menu a:hover { background: var(--hfg-sand); }
.hfg-header__cta { display: flex; align-items: center; gap: 1rem; }
.hfg-header__phone { display: flex; align-items: center; gap: .4em; text-decoration: none; font-weight: 750; color: var(--hfg-waldgruen); }
.hfg-header__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.hfg-header__toggle-bar, .hfg-header__toggle-bar::before, .hfg-header__toggle-bar::after { content: ""; display: block; width: 24px; height: 2px; background: var(--hfg-anthrazit); position: relative; }
.hfg-header__toggle-bar::before { position: absolute; top: -7px; }
.hfg-header__toggle-bar::after { position: absolute; top: 7px; }

/* Hero: full-bleed Foto/Slider mit Verlauf, Inhalt liegt direkt auf dem Bild (kein Card-in-Card) */
.hfg-hero-wrap { background: var(--hfg-anthrazit); }
.hfg-hero-box { position: relative; min-height: min(82vh, 720px); overflow: hidden; }
.hfg-hero-box__media { position: absolute; inset: 0; z-index: 0; background: var(--hfg-sand); }
/* Scrim lives on its own layer (sized to the full box, like .hfg-banner::after) so its
   gradient stops never depend on the text column's width — that coupling is what caused
   the text to collapse to a sliver at wide (1920px+) viewports. */
.hfg-hero-box::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(20,23,15,.92) 0%, rgba(20,23,15,.6) 38%, rgba(20,23,15,0) 68%); }
.hfg-hero-box__text {
	position: relative;
	z-index: 2;
	/* No max-width here: the heading (20ch) and lead (48ch) self-limit their own width,
	   the same way .hfg-trust__text relies on its children instead of capping the flex column. */
	padding: 4.5rem max(1.25rem, calc((100vw - var(--hfg-max)) / 2)) 3.5rem max(1.25rem, calc((100vw - var(--hfg-max)) / 2) + 1.25rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: min(82vh, 720px);
}
.hfg-hero-box h1 { margin: 0 0 .9rem; color: var(--hfg-weiss); }
.hfg-hero-box__lead { font-size: 1.05rem; color: var(--hfg-sand); opacity: .92; max-width: 48ch; margin: 0 0 1.4rem; }
.hfg-hero-box__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hfg-hero-box__text .hfg-check-list li { color: var(--hfg-weiss); }
.hfg-hero-box__text .hfg-check-list .hfg-icon { color: var(--hfg-naturgruen); }
.hfg-hero-box__text .hfg-btn--outline { background: transparent; color: var(--hfg-weiss); border-color: rgba(255,255,255,.55); }
.hfg-hero-box__text .hfg-btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--hfg-weiss); }
.hfg-illustration { width: 100%; height: auto; aspect-ratio: 400 / 260; display: block; }

/* Ken-Burns-Zoom fuer einzelnes Hero-Foto (dezent) */
.hfg-hero__kenburns { animation: hfgKenBurns 26s ease-in-out infinite alternate; }
@keyframes hfgKenBurns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Hero-Slideshow innerhalb der Foto-Box */
.hfg-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hfg-hero__slide.is-active { opacity: 1; z-index: 1; }
.hfg-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hfgKenBurns 28s ease-in-out infinite alternate; }
.hfg-hero-box__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hfg-hero-box__caption { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; background: rgba(255,255,255,.94); color: var(--hfg-waldgruen); padding: .45em .85em; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hfg-hero__dots { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; display: flex; gap: .4rem; }
.hfg-hero__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.25); padding: 0; cursor: pointer; transition: background-color .25s ease, transform .25s ease; }
.hfg-hero__dot.is-active { background: var(--hfg-weiss); transform: scale(1.2); }

/* Bildveredelung: konsistente, etwas kraeftigere Anmutung fuer alle Fotos */
.hfg-hero__slide img, .hfg-hero__kenburns, .hfg-highlight__media img,
.hfg-trust__media img, .hfg-banner__media img, .hfg-gallery__item img {
	filter: saturate(1.08) contrast(1.04);
}

/* Scroll-Reveal (respektiert prefers-reduced-motion weiter unten) */
[data-reveal] { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); transition-delay: calc(var(--hfg-reveal-delay, 0) * 90ms); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0) scale(1); }
[data-reveal-dir="left"] { transform: translateX(-32px); }
[data-reveal-dir="left"].is-revealed { transform: translateX(0); }
[data-reveal-dir="right"] { transform: translateX(32px); }
[data-reveal-dir="right"].is-revealed { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
	.hfg-hero__kenburns, .hfg-hero__slide img { animation: none !important; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.hfg-highlight--feature .hfg-highlight__media[data-reveal] { transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* Schnellzugriffs-Leiste (minimal, direkt unter dem Hero) */
.hfg-quicklinks { background: var(--hfg-weiss); border-bottom: 1px solid rgba(23,20,15,.08); }
.hfg-quicklinks__inner { max-width: var(--hfg-max); margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hfg-quicklinks__item { display: flex; align-items: center; gap: .55em; padding: .6em 1.1em; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--hfg-waldgruen); text-decoration: none; transition: background-color .2s ease; }
.hfg-quicklinks__item .hfg-icon { color: var(--hfg-holzbraun); width: 1.05em; height: 1.05em; }
.hfg-quicklinks__item:hover { background: var(--hfg-sand); }

/* Trust */
.hfg-trust { background: var(--hfg-sand); color: var(--hfg-anthrazit); overflow: hidden; }
.hfg-trust h2, .hfg-trust :is(h1,h2,h3) { color: var(--hfg-waldgruen); }
.hfg-trust__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch; max-width: none; padding: 0; }
.hfg-trust__text { padding: 5.5rem max(1.25rem, calc((100vw - var(--hfg-max)) / 2)) 5.5rem max(1.25rem, calc((100vw - var(--hfg-max)) / 2) + 1.25rem); display: flex; flex-direction: column; justify-content: center; }
.hfg-trust__text p { font-size: 1.08rem; color: var(--hfg-anthrazit); opacity: .82; max-width: 620px; }
.hfg-trust__media { min-height: 480px; position: relative; }
.hfg-trust__media img, .hfg-trust__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Highlight sections */
.hfg-highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 4.5rem 1.25rem; max-width: var(--hfg-max); margin: 0 auto; }
.hfg-highlight--sand { background: var(--hfg-sand); max-width: none; padding-left: max(1.25rem, calc(50vw - var(--hfg-max) / 2)); padding-right: max(1.25rem, calc(50vw - var(--hfg-max) / 2)); }
.hfg-highlight--reverse { direction: rtl; }
.hfg-highlight--reverse > * { direction: ltr; }
.hfg-highlight__media svg { border-radius: var(--hfg-radius); box-shadow: var(--hfg-shadow); }
.hfg-highlight__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hfg-radius); box-shadow: var(--hfg-shadow); display: block; }
.hfg-highlight__text p { font-size: 1.1rem; margin-bottom: 1.25rem; opacity: .82; }
.hfg-highlight__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0 0 1.5rem; }
.hfg-highlight__fact { background: var(--hfg-weiss); border: 1px solid rgba(31,51,39,.1); padding: .9rem 1rem; border-radius: var(--hfg-radius-sm); font-size: .92rem; font-weight: 700; }
.hfg-highlight__fact b { display: block; color: var(--hfg-holzbraun); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; font-weight: 900; }
.hfg-highlight--sand .hfg-highlight__fact { background: var(--hfg-weiss); }

/* Feature variant: one of the four service blocks breaks the zigzag rhythm as a full-bleed
   peak moment (same device as the hero: photo background + scrim + overlay text), instead of
   adding a fifth new pattern. Fixed padding, not the viewport-scaling formula, so nothing
   collapses at wide viewports (see the hero's 1920px bug earlier in this project). */
.hfg-highlight--feature { position: relative; display: block; overflow: hidden; min-height: min(78vh, 620px); max-width: none; padding: 0; margin: 0; }
.hfg-highlight--feature .hfg-highlight__media { position: absolute; inset: 0; z-index: 0; }
.hfg-highlight--feature .hfg-highlight__media img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hfg-highlight--feature::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(20,23,15,.90) 0%, rgba(20,23,15,.55) 42%, rgba(20,23,15,0) 72%); }
.hfg-highlight--feature .hfg-highlight__text { position: relative; z-index: 2; max-width: 640px; padding: 4.5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; min-height: min(78vh, 620px); }
.hfg-highlight--feature .hfg-highlight__text h2 { color: var(--hfg-weiss); }
.hfg-highlight--feature .hfg-highlight__text p { color: var(--hfg-sand); opacity: .92; }
/* A white-tinted glass panel is contrast-unreliable over a photo that varies from bright sky
   to dark forest; a dark tint keeps white text safely >4.5:1 regardless of what's behind it. */
.hfg-highlight--feature .hfg-highlight__fact { background: rgba(15,18,11,.78); border-color: rgba(255,255,255,.22); color: var(--hfg-weiss); backdrop-filter: blur(6px); }
.hfg-highlight--feature .hfg-highlight__fact b { color: var(--hfg-weiss); opacity: .85; }
/* This section's photo gets its own entrance instead of the site-wide slide-fade: a slow
   cinematic push-in (scale only, stays visible throughout) so the one deliberate peak in the
   scroll also reads as a distinct authored moment in motion, not just in layout. */
.hfg-highlight--feature .hfg-highlight__media[data-reveal] { opacity: 1; transform: scale(1.12); transition: transform 1.1s cubic-bezier(.16,.8,.24,1); }
.hfg-highlight--feature .hfg-highlight__media[data-reveal].is-revealed { transform: scale(1); }
.hfg-highlight--feature .hfg-btn--primary:hover { background: #276332; }

/* Endlos-Ticker */
.hfg-marquee { background: var(--hfg-weiss); color: var(--hfg-waldgruen); overflow: hidden; padding: 1.1rem 0; border-top: 1px solid rgba(23,20,15,.1); border-bottom: 1px solid rgba(23,20,15,.1); }
.hfg-marquee__track { display: flex; width: max-content; animation: hfgMarquee 32s linear infinite; }
.hfg-marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.hfg-marquee__group span { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; padding: 0 .9rem; text-transform: uppercase; }
.hfg-marquee__dot { color: var(--hfg-holzbraun); font-size: .6rem; padding: 0 !important; }
@keyframes hfgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hfg-marquee__track { animation: none; } }

/* Galerie + Lightbox */
.hfg-section-wrap { padding: 4.5rem 0; }
.hfg-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 160px; gap: 1rem; max-width: var(--hfg-max); margin: 2.5rem auto 0; padding: 0 1.25rem; }
.hfg-gallery__item { grid-column: span 4; grid-row: span 2; border: 0; padding: 0; overflow: hidden; border-radius: var(--hfg-radius-sm); position: relative; cursor: zoom-in; background: var(--hfg-sand); }
.hfg-gallery__item:nth-child(1) { grid-column: span 7; }
.hfg-gallery__item:nth-child(2) { grid-column: span 5; }
.hfg-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.16,.8,.24,1); display: block; }
.hfg-gallery__item:hover img, .hfg-gallery__item:focus-visible img { transform: scale(1.06); }
.hfg-gallery__item:active img { transform: scale(1.02); }
.hfg-gallery__zoom { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--hfg-weiss); background: rgba(0,0,0,.4); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.hfg-gallery__zoom .hfg-icon { width: .9em; height: .9em; }
.hfg-gallery__item:hover .hfg-gallery__zoom, .hfg-gallery__item:focus-visible .hfg-gallery__zoom { opacity: 1; }
/* Modal stays centered (not origin-aware) per standard modal convention; what it needed was
   any entrance at all instead of a hard display:none/block cut. */
.hfg-lightbox { position: fixed; inset: 0; z-index: 800; background: rgba(6,10,8,.92); display: grid; place-items: center; padding: 1.5rem; opacity: 0; transition: opacity .25s ease; }
.hfg-lightbox.is-open { opacity: 1; }
.hfg-lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; border-radius: var(--hfg-radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); transition: transform .25s cubic-bezier(.16,.8,.24,1); }
.hfg-lightbox.is-open img { transform: scale(1); }
.hfg-lightbox__close { position: absolute; right: 1.25rem; top: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--hfg-weiss); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .16s ease-out; }
.hfg-lightbox__close:active { transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { .hfg-lightbox, .hfg-lightbox img { transition: none; } }

/* Voller Foto-Banner (CTA) */
.hfg-banner { position: relative; overflow: hidden; border-radius: var(--hfg-radius); min-height: 380px; color: var(--hfg-weiss); box-shadow: var(--hfg-shadow); display: flex; align-items: flex-end; margin: 1rem auto 0; max-width: var(--hfg-max); }
.hfg-banner__media { position: absolute; inset: 0; }
.hfg-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.hfg-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(23,20,15,.88), rgba(23,20,15,.18) 65%), linear-gradient(0deg, rgba(23,20,15,.62), transparent 55%); }
.hfg-banner__copy { position: relative; z-index: 2; padding: 3rem; max-width: 640px; }
.hfg-banner__copy p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: .75rem 0 1.5rem; }
.hfg-banner-wrap { padding: 0 1.25rem; }

/* Products */
.hfg-products { padding-top: 3rem; padding-bottom: 3rem; }
.hfg-products__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.hfg-product-card { background: var(--hfg-weiss); border: 1px solid rgba(31,51,39,.12); border-radius: var(--hfg-radius); overflow: hidden; box-shadow: var(--hfg-shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.hfg-product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(31,51,39,.16); }
.hfg-product-card__media img, .hfg-product-card__media svg { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hfg-product-card h3 { padding: 1rem 1.25rem 0; margin-bottom: .25rem; }
.hfg-product-card__meta { list-style: none; margin: 0; padding: 0 1.25rem; font-size: .95rem; color: #555; }
.hfg-product-card p { padding: 0 1.25rem; }
.hfg-product-card__price { font-weight: 800; color: var(--hfg-waldgruen); font-size: 1.1rem; }
.hfg-product-card .hfg-btn { margin: .5rem 1.25rem 1.25rem; align-self: flex-start; }
.hfg-products__empty { background: var(--hfg-sand); border-radius: var(--hfg-radius); padding: 3rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 560px; margin: 0 auto; }
.hfg-products__empty .hfg-icon { width: 2.5rem; height: 2.5rem; color: var(--hfg-waldgruen); }
.hfg-products__empty p { margin: 0; opacity: .82; }

/* Benefits list (Baumfällung / Baumstumpffräsen) */
.hfg-benefits { padding-top: 3rem; padding-bottom: 3rem; }
.hfg-benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.hfg-benefits__list li { display: flex; align-items: center; gap: .6em; font-weight: 600; }
.hfg-benefits__list .hfg-icon { color: var(--hfg-naturgruen); }

/* Area / Einsatzgebiet */
.hfg-area { padding: 5rem 0; background: var(--hfg-sand); }
.hfg-area__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; max-width: var(--hfg-max); margin: 0 auto; padding: 0 1.25rem; }
.hfg-area__list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; }
.hfg-area__list li { display: flex; align-items: center; gap: .4em; font-weight: 700; background: var(--hfg-weiss); border: 1px solid rgba(31,51,39,.1); padding: .5rem .9rem; border-radius: 999px; color: var(--hfg-waldgruen); }
.hfg-area__list .hfg-icon { color: var(--hfg-holzbraun); width: 1em; height: 1em; }
.hfg-area__badge { aspect-ratio: 1; border-radius: 60px 20px 60px 20px; background: var(--hfg-waldgruen); padding: 2.5rem; color: var(--hfg-weiss); display: grid; place-items: center; position: relative; overflow: hidden; max-width: 420px; margin: 0 auto; }
.hfg-area__badge::before, .hfg-area__badge::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hfg-area__badge::before { width: 78%; height: 78%; }
.hfg-area__badge::after { width: 54%; height: 54%; }
.hfg-area__badge-inner { position: relative; z-index: 2; text-align: center; }
.hfg-area__badge-inner strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; }
.hfg-area__badge-inner span { display: block; margin-top: .75rem; color: rgba(255,255,255,.72); font-weight: 700; }
.hfg-area__map { max-width: 800px; margin: 2rem auto 0; padding: 0 1.25rem; }
.hfg-area__map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--hfg-radius); }
.hfg-area__map-placeholder { background: var(--hfg-weiss); border-radius: var(--hfg-radius); padding: 2.5rem 1.5rem; text-align: center; }
.hfg-area__cta { margin-top: 2rem; }

/* FAQ */
/* padding-top/bottom only: the shorthand form (padding: 4.5rem 0) was zeroing out the
   1.25rem side gutter that .hfg-faq also gets from the shared max-width/padding selector
   list above - invisible on desktop (content is capped at 780px and centered anyway) but
   it bled the FAQ list edge-to-edge on mobile, where that gutter is the only inset there is. */
.hfg-faq { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hfg-faq__list { max-width: 780px; margin: 0 auto; }
.hfg-faq__item { border-bottom: 1px solid rgba(31,51,39,.15); padding: 1.15rem 0; }
.hfg-faq__item summary { cursor: pointer; font-weight: 800; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.hfg-faq__item summary::-webkit-details-marker { display: none; }
.hfg-faq__chevron { transition: transform .2s ease; color: var(--hfg-holzbraun); }
.hfg-faq__item[open] .hfg-faq__chevron { transform: rotate(90deg); }
.hfg-faq__answer { padding-top: .75rem; opacity: .78; }

/* Referenzen */
.hfg-referenzen { padding-top: 3rem; padding-bottom: 3rem; text-align: center; }
.hfg-referenzen__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0 2rem; text-align: left; }
.hfg-referenz-card { border-radius: var(--hfg-radius); overflow: hidden; box-shadow: var(--hfg-shadow); background: var(--hfg-weiss); transition: transform .2s ease, box-shadow .2s ease; }
.hfg-referenz-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(31,51,39,.16); }
.hfg-referenz-card a { text-decoration: none; color: inherit; }
.hfg-referenz-card img, .hfg-referenz-card svg { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hfg-referenz-card h3, .hfg-referenz-card p { padding: 0 1rem; }
.hfg-referenz-card h3 { margin-top: .75rem; }
.hfg-referenz-card p:last-child { padding-bottom: 1rem; color: #666; }
.hfg-referenz__meta { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: .5rem 0 0; }
.hfg-referenz__meta li { display: flex; align-items: center; gap: .4em; }
.hfg-referenz__cover img { border-radius: var(--hfg-radius); margin: 1.5rem auto; max-width: var(--hfg-max); }

/* Landingpage list */
.hfg-landingpage-list { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hfg-landingpage-list__grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.hfg-landingpage-list__grid a { display: block; padding: .9rem 1.1rem; background: var(--hfg-sand); border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--hfg-waldgruen); }
.hfg-landingpage-list__grid a:hover { background: var(--hfg-naturgruen); color: var(--hfg-weiss); }

/* Contact info */
.hfg-contact-info { padding: 2rem 0; }
.hfg-contact-info__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; background: var(--hfg-sand); border-radius: var(--hfg-radius); padding: 2rem; }
.hfg-contact-info__actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }

/* Forms */
.hfg-form { padding: 4.5rem 1.25rem 6rem; background: var(--hfg-sand); color: var(--hfg-anthrazit); }
.hfg-form h2 { text-align: center; max-width: 720px; margin: 0 auto 1.5rem; color: var(--hfg-waldgruen); }
.hfg-form form { max-width: 720px; margin: 0 auto; background: var(--hfg-weiss); color: var(--hfg-anthrazit); border-radius: var(--hfg-radius); padding: 2.25rem; box-shadow: var(--hfg-shadow); border: 1px solid rgba(23,20,15,.08); display: flex; flex-direction: column; gap: 1.1rem; }
.hfg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hfg-form__field { display: flex; flex-direction: column; gap: .35rem; }
.hfg-form__field label { font-weight: 750; font-size: .95rem; }
.hfg-form__field input[type="text"], .hfg-form__field input[type="tel"], .hfg-form__field input[type="email"], .hfg-form__field select, .hfg-form__field textarea, .hfg-form__field input[type="file"] {
	padding: .7em .9em; border: 1px solid rgba(31,51,39,.25); border-radius: var(--hfg-radius-sm); background: #fbfcfa; min-height: 46px; transition: border-color .2s ease, box-shadow .2s ease;
}
.hfg-form__field input:focus, .hfg-form__field select:focus, .hfg-form__field textarea:focus { outline: none; border-color: var(--hfg-naturgruen); box-shadow: 0 0 0 3px rgba(63,107,70,.15); }
.hfg-form__field textarea { min-height: 100px; }
.hfg-form__field--checkbox label { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; }
.hfg-form__group { display: flex; flex-direction: column; gap: 1.1rem; border-left: 3px solid var(--hfg-sand); padding-left: 1rem; }
.hfg-form__interesse-fixed { background: var(--hfg-sand); padding: .6em 1em; border-radius: var(--hfg-radius-sm); }
.hfg-form__honeypot { position: absolute; left: -9999px; top: -9999px; }
.hfg-form__notice { padding: 1em 1.25em; border-radius: var(--hfg-radius-sm); margin-bottom: 1rem; font-weight: 600; max-width: 720px; margin-left: auto; margin-right: auto; }
.hfg-form__notice--success { background: #e4f1e6; color: var(--hfg-waldgruen); }
.hfg-form__notice--error { background: #fbeaea; color: #8a2323; }

/* Legal */
.hfg-legal h2 { margin-top: 2rem; }
.hfg-placeholder { background: #fff3cd; color: #7a5c00; padding: .1em .5em; border-radius: 4px; font-style: italic; }

/* Breadcrumbs */
.hfg-breadcrumbs { padding-top: 1.5rem; font-size: .9rem; }
.hfg-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; }
.hfg-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4em; opacity: .5; }
.hfg-breadcrumbs a { text-decoration: none; }

.hfg-page__header { padding-top: 1rem; padding-bottom: 1rem; }
.hfg-page { padding-top: 1rem; }
.hfg-page__content { padding-top: 1rem; padding-bottom: 2rem; }
.hfg-intro-text { max-width: 780px; margin: 2rem auto; padding: 0 1.25rem; }

/* Footer: same gradient-underline device as the header (brand consistency), a quiet forest
   watermark reusing the existing illustration system instead of a new asset, and more room
   to breathe than a template footer usually gets. */
.hfg-footer { position: relative; overflow: hidden; background: var(--hfg-forest-deep); color: #e7e7e2; padding: 5rem 0 0; }
.hfg-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--hfg-waldgruen), var(--hfg-holzbraun), var(--hfg-waldgruen)); }
.hfg-footer__mark { position: absolute; right: -4rem; bottom: -3rem; width: 480px; max-width: 60vw; opacity: .1; pointer-events: none; }
.hfg-footer__mark svg { display: block; width: 100%; height: auto; }
.hfg-footer__mark svg rect { display: none; }
.hfg-footer__mark svg path { fill: var(--hfg-weiss); }
.hfg-footer :is(h3) { color: var(--hfg-weiss); font-size: 1.05rem; }
.hfg-footer a { color: #cfd6cf; text-decoration: none; transition: color .15s ease, transform .15s ease; }
.hfg-footer a:hover { color: var(--hfg-weiss); transform: translateX(2px); }
.hfg-footer__col { position: relative; }
.hfg-footer__col--brand { max-width: 320px; }
.hfg-footer__logo { height: 56px; width: auto; margin-bottom: 1.25rem; border-radius: 8px; }
.hfg-footer__tagline { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.15rem; color: var(--hfg-weiss); margin: 0 0 .9rem; letter-spacing: -.01em; }
.hfg-footer__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.hfg-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.hfg-footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem; text-align: center; font-size: .85rem; color: #a9b3a8; }

/* Mobile CTA bar */
.hfg-mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; display: none; background: rgba(23,20,15,.92); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; z-index: 400; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.hfg-mobile-bar { grid-template-columns: repeat(3, 1fr); }
.hfg-mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0; text-decoration: none; color: var(--hfg-weiss); font-size: .75rem; font-weight: 700; border-radius: 12px; }
.hfg-mobile-bar__primary { background: var(--hfg-waldgruen); color: var(--hfg-weiss) !important; }

/* Cookie banner */
.hfg-cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 600; background: var(--hfg-weiss); border-radius: var(--hfg-radius); box-shadow: var(--hfg-shadow); border: 1px solid rgba(0,0,0,.1); }
.hfg-cookie-banner__inner { padding: 1.25rem 1.5rem; }
.hfg-cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.hfg-cookie-banner__settings { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,.08); }
.hfg-cookie-reopen { position: fixed; bottom: 1rem; left: 1rem; z-index: 550; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: var(--hfg-weiss); box-shadow: var(--hfg-shadow); cursor: pointer; }
.hfg-cookie-settings { display: flex; flex-direction: column; gap: .75rem; background: var(--hfg-sand); padding: 1.5rem; border-radius: var(--hfg-radius); max-width: 480px; }
.hfg-cookie-settings__actions { display: flex; gap: .75rem; margin-top: .5rem; }

/* Responsive */
@media (max-width: 900px) {
	.hfg-header__nav, .hfg-header__cta .hfg-btn { display: none; }
	.hfg-header__nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--hfg-weiss); padding: 1rem 1.25rem; box-shadow: var(--hfg-shadow); }
	.hfg-header__nav.is-open .hfg-nav { flex-direction: column; gap: 1rem; }
	.hfg-header__nav.is-open .hfg-nav .sub-menu { display: flex; position: static; box-shadow: none; background: transparent; padding-left: 1rem; }
	.hfg-header__toggle { display: block; }
	.hfg-section-head { grid-template-columns: 1fr; gap: 1.25rem; }
	.hfg-trust__inner { grid-template-columns: 1fr; }
	.hfg-trust__text { padding: 4rem 1.75rem; }
	.hfg-trust__media { min-height: 320px; }
	.hfg-highlight, .hfg-contact-info__grid { grid-template-columns: 1fr; }
	.hfg-highlight--reverse { direction: ltr; }
	.hfg-highlight__media { order: -1; }
	.hfg-area__grid { grid-template-columns: 1fr; }
	.hfg-area__badge { max-width: 320px; }
	.hfg-footer__inner { grid-template-columns: 1fr 1fr; }
	.hfg-hero-box { min-height: 600px; }
	.hfg-hero-box::after { background: linear-gradient(0deg, rgba(20,23,15,.92) 0%, rgba(20,23,15,.85) 45%, rgba(20,23,15,.1) 100%); }
	.hfg-hero-box__text { min-height: 600px; padding: 2rem 1.5rem 2.5rem; }
	.hfg-highlight--feature { min-height: 560px; }
	.hfg-highlight--feature::after { background: linear-gradient(0deg, rgba(20,23,15,.92) 0%, rgba(20,23,15,.8) 50%, rgba(20,23,15,.15) 100%); }
	.hfg-highlight--feature .hfg-highlight__text { min-height: 560px; max-width: none; padding: 2rem 1.5rem 2.5rem; }
	.hfg-mobile-bar { display: grid; }
	body { padding-bottom: 76px; }
	/* The cookie banner/reopen button were fixed at the same bottom offset as the mobile
	   CTA bar on phones, so they sat on top of the Anrufen button instead of above the bar. */
	.hfg-cookie-banner { bottom: 88px; }
	.hfg-cookie-reopen { bottom: 88px; }
}
@media (max-width: 560px) {
	.hfg-highlight__facts { grid-template-columns: 1fr; }
	.hfg-form__row { grid-template-columns: 1fr; }
	.hfg-footer__inner { grid-template-columns: 1fr; }
	.hfg-benefits__list { grid-template-columns: 1fr; }
	.hfg-banner__copy { padding: 2rem 1.5rem; }
	.hfg-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.hfg-gallery__item, .hfg-gallery__item:nth-child(1), .hfg-gallery__item:nth-child(2) { grid-column: auto; grid-row: auto; }
}
