/* VGW Website – Ergänzungen zu theme.json */

/* Kopf */
.vgw-topbar a { color: inherit; text-decoration: none; }
.vgw-topbar a:hover { text-decoration: none; }
.vgw-topbar p { margin: 0; }
.vgw-header { border-bottom: 1px solid var(--wp--preset--color--linie); background: var(--wp--preset--color--weiss); }

/* Kopf bleibt beim Scrollen oben */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
@media (min-width: 783px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; } }

/* Hauptmenü (Desktop) */
.vgw-header .wp-block-navigation a { color: var(--wp--preset--color--schwarz); text-decoration: none; background: none; }
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
	padding: .45rem 0;
	transition: color .2s ease;
}
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background: var(--wp--preset--color--vgw-rot);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within) > .wp-block-navigation-item__content,
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content { color: var(--wp--preset--color--vgw-rot); }
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within, .current-menu-ancestor) > .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--vgw-rot); }

/* Untermenüs (Desktop): direkt unter dem Menüpunkt, Text bündig mit dem Menüpunkt, leichte Karte statt Kasten */
.vgw-header .wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	left: -.9rem !important;
	right: auto !important;
	top: calc(100% + .6rem) !important;
	border: 1px solid rgba(0, 0, 0, .06) !important;
	border-radius: 10px;
	background: var(--wp--preset--color--weiss) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
	padding: .45rem !important;
	min-width: 15rem !important;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* Brücke, damit das Untermenü beim Weg mit der Maus nicht zuklappt */
.vgw-header .wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -.8rem;
	height: .8rem;
}
/* die letzten beiden Punkte rechtsbündig, damit nichts über den Rand ragt */
.vgw-header .wp-block-navigation .wp-block-navigation__container > .has-child:nth-last-child(-n+2) > .wp-block-navigation__submenu-container { left: auto !important; right: -.9rem !important; }
.vgw-header .wp-block-navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container {
	transform: translateY(0);
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.vgw-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .5rem .75rem !important;
	border-radius: 6px;
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.vgw-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	background: rgba(227, 5, 19, .07);
	color: var(--wp--preset--color--vgw-rot);
}
.vgw-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--vgw-rot);
	font-weight: 600;
}

/* im Handy-Menü nicht */
.vgw-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: normal; }
.vgw-header .is-menu-open .wp-block-navigation__submenu-container::before { display: none; }
.vgw-header .wp-block-navigation .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	background: none !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	padding: 0 0 0 1.4rem !important;
	min-width: 0 !important;
	transform: none !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
}
.vgw-header .wp-block-navigation .is-menu-open .wp-block-navigation__container > .vgw-offen > .wp-block-navigation__submenu-container { padding-bottom: .3rem !important; }

/* „Kontakt“ als dezenter Knopf */
@media (min-width: 600px) {
	.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
		padding: .4rem .95rem;
		border: 1.5px solid var(--wp--preset--color--vgw-rot);
		color: var(--wp--preset--color--vgw-rot);
		transition: background-color .2s ease, color .2s ease;
	}
	.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content::after { display: none; }
	.vgw-header .wp-block-navigation__container > .wp-block-navigation-item:last-child:is(:hover, :focus-within, .current-menu-ancestor, .current-menu-item) > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--vgw-rot);
		color: var(--wp--preset--color--weiss);
	}
}

/* Handy-Menü (Overlay) – Panel von rechts in VGW-Rot (70 % Deckkraft, Hintergrund weichgezeichnet), Seite abgedunkelt,
   Unterpunkte zugeklappt mit Pfeil (Pfeile setzt das Skript in functions.php). */
.vgw-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 !important;
	background: transparent !important;
	flex-direction: row !important;
	justify-content: flex-end;
	overflow: hidden;
	animation: none !important;
}
.vgw-header .is-menu-open .wp-block-navigation__responsive-close {
	width: min(300px, 82vw) !important;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	background: rgba(227, 5, 19, .7);
	-webkit-backdrop-filter: blur(10px) saturate(1.2);
	backdrop-filter: blur(10px) saturate(1.2);
	color: var(--wp--preset--color--weiss);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
	animation: vgw-panel-rein .35s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes vgw-panel-rein {
	from { transform: translateX(100%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0); }
	to { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
}
.vgw-header .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; padding: 3.6rem 0 2rem; margin: 0 !important; }
body.admin-bar .vgw-header .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 46px !important; }
@media (min-width: 783px) { body.admin-bar .vgw-header .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 32px !important; } }
.vgw-header .is-menu-open .wp-block-navigation__responsive-container-close { top: .9rem !important; right: .9rem !important; left: auto !important; color: var(--wp--preset--color--weiss); }
.vgw-header .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.vgw-header .is-menu-open .wp-block-navigation__responsive-container-content,
.vgw-header .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	padding: 0 !important;
	width: 100%;
	text-align: left;
}
.vgw-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	position: relative;
}
.vgw-header .is-menu-open .wp-block-navigation-item__content {
	flex: 1 1 0;
	min-width: 0;
	padding: .6rem 1.25rem !important;
	font-size: 1.125rem !important;
	line-height: 1.4;
	color: var(--wp--preset--color--weiss) !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-align: left;
	transition: background-color .15s ease;
}
.vgw-header .is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .12) !important; }
.vgw-header .is-menu-open .wp-block-navigation-item__content::after { display: none !important; }
.vgw-header .is-menu-open :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.vgw-header .is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
.vgw-header .is-menu-open .wp-block-navigation__submenu-container {
	flex: 0 0 100%;
	position: static !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 0 0 1.4rem !important;
	margin: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	height: auto !important;
	max-height: 40rem;
	overflow: hidden !important;
	transition: max-height .35s ease, opacity .25s ease, padding .35s ease !important;
}
.vgw-header .is-menu-open .has-child:not(.vgw-offen) > .wp-block-navigation__submenu-container {
	max-height: 0;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: max-height .3s ease, opacity .2s ease, visibility 0s .3s !important;
}
.vgw-header .is-menu-open .vgw-offen > .wp-block-navigation__submenu-container { padding-bottom: .3rem !important; }
.vgw-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.05rem !important; padding: .5rem 1.25rem .5rem .6rem !important; color: rgba(255, 255, 255, .92) !important; }
.vgw-pfeil { display: none; }
.vgw-header .is-menu-open .vgw-pfeil {
	display: block;
	flex: 0 0 3.2rem;
	height: 2.9rem;
	margin: 0 .3rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	color: var(--wp--preset--color--weiss);
}
.vgw-header .is-menu-open .vgw-pfeil::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform .3s ease;
}
.vgw-header .is-menu-open .vgw-offen > .vgw-pfeil::before { transform: translate(-50%, -25%) rotate(-135deg); }
.vgw-header .is-menu-open .vgw-pfeil:focus-visible { outline: 2px solid var(--wp--preset--color--weiss); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
	.vgw-header .is-menu-open .wp-block-navigation__responsive-close { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vgw-header .wp-block-navigation * { transition: none !important; }
}

/* Seitentitel mit rotem Strich wie bisher */
.vgw-seitentitel::after,
.vgw-hero__titel::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: .8rem;
	background: var(--wp--preset--color--vgw-rot);
}

/* Startseite */
.vgw-hero__titel { color: #fff; margin-bottom: .5rem; }
.vgw-hero__text { max-width: 40rem; }
/* in der Bühne: Text bündig unter der Überschrift, Zeilenlänge trotzdem begrenzt */
.vgw-buehne > .vgw-buehne__text > .vgw-hero__text { max-width: var(--wp--style--global--wide-size) !important; padding-right: max(0px, calc(100% - 40rem)); }
.vgw-kachel {
	border-top: 4px solid var(--wp--preset--color--vgw-rot);
	background: var(--wp--preset--color--hellgrau);
	padding: var(--wp--preset--spacing--40);
}
.vgw-kachel h3 { margin-top: 0; }
.vgw-kachel h3 a { color: inherit; text-decoration: none; }
.vgw-kachel h3 a::after { content: " →"; color: var(--wp--preset--color--vgw-rot); }
.vgw-kachel p:last-child { margin-bottom: 0; }
.vgw-schwerpunkte { list-style: none; padding: 0; display: grid; gap: .8rem; }
.vgw-schwerpunkte li { padding-left: 1.6rem; position: relative; }
.vgw-schwerpunkte li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--wp--preset--color--vgw-rot); }

/* Bühne (Bildwechsel Startseite): Gruppe .vgw-buehne > Galerie .vgw-buehne__bilder + Gruppe .vgw-buehne__text */
.vgw-buehne {
	position: relative;
	min-height: min(68vh, 640px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--wp--preset--color--schwarz);
	color: #fff;
}
.vgw-buehne > .vgw-buehne__bilder {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	display: block !important;
	gap: 0 !important;
}
.vgw-buehne > .vgw-buehne__bilder > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.vgw-buehne > .vgw-buehne__bilder > figure:first-child,
.vgw-buehne.ist-aktiv > .vgw-buehne__bilder > figure.is-aktiv { opacity: 1; }
.vgw-buehne.ist-aktiv > .vgw-buehne__bilder > figure:not(.is-aktiv) { opacity: 0; }
.vgw-buehne > .vgw-buehne__bilder > figure img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}
.vgw-buehne > .vgw-buehne__bilder > figure figcaption { display: none; }
.vgw-buehne::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%);
	pointer-events: none;
}
.vgw-buehne > .vgw-buehne__text {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.vgw-buehne .vgw-hero__titel,
.vgw-buehne .vgw-hero__text { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.vgw-buehne__pause {
	position: absolute;
	z-index: 2;
	right: var(--wp--preset--spacing--40);
	bottom: var(--wp--preset--spacing--30);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: #fff;
	background: rgba(0, 0, 0, .45);
	border: 1px solid rgba(255, 255, 255, .6);
	padding: .3rem .8rem;
	cursor: pointer;
}
.vgw-buehne__pause:hover { background: rgba(0, 0, 0, .7); }
@media (prefers-reduced-motion: reduce) {
	.vgw-buehne > .vgw-buehne__bilder > figure.wp-block-image { transition: none; }
}

/* Bühne: Titel + Einleitung im roten Kasten wie bei den Unterseiten (lesbar auf jedem Bild) */
.vgw-buehne::after { background: linear-gradient(to top, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 40%); }
.vgw-buehne > .vgw-buehne__text { background: rgba(227, 5, 19, .88); }
.vgw-buehne .vgw-hero__titel,
.vgw-buehne .vgw-hero__text { text-shadow: none; margin-inline: 0 !important; }
.vgw-buehne .vgw-hero__titel { font-size: clamp(2rem, 1.2rem + 2vw, 3rem) !important; line-height: 1.05; }
.vgw-buehne .vgw-hero__titel::after { background: var(--wp--preset--color--weiss); }
.vgw-buehne > .vgw-buehne__text > .vgw-hero__text { padding-right: 0 !important; max-width: none !important; font-size: var(--wp--preset--font-size--medium) !important; line-height: 1.5; }
@media (min-width: 782px) {
	.vgw-buehne { overflow: visible; margin-bottom: calc(2.25rem + var(--wp--preset--spacing--50)) !important; }
	.vgw-buehne > .vgw-buehne__bilder { overflow: hidden; }
	.vgw-buehne > .vgw-buehne__text {
		width: fit-content;
		max-width: min(34rem, 48%);
		margin: 0 0 -2.25rem max(var(--wp--style--root--padding-left, 1.5rem), calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
		padding: 2.2rem 2rem 2rem !important;
	}
}
@media (max-width: 781px) {
	.vgw-buehne::after { display: none; }
	.vgw-buehne > .vgw-buehne__text { padding-top: 1.6rem !important; padding-bottom: 1.6rem !important; }
	.vgw-buehne .vgw-hero__titel { font-size: 2.1rem !important; }
	.vgw-buehne > .vgw-buehne__text > .vgw-hero__text { font-size: 1.05rem !important; }
	.vgw-buehne__pause { top: var(--wp--preset--spacing--30); bottom: auto; right: var(--wp--preset--spacing--30); }
}

/* Unterseiten */
/* Schriftgrößen wie auf der alten Seite: Einleitung = Fließtext (18 px), Zwischenüberschriften kleiner */
.vgw-einleitung { max-width: 46rem; }
p.vgw-einleitung.vgw-einleitung { font-size: var(--wp--preset--font-size--medium) !important; line-height: 1.65; }
.wp-block-post-content h2.wp-block-heading:not([class*="-font-size"]) { font-size: 1.55rem; }
.wp-block-post-content h3.wp-block-heading:not([class*="-font-size"]) { font-size: 1.25rem; }
/* Kachel-Raster: höchstens 3 Spalten (wie WEG-/Mietverwaltung), darunter automatisch 2 bzw. 1 */
.vgw-leistungen.wp-block-group-is-layout-grid {
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(16rem, calc((100% - 3rem) / 3))), 1fr)) !important;
}
.vgw-kachel img { max-width: 100%; height: auto; }
.vgw-leistungen .vgw-kachel ul { padding-left: 1.1rem; margin: 0; }
.vgw-leistungen .vgw-kachel li + li { margin-top: .35rem; }
.vgw-person { font-size: var(--wp--preset--font-size--small); }
.vgw-person .wp-block-image { margin-bottom: .6rem; }
.vgw-person .wp-block-image img { width: 100%; height: auto; display: block; background: var(--wp--preset--color--hellgrau); }
.vgw-person p { margin: 0; line-height: 1.45; }
.vgw-person strong { font-size: var(--wp--preset--font-size--medium); font-weight: 400; }
.vgw-kontaktbox p { margin-top: 0; }

/* Häufige Fragen (Details-Block mit Klasse vgw-faq) */
.vgw-faq { border-top: 1px solid var(--wp--preset--color--linie); padding: .9rem 0; }
.vgw-faq:last-of-type { border-bottom: 1px solid var(--wp--preset--color--linie); }
.vgw-faq + .vgw-faq { margin-top: 0; }
.vgw-faq summary { cursor: pointer; font-size: var(--wp--preset--font-size--large); list-style: none; position: relative; padding-right: 2rem; }
.vgw-faq summary::-webkit-details-marker { display: none; }
.vgw-faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; color: var(--wp--preset--color--vgw-rot); font-size: 1.6rem; line-height: 1; }
.vgw-faq[open] summary::after { content: "–"; }
.vgw-faq[open] summary { margin-bottom: .6rem; }

/* Formulare (Contact Form 7, Feld-Gerüst .vgw-form im Formular) */
.vgw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem 1.5rem; margin-bottom: 1rem; }
.vgw-form__feld { display: flex; flex-direction: column; gap: .3rem; }
.vgw-form__feld--breit { grid-column: 1 / -1; }
.vgw-form__feld > span:first-child { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--anthrazit); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem;
	padding: .65rem .75rem; border: 1px solid #b9b9bd; border-radius: 0; background: #fff;
}
.wpcf7 textarea { min-height: 10rem; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--wp--preset--color--vgw-rot); outline: 2px solid var(--wp--preset--color--vgw-rot); outline-offset: 0; }
.wpcf7 .wpcf7-submit {
	font: inherit; font-size: var(--wp--preset--font-size--medium); cursor: pointer;
	background: var(--wp--preset--color--vgw-rot); color: #fff; border: 0; padding: .75rem 1.6rem;
}
.wpcf7 .wpcf7-submit:hover { background: var(--wp--preset--color--vgw-rot-dunkel); }
.vgw-form__hinweis { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--grau); }
.wpcf7-not-valid-tip { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--vgw-rot-dunkel); }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-width: 2px; }

/* Karten mit Bild (z. B. Projekte, Referenzen, Gewerbeobjekte) */
.vgw-karte { padding: 0 0 var(--wp--preset--spacing--40); }
.vgw-karte > .wp-block-image { margin: 0 0 var(--wp--preset--spacing--30); }
.vgw-karte > .wp-block-image img { width: 100%; display: block; }
.vgw-karte > :not(.wp-block-image) { margin-left: var(--wp--preset--spacing--40); margin-right: var(--wp--preset--spacing--40); }

/* Eingebettete Inhalte (Video, ImmobilienScout24-Liste) */
.vgw-video { position: relative; aspect-ratio: 16 / 9; }
.vgw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content iframe { max-width: 100%; border: 0; }

/* Fuß */
.vgw-footer a { color: inherit; }

/* Barrierefreiheit: sichtbarer Fokus */
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--vgw-rot); outline-offset: 2px; }

/* Zeitleiste (Chronik) */
.vgw-zeitleiste { border-left: 3px solid var(--wp--preset--color--vgw-rot); padding-left: 1.75rem; margin-left: .5rem; }
.vgw-zeitleiste__eintrag { position: relative; margin-block: 0 2rem; }
.vgw-zeitleiste__eintrag::before { content: ""; position: absolute; left: calc(-1.75rem - 10px); top: .35em; width: 11px; height: 11px; border-radius: 50%; background: var(--wp--preset--color--weiss); border: 3px solid var(--wp--preset--color--vgw-rot); }
.vgw-zeitleiste__eintrag > h3 { margin: 0 0 .35rem; color: var(--wp--preset--color--vgw-rot); }
.vgw-zeitleiste__eintrag > p { margin-block: .35rem; }

/* Kennzahlen und Downloads */
.vgw-zahl > p:first-child { margin: 0; color: var(--wp--preset--color--grau); font-size: var(--wp--preset--font-size--small); }
.vgw-zahl > p.vgw-zahl__wert { margin: .35rem 0 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.6rem); color: var(--wp--preset--color--schwarz); line-height: 1.2; overflow-wrap: anywhere; }
.vgw-zahl > p.vgw-zahl__wert--text { font-size: var(--wp--preset--font-size--medium); line-height: 1.35; }
.vgw-downloads { list-style: none; padding-left: 0; }
.vgw-downloads li { border-bottom: 1px solid var(--wp--preset--color--linie); padding: .6rem 0; }
.vgw-downloads a::before { content: "↓ "; color: var(--wp--preset--color--vgw-rot); }

/* Seitenkopf: Titelbild (Beitragsbild) mit rotem, halbtransparentem Titelkasten wie auf der alten Seite */
.vgw-seitenkopf { position: relative; }
.vgw-seitenkopf > .wp-block-post-featured-image { margin: 0; }
.vgw-seitenkopf > .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vgw-seitenkopf:not(:has(.wp-block-post-featured-image)) > .vgw-seitentitel { max-width: var(--wp--style--global--content-size); margin-inline: auto; }
.vgw-seitenkopf:has(.wp-block-post-featured-image) { margin-bottom: var(--wp--preset--spacing--60); }
.vgw-seitenkopf:has(.wp-block-post-featured-image) > .vgw-seitentitel {
	color: var(--wp--preset--color--vgw-rot);
	font-weight: 600;
	text-transform: uppercase;
	margin: var(--wp--preset--spacing--40) 0 0;
}
.vgw-seitenkopf:has(.wp-block-post-featured-image) > .vgw-seitentitel::after { display: none; }
@media (min-width: 782px) {
	.vgw-seitenkopf:has(.wp-block-post-featured-image) > .vgw-seitentitel {
		position: absolute;
		left: 0;
		bottom: -2.25rem;
		width: fit-content;
		min-width: clamp(15rem, 24%, 19rem);
		max-width: 45%;
		min-height: 62%;
		margin: 0;
		padding: 2rem 1.25rem;
		display: flex;
		align-items: center;
		background: rgba(227, 5, 19, .85);
		color: var(--wp--preset--color--weiss);
		font-size: clamp(1.35rem, .9rem + 1vw, 1.9rem);
		line-height: 1.25;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.vgw-seitenkopf:has(.wp-block-post-featured-image) { margin-bottom: calc(2.25rem + var(--wp--preset--spacing--50)); }
}

/* Textlinks (auch Telefon, E-Mail, Fußzeile): ohne Unterstrich, beim Überfahren/Fokus wächst eine Linie von links.
   Ausgenommen: Buttons, Menü, Links um Bilder. */
:where(.wp-site-blocks) a:not(.wp-element-button):not(.wp-block-navigation-item__content):not(:has(img)) {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	padding-bottom: 1px;
	transition: background-size .25s ease, color .2s ease;
}
:where(.wp-site-blocks) a:not(.wp-element-button):not(.wp-block-navigation-item__content):not(:has(img)):is(:hover, :focus-visible) {
	background-size: 100% 2px;
	color: var(--wp--preset--color--vgw-rot-dunkel);
	text-decoration: none;
}
.vgw-topbar a:is(:hover, :focus-visible) { color: inherit !important; }
@media (prefers-reduced-motion: reduce) {
	:where(.wp-site-blocks) a { transition: none; }
}

/* Einstieg: Einleitung links, Ansprechpartner rechts (Spalten-Block .vgw-einstieg) */
.vgw-einstieg { gap: var(--wp--preset--spacing--50); margin-bottom: var(--wp--preset--spacing--50); }
.vgw-einstieg > .wp-block-column > :first-child { margin-top: 0; }
.vgw-kontaktspalte {
	background: var(--wp--preset--color--hellgrau);
	border-top: 4px solid var(--wp--preset--color--vgw-rot);
	padding: var(--wp--preset--spacing--40);
}
.vgw-kontaktspalte > h3 { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--large); }
.vgw-kontaktspalte .vgw-person {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: .9rem;
	align-items: start;
	margin: 0;
}
.vgw-kontaktspalte .vgw-person + .vgw-person { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--linie); }
.vgw-kontaktspalte .vgw-person .wp-block-image { margin: 0; }
.vgw-kontaktspalte .vgw-person .wp-block-image img { width: 76px; height: 114px; object-fit: cover; }
.vgw-kontaktspalte .vgw-person p { overflow-wrap: anywhere; }

/* Unterseiten: Inhalt linksbündig an der breiten Kante (wie Titelkasten und Spalten), Zeilenlänge bleibt begrenzt */
.vgw-seite:not(.vgw-seite--voll) > .wp-block-post-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.vgw-seitenkopf:not(:has(.wp-block-post-featured-image)) > .vgw-seitentitel { margin-left: 0; }
