/*
 * Sorgenfreiheit GmbH – design system v2 (child theme of Kadence)
 *
 * Palette: white base, light fresh greens for surfaces, "Blattgrün" for buttons, links and icons,
 * the logo green for hover and small emphasis, and a fresh "Maigrün" as decorative accent (lines, dashes, markers).
 * Type: Fira Sans (Erik Spiekermann / Carrois, Berlin), SIL OFL 1.1 (assets/fonts/OFL-Fira-Sans.txt), self-hosted.
 * All text/background pairs meet WCAG 2.2 AA.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-400-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fira-sans-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fira-sans-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ----------------------------------------------------------------- tokens */
:root {
	--sfg-white: #ffffff;
	--sfg-green: #2f7d4a;        /* Blattgrün: links, icons, secondary buttons (5,0:1 on white) */
	--sfg-green-dark: #1b5232;   /* logo green: hover and small emphasis only */
	--sfg-lind: #eef6ec;         /* Lindgrün: surfaces */
	--sfg-lind-2: #dcecd6;       /* stronger surface / hover */
	--sfg-paper: #f6f9f5;        /* quiet alternate section */
	--sfg-green-hover: #256a3d;  /* primary button hover (white text 6,6:1) */
	--sfg-accent: #7dc243;       /* Maigrün: decorative accent only, never text on white */
	--sfg-accent-soft: #e6f4dc;
	--sfg-text: #1e2622;
	--sfg-muted: #56625b;
	--sfg-line: #dce6dc;
	--sfg-font: "Fira Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--sfg-container: 1200px;
	--sfg-measure: 760px;
	--sfg-gutter: clamp(16px, 4vw, 32px);
	--sfg-section: clamp(56px, 7vw, 100px);
	--sfg-radius: 14px;
	--sfg-radius-sm: 8px;
	--sfg-shadow: 0 12px 32px rgb(30 38 34 / 9%);
	--sfg-header-h: 76px;
	--sfg-ease: cubic-bezier(.2, .7, .2, 1);

	/* Kadence palette mapped to the brand, so blocks and Kadence parts match */
	--global-palette1: var(--sfg-green);
	--global-palette2: var(--sfg-green-dark);
	--global-palette3: var(--sfg-text);
	--global-palette4: var(--sfg-text);
	--global-palette5: var(--sfg-muted);
	--global-palette6: #8c978f;
	--global-palette7: var(--sfg-lind);
	--global-palette8: var(--sfg-paper);
	--global-palette9: var(--sfg-white);
	--global-body-font-family: var(--sfg-font);
	--global-heading-font-family: var(--sfg-font);
	--global-fallback-font: var(--sfg-font);
}

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--sfg-header-h) + 16px); }
body.sfg {
	margin: 0;
	background: var(--sfg-white);
	color: var(--sfg-text);
	font-family: var(--sfg-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
@media (min-width: 900px) { body.sfg { font-size: 1.125rem; } }
.sfg h1, .sfg h2, .sfg h3, .sfg h4 { font-family: var(--sfg-font); color: var(--sfg-text); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; hyphens: manual; }
.sfg h1 { font-size: clamp(2.15rem, 1.45rem + 2.7vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.sfg h2 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.45rem); font-weight: 600; letter-spacing: -0.015em; }
.sfg h3 { font-size: clamp(1.15rem, 1.06rem + .35vw, 1.3rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.sfg p { margin: 0 0 1em; text-wrap: pretty; }
.sfg strong { font-weight: 600; }
.sfg a { color: var(--sfg-green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sfg a:hover { color: var(--sfg-green-dark); text-decoration-thickness: 2px; }
.sfg :focus-visible { outline: 3px solid var(--sfg-green); outline-offset: 2px; border-radius: 3px; }
.sfg ::selection { background: var(--sfg-accent-soft); }
.sfg img { max-width: 100%; height: auto; }
.sfg-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.sfg-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--sfg-green); color: var(--sfg-white) !important; border-radius: var(--sfg-radius-sm); font-weight: 600; text-decoration: none; }
.sfg-skip:focus { top: 12px; }
#inner-wrap { display: block; }
.sfg .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
html.sfg-menu-open { overflow: hidden; }
@media (min-width: 1100px) { html.sfg-menu-open { overflow: auto; } }

/* ----------------------------------------------------------------- layout */
.sfg-container { width: 100%; max-width: calc(var(--sfg-container) + 2 * var(--sfg-gutter)); margin-inline: auto; padding-inline: var(--sfg-gutter); box-sizing: border-box; }
.sfg-content > :not(.alignfull):not(.alignwide):not(.sfg-section) { max-width: calc(var(--sfg-measure) + 2 * var(--sfg-gutter)); margin-inline: auto; padding-inline: var(--sfg-gutter); box-sizing: border-box; }
.sfg-content > .alignwide { max-width: calc(var(--sfg-container) + 2 * var(--sfg-gutter)); margin-inline: auto; padding-inline: var(--sfg-gutter); }
.sfg-content--text { padding-block: 8px var(--sfg-section); }
.sfg-content--text h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.sfg-content--text h3 { margin-top: 1.4em; }
.sfg-content .wp-block-group { box-sizing: border-box; }
.sfg-section { padding-block: var(--sfg-section); margin: 0; }
.sfg-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.sfg-section--cream { background: var(--sfg-paper); }
.sfg-section--tint, .sfg-section--green { background: var(--sfg-lind); }
.sfg-section:not([class*="sfg-section--"]) + .sfg-section:not([class*="sfg-section--"]) { padding-top: 0; }
.sfg-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 .8em !important; font-size: .975rem; font-weight: 600; color: var(--sfg-green); }
.sfg-eyebrow::before { content: ""; width: 18px; height: 6px; border-radius: 2px; background: var(--sfg-accent); }
.sfg-lead { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.28rem); color: var(--sfg-muted); max-width: 60ch; line-height: 1.55; }
.sfg-section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sfg-section__head--center { margin-inline: auto; text-align: center; }
.sfg-section__head--center .sfg-eyebrow { justify-content: center; }
.sfg-section__head--center .sfg-lead { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.sfg-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sfg-btn, .sfg .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 24px;
	border-radius: var(--sfg-radius-sm); border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--sfg-font);
	text-decoration: none !important; cursor: pointer; box-sizing: border-box; white-space: nowrap;
	transition: background-color .2s var(--sfg-ease), color .2s var(--sfg-ease), border-color .2s var(--sfg-ease);
}
.sfg-btn .sfg-icon { width: 1.15em; height: 1.15em; }
.sfg-btn--primary, .sfg .wp-block-button__link { background: var(--sfg-green); color: var(--sfg-white) !important; }
.sfg-btn--primary:hover, .sfg .wp-block-button__link:hover { background: var(--sfg-green-hover); color: var(--sfg-white) !important; }
.sfg-btn--secondary { background: var(--sfg-white); color: var(--sfg-green) !important; border-color: var(--sfg-green); }
.sfg-btn--secondary:hover { background: var(--sfg-lind); color: var(--sfg-green-dark) !important; }
.sfg-btn--ghost { background: transparent; color: var(--sfg-green) !important; border-color: var(--sfg-line); }
.sfg-btn--ghost:hover { border-color: var(--sfg-green); background: var(--sfg-white); }
.sfg-btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }

/* ----------------------------------------------------------------- topbar */
.sfg-topbar { background: var(--sfg-lind); color: var(--sfg-muted); font-size: .875rem; display: none; border-bottom: 1px solid var(--sfg-line); }
.sfg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.sfg-topbar__claim { margin: 0 !important; }
.sfg-topbar__meta { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.sfg-topbar__meta li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sfg-topbar__meta a { color: var(--sfg-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sfg-topbar__meta a:hover { color: var(--sfg-green); }
.sfg-topbar__figure strong { color: var(--sfg-text); }
.sfg-topbar .sfg-icon { width: 16px; height: 16px; color: var(--sfg-green); }
.sfg-lang span[aria-current] { font-weight: 600; color: var(--sfg-text); }
.sfg-lang a { padding: 0 2px; }
@media (min-width: 1100px) { .sfg-topbar { display: block; } }

/* ----------------------------------------------------------------- header */
.sfg-header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / 97%); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--sfg-line); transition: box-shadow .25s var(--sfg-ease); }
.admin-bar .sfg-header { top: var(--wp-admin--admin-bar--height, 32px); }
.sfg-header.is-scrolled { box-shadow: 0 6px 24px rgb(30 38 34 / 7%); }
.sfg-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--sfg-header-h); }
.sfg-logo { display: flex; align-items: center; flex: none; margin-right: auto; }
.sfg .sfg-logo__img { height: 50px; width: auto; max-width: none; display: block; transition: height .25s var(--sfg-ease); }
.sfg .sfg-header.is-scrolled .sfg-logo__img { height: 42px; }
@media (max-width: 639px) { .sfg .sfg-logo__img { height: 40px; } }
.sfg-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.sfg-header__phone { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--sfg-text) !important; text-decoration: none; white-space: nowrap; }
.sfg-header__phone .sfg-icon { color: var(--sfg-green); width: 20px; height: 20px; }
.sfg-header__cta { display: none !important; }
@media (min-width: 640px) { .sfg-header__cta { display: inline-flex !important; } }
@media (min-width: 1280px) { .sfg-header__phone { display: inline-flex; } }

/* Burger */
.sfg-burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius-sm); background: var(--sfg-white); color: var(--sfg-text); cursor: pointer; padding: 0; }
.sfg-burger .sfg-icon { width: 24px; height: 24px; }
.sfg-burger__close, .sfg-burger[aria-expanded="true"] .sfg-burger__open { display: none; }
.sfg-burger[aria-expanded="true"] .sfg-burger__close { display: block; }

/* Desktop navigation */
.sfg-nav { display: none; }
.sfg-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sfg-nav__item { position: static; }
.sfg-nav__link, .sfg-nav__toggle {
	display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--sfg-radius-sm);
	background: transparent; color: var(--sfg-text) !important; font: 500 1.0625rem/1 var(--sfg-font); text-decoration: none; cursor: pointer;
}
.sfg-nav__link:hover, .sfg-nav__toggle:hover, .sfg-nav__toggle[aria-expanded="true"] { background: var(--sfg-lind); color: var(--sfg-text) !important; }
.sfg-nav__item.is-current > .sfg-nav__link, .sfg-nav__item.is-current > .sfg-nav__toggle { box-shadow: inset 0 -3px 0 var(--sfg-accent); border-radius: 0; }
.sfg-nav__chev { width: 16px; height: 16px; transition: transform .2s var(--sfg-ease); }
.sfg-nav__toggle[aria-expanded="true"] .sfg-nav__chev { transform: rotate(180deg); }
@media (min-width: 1100px) {
	.sfg-nav { display: block; }
	.sfg-burger { display: none; }
	.sfg-nav__panel {
		position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: min(calc(100vw - 2 * var(--sfg-gutter)), var(--sfg-container));
		background: var(--sfg-white); border: 1px solid var(--sfg-line); border-top: 3px solid var(--sfg-accent); border-radius: 0 0 var(--sfg-radius) var(--sfg-radius);
		box-shadow: var(--sfg-shadow); padding: 28px; box-sizing: border-box;
	}
	.sfg-nav__item:not(:has(.sfg-mega)) .sfg-nav__panel { width: 340px; left: auto; transform: none; margin-left: -40px; }
}
.sfg-mega { display: grid; gap: 28px; }
.sfg-mega__cols { display: grid; gap: 24px; }
@media (min-width: 1100px) {
	.sfg-mega__cols { grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
	.sfg-mega__col--umzug ul { grid-template-columns: 1fr 1fr; column-gap: 8px; }
}
.sfg-mega__heading { margin: 0 0 10px !important; font-size: .9375rem; font-weight: 600; color: var(--sfg-green); }
.sfg-mega ul, .sfg-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sfg-mega li a, .sfg-panel-list a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: var(--sfg-radius-sm); color: var(--sfg-text) !important; text-decoration: none; }
.sfg-mega li a:hover, .sfg-panel-list a:hover { background: var(--sfg-lind); }
.sfg-mega li .sfg-icon, .sfg-panel-list .sfg-icon { width: 22px; height: 22px; color: var(--sfg-green); margin-top: 1px; }
.sfg-mega li strong { display: block; font-weight: 600; line-height: 1.3; }
.sfg-mega li small { display: block; color: var(--sfg-muted); font-size: .875rem; line-height: 1.4; margin-top: 2px; }
.sfg-mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; }
.sfg-mega__all .sfg-icon { display: none; }

/* Mobile navigation */
.sfg-mobile-nav { border-top: 1px solid var(--sfg-line); background: var(--sfg-white); max-height: calc(100dvh - var(--sfg-header-h)); overflow-y: auto; overscroll-behavior: contain; }
.sfg-mobile-nav nav { padding: 8px var(--sfg-gutter); }
.sfg-mobile-nav .sfg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.sfg-mobile-nav .sfg-nav__item { border-bottom: 1px solid var(--sfg-line); }
.sfg-mobile-nav .sfg-nav__link, .sfg-mobile-nav .sfg-nav__toggle { width: 100%; justify-content: space-between; height: 56px; padding: 0 4px; font-size: 1.125rem; border-radius: 0; }
.sfg-mobile-nav .sfg-nav__panel { padding: 0 0 16px; }
.sfg-mobile-nav .sfg-mega { gap: 16px; }
.sfg-mobile-nav__contact { padding: 20px var(--sfg-gutter) 32px; background: var(--sfg-lind); }
.sfg-mobile-nav__contact .sfg-buttons { flex-direction: column; }
.sfg-mobile-nav__contact .sfg-btn { width: 100%; }
.sfg-mobile-nav__hours { list-style: none; margin: 16px 0 0; padding: 0; color: var(--sfg-muted); font-size: .9375rem; }
@media (min-width: 1100px) { .sfg-mobile-nav { display: none !important; } }

/* ------------------------------------------------------------------- hero */
.sfg-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sfg-lind) 0, var(--sfg-white) 78%); padding-block: clamp(36px, 5vw, 76px) clamp(48px, 6vw, 92px); }
.sfg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .sfg-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.sfg-hero h1 { margin-bottom: .35em; }
.sfg-hero h1 em { font-style: normal; }
.sfg-hero .sfg-lead { margin-bottom: 1.4em; }
.sfg-hero__media-wrap { position: relative; isolation: isolate; }
.sfg-hero__media { position: relative; margin: 0 !important; }
.sfg-hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 22px; display: block; }
.sfg-hero--page .sfg-hero__media img { aspect-ratio: 4 / 3; }
.sfg .sfg-hero__badge {
	position: absolute; left: clamp(-12px, -2vw, -28px); bottom: 24px; display: block; max-width: 300px; margin: 0 !important;
	padding: 14px 18px 14px 64px; background: var(--sfg-white); border-radius: var(--sfg-radius); box-shadow: var(--sfg-shadow);
	font-size: .9rem; line-height: 1.4; color: var(--sfg-muted);
}
.sfg .sfg-hero__badge::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
	background: var(--sfg-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.sfg-hero__badge .sfg-icon { display: none; }
.sfg-hero__badge strong { display: block; font-size: 1rem; color: var(--sfg-text); margin-bottom: 2px; }
@media (max-width: 959px) {
	.sfg .sfg-hero__badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.sfg-hero .sfg-figures--hero { margin-top: 28px; }
.sfg-hero .sfg-breadcrumbs { margin-bottom: 18px; }
.sfg-hero--page { padding-block: clamp(24px, 3.5vw, 52px) clamp(40px, 5vw, 72px); }
.sfg-hero--slim { padding-block: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 52px); }
.sfg-hero--slim h1 { margin-top: 12px; }
/* Landing page: quote form next to the text in the hero */
.sfg-hero--landing .sfg-hero__grid { align-items: start; }
.sfg-hero__form .sfg-anfrage { box-shadow: var(--sfg-shadow); border-color: transparent; }
.sfg-hero--landing .sfg-checklist { margin: 4px 0 24px; }

/* ----------------------------------------------------------- breadcrumbs */
.sfg-breadcrumbs { font-size: .9rem; color: var(--sfg-muted); }
.sfg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.sfg-breadcrumbs li { display: inline-flex; align-items: center; }
.sfg-breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid #9aa59f; border-top: 1.5px solid #9aa59f; transform: rotate(45deg); }
.sfg-breadcrumbs a { color: var(--sfg-muted); text-decoration: none; }
.sfg-breadcrumbs a:hover { color: var(--sfg-green); text-decoration: underline; }
.sfg-breadcrumbs [aria-current] { color: var(--sfg-text); font-weight: 600; }
.sfg-breadcrumbs .separator { margin: 0 6px; color: #9aa59f; }
.sfg-pagehead { background: linear-gradient(180deg, var(--sfg-lind), var(--sfg-white)); padding-block: clamp(28px, 4vw, 56px); margin-bottom: clamp(16px, 3vw, 32px); }
.sfg-pagehead__title { margin: 12px 0 0 !important; }

/* ------------------------------------------------------------ key figures */
.sfg-figures { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .sfg-figures { grid-template-columns: repeat(var(--sfg-figures, 4), minmax(0, 1fr)); } }
.sfg-figure { display: flex; flex-direction: column; gap: 2px; }
.sfg-figure__value { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); font-weight: 700; color: var(--sfg-green-dark); letter-spacing: -0.02em; line-height: 1.1; }
.sfg-figure__label { font-size: .925rem; color: var(--sfg-muted); line-height: 1.35; }
.sfg-figures--hero { gap: 20px 24px; padding-top: 22px; border-top: 1px solid var(--sfg-line); }
.sfg-figures--hero .sfg-figure__value { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.sfg-figures--leiste { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); padding: 24px 28px; }
.sfg-figures--karten .sfg-figure { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-left: 4px solid var(--sfg-accent); border-radius: var(--sfg-radius-sm); padding: 20px; }

/* --------------------------------------------------------------- services */
.sfg-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.sfg-service { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px; background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); transition: border-color .2s var(--sfg-ease); }
.sfg-service:hover, .sfg-service:focus-within { border-color: var(--sfg-green); }
.sfg-service__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: var(--sfg-lind); color: var(--sfg-green); margin-bottom: 6px; transition: background-color .2s var(--sfg-ease), color .2s var(--sfg-ease); }
.sfg-service:hover .sfg-service__icon, .sfg-service:focus-within .sfg-service__icon { background: var(--sfg-green); color: var(--sfg-white); }
.sfg-service__icon .sfg-icon { width: 26px; height: 26px; }
.sfg-service__title { margin: 0 !important; font-size: 1.2rem !important; }
.sfg-service__title a { color: var(--sfg-text) !important; text-decoration: none; }
.sfg-stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sfg-service__text { color: var(--sfg-muted); font-size: 1rem; margin: 0 !important; line-height: 1.5; }
.sfg-service__price { display: inline-block; align-self: flex-start; font-size: .875rem; font-weight: 600; color: var(--sfg-text); background: var(--sfg-accent-soft); border-radius: 4px; padding: 2px 8px; margin: 2px 0 0 !important; }
.sfg-service__more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 1rem; color: var(--sfg-green); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; }
.sfg-service__more .sfg-icon { display: none; }
.sfg-service:hover .sfg-service__more { text-decoration-color: currentColor; }
.sfg-services--liste { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--sfg-line); }
.sfg-services--liste .sfg-service { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--sfg-line); border-radius: 0; padding: 14px 4px; }
.sfg-services--liste .sfg-service__icon { width: 40px; height: 40px; margin: 0; }
.sfg-services--liste .sfg-service__text, .sfg-services--liste .sfg-service__more { display: none; }
@media (max-width: 639px) {
	.sfg-services--karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sfg-services--karten .sfg-service { padding: 16px 14px; gap: 6px; }
	.sfg-services--karten .sfg-service__icon { width: 42px; height: 42px; margin-bottom: 2px; }
	.sfg-services--karten .sfg-service__icon .sfg-icon { width: 22px; height: 22px; }
	.sfg-services--karten .sfg-service__title { font-size: 1rem !important; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
	.sfg-services--karten .sfg-service__text, .sfg-services--karten .sfg-service__price, .sfg-services--karten .sfg-service__more { display: none; }
}

/* ------------------------------------------------------------------ steps */
.sfg-steps { counter-reset: sfg-step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; }
.sfg-steps > .wp-block-group, .sfg-step { position: relative; counter-increment: sfg-step; background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); padding: 72px 22px 22px; margin: 0 !important; }
.sfg-steps > .wp-block-group::before, .sfg-step::before {
	content: counter(sfg-step); position: absolute; top: 20px; left: 22px; width: 38px; height: 38px; display: grid; place-items: center;
	font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--sfg-white); background: var(--sfg-green); border-radius: 50%;
}
.sfg-steps h3 { margin-bottom: .35em; }
.sfg-steps p { color: var(--sfg-muted); font-size: 1rem; margin: 0 !important; line-height: 1.5; }

/* ----------------------------------------------------------------- splits */
.sfg-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .sfg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sfg-split--reverse > :first-child { order: 2; } }
.sfg-split figure, .sfg-media { margin: 0 !important; }
.sfg-split img, .sfg-media img { width: 100%; border-radius: 18px; display: block; aspect-ratio: 5 / 4; object-fit: cover; }
.sfg-cols-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .sfg-cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sfg-cols-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .sfg-cols-form { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }

/* --------------------------------------------------------------- features */
.sfg-features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; }
.sfg-feature { display: flex; gap: 14px; align-items: flex-start; margin: 0 !important; }
.sfg-feature__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sfg-lind); color: var(--sfg-green); }
.sfg-section--tint .sfg-feature__icon, .sfg-section--green .sfg-feature__icon { background: var(--sfg-white); }
.sfg-feature h3 { font-size: 1.1rem !important; margin: 0 0 .25em !important; }
.sfg-feature p { color: var(--sfg-muted); font-size: 1rem; margin: 0 !important; line-height: 1.5; }

/* Check list */
.sfg .sfg-checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.sfg .sfg-checklist li { position: relative; padding-left: 34px; }
.sfg .sfg-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--sfg-lind-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.sfg-section--tint .sfg-checklist li::before, .sfg-section--green .sfg-checklist li::before { background-color: var(--sfg-white); }
.sfg .sfg-checklist--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 28px; }

/* Card */
.sfg-card { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); padding: clamp(22px, 3vw, 32px); }
.sfg-card h3 { margin-top: 0; }
.sfg .sfg-card--accent { background: var(--sfg-lind); border-color: transparent; box-shadow: none; }
.sfg-card .sfg-btn { margin-top: 4px; }
.sfg .sfg-numbered { counter-reset: sfg-num; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sfg .sfg-numbered li { counter-increment: sfg-num; position: relative; padding-left: 42px; line-height: 1.5; }
.sfg .sfg-numbered li::before { content: counter(sfg-num); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sfg-green); color: var(--sfg-white); font-weight: 700; font-size: .9rem; }
.sfg-section--cream .sfg-card, .sfg-section--tint .sfg-card, .sfg-section--green .sfg-card { border-color: transparent; box-shadow: var(--sfg-shadow); }

/* ----------------------------------------------------------------- prices */
.sfg-prices { margin: 0; }
.sfg-prices__table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); overflow: hidden; font-size: 1rem; }
.sfg-prices__table caption { text-align: left; font-weight: 600; font-size: 1.15rem; padding: 0 0 12px; caption-side: top; }
.sfg-prices__table th, .sfg-prices__table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sfg-line); }
.sfg-prices__table thead th { background: var(--sfg-lind); color: var(--sfg-green-dark); font-weight: 600; font-size: .925rem; border-bottom: 3px solid var(--sfg-accent); }
.sfg-prices__table tbody th { font-weight: 600; }
.sfg-prices__table tbody tr:last-child > * { border-bottom: 0; }
.sfg-prices__table tbody tr:nth-child(even) { background: var(--sfg-paper); }
.sfg-prices__table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfg-prices__note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0 !important; font-size: .925rem; color: var(--sfg-muted); }
.sfg-prices__note .sfg-icon { color: var(--sfg-green); margin-top: 2px; }
@media (max-width: 700px) {
	.sfg-prices__table thead { display: none; }
	.sfg-prices__table, .sfg-prices__table tbody, .sfg-prices__table tr, .sfg-prices__table th, .sfg-prices__table td { display: block; }
	.sfg-prices__table tr { border-bottom: 1px solid var(--sfg-line); padding: 8px 0; }
	.sfg-prices__table tbody th { background: transparent; padding: 10px 18px 4px; border: 0; color: var(--sfg-green-dark); }
	.sfg-prices__table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 18px; }
	.sfg-prices__table td::before { content: attr(data-label); color: var(--sfg-muted); white-space: normal; }
}

/* -------------------------------------------------------------------- FAQ */
.sfg-faq { display: grid; gap: 10px; align-content: start; }
.sfg-faq .wp-block-details, .sfg-faq details { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius-sm); padding: 0; margin: 0 !important; }
.sfg-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.sfg-faq summary::-webkit-details-marker { display: none; }
.sfg-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--sfg-lind) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2622' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s var(--sfg-ease); }
.sfg-faq details[open] { border-color: var(--sfg-green); padding-bottom: 18px; }
.sfg-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sfg-accent); }
.sfg-faq details > :not(summary) { margin: 0 20px !important; color: var(--sfg-muted); }
.sfg-faq details > :not(summary):last-child { margin-bottom: 0 !important; }
.sfg-faq summary:hover { color: var(--sfg-green); }

/* -------------------------------------------------------------------- CTA */
/* Strong variant: Blattgrün band with white text */
.sfg-cta { padding-block: clamp(40px, 5vw, 64px); margin: 0 !important; }
.sfg-cta--gruen { background: var(--sfg-green); color: var(--sfg-white); }
.sfg-cta--gruen .sfg-cta__title, .sfg-cta--gruen p { color: var(--sfg-white); }
.sfg-cta--hell { background: var(--sfg-lind); }
.sfg-cta__inner { display: grid; gap: 24px; align-items: center; width: 100%; max-width: calc(var(--sfg-container) + 2 * var(--sfg-gutter)); margin-inline: auto; padding-inline: var(--sfg-gutter); box-sizing: border-box; }
@media (min-width: 960px) { .sfg-cta__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.sfg-cta__title { margin-bottom: .3em !important; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem) !important; }
.sfg-cta p { margin: 0 !important; max-width: 60ch; }
.sfg-cta--gruen .sfg-btn--primary { background: var(--sfg-white); color: var(--sfg-green-dark) !important; }
.sfg-cta--gruen .sfg-btn--primary:hover { background: var(--sfg-lind); color: var(--sfg-green-dark) !important; }
.sfg-cta--gruen .sfg-btn--secondary { background: transparent; color: var(--sfg-white) !important; border-color: rgb(255 255 255 / 70%); }
.sfg-cta--gruen .sfg-btn--secondary:hover { background: rgb(255 255 255 / 12%); border-color: var(--sfg-white); }
.sfg-cta--gruen .sfg-btn--ghost { color: var(--sfg-white) !important; border-color: rgb(255 255 255 / 40%); }
.sfg-cta--gruen .sfg-btn--ghost:hover { background: rgb(255 255 255 / 12%); }
.sfg-cta--gruen :focus-visible { outline-color: var(--sfg-white); }
.sfg-cta--gruen a:not(.sfg-btn) { color: var(--sfg-white); }

/* ---------------------------------------------------------------- contact */
.sfg-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sfg-contact__row { display: flex; gap: 14px; align-items: flex-start; }
.sfg-contact__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sfg-lind); color: var(--sfg-green); }
.sfg-contact__label { display: block; font-size: .875rem; color: var(--sfg-muted); }
.sfg-contact__value { display: block; font-weight: 600; }
.sfg-contact__value a { text-decoration: none; }
.sfg-hours { list-style: none; margin: 0; padding: 0; }

/* Places */
.sfg-places { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sfg-places li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: 999px; font-weight: 500; font-size: .975rem; }
.sfg-places .sfg-icon { width: 16px; height: 16px; color: var(--sfg-green); }

/* ----------------------------------------------------------------- footer */
.sfg-footer { background: var(--sfg-lind); color: var(--sfg-text); font-size: 1rem; padding-top: clamp(48px, 6vw, 80px); border-top: 4px solid var(--sfg-accent); }
.sfg-footer a { color: var(--sfg-text); text-decoration: none; }
.sfg-footer a:hover { color: var(--sfg-green); text-decoration: underline; }
.sfg-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 700px) { .sfg-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sfg-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; } }
.sfg .sfg-footer__logo-img { height: 48px; width: auto; max-width: none; display: block; margin-bottom: 18px; }
.sfg-footer__brand p { max-width: 36ch; color: var(--sfg-muted); }
.sfg-footer address { font-style: normal; line-height: 1.6; }
.sfg-footer__title { color: var(--sfg-green-dark); font-weight: 700; font-size: 1rem; margin-bottom: 14px !important; }
.sfg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sfg-footer__list--icons li { display: flex; gap: 10px; align-items: flex-start; }
.sfg-footer__list--icons a { display: inline-flex; gap: 10px; align-items: center; }
.sfg-footer__list--icons .sfg-icon { color: var(--sfg-green); width: 18px; height: 18px; }
.sfg-footer__hours span { line-height: 1.5; color: var(--sfg-muted); }
.sfg-footer__more { font-weight: 600; }
.sfg-footer__bottom { background: var(--sfg-lind-2); font-size: .875rem; }
.sfg-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.sfg-footer__bottom p { margin: 0 !important; }
.sfg-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }

/* ------------------------------------------------------ mobile action bar */
.sfg-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); border-top: 1px solid var(--sfg-line); box-shadow: 0 -6px 20px rgb(30 38 34 / 7%); }
.sfg-actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--sfg-radius-sm); font-weight: 600; font-size: 1rem; color: var(--sfg-green) !important; text-decoration: none; border: 1px solid var(--sfg-line); background: var(--sfg-white); }
.sfg-actionbar .sfg-actionbar__primary { background: var(--sfg-green); border-color: var(--sfg-green); color: var(--sfg-white) !important; }
.sfg-actionbar .sfg-icon { width: 20px; height: 20px; }
body.sfg { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { .sfg-actionbar { display: none; } body.sfg { padding-bottom: 0; } }
/* Borlabs Cookie widget above the mobile action bar */
@media (max-width: 1099px) { .sfg .brlbs-cmpnt-widget { bottom: calc(68px + env(safe-area-inset-bottom)) !important; } }

/* ------------------------------------------------------------------- form */
.sfg-anfrage { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-top: 4px solid var(--sfg-accent); border-radius: var(--sfg-radius); padding: clamp(20px, 3vw, 32px); }
.sfg-form__grid { display: grid; gap: 4px 18px; grid-template-columns: minmax(0, 1fr); }
/* Field columns follow the width of the form itself (page, quote window, landing hero) */
.sfg-anfrage { container-type: inline-size; }
@container (min-width: 500px) { .sfg-form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sfg-field { margin: 0 0 12px !important; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; min-width: 0; }
.sfg-field--wide { grid-column: 1 / -1; }
.sfg-field label, .sfg-field legend { font-weight: 500; font-size: 1rem; color: var(--sfg-text); padding: 0; }
.sfg-field label span[aria-hidden] { color: #b42318; }
.sfg-form input[type="text"], .sfg-form input[type="tel"], .sfg-form input[type="email"], .sfg-form input[type="date"], .sfg-form input[type="number"], .sfg-form select, .sfg-form textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c5d1c7; border-radius: var(--sfg-radius-sm); background: var(--sfg-white);
	font: 400 1.0625rem/1.4 var(--sfg-font); color: var(--sfg-text); box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.sfg-form textarea { min-height: 110px; resize: vertical; }
.sfg-form select:not(.sfg-tel__land) { -webkit-appearance: none; appearance: none; padding-right: 42px; background: var(--sfg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d4a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.sfg-form input:focus, .sfg-form select:focus, .sfg-form textarea:focus { outline: none; border-color: var(--sfg-green); box-shadow: 0 0 0 3px rgb(47 125 74 / 18%); }
.sfg-form input[type="file"] { font-size: 1rem; padding: 10px; border: 1.5px dashed #c5d1c7; border-radius: var(--sfg-radius-sm); background: var(--sfg-paper); }
.sfg-field.has-error input, .sfg-field.has-error select, .sfg-field.has-error textarea { border-color: #b42318; }
.sfg-field__error { color: #b42318; font-size: .925rem; }
.sfg-field__error:empty { display: none; }
.sfg-field__hint { color: var(--sfg-muted); font-size: .875rem; }
.sfg-field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 1rem; line-height: 1.5; }
.sfg-form input[type="checkbox"], .sfg-form input[type="radio"] { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sfg-green); flex: none; }
.sfg-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sfg-checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 1rem; }
/* Private / company switch and the optional company block */
.sfg-form__type { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px !important; padding: 0; border: 0; min-width: 0; }
.sfg-form__type legend { font-weight: 500; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.sfg-form__type label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--sfg-line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 1rem; }
.sfg-form__type input[type="radio"] { margin: 0; }
.sfg-form__type label:has(input:checked) { border-color: var(--sfg-green); background: var(--sfg-lind); }
.sfg-form__firma { display: none; margin: 0 0 16px; padding: 16px 16px 4px; border-radius: var(--sfg-radius-sm); background: var(--sfg-paper); border: 1px solid var(--sfg-line); }
.sfg-form:has(input[name="kundentyp"][value="firma"]:checked) .sfg-form__firma { display: block; }
.sfg-form__firma .sfg-field__hint { margin: 0 0 12px; }
.sfg-form__more { margin: 6px 0 14px; border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius-sm); background: var(--sfg-paper); }
.sfg-form__more summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--sfg-green); list-style: none; }
.sfg-form__more summary::-webkit-details-marker { display: none; }
.sfg-form__more summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; }
.sfg-form__more[open] summary::before { content: "–"; }
.sfg-form__more > .sfg-form__grid { padding: 4px 16px 8px; }
/* Phone with EU country code (flags) */
.sfg-tel { position: relative; display: flex; align-items: stretch; min-width: 0; }
.sfg-form .sfg-tel input[type="tel"] { flex: 1; min-width: 0; border-radius: 0 var(--sfg-radius-sm) var(--sfg-radius-sm) 0; }
.sfg-form .sfg-tel__land { width: auto; max-width: 48%; flex: none; border-radius: var(--sfg-radius-sm) 0 0 var(--sfg-radius-sm); border-right: 0; }
.sfg-form .sfg-tel__land.is-enhanced { display: none; }
.sfg-tel__btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 50px; padding: 0 10px 0 12px; border: 1.5px solid #c5d1c7; border-right: 0; border-radius: var(--sfg-radius-sm) 0 0 var(--sfg-radius-sm); background: var(--sfg-paper); color: var(--sfg-text); font: 500 1rem/1 var(--sfg-font); cursor: pointer; }
.sfg-form .sfg-tel__btn, .sfg-form .sfg-tel__btn:hover, .sfg-form .sfg-tel__btn:focus { color: var(--sfg-text); box-shadow: none; }
.sfg-form .sfg-tel__btn:hover, .sfg-form .sfg-tel__btn[aria-expanded="true"] { background: var(--sfg-lind); }
.sfg-tel img { width: 24px; height: 18px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(30 38 34 / 12%); }
.sfg-tel__code { font-variant-numeric: tabular-nums; }
.sfg-tel__chev { width: 7px; height: 7px; margin: -3px 2px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.sfg-tel__list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: min(330px, 100%); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: 10px; box-shadow: var(--sfg-shadow); box-sizing: border-box; }
.sfg-tel__list:focus-visible { outline: 3px solid var(--sfg-green); outline-offset: 1px; }
.sfg-tel__list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.sfg-tel__list [role="option"]:hover, .sfg-tel__list [role="option"].is-active { background: var(--sfg-lind); }
.sfg-tel__list [aria-selected="true"] { font-weight: 600; }
.sfg-tel__dial { margin-left: auto; color: var(--sfg-muted); font-variant-numeric: tabular-nums; }
.sfg-field.has-error .sfg-tel__btn { border-color: #b42318; }
/* Moving boxes: amount only when wanted */
.sfg-kartons { display: grid; gap: 4px 18px; }
@container (min-width: 500px) { .sfg-kartons { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.sfg-kartons .sfg-field--check { margin-bottom: 4px !important; }
.sfg-kartons__anzahl { display: none !important; }
.sfg-kartons:has(input[name="kartons"]:checked) .sfg-kartons__anzahl { display: flex !important; }
.sfg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sfg-field--consent { margin-top: 6px !important; }
.sfg-turnstile { margin: 4px 0 12px; min-height: 65px; }
/* Salutation, first and last name in one row; service-dependent address fields */
@container (min-width: 600px) { .sfg-form__grid--name { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); } }
@container (min-width: 500px) and (max-width: 599px) { .sfg-form__grid--name .sfg-field--anrede { grid-column: 1 / -1; max-width: 50%; } }
.sfg-adr { grid-column: 1 / -1; display: grid; gap: 4px 18px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 500px) { .sfg-adr--umzug { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sfg-adr[hidden] { display: none !important; }
.sfg-form__status { margin: 0 0 12px !important; font-size: 1rem; color: #b42318; }
.sfg-form__status:empty { display: none; }
.sfg-form.is-sending .sfg-form__status { color: var(--sfg-muted); }
.sfg-form__submit { width: 100%; }
@media (min-width: 700px) { .sfg-form__submit { width: auto; min-width: 240px; } }
.sfg-form__thanks { padding: 8px 4px; outline: none; }
.sfg-form__thanks-title { font-size: 1.35rem; font-weight: 700; color: var(--sfg-green-dark); margin-bottom: .4em !important; }
.sfg-form__thanks-title::before { content: ""; display: inline-block; width: 28px; height: 28px; margin-right: 10px; vertical-align: -6px; border-radius: 50%; background: var(--sfg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ----------------------------------------------------------- quote dialog */
/* Every link to the quote page opens this window (anfrage.js); phones get a bottom sheet. */
html.sfg-dialog-open { overflow: hidden; }
.sfg-dialog { width: min(1040px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 20px; background: var(--sfg-white); color: var(--sfg-text); box-shadow: 0 30px 80px rgb(20 40 28 / 30%); overflow: hidden; }
.sfg-dialog::backdrop { background: rgb(22 44 30 / 55%); backdrop-filter: blur(4px); }
.sfg-dialog[open] { animation: sfg-dlg-in .28s var(--sfg-ease); }
.sfg-dialog[open]::backdrop { animation: sfg-fade .28s ease; }
@keyframes sfg-dlg-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes sfg-sheet-in { from { transform: translateY(100%); } }
@keyframes sfg-fade { from { opacity: 0; } }
.sfg-dialog__panel { position: relative; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); max-height: calc(100dvh - 48px); }
.sfg-dialog__aside { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 38px 30px 30px; background: var(--sfg-green); color: var(--sfg-white); }
.sfg-dialog__aside::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgb(125 194 67 / 22%); pointer-events: none; }
.sfg .sfg-dialog__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 !important; font-weight: 600; font-size: .975rem; color: var(--sfg-white); }
.sfg-dialog__eyebrow::before { content: ""; width: 18px; height: 6px; border-radius: 2px; background: var(--sfg-accent); }
.sfg .sfg-dialog__title:focus { outline: none; }
.sfg .sfg-dialog__title { margin: 0; color: var(--sfg-white); font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); font-weight: 700; line-height: 1.15; }
.sfg-dialog__steps { counter-reset: sfg-dlg; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.sfg-dialog__steps li { counter-increment: sfg-dlg; position: relative; padding-left: 44px; font-size: 1rem; line-height: 1.45; color: rgb(255 255 255 / 92%); }
.sfg-dialog__steps li::before { content: counter(sfg-dlg); position: absolute; left: 0; top: -3px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sfg-accent); color: var(--sfg-text); font-weight: 700; font-size: .95rem; }
.sfg-dialog__direct { position: relative; z-index: 1; margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 22%); }
.sfg .sfg-dialog__direct p { margin: 0 0 6px; font-weight: 600; }
.sfg .sfg-dialog__direct a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--sfg-white); font-weight: 600; text-decoration: none; }
.sfg .sfg-dialog__direct a:hover { text-decoration: underline; color: var(--sfg-white); }
.sfg-dialog__direct .sfg-icon { color: var(--sfg-accent); }
.sfg-dialog__main { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 34px 34px 32px; box-sizing: border-box; }
.sfg .sfg-dialog__close, .sfg .sfg-dialog__close:hover, .sfg .sfg-dialog__close:focus { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--sfg-line); border-radius: 50%; background: var(--sfg-white); color: var(--sfg-text); box-shadow: none; cursor: pointer; }
.sfg .sfg-dialog__close:hover { background: var(--sfg-lind); }
.sfg-dialog__close .sfg-icon { width: 22px; height: 22px; }
.sfg-anfrage--dialog { border: 0; border-radius: 0; padding: 0; }
.sfg-anfrage--dialog .sfg-form__type { padding-right: 48px; }
@media (max-width: 759px) {
	.sfg-dialog { width: 100%; max-width: 100%; height: calc(100dvh - 16px); max-height: none; margin: auto 0 0; border-radius: 20px 20px 0 0; }
	.sfg-dialog[open] { animation: sfg-sheet-in .32s var(--sfg-ease); }
	.sfg-dialog__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; max-height: none; }
	.sfg-dialog__aside { gap: 4px; padding: 10px 70px 16px 20px; }
	.sfg-dialog__aside::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgb(255 255 255 / 45%); }
	.sfg-dialog__aside::after, .sfg-dialog__steps, .sfg-dialog__direct { display: none; }
	.sfg .sfg-dialog__eyebrow { margin-top: 10px !important; font-size: .9rem; }
	.sfg .sfg-dialog__title { font-size: 1.3rem; }
	.sfg .sfg-dialog__close, .sfg .sfg-dialog__close:hover, .sfg .sfg-dialog__close:focus { top: 22px; background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 40%); color: var(--sfg-white); }
	.sfg-dialog__main { max-height: none; min-height: 0; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
	.sfg-anfrage--dialog .sfg-form__type { padding-right: 0; }
}

/* -------------------------------------------------------------------- map */
/* Label sizes are SVG units; keep in sync with FS in projekt/tools/karte/build_map.py */
.sfg-map { margin: 0; container-type: inline-size; }
.sfg-map__svg { width: 100%; height: auto; display: block; max-height: 760px; }
.sfg-map__aussen path { fill: #eceeeb; stroke: var(--sfg-white); stroke-width: 1.5; stroke-linejoin: round; }
.sfg-map__kreis { fill: #d9edd1; stroke: var(--sfg-white); stroke-width: 1.3; stroke-linejoin: round; transition: fill .2s; }
.sfg-map__kreis.is-hub { fill: #bfe0b3; }
.sfg-map__kreis:hover { fill: #cde7c3; }
.sfg-map__rbz path { fill: none; stroke: var(--sfg-green); stroke-width: 1.3; stroke-opacity: .35; stroke-linejoin: round; }
.sfg-map__land path { fill: none; stroke: #9fb0a4; stroke-width: 1.6; stroke-linejoin: round; }
.sfg-map__region { font: 600 22px var(--sfg-font); fill: #9aa49d; letter-spacing: .02em; pointer-events: none; }
.sfg-map__ort circle { fill: var(--sfg-green); stroke: var(--sfg-white); stroke-width: 2; }
.sfg-map__ort.is-aussen circle { fill: #a3aca6; stroke-width: 1.5; }
.sfg-map__ort.is-linked circle { fill: var(--sfg-green-dark); stroke: var(--sfg-accent); stroke-width: 3.5; cursor: pointer; }
.sfg-map__ort.is-linked:hover circle, .sfg-map__ort.is-linked:focus circle { fill: var(--sfg-accent); stroke: var(--sfg-green-dark); }
.sfg-map__ort.is-linked:focus { outline: none; }
.sfg-map__ort.is-linked:focus-visible circle { stroke: var(--sfg-text); stroke-width: 4; }
.sfg-map__label { font-family: var(--sfg-font); font-weight: 500; font-size: 16px; fill: var(--sfg-text); paint-order: stroke; stroke: var(--sfg-white); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.sfg-map__label.is-major { font-size: 20px; font-weight: 600; }
.sfg-map__label.is-big { font-size: 26px; font-weight: 700; }
.sfg-map__label.is-aussen { font-size: 16px; fill: #737d76; }
.sfg-map__label.is-mob { font-size: 38px; stroke-width: 7px; }
.sfg-map__label.is-mob.is-big { font-size: 46px; }
.sfg-map__label.is-mob.is-aussen { font-size: 34px; }
.sfg-map__label.is-mob { display: none; }
@container (max-width: 560px) {
	.sfg-map__ort:not(.is-mob):not(.is-linked), .sfg-map__label.is-desk, .sfg-map__region { display: none; }
	.sfg-map__label.is-mob { display: inline; }
	.sfg-map__credit { font-size: 24px; }
}
.sfg-map__firma circle { fill: var(--sfg-green-dark); stroke: var(--sfg-accent); stroke-width: 3; }
.sfg-map__firma path { fill: var(--sfg-white); }
.sfg-map__credit { font: 400 14px var(--sfg-font); fill: #7d8a81; }
.sfg-map__credit a, .sfg-map__credit:hover { fill: var(--sfg-green); }
.sfg-map__legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--sfg-muted); }
.sfg-map__legend li { display: inline-flex; align-items: center; gap: 8px; }
.sfg-map__key { width: 12px; height: 12px; border-radius: 50%; background: var(--sfg-green); display: inline-block; flex: none; }
.sfg-map__key.is-linked { background: var(--sfg-green-dark); box-shadow: 0 0 0 2px var(--sfg-accent); }
.sfg-map__key.is-firma { background: var(--sfg-green-dark); }
.sfg-map__key.is-area { border-radius: 3px; background: #cde7c3; }
.sfg-map__source { font-size: .8rem; color: var(--sfg-muted); margin-top: 8px; }
/* The map gets the wider column in a split layout */
@media (min-width: 900px) {
	.sfg-split:has(> .sfg-map:first-child) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
	.sfg-split:has(> .sfg-map:last-child) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Place list by district */
.sfg-placelist { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .sfg-placelist { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.sfg-placelist__kreis { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius-sm); }
.sfg-placelist__kreis summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.sfg-placelist__kreis summary::-webkit-details-marker { display: none; }
.sfg-placelist__kreis summary span { color: var(--sfg-muted); font-weight: 400; }
.sfg-placelist__kreis ul { list-style: none; margin: 0; padding: 0 16px 14px; columns: 2 160px; column-gap: 16px; font-size: 1rem; }
.sfg-placelist__kreis li { break-inside: avoid; padding: 2px 0; color: var(--sfg-muted); }
.sfg-placelist__kreis li a { font-weight: 600; }

/* References */
.sfg-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sfg-refs__item { background: var(--sfg-white); border: 1px solid var(--sfg-line); border-radius: var(--sfg-radius); overflow: hidden; }
.sfg-refs__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sfg-refs__body { padding: 18px 20px; }
.sfg-refs__meta { font-size: .875rem; color: var(--sfg-green); font-weight: 600; margin-bottom: .4em !important; }
.sfg-refs__facts { margin: 8px 0 0; padding-left: 18px; color: var(--sfg-muted); font-size: .95rem; }

/* -------------------------------------------------------------- utilities */
.sfg-center { text-align: center; }
.sfg-muted { color: var(--sfg-muted); }
.sfg-mt-0 { margin-top: 0 !important; }
.sfg-gap { display: grid; gap: clamp(28px, 4vw, 48px); }
.sfg-note { font-size: .925rem; color: var(--sfg-muted); }
.sfg-ai-label { font-size: .8rem; color: var(--sfg-muted); margin-top: 6px !important; }

@media (prefers-reduced-motion: reduce) {
	.sfg *, .sfg *::before, .sfg *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
