/*
Theme Name: F-R Gartenbau
Description: Block-Theme für F-R Gartenbau GmbH, Garten- und Landschaftsbau in Kornwestheim. Tokens in theme.json, Komponenten in style.css.
Author: K
Version: 1.4.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fr-gartenbau
*/

/* ==================================================================
   0. Token-Aliase (gleiche Namen wie im HTML-Design)
   ================================================================== */
:root {
	--aurora-green: var(--wp--preset--color--green);
	--aurora-green-text: var(--wp--preset--color--green-text);
	--aurora-ink: var(--wp--preset--color--ink);
	--aurora-body: var(--wp--preset--color--body);
	--aurora-white: var(--wp--preset--color--white);
	--aurora-grey-bg: var(--wp--preset--color--grey-bg);
	--aurora-footer: var(--wp--preset--color--footer);
	--aurora-muted: var(--wp--preset--color--muted);

	--font-primary: var(--wp--preset--font-family--primary);
	--font-secondary: var(--wp--preset--font-family--secondary);

	--container-max: var(--wp--custom--container-max);
	--container-pad: var(--wp--custom--container-pad);
	--section-y: var(--wp--custom--section-y);
	--radius-pill: var(--wp--custom--radius-pill);
	--shadow-card: var(--wp--preset--shadow--card);
	--rule: var(--wp--custom--rule);

	--fr-header-h: var(--wp--custom--header-h);
	--fr-logo-h: var(--wp--custom--logo-h);
	--fr-adminbar: var(--wp-admin--admin-bar--height, 0px);
	--fr-on-dark: rgba(255, 255, 255, .82);
}

@media (max-width: 600px) {
	:root {
		/* Admin-Bar scrollt unter 600px mit, Header klebt dann bei 0 */
		--fr-adminbar: 0px;
		--fr-header-h: 76px;
		--fr-logo-h: 46px;
	}
}

/* ==================================================================
   1. Basis
   ================================================================== */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--fr-adminbar) + var(--fr-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

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

/* Keine Lücken zwischen Header, Inhalt, Footer und Vollbreite-Sektionen */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > .alignfull,
.wp-site-blocks main > .alignfull { margin-block: 0; }

img { height: auto; max-width: 100%; }
.wp-block-image img { display: block; }

::selection { background: var(--aurora-green); color: #fff; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--aurora-green);
	outline-offset: 3px;
}

.has-lead-font-size { line-height: 28px; }
.has-card-title-font-size { line-height: 28px; }
.has-meta-font-size { line-height: 1.5; }

/* ==================================================================
   2. Dunkle Sektionen (Ink, Footer, Cover/Hero)
   ================================================================== */
.has-ink-background-color,
.has-footer-background-color {
	color: var(--fr-on-dark);
}

.has-ink-background-color :is(h1, h2, h3, h4, h5, h6),
.has-footer-background-color :is(h1, h2, h3, h4, h5, h6),
.wp-block-cover :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.has-ink-background-color a:where(:not(.wp-element-button)),
.has-footer-background-color a:where(:not(.wp-element-button)) {
	color: #fff;
}

.has-ink-background-color a:where(:not(.wp-element-button)):hover,
.has-footer-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--aurora-green);
}

/* ==================================================================
   3. Komponenten
   ================================================================== */

/* Eyebrow: 52x3 Linie + Kleintext */
p.is-style-fr-eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-block-end: 0;
	font-family: var(--font-secondary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--aurora-green-text);
}

p.is-style-fr-eyebrow::before {
	content: "";
	flex: 0 0 var(--rule);
	height: 3px;
	background: var(--aurora-green);
}

.has-ink-background-color p.is-style-fr-eyebrow,
.has-footer-background-color p.is-style-fr-eyebrow,
.wp-block-cover p.is-style-fr-eyebrow {
	color: var(--aurora-green);
}

/* Headline mit grüner Linie darüber */
.wp-block-heading.is-style-fr-rule::before {
	content: "";
	display: block;
	width: var(--rule);
	height: 3px;
	margin-bottom: 20px;
	background: var(--aurora-green);
}

.wp-block-heading.is-style-fr-rule.has-text-align-center::before { margin-inline: auto; }

/* Button primär: Hover auf dunklem Grund = weiß */
.has-ink-background-color .wp-block-button:not(.is-style-fr-outline):not(.is-style-fr-textlink) .wp-block-button__link:hover,
.wp-block-cover .wp-block-button:not(.is-style-fr-outline):not(.is-style-fr-textlink) .wp-block-button__link:hover {
	background: #fff;
	color: var(--aurora-ink);
}

/* Button sekundär: 2px Rahmen, transparent */
.wp-block-button.is-style-fr-outline .wp-block-button__link {
	background: transparent;
	color: var(--aurora-ink);
	border: 2px solid currentColor;
	padding: 16px 34px;
}

.wp-block-button.is-style-fr-outline .wp-block-button__link:hover,
.wp-block-button.is-style-fr-outline .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--aurora-ink);
	border-color: var(--aurora-green);
}

.has-ink-background-color .wp-block-button.is-style-fr-outline .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-fr-outline .wp-block-button__link {
	color: #fff;
	border-color: var(--fr-on-dark);
}

.has-ink-background-color .wp-block-button.is-style-fr-outline .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-fr-outline .wp-block-button__link:hover {
	color: #fff;
	border-color: var(--aurora-green);
}

/* Textlink-CTA: grüner Text + 2px Unterlinie, Text endet auf "→" */
.wp-block-button.is-style-fr-textlink .wp-block-button__link {
	background: none;
	color: var(--aurora-green-text);
	border-radius: 0;
	border-bottom: 2px solid var(--aurora-green);
	padding: 0 0 6px;
}

.wp-block-button.is-style-fr-textlink .wp-block-button__link:hover,
.wp-block-button.is-style-fr-textlink .wp-block-button__link:focus-visible {
	background: none;
	color: var(--aurora-ink);
}

.has-ink-background-color .wp-block-button.is-style-fr-textlink .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-fr-textlink .wp-block-button__link {
	color: var(--aurora-green);
}

.has-ink-background-color .wp-block-button.is-style-fr-textlink .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-fr-textlink .wp-block-button__link:hover {
	color: #fff;
}

/* Karte */
.wp-block-group.is-style-fr-card {
	background: #fff;
	color: var(--aurora-body);
	padding: 36px;
	box-shadow: var(--shadow-card);
	border-top: 3px solid var(--aurora-green);
}

.wp-block-group.is-style-fr-card :is(h2, h3, h4) { color: var(--aurora-ink); }

/* Split-Sektion: 2 Spalten, bricht automatisch um */
.wp-block-group.is-style-fr-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: clamp(36px, 4vw, 72px);
	align-items: center;
}

.wp-block-group.is-style-fr-split > * {
	margin-block: 0;
	max-width: none;
	min-width: 0;
}

/* Liste ohne Aufzählungszeichen */
ul.is-style-fr-plain {
	list-style: none;
	padding-left: 0;
}

/* ==================================================================
   4. Header
   ================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--fr-adminbar);
	z-index: 1000;
}

.fr-header {
	background: #fff;
	box-shadow: var(--wp--preset--shadow--header);
}

.fr-header__inner {
	min-height: var(--fr-header-h);
	gap: 24px;
}

.fr-header .wp-block-site-logo {
	flex-shrink: 0;
	line-height: 0;
}

.fr-header .wp-block-site-logo img {
	width: auto;
	height: var(--fr-logo-h);
}

.fr-header__right {
	gap: 34px;
}

/* Navigation Desktop */
.fr-header .fr-nav .wp-block-navigation__container {
	gap: 34px;
}

.fr-header .fr-nav .wp-block-navigation-item__content {
	padding-block: 8px;
}

.fr-header .fr-nav .current-menu-item > .wp-block-navigation-item__content,
.fr-header .fr-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--aurora-green-text);
}

/* Telefon */
.fr-header__phone {
	margin: 0;
	font-family: var(--font-secondary);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.fr-header__phone a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--aurora-ink);
	text-decoration: none;
}

.fr-header__phone a:hover { color: var(--aurora-green-text); }

.fr-header__phone a::before {
	content: "";
	display: none;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fr-header__cta { margin: 0; }
.fr-header__cta .wp-block-button__link { white-space: nowrap; }

/* ---------- Burger ab 1080px abwärts ---------- */
@media (max-width: 1080px) {
	.fr-header__right { gap: 16px; }
	.fr-header .fr-nav { order: 3; }

	.fr-header .fr-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.fr-header .fr-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.fr-header .fr-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		margin-right: -10px;
		color: var(--aurora-ink);
	}

	.fr-header .fr-nav .wp-block-navigation__responsive-container-open svg,
	.fr-header .fr-nav .wp-block-navigation__responsive-container-close svg {
		width: 28px;
		height: 28px;
	}

	/* Panel von oben, unter dem Header */
	.fr-header .fr-nav .wp-block-navigation__responsive-container.is-menu-open {
		top: calc(var(--fr-adminbar) + var(--fr-header-h));
		bottom: auto;
		padding: 0;
		overflow: visible;
		background: #fff;
		color: var(--aurora-ink);
		border-top: 1px solid var(--aurora-grey-bg);
		box-shadow: var(--shadow-card);
		animation: fr-panel-fade .18s ease-out;
	}

	.fr-header .fr-nav .is-menu-open .wp-block-navigation__responsive-close,
	.fr-header .fr-nav .is-menu-open .wp-block-navigation__responsive-dialog {
		position: static;
		max-width: none;
		margin: 0;
	}

	/* X liegt exakt über dem Burger */
	.fr-header .fr-nav .is-menu-open .wp-block-navigation__responsive-container-close {
		top: calc(var(--fr-header-h) / -2 - 23px);
		right: calc(var(--wp--style--root--padding-right) - 10px);
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		color: var(--aurora-ink);
	}

	.fr-header .fr-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		max-height: calc(100dvh - var(--fr-adminbar) - var(--fr-header-h));
		overflow-y: auto;
		padding: 8px var(--wp--style--root--padding-right) 32px var(--wp--style--root--padding-left);
		animation: fr-panel-slide .22s ease-out;
	}

	.fr-header .fr-nav .is-menu-open .wp-block-navigation__container {
		gap: 0;
		width: 100%;
		align-items: stretch;
	}

	.fr-header .fr-nav .is-menu-open .wp-block-navigation-item {
		width: 100%;
		align-items: stretch;
		border-bottom: 1px solid var(--aurora-grey-bg);
	}

	.fr-header .fr-nav .is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 18px 0;
		font-size: 18px;
		font-weight: 500;
	}

	/* Seite hinter dem Panel abdunkeln (Header bleibt hell) */
	html.has-modal-open body::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(21, 29, 40, .45);
		animation: fr-panel-fade .18s ease-out;
	}
}

@media (max-width: 640px) {
	/* Telefon nur als Icon, Nummer bleibt für Screenreader im Link */
	.fr-header__phone a {
		width: 44px;
		height: 44px;
		justify-content: center;
		gap: 0;
		font-size: 0;
	}

	.fr-header__phone a::before { display: block; }

	.fr-header__right { gap: 8px; }

	.fr-header__cta .wp-block-button__link {
		padding: 13px 20px;
	}
}

@media (max-width: 380px) {
	:root { --fr-logo-h: 40px; }
	.fr-header__inner { gap: 12px; }
	.fr-header__right { gap: 4px; }
	.fr-header__cta .wp-block-button__link { padding: 12px 16px; }
}

@media (max-width: 600px) {
	.admin-bar.has-modal-open .fr-header .is-menu-open .wp-block-navigation__responsive-dialog,
	.has-modal-open .admin-bar .fr-header .is-menu-open .wp-block-navigation__responsive-dialog {
		margin-top: 0;
	}
}

@keyframes fr-panel-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fr-panel-slide {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.fr-header .fr-nav .wp-block-navigation__responsive-container.is-menu-open,
	.fr-header .fr-nav .is-menu-open .wp-block-navigation__responsive-container-content,
	html.has-modal-open body::after {
		animation: none;
	}
}

/* ==================================================================
   5. Footer
   ================================================================== */
.fr-footer {
	color: rgba(255, 255, 255, .62);
	font-size: 15px;
	line-height: 26px;
}

.fr-footer p { margin: 0; }

.fr-footer .fr-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 48px 36px;
}

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

@media (max-width: 560px) {
	.fr-footer .fr-footer__cols { grid-template-columns: 1fr; gap: 40px; }
}

.fr-footer .fr-footer__cols > * {
	margin-block: 0;
	min-width: 0;
}

.fr-footer__brand {
	margin-bottom: 20px !important;
	font-family: var(--font-secondary);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
}

.fr-footer__title {
	margin-bottom: 16px !important;
	font-family: var(--font-secondary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--aurora-green);
}

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

.fr-footer ul.fr-footer__links li + li { margin-top: 10px; }

.fr-footer a:where(:not(.wp-element-button)) {
	color: var(--fr-on-dark);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.fr-footer a:where(:not(.wp-element-button)):hover {
	color: var(--aurora-green);
}

.fr-footer__address { color: var(--fr-on-dark); margin-top: 10px !important; }

.fr-footer .fr-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 14px;
	color: rgba(255, 255, 255, .5);
}

/* ==================================================================
   6. Seiten mit Titel (Impressum, Datenschutz)
   ================================================================== */
.fr-legal .wp-block-post-title { margin-bottom: 36px; }
.fr-legal .wp-block-post-content :is(h2) { font-size: 24px; margin-top: 48px; }
.fr-legal .wp-block-post-content :is(h3) { margin-top: 32px; }

/* ==================================================================
   7. Sektionen (Startseite und Unterseiten)
   ================================================================== */
.has-subsection-font-size { line-height: 1.2; }

.wp-block-buttons.is-layout-flex { gap: 16px 20px; }

/* Raster für Karten, Kacheln, Kennzahlen */
.wp-block-group.fr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--fr-min, 260px)), 1fr));
	gap: var(--fr-gap, 24px);
}

.wp-block-group.fr-grid > * {
	margin-block: 0;
	min-width: 0;
}

.fr-grid--facts { --fr-min: 280px; --fr-gap: 36px; }
.fr-grid--300 { --fr-min: 300px; }
.fr-grid--tiles { --fr-min: 300px; --fr-gap: 20px; }

/* Split-Varianten */
.wp-block-group.is-style-fr-split.fr-split--320 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.wp-block-group.is-style-fr-split.fr-split--stretch { align-items: stretch; }

/* Bild füllt seine Fläche (Split, Kontakt) */
.wp-block-image.fr-img-fill {
	position: relative;
	margin: 0;
	min-height: var(--fr-img-h, 480px);
	align-self: stretch;
	overflow: hidden;
}

.wp-block-image.fr-img-fill img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fr-img-fill--520 { --fr-img-h: 520px; }

@media (max-width: 600px) {
	.wp-block-image.fr-img-fill { min-height: 300px; }
}

/* Im Editor Bilder normal zeigen */
.editor-styles-wrapper .wp-block-image.fr-img-fill { min-height: 0; }
.editor-styles-wrapper .wp-block-image.fr-img-fill img,
.editor-styles-wrapper .fr-mosaic img { position: static; height: auto; }

/* Fließtext-Varianten */
.fr-text-soft { color: rgba(255, 255, 255, .62); }

.fr-kicker {
	font-family: var(--font-secondary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--aurora-green-text);
}

.has-ink-background-color .fr-kicker { color: var(--aurora-green); }

/* ---------- Hero ---------- */
.wp-block-cover.fr-hero {
	min-height: min(760px, 88vh);
	padding: clamp(96px, 13vh, 180px) var(--wp--style--root--padding-right) clamp(96px, 13vh, 180px) var(--wp--style--root--padding-left);
	align-items: center;
}

.wp-block-cover.fr-hero--sub { min-height: min(620px, 74vh); padding-block: clamp(80px, 11vh, 150px); }

.fr-hero .fr-hero__lead {
	max-width: 640px;
	color: var(--fr-on-dark);
}

.fr-hero .wp-block-button:not(.is-style-fr-outline):not(.is-style-fr-textlink) .wp-block-button__link { padding: 20px 40px; }
.fr-hero .wp-block-button.is-style-fr-outline .wp-block-button__link { padding: 18px 38px; }

@media (max-width: 781px) {
	/* Ganzflächig dunkel, damit weißer Text auf Mobil lesbar bleibt */
	.fr-hero .wp-block-cover__background { background: rgba(21, 29, 40, .84) !important; }
}

/* ---------- Kennzahlen ---------- */
.fr-facts { border-bottom: 1px solid var(--aurora-grey-bg); }

.fr-fact__num {
	margin: 0;
	font-family: var(--font-secondary);
	font-size: clamp(28px, 3vw, 40px);
	font-style: italic;
	font-weight: 700;
	line-height: 1.1;
	color: var(--aurora-green-text);
}

.fr-fact__label {
	font-size: 16px;
	font-style: italic;
	line-height: 1.5;
	color: var(--aurora-ink);
}

.wp-block-group .fr-fact__label { margin-block-start: 4px; }

/* ---------- Leistungs-Kacheln ---------- */
p.fr-tile { margin: 0; }

.fr-tile a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	padding: 24px 28px;
	border: 1px solid var(--aurora-grey-bg);
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--aurora-ink);
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.fr-tile a:hover,
.fr-tile a:focus-visible {
	border-color: var(--aurora-green);
	background: var(--aurora-grey-bg);
	color: var(--aurora-ink);
}

.fr-tile a::before {
	content: "";
	flex: 0 0 34px;
	height: 34px;
	background: var(--aurora-green);
	-webkit-mask: var(--fr-icon) center / contain no-repeat;
	mask: var(--fr-icon) center / contain no-repeat;
}

.fr-icon-pflaster { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z M3 9.3h18 M3 14.7h18 M9 4v5.3 M15 9.3v5.4 M9 14.7V20'/%3E%3C/svg%3E"); }
.fr-icon-randstein { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 19h20 M5 19v-5h6v5 M13 19V9h6v10 M5 14h6'/%3E%3C/svg%3E"); }
.fr-icon-zaun { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V6l2.5-3L10 6v15 M14 21V6l2.5-3L19 6v15 M2 10h20 M2 15h20'/%3E%3C/svg%3E"); }
.fr-icon-gartenpflege { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c0-8 3.6-13 9-13 0 8-3.6 13-9 13z M12 21C7 21 3 16.5 3 9c3 0 5.5 1.6 7 4.4'/%3E%3C/svg%3E"); }
.fr-icon-pflanzen { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-7 M8.5 21h7 M12 14a5 5 0 0 1-3.5-8.6A4.2 4.2 0 0 1 12 3a4.2 4.2 0 0 1 3.5 2.4A5 5 0 0 1 12 14z'/%3E%3C/svg%3E"); }
.fr-icon-abbruch { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2.5l7 7-2.8 2.8-7-7z M11 6.3L3 14.3V21h6.7l8-8'/%3E%3C/svg%3E"); }
.fr-icon-rasen { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21h20 M7 21c0-4-1.2-6.4-3.4-8.4 3.2.2 5.4 3.4 5.4 8.4 M12 21c0-6.4 1-9.6 3.2-11.8-1.2 4.2-.4 8.4-.4 11.8 M17.5 21c0-4 1.2-6 3.4-7.6-3 .2-5 3-5 7.6'/%3E%3C/svg%3E"); }
.fr-icon-mauern { --fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3z M3 12h18 M10 5v7 M16 12v7'/%3E%3C/svg%3E"); }

/* ---------- Projekt-Mosaik ---------- */
.wp-block-group.fr-mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, 220px);
	gap: 16px;
}

.wp-block-group.fr-mosaic > * { margin: 0; min-width: 0; }
.fr-mosaic > .wp-block-image:first-child { grid-column: span 2; }
.fr-mosaic .wp-block-image { position: relative; overflow: hidden; }

.fr-mosaic .wp-block-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 600px) {
	.wp-block-group.fr-mosaic { grid-template-rows: 200px 150px; gap: 12px; }
}

/* ---------- Bewertungen ---------- */
.wp-block-group.fr-review {
	display: flex;
	flex-direction: column;
	padding: 36px;
	border: 1px solid var(--aurora-grey-bg);
}

.wp-block-group.fr-review > * { margin-block: 0; }
.wp-block-group.fr-review > * + * { margin-block-start: 16px; }

p.fr-review__stars {
	font-size: 0;
	line-height: 1;
}

p.fr-review__stars::before {
	content: "\2605\2605\2605\2605\2605";
	font-size: 18px;
	letter-spacing: 3px;
	color: var(--aurora-green);
}

.fr-review__text {
	font-size: 16px;
	line-height: 28px;
	color: var(--aurora-ink);
}

.wp-block-group.fr-review > .fr-review__author {
	margin-block-start: auto;
	padding-top: 16px;
	font-family: var(--font-secondary);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--aurora-muted);
}

/* ---------- Partner ---------- */
.wp-block-image.fr-partner-logo { margin: 0; justify-self: end; }
.wp-block-image.fr-partner-logo img { width: 388px; max-width: 100%; height: auto; }

@media (max-width: 781px) {
	.wp-block-image.fr-partner-logo { justify-self: start; }
}

/* ---------- Kontaktblock ---------- */
.wp-block-group.fr-form-card {
	background: #fff;
	color: var(--aurora-body);
	padding: clamp(24px, 3vw, 48px);
	box-shadow: var(--shadow-card);
}

.has-ink-background-color .wp-block-group.fr-form-card a:where(:not(.wp-element-button)) {
	color: var(--aurora-green-text);
}

.has-ink-background-color .wp-block-group.fr-form-card a:where(:not(.wp-element-button)):hover {
	color: var(--aurora-ink);
}

.wp-block-group.fr-form-card h3 {
	font-size: 24px;
	line-height: 32px;
	color: var(--aurora-ink);
}

/* ==================================================================
   8. Unterseiten
   ================================================================== */

/* Grüne Linie als Trenner-Block */
hr.wp-block-separator.fr-line.fr-line {
	width: var(--rule);
	max-width: var(--rule);
	height: 3px;
	margin-left: 0 !important;
	margin-right: auto !important;
	border: 0;
	background: var(--aurora-green);
	opacity: 1;
}

/* Farbige Textstellen ohne gelben Browser-Hintergrund */
mark.has-inline-color { background-color: transparent; }

/* Hero der Unterseiten */
.wp-block-cover.fr-hero--sub :is(h1, .fr-h1-sub),
h1.fr-h1-sub {
	font-size: clamp(30px, 4.4vw, 58px);
	line-height: 1.08;
	text-wrap: balance;
}

.fr-hero--sub .fr-hero__lead { max-width: 760px; }

.fr-hero .fr-hero__subline {
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
	color: var(--aurora-green);
}

/* Häufig gesucht */
.fr-kicker.fr-kicker--muted { color: var(--aurora-muted); }

ul.fr-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.fr-pills li { margin: 0; }

ul.fr-pills a {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--aurora-grey-bg);
	border-radius: var(--radius-pill);
	font-size: 13px;
	line-height: 1.4;
	color: var(--aurora-body);
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

ul.fr-pills a:hover,
ul.fr-pills a:focus-visible {
	border-color: var(--aurora-green);
	background: var(--aurora-grey-bg);
	color: var(--aurora-ink);
}

/* Partner: kleines Logo, nummerierte Karten, 4 Bilder */
.wp-block-image.fr-partner-logo.fr-partner-logo--small { justify-self: start; }
.wp-block-image.fr-partner-logo.fr-partner-logo--small img { width: 220px; }

.wp-block-group.fr-numcard {
	background: #fff;
	padding: 32px;
	border-top: 3px solid var(--aurora-green);
}

.fr-numcard .fr-numcard__title {
	margin: 0;
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
	color: var(--aurora-ink);
}

.wp-block-group.fr-quad {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wp-block-group.fr-quad > * { margin: 0; min-width: 0; }

.fr-quad .wp-block-image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.fr-quad .wp-block-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 600px) {
	.wp-block-group.fr-quad { gap: 12px; }
}

.editor-styles-wrapper .fr-quad img { position: static; height: auto; }

/* Über uns */
.fr-grid--cols {
	--fr-min: 340px;
	--fr-gap: clamp(36px, 4vw, 72px);
}

.wp-block-group.fr-grid > .fr-col-center { align-self: center; }

.wp-block-group.fr-stats {
	--fr-min: 140px;
	padding-top: 16px;
	border-top: 1px solid var(--aurora-grey-bg);
}

.fr-stats .fr-stat__num {
	margin: 0;
	font-family: var(--font-secondary);
	font-size: 34px;
	font-style: italic;
	font-weight: 700;
	line-height: 44px;
	color: var(--aurora-green-text);
}

.fr-stats .fr-stat__label {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--aurora-muted);
}

.wp-block-group.is-style-fr-card.fr-card--plain { border-top: 0; }

/* ==================================================================
   9. Projektseite (single-projekt)
   ================================================================== */

.fr-projekt .wp-block-post-title {
	font-family: var(--font-secondary);
	font-weight: 700;
	color: var(--aurora-ink);
	text-wrap: balance;
}

.fr-projekt .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fr-projekt .wp-block-post-content p {
	font-size: 18px;
	line-height: 30px;
	color: var(--aurora-body);
	text-wrap: pretty;
}

.fr-projekt .wp-block-post-content > p + p { margin-top: 20px; }

.fr-projekt .wp-block-post-content > :is(ul, ol) {
	font-size: 18px;
	line-height: 30px;
	color: var(--aurora-body);
}

.fr-projekt__cta { align-items: center; }

@media (max-width: 600px) {
	.fr-projekt .wp-block-post-content p,
	.fr-projekt .wp-block-post-content > :is(ul, ol) {
		font-size: 17px;
		line-height: 28px;
	}

	.fr-projekt__cta .wp-block-button { width: 100%; }
	.fr-projekt__cta .wp-block-button__link { display: block; text-align: center; }
}

/* Projektseite: Bilder und Text */
.fr-projekt .wp-block-post-content > :first-child { margin-top: 0; }

/* Hero H1: logo + "Gartenbau GmbH" in one line on mobile */
@media (max-width: 600px) {
  h1.wp-block-heading .fr-title {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    font-size: min(1em, 7.5vw) !important;
  }
  h1.wp-block-heading .fr-title .fr-mark {
    width: 2.6em !important;
    flex: 0 0 auto !important;
  }
}
