/* ==========================================================================
   Grothe Bedachungen Core – Block-Styles
   Nutzen die Design-Tokens des Themes (theme.json) mit Fallback-Werten.
   ========================================================================== */

.g-media-block, .g-house, .g-hero, .g-page-hero, .g-service-grid, .g-form-wrap, .g-badges, .g-roof-divider, .g-company-info {
	--gc-primary: var(--wp--preset--color--primary, #172029);
	--gc-secondary: var(--wp--preset--color--secondary, #2f5d86);
	--gc-secondary-light: var(--wp--preset--color--secondary-light, #8fb0cc);
	--gc-surface: var(--wp--preset--color--surface, #e7ecf1);
	--gc-light: var(--wp--preset--color--light, #f4f6f8);
	--gc-border: var(--wp--preset--color--border, #d3dbe3);
	--gc-muted: var(--wp--preset--color--muted, #5a6774);
	--gc-ease: cubic-bezier(.2, .7, .2, 1);
	--gc-radius: var(--wp--custom--radius--m, 4px);
	--gc-head: var(--wp--preset--font-family--heading, system-ui, sans-serif);
}

/* --------------------------------------------------------------------------
   Bildplatzhalter
   -------------------------------------------------------------------------- */
.g-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--wp--custom--radius--m, 4px); width: 100%; }
.g-media--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.g-media--placeholder {
	background-color: #dfe6ec;
	background-image:
		repeating-linear-gradient(135deg, rgba(255,255,255,.0) 0 22px, rgba(255,255,255,.35) 22px 23px),
		linear-gradient(160deg, #e9eef2 0%, #d2dbe3 100%);
	color: #8796a4;
	display: block;
	min-height: 120px;
}
.g-media__ph-inner {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
	transition: transform 900ms cubic-bezier(.2,.7,.2,1);
	padding: 1rem; text-align: center;
}
.g-media__ph-inner svg { width: 44px; height: 36px; opacity: .8; }
.g-media__ph-label {
	font: 600 .72rem/1.3 var(--wp--preset--font-family--heading, system-ui, sans-serif);
	letter-spacing: .1em; text-transform: uppercase; color: #6d7d8c;
}
.g-media__ph-actions { margin-top: .25rem; }
.has-primary-background-color .g-media--placeholder, .g-media--placeholder.is-dark {
	background-color: #24303c;
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.05) 22px 23px), linear-gradient(160deg, #2a3745, #1b2530);
	color: #5f6f80;
}
.g-media__caption { font-size: var(--wp--preset--font-size--xs, .8rem); color: var(--gc-muted); margin-top: .6rem; }
.g-media__link { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.g-hero { position: relative; color: #fff; isolation: isolate; margin-top: 0 !important; margin-bottom: 0 !important; }
.g-hero--static {
	min-height: var(--g-hero-min-h, 92vh);
	min-height: max(560px, var(--g-hero-min-h, 92vh));
	display: flex; align-items: flex-end;
	background: #1b2530;
	overflow: hidden;
}
.g-hero__bg { position: absolute; inset: 0; z-index: -1; }
.g-hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: g-hero-zoom 9s cubic-bezier(.2,.7,.2,1) forwards; }
.g-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(23,32,41,.55) 0%, rgba(23,32,41,0) 28%),
		linear-gradient(90deg, rgba(23,32,41, calc(var(--g-hero-overlay, .55) + .2)) 0%, rgba(23,32,41, var(--g-hero-overlay, .55)) 45%, rgba(23,32,41, calc(var(--g-hero-overlay, .55) - .25)) 100%);
}
.g-hero.is-placeholder .g-hero__bg {
	background:
		repeating-linear-gradient(125deg, rgba(255,255,255,0) 0 90px, rgba(255,255,255,.035) 90px 91px),
		linear-gradient(170deg, #2a3745 0%, #172029 75%);
}
.g-hero__ph { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: clamp(5rem, 9vh, 7rem); display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.35); font: 600 .7rem/1 var(--gc-head); letter-spacing: .12em; text-transform: uppercase; z-index: 1; }
.g-hero__ph svg { width: 36px; height: 30px; }
/* Dachdecker-Zunftzeichen als feine Linienzeichnung (ersetzt die früheren Rauten-Linien). */
.g-hero__lines {
	position: absolute; right: -6vw; top: 50%; width: 54vw; max-width: 820px; aspect-ratio: 1; z-index: 0; pointer-events: none;
	transform: translateY(-46%);
	background: rgba(255,255,255,.16);
	-webkit-mask: url("../img/zunftzeichen-linie.svg") center / contain no-repeat;
	mask: url("../img/zunftzeichen-linie.svg") center / contain no-repeat;
}
.g-hero__inner {
	position: relative; width: 100%;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin: 0 auto;
	padding: calc(var(--g-header-h, 84px) + var(--g-topbar-h, 0px) + 4rem) var(--wp--style--root--padding-right, 1.5rem) clamp(4.5rem, 10vh, 7.5rem) var(--wp--style--root--padding-left, 1.5rem);
	box-sizing: border-box;
}
.g-hero__content { max-width: 46rem; }
.g-hero__eyebrow { margin: 0 0 1.5rem !important; color: var(--gc-secondary-light) !important; }
.g-hero__title {
	color: #fff !important; margin: 0 0 1.5rem;
	font-family: var(--gc-head); font-weight: 800;
	font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.035em;
	text-wrap: balance;
}
.g-hero__subtitle { font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: rgba(255,255,255,.86); margin: 0 0 2.5rem; max-width: 36rem; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.g-hero__content > * { animation: g-hero-in 1s cubic-bezier(.2,.7,.2,1) both; }
.g-hero__content > :nth-child(2) { animation-delay: .12s; }
.g-hero__content > :nth-child(3) { animation-delay: .24s; }
.g-hero__content > :nth-child(4) { animation-delay: .36s; }
.g-hero__scroll { position: absolute; right: var(--wp--style--root--padding-right, 1.5rem); bottom: clamp(2rem, 5vh, 3rem); width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; display: none; }
.g-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: g-scroll 1.8s ease-in-out infinite; }
@media (min-width: 782px) { .g-hero__scroll { display: block; } }
.g-hero__badge { position: absolute; left: 1rem; top: 1rem; margin: 0; background: #fff; color: #172029; font: 600 12px/1.4 system-ui, sans-serif; padding: .5rem .75rem; border-radius: 3px; max-width: 32rem; z-index: 3; }
.g-anchor { display: block; height: 0; }
.g-hero--slider { overflow: hidden; }

@keyframes g-hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes g-hero-zoom { to { transform: scale(1); } }
@keyframes g-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 599px) {
	.g-hero--static { min-height: max(520px, 86svh); }
	.g-hero__actions .wp-block-button, .g-hero__actions .wp-block-button__link { width: 100%; text-align: center; }
	.g-hero__lines { width: 115vw; right: -52vw; top: 34%; background: rgba(255,255,255,.12); }
}

/* Slider-Revolution-Harmonisierung (Schriften/Buttons im Slider) */
.g-hero--slider rs-layer.g-rs-title, .g-hero--slider .g-rs-title { font-family: var(--gc-head) !important; letter-spacing: -.035em !important; }
.g-hero--slider .g-rs-btn { font-family: var(--gc-head) !important; border-radius: 2px !important; transition: background-color .28s, color .28s, border-color .28s !important; }

/* --------------------------------------------------------------------------
   Seitenkopf
   -------------------------------------------------------------------------- */
.g-page-hero {
	background: var(--gc-light);
	border-bottom: 1px solid var(--gc-border);
	position: relative; overflow: hidden;
	margin: 0 !important;
}
.g-page-hero::after {
	content: ""; position: absolute; right: -110px; top: -150px; width: 460px; height: 460px; pointer-events: none;
	background: var(--gc-border);
	-webkit-mask: url("../img/zunftzeichen-linie.svg") center / contain no-repeat;
	mask: url("../img/zunftzeichen-linie.svg") center / contain no-repeat;
}
@media (max-width: 781px) { .g-page-hero::after { width: 300px; height: 300px; right: -120px; top: -110px; opacity: .8; } }
.g-page-hero__inner {
	max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; box-sizing: border-box;
	padding: clamp(2.5rem, 6vw, 5rem) var(--wp--style--root--padding-right, 1.5rem) clamp(2.5rem, 6vw, 4.5rem) var(--wp--style--root--padding-left, 1.5rem);
	display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1;
}
.g-page-hero.has-media .g-page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.g-page-hero__title { overflow-wrap: break-word; font-family: var(--gc-head); font-weight: 800; font-size: clamp(1.7rem, 1.05rem + 3.2vw, 3.75rem); line-height: 1.06; letter-spacing: -.03em; margin: 0; color: var(--gc-primary); text-wrap: balance; hyphens: auto; }
.g-page-hero__lead { font-size: var(--wp--preset--font-size--l, 1.2rem); line-height: 1.6; color: #34414e; margin: 1.25rem 0 0; max-width: 40rem; }
.g-page-hero__eyebrow { margin-bottom: 1rem !important; }
.g-page-hero__media .g-media { box-shadow: var(--wp--preset--shadow--soft); }
.g-page-hero--legal .g-page-hero__title, .g-page-hero--archive .g-page-hero__title, .g-page-hero--search .g-page-hero__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.g-breadcrumbs ol { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--wp--preset--font-size--xs, .8rem); color: var(--gc-muted); }
.g-breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--gc-border); }
.g-breadcrumbs a { color: var(--gc-muted); text-decoration: none; }
.g-breadcrumbs a:hover { color: var(--gc-secondary); }
@media (max-width: 781px) {
	.g-page-hero.has-media .g-page-hero__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Interaktives Haus
   -------------------------------------------------------------------------- */
.g-house { position: relative; }
.g-house__stage { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.g-house__img { display: block; width: 100%; height: 100%; object-fit: contain; transition: filter 500ms var(--gc-ease); }
.g-house.has-active .g-house__img { filter: saturate(.85) brightness(.97); }
.g-house__spots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.g-house__spot { position: absolute; width: 0; height: 0; z-index: 1; }
.g-house__spot.is-active, .g-house__spot:focus-within { z-index: 5; }
.g-house__pin {
	position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
	display: flex; align-items: center; text-decoration: none; color: var(--gc-primary);
	outline-offset: 4px; border-radius: 999px;
	-webkit-tap-highlight-color: transparent;
}
.g-house__dot {
	position: relative; width: 34px; height: 34px; border-radius: 50%;
	background: var(--gc-primary); color: #fff; flex: none;
	display: grid; place-items: center;
	box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 6px 18px rgba(23,32,41,.35);
	transition: transform 300ms var(--gc-ease), background-color 300ms var(--gc-ease);
}
.g-house__dot::before {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 2px solid var(--gc-primary); opacity: 0;
	animation: g-pulse 2.6s cubic-bezier(.2,.7,.2,1) infinite;
}
.g-house__spot:nth-child(3n+2) .g-house__dot::before { animation-delay: .8s; }
.g-house__spot:nth-child(3n+3) .g-house__dot::before { animation-delay: 1.6s; }
.g-house__num { font: 800 .8rem/1 var(--gc-head); }
.g-house__label {
	position: absolute; left: 100%; margin-left: .55rem; white-space: nowrap;
	background: #fff; color: var(--gc-primary);
	font: 700 .8rem/1 var(--gc-head); padding: .5rem .7rem; border-radius: 2px;
	box-shadow: 0 6px 18px rgba(23,32,41,.18);
	opacity: 0; transform: translateX(-6px); pointer-events: none;
	transition: opacity 260ms var(--gc-ease), transform 260ms var(--gc-ease);
}
.g-house__spot.is-left .g-house__label { left: auto; right: 100%; margin-left: 0; margin-right: .55rem; transform: translateX(6px); }
.g-house__card {
	position: absolute; top: 28px; left: -20px; width: 17rem;
	background: var(--gc-primary); color: rgba(255,255,255,.82);
	padding: 1.1rem 1.2rem 1rem; border-radius: var(--gc-radius);
	box-shadow: 0 24px 48px -16px rgba(23,32,41,.55);
	font-size: .875rem; line-height: 1.5;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 260ms var(--gc-ease), transform 260ms var(--gc-ease), visibility 0s linear 260ms;
	cursor: pointer;
}
.g-house__spot.is-left .g-house__card { left: auto; right: -20px; }
.g-house__spot.is-up .g-house__card { top: auto; bottom: 28px; transform: translateY(-8px); }
.g-house__card strong { display: block; color: #fff; font: 800 1rem/1.25 var(--gc-head); margin-bottom: .35rem; }
.g-house__card-text { display: block; }
.g-house__card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; color: var(--gc-secondary-light); font: 700 .78rem/1 var(--gc-head); letter-spacing: .06em; text-transform: uppercase; }
.g-house__card-more svg { width: 16px; height: 16px; }

.g-house__spot.is-active .g-house__dot, .g-house__pin:hover .g-house__dot, .g-house__pin:focus-visible .g-house__dot { background: var(--gc-secondary); transform: scale(1.12); }
.g-house__spot.is-active .g-house__label, .g-house__pin:focus-visible .g-house__label { opacity: 1; transform: none; }
.g-house__spot.is-active .g-house__card, .g-house__spot:focus-within .g-house__card { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--gc-ease), transform 260ms var(--gc-ease), visibility 0s; }
.g-house__spot.is-active .g-house__dot::before { animation: none; }

/* Einblenden der Punkte (nur mit JS) */
.js .g-house:not(.is-editor) .g-house__dot { opacity: 0; transform: scale(.4); }
.js .g-house.is-in-view .g-house__dot { opacity: 1; transform: scale(1); transition: opacity 500ms var(--gc-ease), transform 500ms var(--gc-ease), background-color 300ms; }
.js .g-house.is-in-view .g-house__spot.is-active .g-house__dot { transform: scale(1.12); }
.g-house.is-in-view .g-house__spot:nth-child(2) .g-house__dot { transition-delay: 60ms; }
.g-house.is-in-view .g-house__spot:nth-child(3) .g-house__dot { transition-delay: 120ms; }
.g-house.is-in-view .g-house__spot:nth-child(4) .g-house__dot { transition-delay: 180ms; }
.g-house.is-in-view .g-house__spot:nth-child(5) .g-house__dot { transition-delay: 240ms; }
.g-house.is-in-view .g-house__spot:nth-child(6) .g-house__dot { transition-delay: 300ms; }
.g-house.is-in-view .g-house__spot:nth-child(7) .g-house__dot { transition-delay: 360ms; }
.g-house.is-in-view .g-house__spot:nth-child(8) .g-house__dot { transition-delay: 420ms; }
.g-house.is-in-view .g-house__spot:nth-child(9) .g-house__dot { transition-delay: 480ms; }

/* Leistungsliste unter dem Haus */
.g-house__list { margin-top: clamp(1.5rem, 4vw, 3rem); }
.g-house__list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gc-border); }
.g-house__list li { border-bottom: 1px solid var(--gc-border); }
.g-house__list li:not(:nth-child(3n+1)) { border-left: 1px solid var(--gc-border); }
.g-house__list a {
	display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
	text-decoration: none; color: var(--gc-primary); font: 700 1rem/1.3 var(--gc-head);
	transition: background-color 260ms var(--gc-ease), color 260ms var(--gc-ease);
}
.g-house__list-num { font-size: .75rem; color: var(--gc-secondary); letter-spacing: .06em; min-width: 1.5rem; }
.g-house__list-label { flex: 1; }
.g-house__list svg { width: 18px; height: 18px; opacity: .4; transition: transform 260ms var(--gc-ease), opacity 260ms; }
.g-house__list li.is-active a, .g-house__list a:hover { background: #fff; color: var(--gc-secondary); }
.g-house__list li.is-active svg, .g-house__list a:hover svg { transform: translateX(4px); opacity: 1; }

@media (max-width: 1023px) {
	.g-house__list ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-house__list li:not(:nth-child(3n+1)) { border-left: 0; }
	.g-house__list li:nth-child(even) { border-left: 1px solid var(--gc-border); }
	.g-house__card { width: 14.5rem; }
}
@media (max-width: 781px) {
	.g-house__dot { width: 26px; height: 26px; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 4px 12px rgba(23,32,41,.3); }
	.g-house__num { font-size: .68rem; }
	.g-house__label { display: none; }
	/* Auf kleinen Bildschirmen erscheint die Karte zentriert unter dem Haus statt am Punkt. */
	.g-house__card { position: fixed; left: 1rem !important; right: 1rem !important; top: auto !important; bottom: 1rem !important; width: auto; z-index: 60; transform: translateY(16px); }
	.g-house__spot.is-up .g-house__card { transform: translateY(16px); }
}
@media (max-width: 599px) {
	.g-house__list ol { grid-template-columns: 1fr; }
	.g-house__list li:nth-child(even) { border-left: 0; }
	.g-house__list a { padding: .95rem .25rem; }
}
@keyframes g-pulse { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.7); } }

/* Editor-Ansicht */
.g-house.is-editor .g-house__stage { cursor: crosshair; }
.g-house__edit-pin {
	position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 0; cursor: grab; touch-action: none;
}
.g-house__edit-pin span { width: 28px; height: 28px; border-radius: 50%; background: #172029; color: #fff; display: grid; place-items: center; font: 700 12px/1 system-ui, sans-serif; box-shadow: 0 0 0 3px #fff; }
.g-house__edit-pin em { font: 600 11px/1 system-ui, sans-serif; font-style: normal; background: #fff; color: #172029; padding: 4px 6px; border-radius: 2px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.g-house__edit-pin.is-selected span { background: #2f5d86; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2f5d86; }
.g-house__edit-pin:active { cursor: grabbing; }

/* --------------------------------------------------------------------------
   Leistungskarten
   -------------------------------------------------------------------------- */
.g-service-grid {
	display: grid; gap: clamp(1rem, 2vw, 1.75rem);
	grid-template-columns: repeat(var(--g-cols, 3), minmax(0, 1fr));
}
@media (max-width: 1023px) { .g-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .g-service-grid { grid-template-columns: 1fr; } }
.g-service-card { height: 100%; }
.g-service-card__link {
	display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
	background: #fff; border: 1px solid var(--gc-border); border-radius: var(--gc-radius); overflow: hidden;
	transition: box-shadow 320ms var(--gc-ease), transform 320ms var(--gc-ease), border-color 320ms var(--gc-ease);
}
.g-service-card__link:hover, .g-service-card__link:focus-visible { box-shadow: var(--wp--preset--shadow--lift, 0 20px 40px -20px rgba(23,32,41,.35)); transform: translateY(-4px); border-color: transparent; }
.g-service-card__media { display: block; overflow: hidden; position: relative; }
.g-service-card__media .g-media { border-radius: 0; }
.g-service-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 900ms var(--gc-ease); }
.g-service-card__link:hover .g-service-card__media img, .g-service-card__link:hover .g-media__ph-inner { transform: scale(1.05); }
.g-service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.4rem; position: relative; }
.g-service-card__num { position: absolute; right: 1.5rem; top: 1.6rem; font: 800 .8rem/1 var(--gc-head); color: var(--gc-border); letter-spacing: .05em; }
.g-service-card__title { font: 800 1.3rem/1.2 var(--gc-head); letter-spacing: -.02em; margin: 0 2.5rem .6rem 0; color: var(--gc-primary); }
.g-service-card__text { color: var(--gc-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 1.25rem; }
.g-service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--gc-head); letter-spacing: .08em; text-transform: uppercase; color: var(--gc-secondary); }
.g-service-card__more svg { width: 18px; height: 18px; transition: transform 320ms var(--gc-ease); }
.g-service-card__link:hover .g-service-card__more svg { transform: translateX(5px); }

.g-related { padding: clamp(3rem, 7vw, 5.5rem) var(--wp--style--root--padding-right, 1.5rem) clamp(3rem, 7vw, 5.5rem) var(--wp--style--root--padding-left, 1.5rem); background: var(--gc-light); margin: 0 !important; max-width: none !important; }
.g-related > * { max-width: var(--wp--style--global--wide-size, 1280px); margin-left: auto; margin-right: auto; }
.g-related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.g-related__title { margin: 0; font-size: var(--wp--preset--font-size--xl, 1.75rem); }
.g-related__all { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font: 700 .85rem/1 var(--gc-head); color: var(--gc-primary); }
.g-related__all svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Firmendaten
   -------------------------------------------------------------------------- */
.g-company-info__row { display: flex; gap: .7rem; align-items: flex-start; }
.g-company-info__icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--wp--preset--color--secondary-light, #8fb0cc); }
.g-company-info__icon svg { width: 100%; height: 100%; display: block; }
.g-company-info__label { font-weight: 600; }
.g-company-card { display: flex; flex-direction: column; gap: .7rem; }
.g-company-card .g-company-info__icon { color: var(--wp--preset--color--secondary, #2f5d86); }
.g-company-card__name { font: 800 1.35rem/1.2 var(--wp--preset--font-family--heading, sans-serif); color: var(--wp--preset--color--primary, #172029); }
.g-company-card__sub { color: var(--wp--preset--color--muted, #5a6774); font-size: .95rem; margin-bottom: .4rem; }
.g-company-card a { color: inherit; }
.g-company-card__route { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font: 700 .85rem/1.2 var(--wp--preset--font-family--heading, sans-serif); color: var(--wp--preset--color--secondary, #2f5d86) !important; text-decoration: none; }
.g-company-card__route svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Kontaktformular
   -------------------------------------------------------------------------- */
.g-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.g-form__field { margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.g-form__field--full { grid-column: 1 / -1; }
.g-form__field label { font: 600 .85rem/1.3 var(--gc-head); color: var(--gc-primary); }
.g-form input[type="text"], .g-form input[type="email"], .g-form input[type="tel"], .g-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--gc-primary);
	background: #fff; border: 1px solid var(--gc-border); border-radius: 2px; padding: .9rem 1rem;
	transition: border-color 220ms, box-shadow 220ms;
}
.g-form textarea { resize: vertical; min-height: 9rem; }
.g-form input:focus, .g-form textarea:focus { outline: none; border-color: var(--gc-secondary); box-shadow: 0 0 0 3px rgba(47,93,134,.18); }
.g-form input:user-invalid, .g-form textarea:user-invalid { border-color: #b3261e; }
.g-form__consent { flex-direction: row; align-items: flex-start; gap: .75rem; }
.g-form__consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--gc-secondary); flex: none; }
.g-form__consent label { font: 400 .875rem/1.55 var(--wp--preset--font-family--body, sans-serif); color: var(--gc-muted); }
.g-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.g-form__footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.g-form__required { margin: 0; font-size: .8rem; color: var(--gc-muted); }
.g-form button.wp-block-button__link { cursor: pointer; }
.g-form__notice { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--gc-radius); margin-bottom: 1.5rem; font-size: .95rem; }
.g-form__notice svg { width: 24px; height: 24px; flex: none; }
.g-form__notice.is-success { background: #e8f1ea; color: #1d4d2b; }
.g-form__notice.is-error { background: #fbeceb; color: #7a1d17; }
.g-form__notice ul { margin: .4rem 0 0; padding-left: 1.1rem; }
@media (max-width: 599px) { .g-form__grid { grid-template-columns: 1fr; } .g-form__footer .wp-block-button, .g-form__footer button { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
	.g-hero__img { animation: none; transform: none; }
	.g-hero__content > * { animation: none; }
	.g-house__dot::before { animation: none; }
	.g-hero__scroll span { animation: none; }
}
@media (max-width: 781px) {
	.g-hero__ph { bottom: auto; top: calc(var(--g-header-h, 72px) + var(--g-topbar-h, 0px) + 1rem); }
}

/* --------------------------------------------------------------------------
   Slider Revolution – Grothe-Hero (Klassen aus dem Modul „grothe-hero“)
   identisch mit slider-revolution/hero-slider-export/grothe-hero.css
   -------------------------------------------------------------------------- */

.g-rs-eyebrow {
	font-family: var(--wp--preset--font-family--heading, Manrope, sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--secondary-light, #8fb0cc) !important;
}
.g-rs-eyebrow::before {
	content: ""; display: inline-block; vertical-align: middle;
	width: 36px; height: 2px; margin-right: 14px; background: currentColor;
}
.g-rs-title {
	font-family: var(--wp--preset--font-family--heading, Manrope, sans-serif) !important;
	font-weight: 800 !important;
	letter-spacing: -.035em !important;
	color: #fff !important;
}
.g-rs-subtitle {
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif) !important;
	color: rgba(255, 255, 255, .86) !important;
}
.g-rs-btn {
	font-family: var(--wp--preset--font-family--heading, Manrope, sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	border-radius: 2px !important;
	cursor: pointer;
	transition: background-color .28s cubic-bezier(.2, .7, .2, 1), color .28s, border-color .28s, transform .28s !important;
}
.g-rs-btn:hover { transform: translateY(-1px); }
.g-rs-btn--light { background: #fff !important; color: var(--wp--preset--color--primary, #172029) !important; border: 1px solid #fff !important; }
.g-rs-btn--light:hover { background: var(--wp--preset--color--primary, #172029) !important; color: #fff !important; border-color: var(--wp--preset--color--primary, #172029) !important; }
.g-rs-btn--outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .6) !important; }
.g-rs-btn--outline:hover { background: #fff !important; color: var(--wp--preset--color--primary, #172029) !important; border-color: #fff !important; }
.g-rs-btn:focus-visible { outline: 2px solid var(--wp--preset--color--secondary-light, #8fb0cc) !important; outline-offset: 3px; }

/* Bullets im Grothe-Stil */
.g-hero--slider rs-bullet, .g-hero--slider .sr7-bullet { width: 28px !important; height: 2px !important; border-radius: 0 !important; background: rgba(255, 255, 255, .35) !important; }
.g-hero--slider rs-bullet.selected, .g-hero--slider .sr7-bullet.selected { background: #fff !important; }

/* --------------------------------------------------------------------------
   Hero: Scroll-Video
   Die Sektion ist um --g-scroll höher als der Bildschirm; der Inhalt bleibt sticky stehen.
   -------------------------------------------------------------------------- */
.g-hero--video { height: calc(100vh + var(--g-scroll, 800px)); height: calc(100svh + var(--g-scroll, 800px)); background: #172029; }
.g-hero--video .g-hero__sticky {
	position: sticky; top: 0;
	height: 100vh; height: 100svh; min-height: 560px;
	overflow: hidden; display: flex; align-items: flex-end;
	isolation: isolate;
}
.g-hero--video .g-hero__video,
.g-hero--video .g-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: none; animation: none; }
.g-hero--video .g-hero__video { background: #172029 center / cover no-repeat; }
.g-hero--video .g-hero__bg::after {
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(23,32,41,.6) 0%, rgba(23,32,41,0) 30%),
		linear-gradient(90deg, rgba(23,32,41, calc(var(--g-hero-overlay, .55) + .15)) 0%, rgba(23,32,41, calc(var(--g-hero-overlay, .55) - .05)) 50%, rgba(23,32,41, calc(var(--g-hero-overlay, .55) - .3)) 100%);
}
.g-hero--video .g-hero__lines { z-index: 2; }
.g-hero__stages { display: grid; }
.g-hero__stage { grid-area: 1 / 1; max-width: 46rem; will-change: opacity, transform; }
.g-hero__stage .g-hero__title { margin: 0 0 1.25rem; }
.g-hero__stage .g-hero__subtitle { margin: 0 0 2.25rem; }
.g-hero__stage--2 { opacity: 0; visibility: hidden; }
.g-hero--video .g-hero__content > *, .g-hero__stage > * { animation: g-hero-in 1s cubic-bezier(.2,.7,.2,1) both; }
.g-hero__stage--1 > :nth-child(2) { animation-delay: .12s; }
.g-hero__stage--1 > :nth-child(3) { animation-delay: .24s; }
.g-hero__stage--2 > * { animation: none; }
.g-hero--video .g-hero__actions { animation: g-hero-in 1s .36s cubic-bezier(.2,.7,.2,1) both; }

/* Fortschrittsanzeige */
.g-hero__progress {
	position: absolute; left: var(--wp--style--root--padding-left, 1.5rem); bottom: clamp(1.75rem, 4vh, 2.5rem);
	width: 120px; height: 2px; background: rgba(255,255,255,.22); overflow: hidden;
}
.g-hero__progress span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.g-hero--video:not(.is-scroll) .g-hero__progress { display: none; }
@media (min-width: 1360px) {
	.g-hero__progress { left: calc((100vw - var(--wp--style--global--wide-size, 1280px)) / 2); }
}

/* Statisch (Bewegung reduzieren / ohne JS): kein Sticky-Scroll, nur Text 1 */
.g-hero--video.is-static, .g-hero--video.is-preview, html:not(.js) .g-hero--video { height: auto; }
.g-hero--video.is-static .g-hero__sticky, .g-hero--video.is-preview .g-hero__sticky, html:not(.js) .g-hero--video .g-hero__sticky { position: relative; height: auto; min-height: max(560px, 92vh); }
.g-hero--video.is-static .g-hero__scroll { display: none; }
.g-hero--video.is-preview { min-height: 0; }
.g-hero--video.is-preview .g-hero__sticky { min-height: 620px; }
.g-hero--video.is-preview .g-hero__stage--2 { display: none; }

@media (max-width: 599px) {
	.g-hero__stage { max-width: 100%; }
	.g-hero--video .g-hero__inner { padding-bottom: 4.5rem; }
	.g-hero__progress { bottom: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
	.g-hero__stage > *, .g-hero--video .g-hero__actions { animation: none; }
}


/* --------------------------------------------------------------------------
   Google-Bewertung & Innung
   -------------------------------------------------------------------------- */
.g-badges { display: flex; flex-wrap: wrap; align-items: stretch; gap: .85rem; margin: 0; }
.g-badge {
	display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--gc-primary);
	background: #fff; border: 1px solid var(--gc-border); border-radius: 14px; padding: .8rem 1.15rem;
	transition: border-color 280ms var(--gc-ease), transform 280ms var(--gc-ease), box-shadow 280ms var(--gc-ease);
}
a.g-badge:hover { border-color: var(--gc-secondary-light); transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(23,32,41,.5); }
.g-badge__g { width: 34px; height: 34px; flex: none; }
.g-badge__body { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: .55rem; row-gap: .15rem; line-height: 1.1; }
.g-badge__label { grid-column: 1 / -1; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--gc-muted); }
.g-badge__score { font-family: var(--gc-head); font-weight: 800; font-size: 1.55rem; color: var(--gc-secondary); }
.g-badge__stars { position: relative; display: inline-block; line-height: 0; }
.g-badge__stars svg { width: 15px; height: 15px; fill: currentColor; margin-right: 1px; }
.g-badge__stars-bg { color: #d6dde4; display: inline-flex; }
.g-badge__stars-fg { color: #f4b400; position: absolute; left: 0; top: 0; overflow: hidden; width: var(--g-stars, 100%); white-space: nowrap; display: inline-flex; }
.g-badge__count { grid-column: 1 / -1; font-size: .72rem; color: var(--gc-muted); }
.g-badge--innung { padding: .6rem 1rem; }
.g-badge--innung img { width: 78px; height: auto; display: block; }
.g-badges.is-dark .g-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #fff; }
.g-badges.is-dark a.g-badge:hover { border-color: rgba(255,255,255,.4); box-shadow: none; }
.g-badges.is-dark .g-badge__label, .g-badges.is-dark .g-badge__count { color: rgba(255,255,255,.62); }
.g-badges.is-dark .g-badge__score { color: #fff; }
.g-badges.is-dark .g-badge__stars-bg { color: rgba(255,255,255,.2); }

/* --------------------------------------------------------------------------
   Dach-Trenner
   -------------------------------------------------------------------------- */
/* Volle Fensterbreite (von links nach rechts), unabhängig vom Inhaltsbereich. */
.g-roof-divider { display: block; line-height: 0; pointer-events: none; overflow: hidden; }
/* Mehrfache Klasse = höhere Spezifität als die Layout-Regeln von WordPress (.is-layout-constrained > .alignwide). */
.g-roof-divider.g-roof-divider.g-roof-divider { width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
.g-roof-divider img {
	display: block; width: 100%; height: auto; margin: 0;
	/* Unten an der geraden Kante weich ausblenden. */
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.35) 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.35) 80%, transparent 100%);
}
.g-roof-divider.reveal img { clip-path: inset(0 50% 0 50%); transition: clip-path 1.4s var(--gc-ease) .1s; }
.g-roof-divider.reveal.is-visible img { clip-path: inset(0 0 0 0); }
.g-roof-divider--s { margin-top: var(--wp--preset--spacing--30, 1.5rem) !important; margin-bottom: var(--wp--preset--spacing--30, 1.5rem) !important; }
.g-roof-divider--m { margin-top: var(--wp--preset--spacing--50, 3rem) !important; margin-bottom: var(--wp--preset--spacing--50, 3rem) !important; }
.g-roof-divider--l { margin-top: var(--wp--preset--spacing--70, 5rem) !important; margin-bottom: var(--wp--preset--spacing--70, 5rem) !important; }
@media (prefers-reduced-motion: reduce) { .g-roof-divider img { clip-path: none; transition: none; } }

/* --------------------------------------------------------------------------
   Seitenkopf mit Hintergrundmotiv (Über uns / Karriere)
   -------------------------------------------------------------------------- */
.g-page-hero.has-backdrop { background: var(--gc-primary); border-bottom: 0; color: #fff; }
.g-page-hero.has-backdrop::after { background: rgba(255,255,255,.07); }
.g-page-hero.has-backdrop::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(55% 70% at 75% 60%, rgba(47,93,134,.5), transparent 70%); }
.g-page-hero.has-backdrop .g-page-hero__title { color: #fff; }
.g-page-hero.has-backdrop .g-page-hero__lead { color: rgba(255,255,255,.78); }
.g-page-hero.has-backdrop .g-breadcrumbs ol, .g-page-hero.has-backdrop .g-breadcrumbs a { color: rgba(255,255,255,.6); }
.g-page-hero.has-backdrop .g-breadcrumbs li + li::before { color: rgba(255,255,255,.3); }
.g-page-hero.has-backdrop .g-breadcrumbs a:hover { color: #fff; }
.g-page-hero.has-backdrop .g-page-hero__eyebrow { color: var(--gc-secondary-light); }
.g-page-hero__backdrop { position: absolute; z-index: 0; pointer-events: none; line-height: 0; }
.g-page-hero__backdrop img { display: block; width: 100%; height: auto; }
/* Über uns: Dachaufbau rechts */
.g-page-hero--bd-dachaufbau .g-page-hero__inner { min-height: clamp(22rem, 36vw, 32rem); }
.g-page-hero--bd-dachaufbau .g-page-hero__text { max-width: 36rem; }
.g-page-hero--bd-dachaufbau .g-page-hero__backdrop { right: max(-3vw, calc((100vw - 1440px) / 2)); bottom: -3%; width: min(56vw, 820px); animation: g-bd-in 1.2s var(--gc-ease) both .15s; }
.g-page-hero--bd-dachaufbau .g-page-hero__backdrop img { filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
/* Karriere: Werkzeug unten, Text zentriert */
.g-page-hero--bd-werkzeug .g-page-hero__inner { text-align: center; justify-items: center; padding-bottom: clamp(8rem, 21vw, 19rem); }
.g-page-hero--bd-werkzeug .g-breadcrumbs ol { justify-content: center; }
.g-page-hero--bd-werkzeug .g-page-hero__eyebrow { justify-content: center; }
.g-page-hero--bd-werkzeug .g-page-hero__eyebrow::after { content: ""; width: 2.25rem; height: 2px; background: currentColor; flex: none; }
.g-page-hero--bd-werkzeug .g-page-hero__title { font-size: clamp(2rem, 1.1rem + 4.2vw, 4.75rem); max-width: 16ch; margin-inline: auto; }
.g-page-hero--bd-werkzeug .g-page-hero__lead { margin-inline: auto; }
.g-page-hero--bd-werkzeug .g-page-hero__backdrop { left: 50%; bottom: -1px; width: min(110vw, 1400px); transform: translateX(-50%); animation: g-bd-up 1.2s var(--gc-ease) both .15s; }
.g-page-hero--bd-werkzeug::after { right: auto; left: -140px; }
@keyframes g-bd-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes g-bd-up { from { opacity: 0; transform: translate(-50%, 50px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 781px) {
	.g-page-hero--bd-dachaufbau .g-page-hero__inner { min-height: 0; padding-bottom: 14rem; }
	.g-page-hero--bd-dachaufbau .g-page-hero__backdrop { right: -10vw; width: 100vw; bottom: -1rem; }
}
@media (prefers-reduced-motion: reduce) { .g-page-hero__backdrop { animation: none !important; } }

/* --------------------------------------------------------------------------
   Öffnungszeiten & Kontakt-Kacheln
   -------------------------------------------------------------------------- */
.g-company-info--hours_table { display: grid; gap: .45rem; margin: 0; }
.g-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--gc-border); }
.g-hours__row:last-child { border-bottom: 0; padding-bottom: 0; }
.g-hours__day { font-weight: 700; white-space: nowrap; }
.g-hours__time { text-align: right; }
.g-hours__row.is-closed .g-hours__time { color: var(--gc-muted); }
.site-footer .g-company-info--hours_table { color: rgba(255,255,255,.78); }
.site-footer .g-hours__row { border-bottom-color: rgba(255,255,255,.14); font-size: var(--wp--preset--font-size--xs, .8rem); flex-direction: column; gap: .15rem; }
.site-footer .g-hours__time { text-align: left; }
.site-footer .g-hours__day { color: #fff; }
.site-footer .g-hours__row.is-closed .g-hours__time { color: rgba(255,255,255,.5); }
.g-hours-card h3 { margin-top: 0; }
.g-hours-card > p:last-child { color: var(--gc-muted); margin-bottom: 0; }

.g-company-info--contact_cards { display: flex; flex-wrap: wrap; gap: .85rem; margin: 0; }
.g-contact-tile {
	display: grid; gap: .3rem; padding: .85rem 1.2rem; min-width: 15rem; text-decoration: none;
	border: 1px solid var(--gc-border); border-radius: 14px; color: var(--gc-primary); background: #fff;
	transition: border-color 280ms var(--gc-ease), transform 280ms var(--gc-ease);
}
.g-contact-tile:hover { border-color: var(--gc-secondary); transform: translateY(-2px); }
.g-contact-tile__label { font-size: .75rem; color: var(--gc-muted); font-weight: 600; }
.g-contact-tile__value { display: flex; align-items: center; gap: .55rem; font-family: var(--gc-head); font-weight: 800; font-size: 1.15rem; color: var(--gc-secondary); }
.g-contact-tile__value svg { width: 20px; height: 20px; flex: none; }
.site-footer .g-contact-tile { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #fff !important; }
.site-footer .g-contact-tile:hover { border-color: rgba(255,255,255,.45); }
.site-footer .g-contact-tile__label { color: rgba(255,255,255,.62); }
.site-footer .g-contact-tile__value { color: var(--gc-secondary-light); }
@media (max-width: 480px) { .g-contact-tile { min-width: 0; width: 100%; } .g-contact-tile__value { font-size: 1.02rem; } }

/* Turnstile */
.g-form__captcha { margin: 1.25rem 0 0; }
.g-form__captcha .cf-turnstile { min-height: 65px; }
.g-form__captcha-note { font-size: .75rem; color: var(--gc-muted, #5a6774); margin: .35rem 0 0; }
