/* Visual theme. Change this file without touching the CMS layout system. */
:root {
	--design-bg: #f6f7f8;
	--design-surface: #ffffff;
	--design-text: #172027;
	--design-muted: #65717a;
	--design-border: #e2e7ea;
	--design-accent: #49637E;
	--design-accent-strong: #75889C;
	--design-radius: 14px;
	--design-shadow: 0 12px 32px rgba(23, 32, 39, .08);
	
	--design-h2: #49637E;
}

body {
	background: var(--design-bg) !important;
	color: var(--design-text);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/*
 * Mobile Darstellung fuer kompakte Icon-/Text-Karten.
 * Die allgemeinen Bild+Text-Regeln und die Desktopansicht bleiben unberuehrt.
 */

	.herobar .bildtext {
		height: 100%;
		background: #fff;
		border: 1px solid #d5dde1;
		border-radius: 10px;
		overflow: hidden;
	}
	
	.herobar h3{ margin:0px !important;}

	.herobar .bildtext > .content {
		padding: 14px 16px;
	}

	.herobar .bildtext__layout {
		grid-template-columns: clamp(52px, 16vw, 68px) minmax(0, 1fr);
		grid-auto-flow: row;
		gap: 14px;
		align-items: center;
	}

	.herobar .bildtext_bild,
	.herobar .bildtext_bild .slides,
	.herobar .bildtext_bild .slides > li {
		width: 100% !important;
		margin: 0 !important;
	}

	.herobar .bildtext_bild {
		overflow: visible;
	}

	.herobar .bildtext_bild .slides {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.herobar .bildtext_bild img {
		width: clamp(60px, 12vw, 80px) !important;
		max-height: 80px;
		margin: 0 auto !important;
		object-fit: contain;
	}

	.herobar .bildtext_text {
		min-width: 0;
		text-align: left;
	}

/*
 * Mobile Darstellung fuer kompakte Icon-/Text-Karten.
 * Die allgemeinen Bild+Text-Regeln und die Desktopansicht bleiben unberuehrt.
 */

a { color: var(--design-accent); text-underline-offset: .18em; }
a:hover { color: var(--design-accent-strong); }

.site-header { background: rgba(255,255,255,.70) !important; border-bottom: 1px solid var(--design-border); backdrop-filter: blur(16px); }
.toggleMenu { gap: 10px; margin: 0 !important; padding: 8px 0 8px 14px !important; border: 0; background: transparent !important; color: var(--design-text); font-weight: 650; }
.toggleMenu__icon i { background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.toggleMenu[aria-expanded="true"] .toggleMenu__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.toggleMenu[aria-expanded="true"] .toggleMenu__icon i:nth-child(2) { opacity: 0; }
.toggleMenu[aria-expanded="true"] .toggleMenu__icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-navigation { background: var(--design-surface) !important; }
.site-navigation .nav { gap: 4px; background: transparent !important; }
.site-navigation .nav > li { border-bottom: 1px solid var(--design-border); }
.site-navigation .nav a { margin: 0 !important; padding: 18px 56px 18px 4px !important; background: transparent !important; color: var(--design-text) !important; border-radius: 0 !important; font-size: clamp(1.2rem, 5.5vw, 1.55rem); line-height: 1.2; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.site-navigation .nav li.active > a { color: var(--design-accent) !important; }
.site-navigation .nav ul { padding: 2px 0 14px 18px !important; list-style: none; }
.site-navigation .nav ul li { border-top: 1px solid var(--design-border); }
.site-navigation .nav ul a { padding: 13px 52px 13px 2px !important; font-size: 1rem; line-height: 1.35; font-weight: 550; color: var(--design-muted) !important; }
.submenu-toggle { color: var(--design-text); border-radius: 10px; }
.submenu-toggle:hover, .submenu-toggle:focus-visible { background: var(--design-bg); }

.site-search-toggle { color: var(--design-text); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.site-search-toggle:hover,
.site-search-toggle:focus-visible,
.site-search-toggle[aria-expanded="true"] { color: var(--design-accent); background: var(--design-bg); }
.site-search-panel { border-top: 1px solid var(--design-border); background: rgba(255,255,255,.30); box-shadow: 0 16px 30px rgba(23,32,39,.12); backdrop-filter: blur(16px); }
.site-search-panel input { color: var(--design-text); border: 1px solid var(--design-border); border-radius: 10px; background: var(--design-surface); }
.site-search-panel button[type="submit"] { border: 0; border-radius: 10px; background: var(--design-accent); color: #fff; font-weight: 650; cursor: pointer; }
.site-search-panel button[type="submit"]:hover { background: var(--design-accent-strong); }
.site-page { background: var(--design-surface) !important; }
.site-main { background: transparent !important; }

/* Banner appearance */
#mySlider > li { transition: opacity .6s ease; }
.bannerverwaltung .flex-caption {
	position: absolute;
	inset: auto var(--cms-gutter) clamp(28px, 8vw, 110px);
	z-index: 2;
	width: auto;
	margin: 0;
	color: #fff;
	pointer-events: none;
}
.bannerverwaltung .caption_content {
	max-width: min(780px, 88vw);
	color: #fff;
	font-size: clamp(1.45rem, 5vw, 4.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
	text-shadow: 0 3px 24px rgba(0, 0, 0, .4);
	text-wrap: balance;
}
.bannerverwaltung .caption_content span {
	display: inline;
	padding: .08em .22em;
	background: rgba(255, 255, 255, .94);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	color: var(--design-text);
	font-size: .55em;
	font-weight: 650;
	line-height: 1.55;
	text-shadow: none;
}
.scroll-down2 {
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
	transform: rotate(45deg);
	animation: bannerArrow 2.4s ease-in-out infinite;
}
@keyframes bannerArrow {
	0%, 100% { opacity: .35; transform: translateY(-6px) rotate(45deg); }
	50% { opacity: 1; transform: translateY(6px) rotate(45deg); }
}
.site-main h1, .site-main h2, .site-main h3 { color: var(--design-h2); line-height: 1.15; text-wrap: balance; }
.site-main h1 { font-size: clamp(2.1rem, 7vw, 4.5rem); letter-spacing: -.045em; }
.site-main h2 { font-size: clamp(1.7rem, 4.5vw, 3rem); letter-spacing: -.03em; }
.site-main p { -max-width: 72ch; }

/* Gallery appearance */
.galerie { --gallery-radius: var(--design-radius); }
.galerie .normal_pic,
.galerie .galerie-verlinkungs-image { color: var(--design-text); }
.galerie .normal_pic > a,
.galerie .galerie-verlinkungs-image .pic,
.galerie .pic > a { overflow: hidden; border-radius: var(--gallery-radius); background: var(--design-bg); }
.galerie img,
.galerie video { height: auto; aspect-ratio: auto; object-fit: contain; transition: transform .35s ease; }
.galerie.gallery--original img,
.galerie.gallery--original video { aspect-ratio: auto; object-fit: contain; }
.galerie a:hover img,
.galerie a:focus-visible img { transform: scale(1.025); }
.galerie .imgtext { margin: 0; padding: 12px 2px 0; color: var(--design-muted); font-size: .92rem; line-height: 1.45; text-align: left; }
.galerie .imgtext:empty { display: none; }
.galerie .galerie-verlinkungs-image { height: 100%; }
.galerie .galerie-verlinkungs-image .pic { position: relative; }
.galerie .galerie-verlinkungs-image a { margin: 0 !important; padding: 0 !important; border: 0; color: inherit; text-decoration: none; }
.galerie .lazyload:not([src]) { min-height: 180px; background: linear-gradient(110deg, #eef0f2 8%, #f7f8f9 18%, #eef0f2 33%); background-size: 200% 100%; animation: galleryLoading 1.4s linear infinite; }
@keyframes galleryLoading { to { background-position-x: -200%; } }

.gal_1er .galerie img,
.gal_1er.galerie img,
.gal_1er .galerie video,
.gal_1er.galerie video { aspect-ratio: auto; }

:where(.slider, .fader) .galerie img,
.galerie:is(.slider, .fader) img { aspect-ratio: auto; }
:where(.slider, .fader) .galerie.gallery--original img,
.galerie.gallery--original:is(.slider, .fader) img { aspect-ratio: auto; object-fit: contain; }
.site-main .galerie.gallery--original img,
.site-main .galerie.gallery--original video { aspect-ratio: auto; object-fit: contain; }

/* Image + text appearance */
.bildtext__title { margin-bottom: clamp(24px, 4vw, 48px); }
.bildtext_bild { overflow: hidden; border-radius: var(--design-radius); }
.bildtext_bild img,
.bildtext_bild video { height: auto; aspect-ratio: auto; object-fit: contain; transition: transform .35s ease; }
.bildtext--original .bildtext_bild img,
.bildtext--original .bildtext_bild video { aspect-ratio: auto; object-fit: contain; }
.bildtext_bild a { margin: 0 !important; padding: 0 !important; color: inherit; text-decoration: none; }
.bildtext_bild a:hover img,
.bildtext_bild a:focus-visible img { transform: scale(1.025); }
.bildtext_bild .imgtext { padding: 11px 2px 0; color: var(--design-muted); font-size: .92rem; line-height: 1.45; }
.bildtext_text > :first-child { margin-top: 0; }
.bildtext_text > :last-child { margin-bottom: 0; }

/* News appearance */
.news--teaser {
	overflow: hidden;
	background: var(--design-surface);
	border: 1px solid var(--design-border);
	border-radius: calc(var(--design-radius) + 4px);
	box-shadow: 0 8px 26px rgba(23, 32, 39, .06);
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.news--teaser:hover {
	border-color: color-mix(in srgb, var(--design-accent) 28%, var(--design-border));
	box-shadow: 0 18px 42px rgba(23, 32, 39, .11);
	transform: translateY(-3px);
}
.news--teaser .news__media-link { overflow: hidden; background: var(--design-bg); }
.news--teaser .news__image {
	min-height: 230px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2,.65,.3,1);
}
.news--teaser:hover .news__image { transform: scale(1.035); }
.news--teaser .news__copy { padding: clamp(24px, 4vw, 46px); }
.news--without-media { position: relative; }
.news--without-media::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--design-accent);
	content: "";
}

.news__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px 14px;
	margin-bottom: 14px;
	color: var(--design-muted);
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .055em;
	line-height: 1.3;
	text-transform: uppercase;
}
.news__category { color: var(--design-accent); }
.news__meta time { display: inline-flex; align-items: center; gap: 14px; }
.news__meta time::before { width: 22px; height: 1px; background: var(--design-border); content: ""; }

.news__title {
	margin: 0;
	color: var(--design-text);
	font-weight: 720;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.news--teaser .news__title { font-size: clamp(1.45rem, 4cqw, 2.2rem); line-height: 1.14; }
.news__title a { color: inherit; text-decoration: none; }
.news__title a:hover { color: var(--design-accent); }
.news--teaser .news__body { margin-top: 16px; color: var(--design-muted); line-height: 1.72; }
.news--teaser .news__body .news_txt { float: none; width: auto; }
.news--teaser .news__body > :first-child { margin-top: 0; }
.news--teaser .news__body > :last-child { margin-bottom: 0; }
.news__link,
.news__back,
.news__archive-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--design-accent);
	font-weight: 700;
	text-decoration: none;
}
.news--teaser .news__link { margin-top: 24px; }
.news__link span,
.news__back span,
.news__archive-link span { transition: transform .2s ease; }
.news__link:hover span { transform: translateX(4px); }
.news__archive-link:hover span { transform: translateX(4px); }
.news__back:hover span { transform: translateX(-4px); }

.news--full { padding-block: clamp(18px, 4vw, 50px) clamp(36px, 7vw, 90px); }
.news--full .news__back { margin-bottom: clamp(34px, 6vw, 70px); color: var(--design-muted); font-size: .92rem; }
.news--full .news__header { margin-bottom: clamp(30px, 5vw, 58px); }
.news--full .news__title { max-width: 16ch; font-size: clamp(2.35rem, 7cqw, 5.5rem); line-height: 1.02; }
.news--full .news__media { margin-bottom: clamp(38px, 6vw, 76px); }
.news--full .news__figure { overflow: hidden; border-radius: calc(var(--design-radius) + 4px); background: var(--design-bg); }
.news--full .news__image { max-height: 720px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.news--full .news__figure a:hover .news__image { transform: scale(1.018); }
.news--full .news__media--pair .news__image { aspect-ratio: 4 / 3; }
.news--full .news__body--article {
	color: var(--design-text);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.85;
}
.news--full .news__body--article > :first-child { margin-top: 0; }
.news--full .news__body--article > :last-child { margin-bottom: 0; }
.news--full .news__body--article h2,
.news--full .news__body--article h3 { margin-top: 1.8em; line-height: 1.2; letter-spacing: -.025em; }
.news--full .news__body--article img { height: auto; border-radius: var(--design-radius); }
.news--full .news__footer { margin-top: clamp(40px, 7vw, 80px); padding-top: 24px; border-top: 1px solid var(--design-border); }
.news--full .news__back--footer { margin-bottom: 0; color: var(--design-accent); }
.news__archive-link { color: var(--design-accent); font-weight: 700; text-decoration: none; }

/* News slider controls */
.news-slider__controls { gap: 18px; margin-top: 22px; }
.news-slider__arrow {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--design-text);
	background: var(--design-surface);
	border: 1px solid var(--design-border);
	border-radius: 50%;
	box-shadow: 0 5px 16px rgba(23, 32, 39, .07);
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.news-slider__arrow:hover {
	color: #fff;
	background: var(--design-accent);
	border-color: var(--design-accent);
	transform: translateY(-2px);
}
.news-slider__dots { gap: 8px; min-width: 64px; }
.news-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: var(--design-border);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}
.news-slider__dot.is-active { width: 26px; background: var(--design-accent); }
.news-slider__viewport:focus-visible { outline: 3px solid rgba(116,16,35,.28); outline-offset: 5px; border-radius: calc(var(--design-radius) + 4px); }

.site-footer { background: var(--design-text) !important; color: #fff !important; }
.site-footer .text, .site-footer a { color: #fff !important; }

.site-action { padding: 0 !important; border: 1px solid var(--design-border); border-radius: 50% !important; background: var(--design-surface) !important; box-shadow: var(--design-shadow); color: var(--design-text) !important; font-size: 22px; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(73,99,126,.45); outline-offset: 3px; }

/* Cookie consent */
.cookie-consent-banner {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}
.cookie-consent-banner.is-visible { display: block !important; }
.cookie-consent-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .35);
	backdrop-filter: blur(2px);
}
.cookie-consent-box {
	position: absolute;
	right: 24px;
	bottom: 24px;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 18px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
	overflow: hidden;
	animation: cookieFadeInUp .28s ease;
}
@keyframes cookieFadeInUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: 24px 24px 18px;
	border-bottom: 1px solid #f0f0f0;
}
.cookie-consent-header h3 { margin: 0 0 6px; color: #111827; font-size: 22px; line-height: 1.2; }
.cookie-consent-header p { margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5; }
.cookie-close {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f5f5f5;
	color: #444;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.cookie-close:hover { background: #ebebeb; color: #111; }
.cookie-consent-body { padding: 10px 24px 6px; }
.cookie-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #f3f4f6;
}
.cookie-row:last-child { border-bottom: 0; }
.cookie-row-text { flex: 1; }
.cookie-row-text strong { display: block; margin-bottom: 4px; color: #111827; font-size: 15px; }
.cookie-row-text span { display: block; color: #6b7280; font-size: 13px; line-height: 1.5; }
.cookie-switch { position: relative; display: inline-block; flex: 0 0 54px; width: 54px; height: 32px; }
.cookie-switch input { width: 0; height: 0; opacity: 0; }
.cookie-slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d1d5db;
	cursor: pointer;
	transition: .25s ease;
}
.cookie-slider::before {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	content: "";
	transition: .25s ease;
}
.cookie-switch input:checked + .cookie-slider { background: #111827; }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(22px); }
.cookie-switch.disabled { opacity: .7; cursor: not-allowed; }
.cookie-switch.disabled .cookie-slider { cursor: not-allowed; }
.cookie-consent-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 24px 24px;
	border-top: 1px solid #f3f4f6;
	background: #fcfcfc;
}
.cookie-btn {
	padding: 12px 18px;
	border: 0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.cookie-btn-light { background: #f3f4f6; color: #111827; }
.cookie-btn-light:hover { background: #e5e7eb; }
.cookie-btn-primary { background: #111827; color: #fff; }
.cookie-btn-primary:hover { background: #000; }

@media (max-width: 640px) {
	.cookie-consent-box { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; }
	.cookie-consent-header, .cookie-consent-body, .cookie-consent-footer { padding-right: 18px; padding-left: 18px; }
	.cookie-row { align-items: flex-start; }
	.cookie-consent-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.cookie-consent-footer .cookie-btn { width: 100%; min-width: 0; }
	#cookie-accept-all { grid-column: 1 / -1; }
}

@media (min-width: 1025px) {
	.site-navigation { background: transparent !important; }
	.site-navigation .nav > li { border: 0; }
	.site-navigation .nav > li > a { padding: 10px 14px !important; border-radius: 9px !important; font-size: .96rem; }
	.site-navigation .nav > li > a:hover { background: var(--design-bg) !important; }
	.site-navigation .nav ul { padding: 8px !important; background: var(--design-surface) !important; border: 1px solid var(--design-border); border-radius: 12px; box-shadow: var(--design-shadow); }
	.site-navigation .nav ul li { border: 0; }
	.site-navigation .nav ul a { padding: 10px 12px !important; border-radius: 8px !important; }
	.site-navigation .nav ul a:hover { background: var(--design-bg) !important; }
	
	.herobar .bildtext {background:transparent;border: none;}
}
.gyro-parallax {
	transform: translate3d(var(--gyro-x, 0), 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.gyro-parallax {
		transform: none;
	}
}
