/*
 * SG Neptun Lampertheim – Theme-Styles
 * Farben/Schriften kommen aus theme.json (CSS-Variablen --wp--preset--…).
 */

:root {
	--navy: var(--wp--preset--color--navy, #0B2A5B);
	--navy-deep: var(--wp--preset--color--navy-deep, #071D40);
	--primary: var(--wp--preset--color--primary, #1F44B8);
	--secondary: var(--wp--preset--color--secondary, #0B86B5);
	--sky: var(--wp--preset--color--sky, #8FC9EC);
	--lane-red: var(--wp--preset--color--lane-red, #D7263D);
	--water: var(--wp--preset--color--water, #EEF5FA);
	--text: var(--wp--preset--color--text, #2F3D55);
	--muted: #5B6B83;
	--line: #DCE6F0;
	--font: var(--wp--preset--font-family--lexend, "Lexend", system-ui, sans-serif);
	--font-wide: var(--wp--preset--font-family--lexend-exa, "Lexend Exa", "Lexend", system-ui, sans-serif);
	--radius-s: 10px;
	--radius: 18px;
	--radius-l: 28px;
	--shadow: 0 1px 2px rgba(7, 29, 64, .06), 0 8px 24px rgba(7, 29, 64, .06);
	--shadow-lift: 0 2px 4px rgba(7, 29, 64, .06), 0 18px 40px rgba(7, 29, 64, .12);
	--header-h: 76px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--wide: var(--wp--style--global--wide-size, 1240px);
	--content: var(--wp--style--global--content-size, 880px);

	/* Bahnleine: 10 Schwimmer, rot an den Enden */
	--lane: linear-gradient(90deg,
		var(--lane-red) 0 20%,
		var(--primary) 20% 30%, var(--sky) 30% 40%,
		var(--primary) 40% 50%, var(--sky) 50% 60%,
		var(--primary) 60% 70%, var(--sky) 70% 80%,
		var(--lane-red) 80% 100%);
	--lane-mask: repeating-linear-gradient(90deg, #000 0 8.2%, transparent 8.2% 10%);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--secondary); }

:focus-visible {
	outline: 3px solid var(--secondary);
	outline-offset: 2px;
	border-radius: 4px;
}

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: .8rem 1.2rem;
	background: #fff; color: var(--navy); border-radius: var(--radius-s); box-shadow: var(--shadow-lift);
}

.sgnl-icon { flex: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(11, 42, 91, .08);
}
/* Milchglas als eigene Ebene – sonst wäre das mobile Menü (position: fixed) auf die Kopfzeile begrenzt */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: #fff;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-brand { flex: none; display: flex; align-items: center; }
.site-brand img.custom-logo { display: block; height: auto; max-height: 52px; width: auto; mix-blend-mode: multiply; }
.site-brand__text {
	font-family: var(--font-wide); font-weight: 600; color: var(--navy);
	text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem;
}

.primary-nav { margin-left: auto; }
.primary-nav .menu,
.primary-nav .menu ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: .15rem; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: flex; align-items: center; gap: .3rem;
	color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem;
	padding: .55rem .8rem; border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:focus-within > a { background: var(--water); color: var(--primary); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a,
.primary-nav .menu > .current_page_ancestor > a { color: var(--primary); background: var(--water); }

.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 0; margin: 0 0 0 -.45rem; width: 1.6rem; height: 2rem;
	color: var(--navy); cursor: pointer; border-radius: 999px;
}
.sub-toggle .sgnl-icon { transition: transform .2s ease; }
.primary-nav li.is-open > .sub-toggle .sgnl-icon { transform: rotate(180deg); }
.menu-item-has-children > .menu-row,
.page_item_has_children > .menu-row { display: flex; align-items: center; }

/* Desktop-Untermenüs */
@media (min-width: 1101px) {
	.primary-nav .sub-menu,
	.primary-nav .children {
		position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
		background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: var(--shadow-lift); padding: .5rem;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu,
	.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu .sub-menu { top: -.5rem; left: calc(100% + .5rem); }
	.primary-nav .sub-menu a { border-radius: var(--radius-s); font-weight: 400; color: var(--text); padding: .6rem .8rem; justify-content: space-between; }
	.primary-nav .sub-menu a:hover,
	.primary-nav .sub-menu li:focus-within > .menu-row > a,
	.primary-nav .sub-menu .current-menu-item > a,
	.primary-nav .sub-menu .current-menu-item > .menu-row > a { background: var(--water); color: var(--primary); }
	.primary-nav .sub-menu .sub-toggle .sgnl-icon { transform: rotate(-90deg); }
}

.header-cta {
	flex: none;
	display: inline-flex; align-items: center;
	background: var(--primary); color: #fff; text-decoration: none;
	font-weight: 600; font-size: .9rem; padding: .65rem 1.2rem; border-radius: 999px;
	transition: background-color .15s ease;
}
.header-cta:hover { background: var(--navy); color: #fff; }

.nav-toggle {
	margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
	background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline; }

@media (min-width: 1101px) {
	.site-header .header-cta--mobile,
	.site-header .nav-toggle { display: none; }
}

/* Mobile Navigation */
@media (max-width: 1100px) {
	.site-header__inner { gap: .75rem; }
	.site-header__inner > .header-cta { display: none; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
		background: var(--navy-deep); color: #fff;
		padding: 1rem var(--gutter) 2.5rem; overflow-y: auto; overscroll-behavior: contain;
		clip-path: inset(0 0 0 100%); transition: clip-path .28s ease, visibility .28s;
		visibility: hidden;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { clip-path: inset(0); visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.primary-nav a { color: #fff; font-size: 1.1rem; padding: 1rem .25rem; border-radius: 0; flex: 1; }
	.primary-nav .menu > li > a:hover,
	.primary-nav .menu > li:focus-within > a,
	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current-menu-ancestor > a,
	.primary-nav .menu > .current_page_item > a,
	.primary-nav .menu > .current_page_ancestor > a { background: none; color: var(--sky); }
	.primary-nav .menu-row > a { background: none !important; }
	.primary-nav .current-menu-item > a,
	.primary-nav .current-menu-item > .menu-row > a { color: var(--sky); }
	.sub-toggle { color: #fff; width: 48px; height: 48px; margin: 0; }
	.primary-nav .sub-menu { display: none; padding-left: 1rem; border-left: 2px solid rgba(143, 201, 236, .35); margin-bottom: .75rem; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { border-bottom: 0; }
	.primary-nav .sub-menu a { font-size: 1rem; padding: .65rem .25rem; color: #D5E1F0; }
	.primary-nav .header-cta--mobile { display: flex; justify-content: center; margin-top: 1.5rem; padding: .9rem 1.2rem; font-size: 1rem; border-radius: 999px; }
}
@media (max-width: 600px) {
	:root { --header-h: 64px; }
	.site-brand img.custom-logo { max-height: 42px; }
}

/* ---------- Kopfbereich mit Bild ---------- */
.front-hero,
.page-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background: var(--navy);
	overflow: hidden;
}
.front-hero { min-height: clamp(460px, 74vh, 760px); display: flex; align-items: center; }
.page-hero { min-height: clamp(220px, 32vh, 340px); display: flex; align-items: flex-end; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1.4s ease;
}
.hero-media__img.is-active { opacity: 1; }

.front-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(100deg, rgba(7, 29, 64, .92) 0%, rgba(11, 42, 91, .7) 45%, rgba(31, 68, 184, .25) 100%);
	opacity: calc(var(--hero-dim, .6) + .3);
}
.page-hero .front-hero__shade {
	background: linear-gradient(180deg, rgba(7, 29, 64, .55) 0%, rgba(7, 29, 64, .88) 100%);
	opacity: calc(var(--hero-dim, .6) + .35);
}

.front-hero__content,
.page-hero__content {
	width: 100%;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 4rem var(--gutter) 6.5rem;
}
.page-hero__content { padding-top: 3rem; padding-bottom: 4.5rem; }

.front-hero__title {
	font-family: var(--font-wide);
	font-weight: 600;
	font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5rem);
	line-height: 1.04;
	letter-spacing: -.01em;
	margin: 0;
	max-width: 13ch;
	color: #fff;
	text-wrap: balance;
}
.lane-rope {
	display: block; width: 132px; height: 8px; margin: 1.5rem 0 0;
	background: var(--lane); -webkit-mask-image: var(--lane-mask); mask-image: var(--lane-mask);
	border-radius: 4px;
}
.front-hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 44ch; margin: 1.5rem 0 0; color: rgba(255, 255, 255, .9); font-weight: 350; }
.front-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-btn {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 600; font-size: 1rem; text-decoration: none;
	padding: .9rem 1.5rem; border-radius: 999px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hero-btn--primary { background: #fff; color: var(--navy); }
.hero-btn--primary:hover { background: var(--sky); color: var(--navy-deep); }
.hero-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.hero-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.page-hero__title {
	font-family: var(--font-wide);
	font-weight: 600;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.1rem);
	line-height: 1.1;
	margin: 0;
	color: #fff;
	text-wrap: balance;
	max-width: 24ch;
}
.page-hero__parent {
	display: inline-flex; align-items: center;
	color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
	padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.page-hero__parent:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.page-hero__meta { margin: .8rem 0 0; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.page-hero__meta p { margin: 0; color: inherit; }

.hero-wave {
	position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 90px);
	fill: #fff; z-index: 1;
}

/* ---------- Inhalt ---------- */
.site-main { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.site-main--front { padding-top: 0; padding-bottom: 0; }

.entry-content > :first-child { margin-top: 0; }
.entry-content p,
.entry-content li { line-height: 1.75; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.2rem; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content strong { font-weight: 600; color: var(--navy); }
.entry-content .has-text-color strong,
.entry-content .has-background strong { color: inherit; }
.entry-content a:not(.wp-block-button__link):not(.wp-element-button) { text-decoration: underline; text-decoration-color: rgba(31, 68, 184, .35); }
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover { text-decoration-color: currentColor; }
.entry-content hr,
.wp-block-separator { border: 0; border-top: 1px solid var(--line); opacity: 1; }

/* Überschrift mit Bahnleine */
.is-style-sgnl-lane::after {
	content: ""; display: block; width: 104px; height: 7px; margin-top: .9rem;
	background: var(--lane); -webkit-mask-image: var(--lane-mask); mask-image: var(--lane-mask);
	border-radius: 4px;
}
.is-style-sgnl-lane.has-text-align-center::after { margin-left: auto; margin-right: auto; }
.is-style-sgnl-lane.has-text-align-right::after { margin-left: auto; }

/* Abschnitte (Gruppen in voller Breite) */
.entry-content > .wp-block-group.alignfull,
.entry-content > .wp-block-cover.alignfull {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
	margin-top: 0;
	margin-bottom: 0;
}
.entry-content > .alignfull + .alignfull { margin-top: 0; }
.site-main--page .entry-content > .wp-block-group.alignfull:first-child { margin-top: calc(-1 * clamp(2rem, 4vw, 3.5rem)); }

/* Karte & Info-Box */
.is-style-sgnl-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--shadow);
}
.is-style-sgnl-box {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.1rem 1.4rem;
	gap: 1rem 1.5rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.is-style-sgnl-box:hover { border-color: #C3D3E6; box-shadow: var(--shadow); }
.is-style-sgnl-box h3, .is-style-sgnl-box h4, .is-style-sgnl-box h5 { margin: 0; font-size: 1.08rem; }
.is-style-sgnl-box p { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.is-style-sgnl-box .wp-block-buttons { margin: 0; flex: none; }
.sgnl-box-list { gap: .75rem !important; }
.sgnl-box-list > * { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Buttons */
.wp-block-button__link,
.wp-element-button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--primary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.wp-block-button.is-style-sgnl-light > .wp-block-button__link { background: var(--water); color: var(--primary); }
.wp-block-button.is-style-sgnl-light > .wp-block-button__link:hover { background: var(--primary); color: #fff; }
.wp-block-button[class*="is-style-sgnl-"] > .wp-block-button__link { display: inline-flex; align-items: center; gap: .5em; }
.wp-block-button.is-style-sgnl-mail > .wp-block-button__link::before,
.wp-block-button.is-style-sgnl-download > .wp-block-button__link::before,
.wp-block-button.is-style-sgnl-link > .wp-block-button__link::before {
	content: ""; width: 1.15em; height: 1.15em; flex: none; background: currentColor;
	-webkit-mask: var(--btn-icon) center / contain no-repeat; mask: var(--btn-icon) center / contain no-repeat;
}
.wp-block-button.is-style-sgnl-mail { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.wp-block-button.is-style-sgnl-download { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.wp-block-button.is-style-sgnl-link { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E"); }

/* Bilder */
.wp-block-image img { border-radius: var(--radius-s); }
.wp-block-image.is-style-sgnl-photo img { border-radius: var(--radius-l); box-shadow: 0 24px 60px rgba(7, 29, 64, .22); }
.wp-block-image.is-style-sgnl-portrait img { border-radius: 999px; aspect-ratio: 1; object-fit: cover; }
.wp-block-image.sgnl-logo img { border-radius: 0; }
.wp-block-image figcaption,
.wp-block-gallery figcaption { color: var(--muted); font-size: .88rem; }

/* Galerien */
.wp-block-gallery.has-nested-images { gap: .6rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius-s); }
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { transition: transform .2s ease; }
.wp-block-gallery.has-nested-images figure.wp-block-image a:hover img { filter: brightness(1.06); }

/* Tabellen */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; }
.wp-block-table th,
.wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: .75rem .9rem; vertical-align: top; text-align: left; }
.wp-block-table thead th,
.wp-block-table thead td { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 0; }
.wp-block-table thead th strong,
.wp-block-table thead td strong { color: inherit; }
.wp-block-table thead tr > :first-child { border-top-left-radius: var(--radius-s); }
.wp-block-table thead tr > :last-child { border-top-right-radius: var(--radius-s); }
.wp-block-table tbody tr:nth-child(even) td { background: #F7FAFD; }
.wp-block-table tbody tr:hover td { background: var(--water); }
.wp-block-table.is-style-sgnl-table,
.wp-block-table.is-style-stripes { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }
.wp-block-table.is-style-sgnl-table thead tr > :first-child,
.wp-block-table.is-style-stripes thead tr > :first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.wp-block-table.is-style-sgnl-table thead tr > :last-child,
.wp-block-table.is-style-stripes thead tr > :last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.wp-block-table.is-style-sgnl-table tbody tr:last-child td { border-bottom: 0; }
/* Zeilen, in denen nur die erste Zelle gefüllt ist (z. B. Monatsnamen) */
.wp-block-table tr.is-group-row td { background: var(--water) !important; color: var(--navy); font-weight: 600; }
.wp-block-table td:first-child { white-space: nowrap; }
.wp-block-table.has-fixed-layout td:first-child,
.wp-block-table .sgnl-wrap td:first-child { white-space: normal; }

/* Spalten mit Bild */
.wp-block-columns.are-vertically-aligned-center { align-items: center !important; }

/* Kennzahlen */
.sgnl-stats { gap: 1rem !important; }
.sgnl-stats > .wp-block-group {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem 1.25rem; text-align: center; margin: 0 !important;
}
.is-style-sgnl-stat {
	font-family: var(--font-wide); font-weight: 600; color: var(--primary);
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1.1; margin: 0;
	font-variant-numeric: tabular-nums;
}
.sgnl-stats .is-style-sgnl-stat + p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* Logos (Verbände/Partner) */
.sgnl-logos { gap: 1rem !important; align-items: center; }
.sgnl-logos .wp-block-image { margin: 0 !important; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: .75rem; border-radius: var(--radius-s); }
.sgnl-logos .wp-block-image a { display: flex; align-items: center; justify-content: center; }
.sgnl-logos .wp-block-image img { max-height: 80px; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .2s ease, transform .2s ease; }
.sgnl-logos .wp-block-image a:hover img { filter: none; transform: scale(1.04); }

/* Icon-Absatz (Aktuelles) */
.sgnl-feature { text-align: center; }
.sgnl-feature .sgnl-feature__icon {
	width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px;
	background: var(--water); color: var(--primary);
	display: grid; place-items: center;
}

/* News (Query-Loop) */
.sgnl-news .wp-block-post-template { gap: 1.25rem; }
.sgnl-news .wp-block-post,
.post-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
	margin: 0;
}
.sgnl-news .wp-block-post:hover,
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: #C9D7E6; }
.sgnl-news .wp-block-post-featured-image { margin: 0; }
.sgnl-news .wp-block-post-featured-image img { border-radius: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sgnl-news .wp-block-post > :not(.wp-block-post-featured-image) { margin-left: 1.25rem; margin-right: 1.25rem; }
.sgnl-news .wp-block-post-terms { margin-top: 1.1rem; font-size: .8rem; }
.sgnl-news .wp-block-post-terms a,
.pill {
	display: inline-block; background: var(--water); color: var(--primary); text-decoration: none !important;
	font-weight: 500; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px;
}
.sgnl-news .wp-block-post-terms__separator { display: none; }
.sgnl-news .wp-block-post-title { font-size: 1.15rem; margin-top: .6rem; line-height: 1.3; }
.sgnl-news .wp-block-post-title a { color: var(--navy); text-decoration: none !important; }
.sgnl-news .wp-block-post-title a:hover { color: var(--primary); }
.sgnl-news .wp-block-post-excerpt { margin-top: .5rem; margin-bottom: 1.4rem; font-size: .93rem; color: var(--muted); flex: 1; display: flex; flex-direction: column; }
.sgnl-news .wp-block-post-excerpt__excerpt { margin: 0 0 .9rem; }
.sgnl-news .wp-block-post-excerpt__more-text { margin: auto 0 0; }
.sgnl-news .wp-block-post-excerpt__more-link,
.post-card__more { font-weight: 600; text-decoration: none !important; color: var(--primary); }

/* Team-Karten */
/* höchstens 3 Karten pro Reihe, mit mehr Luft */
.sgnl-team {
	--team-gap: clamp(1.25rem, 2.6vw, 2rem);
	gap: var(--team-gap) !important;
	grid-template-columns: repeat(auto-fill, minmax(max(16rem, calc((100% - 2 * var(--team-gap)) / 3)), 1fr)) !important;
}
@media (max-width: 600px) { .sgnl-team { grid-template-columns: 1fr !important; } }
.sgnl-team > .wp-block-group {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2rem 1.6rem 1.8rem; text-align: center; margin: 0 !important;
	display: flex; flex-direction: column; align-items: center;
	box-shadow: var(--shadow);
}
.sgnl-team .wp-block-image { margin: 0 auto 1.2rem !important; width: 148px; }
.sgnl-team .wp-block-image img { width: 148px; height: 148px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--water); }
.sgnl-team h3 { font-size: 1.15rem; margin: 0; }
.sgnl-team p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.sgnl-team .wp-block-buttons { margin-top: auto; padding-top: 1rem; justify-content: center; }
.sgnl-team .wp-block-button__link { font-size: .85rem; padding: .5em 1.1em; }

/* Cover (Kontakt-Bereich) */
.wp-block-cover .wp-block-cover__inner-container { width: 100%; }
.wp-block-cover h2, .wp-block-cover h3 { color: #fff; }
.sgnl-form-card { background: #fff; border-radius: var(--radius-l); padding: clamp(1.25rem, 4vw, 2.5rem); color: var(--text); box-shadow: 0 30px 70px rgba(7, 29, 64, .35); }

/* iFrame-Block (Plugin) */
.sgnl-iframe { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.sgnl-iframe iframe { display: block; width: 100%; border: 0; }

/* ---------- Formulare (Contact Form 7 & Co.) ---------- */
.wpcf7 form p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-weight: 500; color: var(--navy); font-size: .95rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="search"], input[type="password"], select, textarea {
	width: 100%; max-width: 100%;
	font: inherit; font-size: 1rem; color: var(--text);
	background: #fff; border: 1px solid #C3D2E2; border-radius: 12px;
	padding: .75rem .9rem; line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 68, 184, .15); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 1.1rem; height: 1.1rem; vertical-align: -.15rem; }
.wpcf7-list-item { margin: 0 1rem 0 0; }
.wpcf7-list-item label { font-weight: 350; color: var(--text); display: inline; }
input[type="file"] { font: inherit; font-size: .95rem; }
input[type="submit"], button[type="submit"]:not(.search-submit), .wpcf7-submit {
	font: inherit; font-weight: 600; font-size: 1rem;
	background: var(--primary); color: #fff; border: 0; border-radius: 999px;
	padding: .85rem 1.8rem; cursor: pointer; transition: background-color .15s ease;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--navy); }
.wpcf7-not-valid-tip { color: var(--lane-red); font-size: .88rem; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 1rem 0 0; padding: .8rem 1rem; font-size: .95rem; }

/* ---------- Beiträge ---------- */
.list-wrap,
.single-layout {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.single-layout { max-width: calc(var(--content) + 2 * var(--gutter)); }
.single-layout.has-sidebar { max-width: calc(var(--wide) + 2 * var(--gutter)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
@media (max-width: 960px) { .single-layout.has-sidebar { grid-template-columns: 1fr; } }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { width: 100%; border-radius: var(--radius-l); display: block; }
.entry--post .entry-content > * { max-width: 100%; }
.entry--post .entry-content > p,
.entry--post .entry-content > ul,
.entry--post .entry-content > ol { font-size: 1.07rem; }

.post-navigation { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; text-decoration: none; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.post-navigation a:hover { background: var(--water); }
.post-navigation .nav-label { display: block; font-size: .82rem; color: var(--muted); }
.post-navigation .nav-title { display: block; color: var(--navy); font-weight: 600; margin-top: .2rem; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; text-align: left; } }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.post-card__media { display: block; aspect-ratio: 4 / 3; background: var(--water); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--water), #DCEBF6); }
.post-card__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { margin-bottom: .6rem; font-size: .8rem; }
.post-card__title { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { color: var(--muted); font-size: .93rem; margin: .55rem 0 1rem; flex: 1; }
.post-card--plain { padding: 0; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a.page-numbers:hover { background: var(--water); }

.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form .search-field { border-radius: 999px; padding-left: 1.2rem; }
.search-submit { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-again { margin-bottom: 2rem; }
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; padding: 2rem 0; }
.empty-state .search-form { margin: 1.5rem auto; }

.sidebar .widget { background: var(--water); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.sidebar .widget-title { font-size: 1rem; margin: 0 0 .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C7D4E8; margin-top: 0; }
.lane-band {
	height: 8px;
	background:
		linear-gradient(90deg, var(--lane-red) 0 8%, transparent 8% 92%, var(--lane-red) 92%),
		repeating-linear-gradient(90deg, var(--primary) 0 22px, var(--sky) 22px 44px);
	-webkit-mask-image: repeating-linear-gradient(90deg, #000 0 19px, transparent 19px 22px);
	mask-image: repeating-linear-gradient(90deg, #000 0 19px, transparent 19px 22px);
}
.site-footer__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	gap: 2rem 3rem;
}
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-brand__name {
	font-family: var(--font-wide); color: #fff; font-weight: 600; text-transform: uppercase;
	letter-spacing: .14em; font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 16ch;
}
.social-links { display: flex; gap: .6rem; }
.social-link {
	width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
	background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .15s ease;
}
.social-link:hover { background: var(--primary); color: #fff; }
.site-footer p, .site-footer li { color: #C7D4E8; font-size: .95rem; line-height: 1.7; margin: 0 0 .35rem; font-weight: 350; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer .widget { margin-bottom: .4rem; }
.site-footer .widget-title { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.site-footer .wp-block-separator { border-top-color: rgba(255, 255, 255, .15); margin: .75rem 0; max-width: 220px; }
.site-footer__bottom {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
	padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center;
}
.site-footer__bottom .copyright { margin: 0; font-size: .88rem; color: #9FB3CF; }
.site-footer__bottom a, .site-footer__bottom button { color: #C7D4E8; font-size: .88rem; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.wp-block-columns { gap: 1.5rem; }
	.entry-content > .wp-block-group.alignfull { padding-top: 3rem; padding-bottom: 3rem; }
	.front-hero__content { padding-top: 3rem; padding-bottom: 5rem; }
	.wp-block-table { font-size: .88rem; }
	.wp-block-table th, .wp-block-table td { padding: .6rem .65rem; }
	.is-style-sgnl-box { flex-direction: column; align-items: flex-start !important; }
	.is-style-sgnl-box .wp-block-buttons { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .hero-media, .hero-wave, .nav-toggle { display: none !important; }
	.front-hero, .page-hero { background: none; color: #000; min-height: 0; }
	.page-hero__title, .front-hero__title { color: #000; }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 29, 64, .08); }

/* Raster: Karten/Kennzahlen füllen die Breite gleichmäßig */
.wp-block-group.sgnl-cards.is-layout-grid,
.wp-block-group.sgnl-stats.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
	gap: 1.25rem;
}
.wp-block-group.sgnl-stats.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.sgnl-cards > .is-style-sgnl-card { margin: 0 !important; display: flex; flex-direction: column; }
.sgnl-cards > .is-style-sgnl-card > .wp-block-buttons { margin-top: auto; padding-top: .5rem; }

/* Logos zentriert in Reihen */
.wp-block-group.sgnl-logos.is-layout-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.sgnl-logos .wp-block-image { flex: 0 1 150px; }

/* Fotos neben Text nicht höher als nötig */
.wp-block-columns .wp-block-image.is-style-sgnl-photo img { width: 100%; max-height: 480px; object-fit: cover; }

/* Lange Wörter (z. B. im Impressum) auf schmalen Bildschirmen umbrechen */
.entry-content { overflow-wrap: break-word; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { hyphens: auto; }
