/* ==========================================================================
   ÜWG Michelstadt — Theme-Styles
   Ergänzt theme.json. Farben/Schriften kommen als CSS-Variablen aus theme.json.
   Umbruch Mobil/Desktop: 782px (wie WordPress-Spalten).
   ========================================================================== */

:root {
	/* Zoom auf Bildern: 0,6 s hinein, 1 s zurück */
	--uewg-zoom-hin: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	--uewg-zoom-zurueck: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
	--uewg-radius: var(--wp--custom--radius--bild, 16px);
	--uewg-linie: rgba(15, 15, 53, 0.14);
	--uewg-rand: max(var(--wp--style--root--padding-left, 1.25rem), calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
	--uewg-rand-vw: max(var(--wp--style--root--padding-left, 1.25rem), calc((100vw - var(--wp--style--global--wide-size, 1200px)) / 2));
}

/* ---------- Grundlagen ---------- */

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

/* Sprunglinks (#anker): weich scrollen, Ziel nicht unter dem festen Kopfbereich */
html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

main.wp-block-group {
	margin-block-start: 0;
}

strong,
b {
	font-weight: 700;
}

::selection {
	background: var(--wp--preset--color--gelb);
	color: var(--wp--preset--color--nachtblau);
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--gelb);
	outline-offset: 2px;
}

/* ---------- Bilder: Standard abgerundet, Stil "Eckig" ohne ---------- */

.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-post-featured-image a,
.wp-block-gallery .wp-block-image img {
	border-radius: var(--uewg-radius);
}

.wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--uewg-radius);
}

.is-style-eckig,
.is-style-eckig img,
.is-style-eckig a {
	border-radius: 0 !important;
}

/* ---------- Textstile ---------- */

.is-style-ueberzeile {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blau);
	margin-bottom: 0.25rem;
}

.is-style-ueberzeile + .wp-block-heading {
	margin-block-start: 0.5rem;
}

.is-style-breakout,
.wp-block-heading.is-style-breakout {
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-size: var(--wp--preset--font-size--riesig);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.uewg-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

/* ---------- Automatische Textfarbe auf dunklen Flächen ---------- */

.has-blau-background-color,
.has-nachtblau-background-color {
	color: var(--wp--preset--color--weiss);
}

.has-blau-background-color :is(h1, h2, h3, h4, h5, h6, summary),
.has-nachtblau-background-color :is(h1, h2, h3, h4, h5, h6, summary),
.has-blau-background-color a:not(.wp-element-button),
.has-nachtblau-background-color a:not(.wp-element-button) {
	color: inherit;
}

.has-blau-background-color .is-style-ueberzeile,
.has-nachtblau-background-color .is-style-ueberzeile,
.has-nachtblau-background-color .is-style-breakout {
	color: var(--wp--preset--color--gelb);
}

.has-blau-background-color .is-style-breakout {
	color: var(--wp--preset--color--weiss);
}

/* Knöpfe auf dunklen Flächen: Gelb mit Nachtblau */
.has-blau-background-color .wp-block-button:not(.is-style-outline) .wp-element-button,
.has-nachtblau-background-color .wp-block-button:not(.is-style-outline) .wp-element-button {
	background-color: var(--wp--preset--color--gelb);
	color: var(--wp--preset--color--nachtblau);
}

.has-blau-background-color .wp-block-button:not(.is-style-outline) .wp-element-button:hover,
.has-nachtblau-background-color .wp-block-button:not(.is-style-outline) .wp-element-button:hover {
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--nachtblau);
}

/* Umriss-Knopf */
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--blau);
	border: 2px solid currentColor;
	padding: calc(0.95em - 2px) calc(1.6em - 2px);
}

.wp-block-button.is-style-outline .wp-element-button:hover {
	background: var(--wp--preset--color--blau);
	border-color: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

.has-blau-background-color .wp-block-button.is-style-outline .wp-element-button,
.has-nachtblau-background-color .wp-block-button.is-style-outline .wp-element-button {
	color: var(--wp--preset--color--weiss);
}

.has-blau-background-color .wp-block-button.is-style-outline .wp-element-button:hover,
.has-nachtblau-background-color .wp-block-button.is-style-outline .wp-element-button:hover {
	background: var(--wp--preset--color--weiss);
	border-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--nachtblau);
}

/* ---------- Kopfbereich ---------- */

.uewg-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: var(--wp--preset--color--weiss);
	border-bottom: 1px solid var(--uewg-linie);
}

.uewg-kopf {
	padding-block: 0.75rem;
}

.uewg-kopf-innen {
	gap: clamp(1.5rem, 4vw, 3.5rem) !important;
	align-items: center;
}

.uewg-logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.uewg-logo img {
	display: block;
	height: clamp(44px, 5vw, 60px);
	width: auto;
}

.uewg-nav-haupt .wp-block-navigation__container {
	gap: clamp(1rem, 2.2vw, 2rem);
}

.uewg-nav-haupt .wp-block-navigation-item__content {
	text-decoration: none;
	padding-block: 0.4rem;
	border-bottom: 2px solid transparent;
}

.uewg-nav-haupt .wp-block-navigation-item__content:hover,
.uewg-nav-haupt .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--blau);
}

.uewg-nav-haupt .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 15, 53, 0.14);
	padding: 0.5rem 0;
	min-width: 220px !important;
}

.uewg-nav-haupt .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.1rem;
	border-bottom: 0;
}

/* Hamburger-Menü schon unter 1024 px (WordPress-Standard wäre 600 px),
   damit das Menü nie auf zwei Zeilen umbricht. */
@media (max-width: 1023px) {
	.uewg-kopf-innen {
		justify-content: space-between !important;
	}

	.uewg-nav-haupt .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.uewg-nav-haupt .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}

	.uewg-nav-haupt .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
		position: fixed;
		inset: 0;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 100000;
		overflow: auto;
		flex-direction: column;
	}

	.uewg-nav-haupt .is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex !important;
	}

	.uewg-nav-haupt .is-menu-open .wp-block-navigation__container,
	.uewg-nav-haupt .is-menu-open .wp-block-navigation__responsive-container-content {
		flex-direction: column !important;
		align-items: flex-start !important;
	}
}

/* Desktop: Menüpunkte bleiben immer in einer Zeile */
@media (min-width: 1024px) {
	.uewg-nav-haupt .wp-block-navigation__container {
		flex-wrap: nowrap !important;
	}

	.uewg-nav-haupt .wp-block-navigation-item__label {
		white-space: nowrap;
	}
}

/* Mobiles Menü: Aktuelles oben und rechtliche Links unten nur im Overlay */
.uewg-nav-mobil {
	display: none !important;
}

.uewg-nav-haupt .wp-block-navigation__responsive-container.is-menu-open .uewg-nav-mobil {
	display: flex !important;
}

.uewg-nav-haupt .is-menu-open .uewg-nav-recht-mobil {
	flex-direction: column;
	gap: 0.6rem !important;
	list-style: none;
	margin: 2.5rem 0 0 !important;
	padding: 1.25rem 0 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 400;
}

.uewg-nav-haupt .is-menu-open .uewg-nav-recht-mobil {
	align-self: stretch;
	width: 100%;
}

.uewg-nav-haupt .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gelb);
	border-bottom-color: var(--wp--preset--color--gelb);
}

.uewg-nav-haupt .is-menu-open .uewg-nav-recht-mobil a {
	color: inherit;
	opacity: 0.7;
	text-decoration: none;
}

.uewg-nav-haupt .is-menu-open .uewg-nav-recht-mobil a:hover {
	opacity: 1;
	color: var(--wp--preset--color--gelb);
}

/* Mobiles Menü (Overlay) */
.uewg-nav-haupt .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1.25rem, 6vw, 3rem);
}

.uewg-nav-haupt .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
	font-size: var(--wp--preset--font-size--large);
}

.uewg-nav-haupt .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--gelb);
	border-bottom-color: var(--wp--preset--color--gelb);
}

.uewg-nav-haupt .wp-block-navigation__responsive-container-open svg,
.uewg-nav-haupt .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

/* ---------- Hero 66/33 ---------- */

.uewg-hero.wp-block-columns {
	gap: 0 !important;
}

/* Textspalte füllt immer die volle Höhe (Farbe bis oben und unten),
   Inhalt bleibt senkrecht mittig. */
.uewg-hero-text {
	padding: var(--wp--preset--spacing--80) var(--uewg-rand-vw);
	align-self: stretch !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.uewg-hero.wp-block-columns {
	align-items: stretch !important;
}

.uewg-hero-text > * {
	max-width: 46rem;
}

.uewg-hero-text h1 {
	margin-block-start: 0.5rem;
}

.uewg-fill {
	margin: 0;
}

.uewg-fill img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.uewg-hero .uewg-fill img {
	border-radius: 0;
}

@media (min-width: 782px) {
	.uewg-hero {
		min-height: min(82vh, 780px);
	}

	.uewg-hero-text {
		padding-right: clamp(2rem, 5vw, 5rem);
	}

	.uewg-bildspalte {
		display: flex;
		align-self: stretch !important;
	}

	/* Bild füllt die Spaltenhöhe; eine Bildunterschrift steht darunter */
	.uewg-bildspalte > .uewg-fill {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.uewg-bildspalte > .uewg-fill img,
	.uewg-bildspalte > .uewg-fill > a,
	.uewg-bildspalte > .uewg-fill > div {
		flex: 1 1 auto;
		min-height: 240px;
	}

	.uewg-bildspalte > .uewg-fill img {
		height: 100% !important;
	}

	.uewg-bildspalte > .uewg-fill > a img,
	.uewg-bildspalte > .uewg-fill > div img {
		min-height: 100%;
	}

	.uewg-bildspalte > .uewg-fill > figcaption {
		flex: 0 0 auto;
	}
}

@media (max-width: 781px) {
	.uewg-fill img {
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.uewg-hero .uewg-fill img {
		aspect-ratio: 3 / 2;
	}
}

/* ---------- 50/50 ---------- */

/* Einspaltig (Handy): immer erst Bild, dann Text — auch bei „Bild rechts“ */
@media (max-width: 781px) {
	.uewg-split .uewg-split-spalten > .uewg-bildspalte {
		order: -1;
	}
}

.uewg-split-spalten.wp-block-columns {
	gap: clamp(2rem, 6vw, 6rem) !important;
}

.uewg-textspalte > * {
	max-width: 34rem;
}

@media (min-width: 782px) {
	.uewg-split .uewg-split-spalten {
		min-height: min(72vh, 680px);
	}
}

/* ---------- Abschnitte ---------- */

.uewg-intro .uewg-lead,
.uewg-neueste .uewg-lead {
	margin-inline: auto;
	max-width: 38rem;
}

.uewg-neueste > .wp-block-buttons,
.uewg-intro > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--50);
}

.uewg-neueste .uewg-karten {
	margin-block-start: var(--wp--preset--spacing--60);
}

.uewg-band .is-style-breakout {
	margin-block-end: 1.25rem;
}

.uewg-aufruf {
	border-radius: calc(var(--uewg-radius) * 1.5);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}

.uewg-aufruf .uewg-lead {
	max-width: 36rem;
	margin-inline: auto;
}

/* ---------- Zahlen ---------- */

/* Vier Punkte: 4 nebeneinander · 2 × 2 · untereinander */
.uewg-punkte {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	margin-block-start: var(--wp--preset--spacing--60) !important;
	text-align: center;
}

@media (min-width: 600px) {
	.uewg-punkte {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.uewg-punkte {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.uewg-punkte > * {
	margin: 0 !important;
}

.uewg-punkt > * + * {
	margin-block-start: 0.6rem !important;
}

.uewg-punkt-titel,
.uewg-zahlen .wp-block-column h2,
.uewg-zahlen .wp-block-column h3,
.uewg-punkt h2 {
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.25;
	letter-spacing: 0 !important;
	margin-block-start: 0.75rem !important;
	color: inherit;
}

.uewg-punkt .uewg-zahl-text {
	font-family: var(--wp--preset--font-family--roboto-serif);
	font-size: 1rem;
	opacity: 0.85;
}

/* Ältere Version (Spalten-Block): auf mittleren Breiten 2 × 2 statt alles untereinander */
@media (min-width: 782px) and (max-width: 1099px) {
	.uewg-zahlen-spalten.wp-block-columns {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important;
	}

	.uewg-zahlen-spalten.wp-block-columns > .wp-block-column {
		flex: 0 0 calc(50% - var(--wp--preset--spacing--50) / 2) !important;
	}
}

.uewg-zahlen-spalten {
	margin-block-start: var(--wp--preset--spacing--60) !important;
	text-align: center;
}

.uewg-zahl {
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-size: var(--wp--preset--font-size--riesig);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--gelb);
	margin: 0;
}

.uewg-zahl-text {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	margin-block-start: 0.5rem !important;
}

/* ---------- Beitragskarten ---------- */

.uewg-karten .wp-block-post-template,
.uewg-bilderleiste .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.uewg-karten .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* „Beiträge (4)“: 4 nebeneinander · 2 × 2 · untereinander */
.uewg-neueste .uewg-karten .wp-block-post-template {
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.uewg-neueste .uewg-karten .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.uewg-neueste .uewg-karten .wp-block-post-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.uewg-karten .wp-block-post-template > li {
	margin: 0;
}

.uewg-karte {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
}

.uewg-karte > * {
	margin: 0 !important;
}

.uewg-karte .wp-block-post-featured-image {
	margin-bottom: 0.5rem !important;
}

.uewg-karte .wp-block-post-featured-image img {
	transform: scale(1);
	transition: var(--uewg-zoom-zurueck);
}

.uewg-karte:hover .wp-block-post-featured-image img,
.uewg-karte:focus-within .wp-block-post-featured-image img {
	transform: scale(1.04);
	transition: var(--uewg-zoom-hin);
}

.uewg-karte-titel {
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 600 !important;
	line-height: 1.25;
	letter-spacing: 0 !important;
}

.uewg-karte-titel a {
	color: inherit;
	text-decoration: none;
}

.uewg-karte-titel a:hover {
	color: var(--wp--preset--color--blau);
}

.uewg-karte .wp-block-post-excerpt {
	font-size: 1rem;
	line-height: 1.6;
}

.uewg-karte .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.uewg-karte .wp-block-post-excerpt__more-text {
	display: none;
}

.uewg-meta,
.uewg-meta a {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blau);
	text-decoration: none;
}

.uewg-seiten {
	margin-block-start: var(--wp--preset--spacing--60) !important;
	gap: 0.5rem;
}

/* Abstand zwischen Beitragsraster/Seitennavigation und Fußbereich (mind. 48 px) */
/* 32 px unter dem Beitragsraster bzw. der Seitennavigation (Aktuelles, Archive) */
main > .uewg-karten:not(.uewg-verwandt) {
	padding-block-end: 32px;
}

.uewg-seiten .page-numbers,
.uewg-seiten a {
	padding: 0.4rem 0.8rem;
	border-radius: var(--wp--custom--radius--knopf);
	text-decoration: none;
}

.uewg-seiten .current {
	background: var(--wp--preset--color--nachtblau);
	color: var(--wp--preset--color--weiss);
}

/* ---------- Seitenkopf (Übersichten, Seiten) ---------- */

.uewg-seitenkopf {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.uewg-start .uewg-seitenkopf {
	padding-block-start: var(--wp--preset--spacing--70);
}

.uewg-seitenkopf .wp-block-query-title,
.uewg-seitenkopf h1 {
	margin: 0;
}

.uewg-seitenbild {
	margin-block-end: var(--wp--preset--spacing--50);
}

/* Seiten: letztes Element schließt bündig an den Fußbereich an */
.uewg-inhalt {
	padding-block-end: 0;
	margin-block-end: 0;
}

.uewg-inhalt > :last-child {
	margin-block-end: 0;
}

.uewg-inhalt-voll {
	padding-block-end: 0;
}

.uewg-inhalt-voll > .alignfull:first-child {
	margin-block-start: 0;
}

/* Abschnitte (volle Breite) direkt untereinander, ohne Lücke */
.uewg-inhalt > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* ---------- Einzelner Beitrag ---------- */

.uewg-artikel-kopf {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.uewg-artikel-kopf > * + * {
	margin-block-start: 1.1rem;
}

.uewg-meta-zeile {
	gap: 0.4rem 1.25rem;
}

.uewg-artikel-kopf .wp-block-post-title {
	margin-block-start: 0.6rem;
}

.uewg-untertitel {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: rgba(15, 15, 53, 0.78);
}

.uewg-untertitel .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.uewg-untertitel .wp-block-post-excerpt__more-text {
	display: none;
}

.uewg-autor-kurz {
	align-items: center;
	margin-block-start: 1.5rem !important;
}

.uewg-autor-kurz .wp-block-post-author__avatar {
	margin-right: 0.75rem;
}

.uewg-autor-kurz .wp-block-post-author__byline {
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
	color: rgba(15, 15, 53, 0.65);
}

.uewg-autor-kurz .wp-block-post-author__name,
.uewg-autorbox .wp-block-post-author__name {
	font-weight: 600;
	margin: 0;
}

.wp-block-post-author__avatar img {
	border-radius: 50%;
	object-fit: cover;
}

.uewg-beitragsbild {
	margin-block-end: var(--wp--preset--spacing--60);
}

.uewg-beitragsbild img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

/* Lesetext im Beitrag */
.uewg-inhalt > h2,
.uewg-inhalt > h3,
.uewg-inhalt > h4 {
	margin-block-start: 2.4em;
}

.uewg-inhalt > h2 + *,
.uewg-inhalt > h3 + *,
.uewg-inhalt > h4 + * {
	margin-block-start: 0.75em;
}

.uewg-inhalt h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.uewg-inhalt h3 {
	font-size: var(--wp--preset--font-size--large);
}

.uewg-inhalt h4 {
	font-size: var(--wp--preset--font-size--medium);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.uewg-inhalt-voll h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.uewg-inhalt-voll h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.uewg-inhalt ul,
.uewg-inhalt ol {
	padding-left: 1.3em;
}

.uewg-inhalt li + li {
	margin-top: 0.35em;
}

.uewg-inhalt .wp-block-quote,
.uewg-inhalt blockquote {
	border-left: 4px solid var(--wp--preset--color--blau);
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.5;
}

.uewg-inhalt .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}


.uewg-artikel-fuss {
	padding-block-end: var(--wp--preset--spacing--60);
}

.uewg-schlagworte {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.uewg-schlagworte a {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: var(--wp--preset--color--hellblau);
	color: var(--wp--preset--color--nachtblau);
	text-decoration: none;
	font-weight: 500;
}

.uewg-themen a::before {
	content: "#";
	color: var(--wp--preset--color--blau);
}

/* Kategorien und Schlagwörter am Beitragsende: eine Reihe Chips */
.uewg-begriffe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-block-start: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--uewg-linie);
}

.uewg-begriffe > * {
	margin: 0 !important;
}

.uewg-begriffe > .uewg-schlagworte {
	display: contents;
}

/* Kategorie: Umriss-Chip (blau), Schlagwort: gefüllter Chip mit # */
.uewg-orte a {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 123, 198, 0.45);
	color: var(--wp--preset--color--blau);
}

.uewg-schlagworte a {
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	text-underline-offset: 0.2em;
}

.uewg-schlagworte a:hover,
.uewg-schlagworte a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.uewg-orte a:hover,
.uewg-orte a:focus-visible {
	background: var(--wp--preset--color--blau);
	box-shadow: none;
	color: var(--wp--preset--color--weiss);
}



.uewg-schlagworte a:hover {
	background: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

.uewg-schlagworte a:hover::before {
	color: inherit;
}

.uewg-autorbox {
	background: var(--wp--preset--color--hellblau);
	border-radius: var(--uewg-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

.uewg-autorbox .wp-block-post-author__avatar {
	margin-right: 1.25rem;
}

.uewg-autorbox .wp-block-post-author__byline {
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--blau);
	margin: 0 0 0.2rem;
}

.uewg-autorbox .wp-block-post-author__bio {
	font-family: var(--wp--preset--font-family--roboto-serif);
	font-size: 1rem;
	margin: 0.4rem 0 0;
}

.uewg-verwandt {
	border-top: 1px solid var(--uewg-linie);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.uewg-verwandt-titel {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block-end: var(--wp--preset--spacing--50);
}

/* ---------- Personen (Das sind wir) ---------- */

.uewg-personen-abschnitt h2 {
	margin-block-end: 0;
}

.uewg-personen-abschnitt h3 {
	font-size: var(--wp--preset--font-size--large);
	margin-block-start: var(--wp--preset--spacing--60);
}

.uewg-personen-abschnitt h2 + h3,
.uewg-personen-abschnitt > .alignwide > h3:first-child {
	margin-block-start: var(--wp--preset--spacing--50);
}

.uewg-personen-intro .uewg-lead {
	max-width: 38rem;
	margin-inline: auto;
}

/* Zentrierte Reihen: 2 (Handy) · 3 (Tablet) · 5 (Desktop) nebeneinander */
.uewg-personen {
	--uewg-spalten: 2;
	--uewg-abstand: clamp(1.25rem, 3vw, 2.5rem);
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--uewg-abstand) var(--uewg-abstand) !important;
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

@media (min-width: 600px) {
	.uewg-personen {
		--uewg-spalten: 3;
	}
}

@media (min-width: 1000px) {
	.uewg-personen {
		--uewg-spalten: 5;
	}
}

.uewg-person {
	/* feste Breite je Spalte — lange Namen dürfen die Karte nicht breiter machen */
	flex: 0 0 calc((100% - (var(--uewg-spalten) - 1) * var(--uewg-abstand)) / var(--uewg-spalten));
	min-width: 0;
	margin: 0 !important;
	text-align: center;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.uewg-person > * {
	margin: 0 !important;
}

.uewg-person-bild {
	margin-bottom: 0.9rem !important;
}

.uewg-person-bild {
	width: 100%;
	max-width: 180px;
	margin-inline: auto !important;
}

.uewg-person-bild img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 180px;
	margin-inline: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}

.uewg-person-name {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.uewg-person-rolle {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	margin-top: 0.3rem !important;
	opacity: 0.75;
}

/* ---------- Akkordeon (Details-Block) ---------- */

.wp-block-details {
	border-top: 1px solid var(--uewg-linie);
	padding: 0;
	margin: 0 !important;
	box-sizing: border-box;
	overflow: hidden; /* gleiche Höhe während und nach der Animation */
}

.wp-block-details summary:focus-visible {
	outline-offset: -3px;
}

.wp-block-details:last-child {
	border-bottom: 1px solid var(--uewg-linie);
}

.uewg-akkordeon {
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

.uewg-akkordeon > * + * {
	margin-block-start: 0 !important;
}

.wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1.15rem;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	list-style: none;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.35;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
		var(--wp--preset--color--hellblau);
	color: var(--wp--preset--color--blau);
	transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.45s ease;
}

.wp-block-details[open]:not(.uewg-schliesst) summary::after {
	background:
		linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
		var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
	transform: rotate(180deg);
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--blau);
}

.wp-block-details > :not(summary) {
	margin-block-start: 0;
	max-width: 44rem;
}

.wp-block-details > :not(summary) + :not(summary) {
	margin-block-start: 0.85rem;
}

.wp-block-details > :last-child:not(summary) {
	margin-block-end: 1.25rem;
}

.has-nachtblau-background-color .wp-block-details,
.has-blau-background-color .wp-block-details {
	border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Karussell (Beiträge und Galerie) ---------- */

.uewg-karussell-abschnitt > .alignwide {
	margin-block-end: var(--wp--preset--spacing--50);
}

.uewg-karussell .wp-block-post-template,
.wp-block-gallery.is-style-karussell {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: clamp(1rem, 2vw, 1.75rem) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--uewg-rand);
	padding: 0 var(--uewg-rand) 1rem !important;
	margin: 0 !important;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--blau-60) transparent;
}

.uewg-karussell .wp-block-post-template > li {
	flex: 0 0 clamp(240px, 26vw, 340px);
	margin: 0 !important;
	scroll-snap-align: start;
}

.wp-block-gallery.is-style-karussell > figure.wp-block-image {
	flex: 0 0 clamp(250px, 30vw, 420px) !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

.wp-block-gallery.is-style-karussell > figure.wp-block-image img {
	aspect-ratio: 4 / 5;
	width: 100% !important;
	height: auto !important;
	object-fit: cover;
}

.uewg-karussell-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
	padding-inline: var(--uewg-rand);
	margin-block-start: 0.75rem;
}

.uewg-karussell-nav button {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--blau);
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--blau);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.uewg-karussell-nav button:hover:not(:disabled) {
	background: var(--wp--preset--color--blau);
	color: var(--wp--preset--color--weiss);
}

.uewg-karussell-nav button:disabled {
	opacity: 0.3;
	cursor: default;
}

/* ---------- Fußbereich ---------- */

.uewg-footer {
	margin-block-start: 0;
}

.uewg-bilderleiste {
	margin: 0 !important;
}

.uewg-bilderleiste .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0;
}

.uewg-bilderleiste .wp-block-post-template > li {
	margin: 0;
}

/* Kachel: Bild + Info-Ebene (Datum, Titel) beim Überfahren */
.uewg-kachel {
	position: relative;
	overflow: hidden;
	height: 100%;
	margin: 0 !important;
}

.uewg-kachel > * {
	margin: 0 !important;
}

.uewg-bilderleiste .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
	border-radius: 0;
}

.uewg-bilderleiste .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	transform: scale(1);
	transition: var(--uewg-zoom-zurueck);
	will-change: transform;
}

/* dunkle Ebene, liegt über dem Bild; Klicks gehen durch zum Bild-Link */
.uewg-kachel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 15, 53, 0.92) 0%, rgba(15, 15, 53, 0.55) 55%, rgba(15, 15, 53, 0.25) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.uewg-kachel-info {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	padding: clamp(0.75rem, 1.4vw, 1.25rem);
	color: var(--wp--preset--color--weiss);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.uewg-kachel-info > * {
	margin: 0 !important;
}

.uewg-kachel-datum {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gelb);
}

.uewg-kachel-titel {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: clamp(0.9rem, 1.1vw, 1.05rem);
	font-weight: 600;
	line-height: 1.3;
	margin-top: 0.3rem !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.uewg-kachel:hover .wp-block-post-featured-image img,
.uewg-kachel:focus-within .wp-block-post-featured-image img {
	transform: scale(1.06);
	transition: var(--uewg-zoom-hin);
}

.uewg-kachel:hover::after,
.uewg-kachel:focus-within::after,
.uewg-kachel:hover .uewg-kachel-info,
.uewg-kachel:focus-within .uewg-kachel-info {
	opacity: 1;
	transform: none;
}

/* Tablets ohne Maus: Info dauerhaft zeigen, kein Zoom */
@media (hover: none) {
	.uewg-kachel::after,
	.uewg-kachel-info {
		opacity: 1;
		transform: none;
	}
}

/* Handy: Bilderleiste ganz ausblenden */
@media (max-width: 781px) {
	.uewg-bilderleiste {
		display: none !important;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	.uewg-bilderleiste .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}

.uewg-fuss {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 1rem;
}

.uewg-fuss-spalten {
	gap: clamp(2rem, 4vw, 4rem) !important;
}

.uewg-logo-fuss img {
	height: auto;
	width: min(260px, 100%);
}

.uewg-fuss-text {
	margin-block-start: 1.25rem;
	max-width: 22rem;
	opacity: 0.85;
	font-family: var(--wp--preset--font-family--roboto-serif);
}

.uewg-fuss .uewg-fuss-titel {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gelb);
	margin-block-end: 1rem;
}

/* Seiten-Links und Ortsteile: gleiche Schrift, gleiche Zeilenabstände */
.uewg-nav-footer,
.uewg-nav-footer .wp-block-navigation-item,
.uewg-fuss-liste,
.uewg-fuss-liste li {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}

.uewg-nav-footer .wp-block-navigation__container {
	gap: 0.6rem;
}

.uewg-fuss .wp-block-navigation-item__content,
.uewg-fuss a:not(.wp-element-button) {
	color: var(--wp--preset--color--weiss);
	text-decoration: none;
}

.uewg-fuss .wp-block-navigation-item__content:hover,
.uewg-fuss a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--gelb);
}

.uewg-fuss-liste {
	list-style: none;
	padding: 0;
	margin-inline: 0;
	margin-block-end: 0;
}

.uewg-fuss-liste li {
	margin: 0 0 0.6rem;
}

.uewg-kontakt-platz p {
	opacity: 0.85;
}

.uewg-fuss-unten {
	margin-block-start: var(--wp--preset--spacing--60) !important;
	padding-block-start: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: var(--wp--preset--font-size--small);
}

.uewg-fuss-unten p {
	margin: 0;
	opacity: 0.75;
}

.uewg-rechtliches {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.4rem 1.5rem;
	margin: 0 0 0 auto !important;
	opacity: 1 !important;
}

.uewg-fuss .uewg-rechtliches a {
	color: var(--wp--preset--color--weiss);
	opacity: 0.75;
}

.uewg-fuss .uewg-rechtliches a:hover {
	color: var(--wp--preset--color--gelb);
	opacity: 1;
}

.uewg-fuss-unten {
	align-items: center;
}


/* ---------- Kontaktformular (Fluent Forms) ---------- */

/* Formular ohne Kasten/Schatten direkt in die Seite einbetten */
body .fluentform,
body .fluentform form,
body .fluentform .ff-el-container,
body .fluentform-wrapper,
body .ff_form_container,
body [class*="fluentform_wrapper_"],
body .wp-block-fluentfom-guten-block,
body .fluentform-guten-wrapper,
body .ff-default,
body .ffs_default_wrap,
body [class*="ffs_custom_wrap"] {
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
	padding-inline: 0 !important;
}

body .fluentform {
	padding: 0 !important;
	font-family: var(--wp--preset--font-family--roboto);
	color: var(--wp--preset--color--nachtblau);
	max-width: 44rem;
}

body .fluentform .ff-el-group {
	margin-bottom: 1.4rem;
}

body .fluentform .ff-el-input--label label,
body .fluentform .ff-el-input--label {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: inherit;
	margin-bottom: 0.4rem;
}

body .fluentform .ff-el-is-required.asterisk-right label::after,
body .fluentform .ff-el-is-required.asterisk-left label::before {
	color: var(--wp--preset--color--blau);
}

body .fluentform .ff-el-form-control {
	width: 100%;
	font-family: var(--wp--preset--font-family--roboto-serif);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--nachtblau);
	background: var(--wp--preset--color--weiss);
	border: 1px solid rgba(15, 15, 53, 0.22) !important;
	border-radius: var(--wp--custom--radius--knopf) !important;
	padding: 0.8rem 1rem !important;
	box-shadow: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

body .fluentform textarea.ff-el-form-control {
	min-height: 10rem;
	resize: vertical;
}

body .fluentform .ff-el-form-control::placeholder {
	color: rgba(15, 15, 53, 0.45);
}

body .fluentform .ff-el-form-control:focus {
	outline: none;
	border-color: var(--wp--preset--color--blau) !important;
	box-shadow: 0 0 0 3px rgba(0, 123, 198, 0.18) !important;
}

/* Checkbox / Datenschutz-Zustimmung */
body .fluentform .ff-el-form-check-label,
body .fluentform .ff_t_c {
	font-family: var(--wp--preset--font-family--roboto-serif);
	font-size: 0.95rem;
	line-height: 1.5;
}

body .fluentform input[type="checkbox"],
body .fluentform input[type="radio"] {
	accent-color: var(--wp--preset--color--blau);
	width: 1.1rem;
	height: 1.1rem;
	margin-right: 0.5rem;
	vertical-align: -0.15em;
}

/* Absenden-Knopf wie alle Theme-Knöpfe */
body .fluentform .ff-btn-submit,
body .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	background-color: var(--wp--preset--color--blau) !important;
	color: var(--wp--preset--color--weiss) !important;
	border: 0 !important;
	border-radius: var(--wp--custom--radius--knopf) !important;
	padding: 0.95em 1.6em !important;
	font-family: var(--wp--preset--font-family--roboto) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s;
}

body .fluentform .ff-btn-submit:hover,
body .fluentform .ff-btn-submit:focus-visible {
	background-color: var(--wp--preset--color--nachtblau) !important;
	opacity: 1 !important;
}

/* Fehler- und Erfolgsmeldungen */
body .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #B42318 !important;
}

body .fluentform .error,
body .fluentform .text-danger {
	color: #B42318;
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.35rem;
}

body .ff-message-success {
	font-family: var(--wp--preset--font-family--roboto);
	background: var(--wp--preset--color--hellblau);
	border: 0 !important;
	border-left: 4px solid var(--wp--preset--color--blau) !important;
	border-radius: var(--wp--custom--radius--knopf);
	box-shadow: none !important;
	padding: 1.1rem 1.25rem !important;
	color: var(--wp--preset--color--nachtblau);
}

/* Formular auf dunkler Fläche (z. B. im Fußbereich) */
.has-nachtblau-background-color .fluentform,
.has-blau-background-color .fluentform {
	color: var(--wp--preset--color--weiss);
}

.has-nachtblau-background-color .fluentform .ff-btn-submit,
.has-blau-background-color .fluentform .ff-btn-submit {
	background-color: var(--wp--preset--color--gelb) !important;
	color: var(--wp--preset--color--nachtblau) !important;
}

/* ---------- Suche ---------- */

.wp-block-search__inside-wrapper {
	max-width: 32rem;
	border-radius: var(--wp--custom--radius--knopf);
}

.wp-block-search__input {
	border: 1px solid var(--uewg-linie);
	border-radius: var(--wp--custom--radius--knopf);
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--roboto);
}

/* ---------- Bewegung reduzieren ---------- */

/* Systemeinstellung „Bewegung reduzieren“: kein Zoom und kein Gleiten,
   Einblendungen (Deckkraft) bleiben als sanfter Übergang erhalten. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.uewg-karte .wp-block-post-featured-image img,
	.uewg-kachel .wp-block-post-featured-image img,
	.uewg-karte:hover .wp-block-post-featured-image img,
	.uewg-kachel:hover .wp-block-post-featured-image img,
	.uewg-karte:focus-within .wp-block-post-featured-image img,
	.uewg-kachel:focus-within .wp-block-post-featured-image img {
		transform: none !important;
		transition: none !important;
	}

	.uewg-kachel-info,
	.uewg-kachel:hover .uewg-kachel-info {
		transform: none !important;
	}

	.wp-block-details summary::after {
		transition: none;
	}
}

.uewg-begriffe .wp-block-post-terms__separator {
	display: none;
}

/* Überschrift „Ortsteile“ im Fußbereich als Link: Farbe bleibt gelb */
.uewg-fuss .uewg-fuss-titel a {
	color: inherit;
	text-decoration: none;
}

.uewg-fuss .uewg-fuss-titel a:hover {
	color: var(--wp--preset--color--weiss);
}

/* Bildunterschriften: dezent wie ein Hinweis – klein, kursiv, zentriert */
.wp-block-image figcaption,
.wp-block-image .wp-element-caption,
.wp-block-gallery > figcaption,
.wp-block-video figcaption {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 0.75rem;
	font-style: italic;
	line-height: 1.4;
	text-align: center;
	color: rgba(15, 15, 53, 0.6);
	margin-block: 0.5em 0;
	margin-inline: auto;
	max-width: 60ch;
}

/* Auf dunklem Hintergrund (z. B. Hero) hell statt dunkel */
.has-nachtblau-background-color .wp-block-image figcaption,
.has-blau-background-color .wp-block-image figcaption {
	color: rgba(255, 255, 255, 0.75);
}

/* KI-Bilder: kleines Etikett oben rechts im Bild (automatisch, wenn die
   Bildunterschrift „KI“ enthält – siehe inc/abfragen.php) */
.uewg-ki-bild {
	position: relative;
}

.uewg-ki-bild::after {
	content: "KI-generiert";
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	background: rgba(15, 15, 53, 0.65);
	color: #fff;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.4;
	pointer-events: none;
}

/* Hero (randlos): Bildunterschrift dezent unten im Bild statt weißem Streifen */
.uewg-hero .uewg-fill {
	position: relative;
}

.uewg-hero .uewg-fill > figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-width: none;
	margin: 0;
	padding: 2rem 1rem 0.6rem;
	color: rgba(255, 255, 255, 0.9);
	background: linear-gradient(to bottom, rgba(15, 15, 53, 0), rgba(15, 15, 53, 0.55));
	pointer-events: none;
}

/* ---------- Kopfbereich „Dunkel“ (Design → Kopfbereich) ---------- */

.uewg-kopf-dunkel .uewg-header {
	background: var(--wp--preset--color--nachtblau);
	border-bottom-color: transparent;
	color: var(--wp--preset--color--weiss);
}

.uewg-kopf-dunkel .uewg-nav-haupt .wp-block-navigation-item__content,
.uewg-kopf-dunkel .uewg-nav-haupt .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--weiss);
}

.uewg-kopf-dunkel .uewg-nav-haupt .wp-block-navigation-item__content:hover,
.uewg-kopf-dunkel .uewg-nav-haupt .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gelb);
	border-bottom-color: var(--wp--preset--color--gelb);
}

.uewg-kopf-dunkel .uewg-nav-haupt .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--nachtblau) !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.uewg-kopf-dunkel .uewg-nav-haupt :focus-visible {
	outline-color: var(--wp--preset--color--gelb);
}

/* Zahlen/Nummern auf hellem Hintergrund: Blau statt Gelb (Gelb wäre kaum lesbar) */
.has-hellblau-background-color .uewg-zahl,
.has-weiss-background-color .uewg-zahl {
	color: var(--wp--preset--color--blau);
}
