/* EVLKS Modern – Entwurf (nur try). Schicht ueber wpevlks 1.4, ersetzt in P2 durch das eigentliche modern.css. */

/* =====================================================================
   1. Tokens
   ===================================================================== */
:root {
	--m-bg: #ffffff;
	--m-page: #f7f3ed;
	--m-surface: #ffffff;
	--m-surface-2: #f7f3ed;
	--m-tint: color-mix(in srgb, var(--m-accent) 8%, #fffdf9);
	--m-text: #2e2a26;
	--m-muted: #6b625a;
	--m-border: #e7e0d6;
	--m-border-strong: #cfc4b5;
	--m-ink: var(--m-ink-light);
	--m-on-accent: #2b2118;
	--m-focus: #1a4d8f;

	--m-btn-bg: var(--m-ink);
	--m-btn-fg: #ffffff;
	--m-btn-bg-hover: color-mix(in srgb, var(--m-ink) 85%, #000);

	--m-radius: 3px;
	--m-radius-sm: 2px;
	--m-shadow: 0 1px 2px rgb(60 40 20 / .05), 0 8px 24px -12px rgb(60 40 20 / .18);
	--m-shadow-hover: 0 2px 4px rgb(60 40 20 / .07), 0 18px 36px -14px rgb(60 40 20 / .28);
	--m-ease: cubic-bezier(.2, .7, .2, 1);

	/* Abstaende */
	--m-1: 4px; --m-2: 8px; --m-3: 12px; --m-4: 16px; --m-5: 24px; --m-6: 32px; --m-7: 48px; --m-8: 64px;
	--m-gutter: clamp(16px, 4.5vw, 32px);
	--m-section: clamp(40px, 6vw, 80px);
	--m-measure: 1140px;

	--m-head: "FagoWebPro-Cond W04 Regular", "Arial Narrow", sans-serif;
	--m-head-bold: "FagoWebPro-CondBold W041465298", "Arial Narrow", sans-serif;
	--m-body: "TundraWeb W03 Regular", Georgia, serif;
	color-scheme: light;
}

html[data-scheme="dark"] {
	--m-bg: #1c1814;
	--m-page: #16120f;
	--m-surface: #25201a;
	--m-surface-2: #2d261f;
	--m-tint: color-mix(in srgb, var(--m-accent) 9%, #25201a);
	--m-text: #f1e9dd;
	--m-muted: #bfb3a3;
	--m-border: #3d342b;
	--m-border-strong: #5c4f42;
	--m-ink: var(--m-ink-dark);
	--m-accent: #f5b733;
	--m-focus: #ffd27a;

	/* warme Akzentflaeche statt heller Creme: liest sich im Dunkeln als Knopf, nicht als Loch */
	--m-btn-bg: var(--m-accent);
	--m-btn-fg: #1c1814;
	--m-btn-bg-hover: color-mix(in srgb, var(--m-accent) 82%, #ffffff);

	--m-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 10px 28px -14px rgb(0 0 0 / .7);
	--m-shadow-hover: 0 2px 4px rgb(0 0 0 / .45), 0 18px 40px -14px rgb(0 0 0 / .8);
	color-scheme: dark;
}

/* =====================================================================
   2. Grundlagen: Flaechen, Schrift, Umbrueche
   ===================================================================== */
html body, html .wrapper { background: var(--m-page); color: var(--m-text); }
html body main, html body main > .container-fluid > .row, html body .evlks-bg-white { background: var(--m-bg); }
html body main { color: var(--m-text); font-size: 17px; }
html body .container { max-width: 100%; padding-left: var(--m-gutter); padding-right: var(--m-gutter); }
html body .row { margin-left: 0; margin-right: 0; }

html body main :where(h1, h2, h3, h4, h5, h6, p, li, td, th, figcaption, blockquote, .teaser-body, .address-box),
html body footer :where(h3, p, a, li, div) {
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 8 4 3;
}
html body main a, html body footer a { overflow-wrap: anywhere; }
html body main :where(h1, h2, h3, h4) { text-wrap: balance; color: var(--m-text); }
html body main p { text-wrap: pretty; }

html body main h1, html body main h1.title {
	font-family: var(--m-head); font-weight: 400;
	font-size: clamp(32px, 18.4px + 3.2vw, 52px); line-height: 1.08;
	margin: 0 0 var(--m-5);
}
html body main h2 {
	font-family: var(--m-head); font-weight: 400;
	font-size: clamp(26px, 18.4px + 1.8vw, 38px); line-height: 1.12;
	margin: var(--m-7) 0 var(--m-3);
}
html body main h3 {
	font-family: var(--m-head-bold); font-weight: 400;
	font-size: clamp(20px, 17.6px + .55vw, 24px); line-height: 1.2;
	margin: var(--m-6) 0 var(--m-2);
}
html body main h4 { font-size: 17px; line-height: 1.3; margin: var(--m-5) 0 var(--m-2); }
html body main :where(p, ul, ol) { line-height: 1.65; margin: 0 0 var(--m-4); }
html body main :where(h1, h2, h3, h4):first-child { margin-top: 0; }

html body main a, html a { color: var(--m-ink); text-decoration-thickness: .07em; text-underline-offset: .2em; }
html body main p a, html body main li a, html body main td a { text-decoration: underline; }
html a:hover, html body main a:hover { color: var(--m-ink); text-decoration-color: var(--m-accent); }
::selection { background: color-mix(in srgb, var(--m-ci) 30%, transparent); }
html :focus-visible { outline: 3px solid var(--m-focus); outline-offset: 3px; border-radius: 4px; }

/* externe-Link-Pfeil (FontAwesome) dezenter */
html body main a[href^="http"]::after { font-size: .8em !important; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	html *, html *::before, html *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   3. Abschnitte und Lesespalte
   ===================================================================== */
html body main section.evlks-bg-white > .container { padding-top: var(--m-section); padding-bottom: var(--m-section); }

html body main article.post > h1.title,
html body main .the-content > * {
	max-width: var(--m-measure);
	margin-left: auto; margin-right: auto;
}
html body main article.post > h1.title { text-align: left; }
html body main .the-content > :where(.alignwide, .news, .wp-block-columns, .wp-block-gallery, .wp-block-table, .tx-xm-evlks-kontakte, .evlks-ad-wrapper, .wp-block-media-text, [class*="calendar"], [class*="evlks-events"]) {
	max-width: 1140px;
}
html body main .the-content > .alignfull { max-width: none; }
html body main .wp-block-spacer { max-height: var(--m-6); }

/* Abschnitts-Ueberschrift (z. B. "Aktuelles") */
html body main h2.section-headline { text-align: center; margin: 0 0 var(--m-6); }

/* Brotkrumen: ruhige Zeile statt grauer Kasten */
html body main ol.breadcrumb {
	background: transparent; padding: var(--m-4) 0 0; margin: 0 auto; max-width: var(--m-measure);
	font-size: 15px; color: var(--m-muted);
}
html body main ol.breadcrumb a { color: var(--m-muted) !important; text-decoration: none !important; }
html body main ol.breadcrumb a:hover { color: var(--m-ink) !important; text-decoration: underline !important; }
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container { padding-top: var(--m-6); }

/* Tabellen: scrollen statt sprengen */
html body main .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--m-5) auto; }
html body main .wp-block-table table { min-width: 100%; border-collapse: collapse; }
html body main .wp-block-table :where(td, th) { padding: var(--m-3) var(--m-4); border: 1px solid var(--m-border); vertical-align: top; }
html body main .wp-block-table thead { border-bottom: 2px solid var(--m-border-strong); }
html body main .wp-block-table th { text-align: left; font-family: var(--m-head-bold); font-weight: 400; }
@media (max-width: 599px) {
	html body main .wp-block-table :where(td, th) { min-width: 144px; }
}

/* =====================================================================
   4. Buttons (gefuellt / Umriss)
   ===================================================================== */
html .btn-evlks, html .btn-primary, html .btn-secondary, html .btn-default, html .btn-orange,
html .wp-block-button__link, html .wp-block-file__button, html body main .teaser-archive-tools > a {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: 10px 22px !important;
	border-radius: var(--m-radius) !important;
	font-family: var(--m-head); font-size: 17px; line-height: 1.25; letter-spacing: .01em;
	text-align: center; white-space: normal; text-decoration: none !important;
	transition: background .2s, border-color .2s, color .2s, transform .2s var(--m-ease), box-shadow .2s !important;
}
/* gefuellt */
html .btn-primary, html .wp-block-button:not(.is-style-outline) > .wp-block-button__link, html .wp-block-file__button {
	background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; border: 1px solid transparent !important;
}
html .btn-primary:hover, html .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover, html .wp-block-file__button:hover {
	background: var(--m-btn-bg-hover) !important; transform: translateY(-1px); box-shadow: var(--m-shadow);
}
/* Umriss */
html .btn-orange, html .btn-secondary, html .btn-default, html .wp-block-button.is-style-outline > .wp-block-button__link, html body main .teaser-archive-tools > a {
	background: transparent !important; color: var(--m-text) !important;
	border: 1.5px solid var(--m-border-strong) !important;
}
html .btn-orange:hover, html .btn-secondary:hover, html .btn-default:hover, html .wp-block-button.is-style-outline > .wp-block-button__link:hover, html body main .teaser-archive-tools > a:hover {
	border-color: var(--m-text) !important; background: var(--m-surface-2) !important;
}
html body a:has(> button.btn) { text-decoration: none !important; display: inline-block; }
html body a:has(> button.btn)::after { content: none !important; }

/* =====================================================================
   5. Header + Hauptmenue
   ===================================================================== */
html body header {
	background: color-mix(in srgb, var(--m-bg) 97%, transparent);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--m-border);
	z-index: 1030 !important;
	transition: box-shadow .25s var(--m-ease);
}
html body header.sticky { box-shadow: var(--m-shadow); }
html body header .evlks-bg-white { background: transparent; }
html body header .evlks-border-top { border-top: 1px solid var(--m-border); }
html[data-scheme="dark"] img.evlks-logo { background: #f6f1e8; padding: 8px 12px; border-radius: var(--m-radius-sm); box-sizing: content-box; }

.m-tools { display: inline-flex; gap: var(--m-2); align-items: center; justify-content: flex-end; }
html body header .evlks-search.btn, .m-scheme-toggle {
	display: inline-flex; align-items: center; gap: 7.2px; height: 40px; min-height: 40px; padding: 0 16px !important;
	border-radius: var(--m-radius) !important; border: 1px solid var(--m-border) !important;
	background: var(--m-surface) !important; color: var(--m-text) !important;
	font-family: var(--m-head); font-size: 16px; cursor: pointer;
}
html body header .evlks-search.btn::after { display: none !important; }
html body header .evlks-search.btn svg { width: 17px; height: 17px; }
.m-scheme-toggle { width: 40px; padding: 0 !important; justify-content: center; }
.m-scheme-toggle svg { width: 20px; height: 20px; }
.m-scheme-toggle .m-sun { display: none; }
html[data-scheme="dark"] .m-scheme-toggle .m-sun { display: block; }
html[data-scheme="dark"] .m-scheme-toggle .m-moon { display: none; }
.m-tools--mobile .m-scheme-toggle { border: 0 !important; background: transparent !important; }

@media (min-width: 992px) {
	html body .evlks-header-main .navbar { min-height: 0; margin: 0; border: 0; background: transparent; }
	html body .evlks-header-main .menu-hauptmenue-container, html body .evlks-header-main .navbar-collapse { width: 100%; }
	html body .evlks-header-main .navbar-nav { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 2px; float: none; margin: 0; width: auto !important; }
	html body .evlks-header-main .navbar-nav::before, html body .evlks-header-main .navbar-nav::after { display: none; }
	html body .evlks-header-main .navbar-nav > li { float: none; position: relative; flex: 0 0 auto; }
	html body .navbar-nav > li[hidden] { display: none !important; }
	html body .evlks-header-main .navbar-nav > li > a {
		position: relative; padding: 26px 14px 24px; line-height: 25px;
		color: var(--m-text) !important; background: transparent !important;
		letter-spacing: .02em; font-size: clamp(17px, 1.35vw, 20px); white-space: nowrap;
	}
	html body .evlks-header-main .navbar-nav > li > a > span { border-bottom: 0 !important; }
	html body header.sticky .evlks-header-main .navbar-nav > li > a { padding-top: 18px; padding-bottom: 16px; }
	html body .evlks-header-main .navbar-nav > li > a::after {
		content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: var(--m-ci);
		transform: scaleX(0); transform-origin: left; transition: transform .25s var(--m-ease);
	}
	html body header.sticky .evlks-header-main .navbar-nav > li > a::after { bottom: 8px; }
	html body .evlks-header-main .navbar-nav > li:hover > a::after,
	html body .evlks-header-main .navbar-nav > li > a:focus-visible::after,
	html body .evlks-header-main .navbar-nav > li > a[aria-expanded="true"]::after,
	html body .evlks-header-main .navbar-nav > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a::after { transform: scaleX(1); }
	html body .evlks-header-main .navbar-nav > li:is(.current-menu-item, .current-menu-ancestor) > a { color: var(--m-ink) !important; }

	html body .evlks-header-main .navbar-nav > li > ul, .m-more-panel {
		position: absolute; top: calc(100% - 6px); left: 0; z-index: 1100;
		min-width: 260px; padding: var(--m-3);
		background: var(--m-surface); color: var(--m-text);
		border: 1px solid var(--m-border) !important; border-radius: var(--m-radius);
		box-shadow: var(--m-shadow-hover); list-style: none;
	}
	html body .evlks-header-main .navbar-nav > li > ul > li > a, .m-more-panel a {
		display: block; padding: 9px 12px; border-radius: var(--m-radius-sm);
		color: var(--m-text) !important; font-family: var(--m-head); font-size: 17px; line-height: 1.3; text-decoration: none !important;
	}
	html body .evlks-header-main .navbar-nav > li > ul > li > a:hover, .m-more-panel a:hover { background: var(--m-surface-2); color: var(--m-ink) !important; }
	.m-more { display: flex; align-items: stretch; }
	.m-more > button {
		display: flex; align-items: center; gap: 6px; padding: 26px 14px 24px; line-height: 25px; border: 0; background: transparent; color: var(--m-text);
		font-family: var(--m-head); font-size: clamp(17px, 1.35vw, 20px); letter-spacing: .02em; cursor: pointer;
	}
	html body header.sticky .m-more > button { padding-top: 18px; padding-bottom: 16px; }
	.m-more > button svg { width: 12px; height: 12px; transition: transform .2s var(--m-ease); }
	.m-more > button[aria-expanded="true"] svg { transform: rotate(180deg); }
	.m-more-panel { left: auto; right: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 18px; width: max-content; max-width: min(680px, 80vw); padding: var(--m-4); }
	.m-more-panel:has(> :nth-child(3)) { width: min(680px, 80vw); }
	.m-more-panel[hidden] { display: none; }
	.m-more-group strong { display: block; padding: 6px 12px 2px; font-family: var(--m-head-bold); font-weight: 400; color: var(--m-muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
}
@media (max-width: 991px) {
	html body .evlks-header-main .navbar-collapse { background: var(--m-bg); border-top: 1px solid var(--m-border); }
	html body .evlks-header-main .navbar-nav { margin: 0; padding: var(--m-2) 0; }
	html body .evlks-header-main .navbar-nav > li > a { color: var(--m-text) !important; padding: 12px var(--m-gutter) !important; font-size: 19px; }
	html body .evlks-header-main .navbar-nav > li > ul a { color: var(--m-muted) !important; padding: 8px var(--m-gutter) 8px calc(var(--m-gutter) + 14px) !important; }
	html[data-scheme="dark"] .navbar-toggle { background: transparent !important; }
	html[data-scheme="dark"] .navbar-toggle .evlks-header-navbar-indicator { filter: invert(.93) sepia(.15); }
	html[data-scheme="dark"] .icon-search::before { color: var(--m-text); }
}

/* =====================================================================
   6. Slider
   ===================================================================== */
html body .slick-slide .teaser {
	/* warm-helle Karte statt Gelb/Schwarz (Kai 2026-11-25: "laedt nicht ein") */
	background: color-mix(in srgb, var(--m-surface) 94%, transparent) !important; border: 0 !important; border-radius: var(--m-radius);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: var(--m-shadow-hover); padding: clamp(20px, 3vw, 40px) !important;
}
html body .slick-slide .teaser :where(h2, h1, p) { color: var(--m-text) !important; }
html body .slick-slide .teaser h2 { margin: 0 0 var(--m-3); font-size: clamp(28px, 19.2px + 2vw, 44px); }
html body .slick-slide .teaser p { margin-bottom: var(--m-5); }
html body .slick-slide .teaser .btn-primary { background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; }
html body .slick-slide .teaser .btn-primary:hover { background: var(--m-btn-bg-hover) !important; }
html body .slick-dots li button::before { background: color-mix(in srgb, #fff 80%, transparent) !important; }
html body .slick-dots li.slick-active button::before { background: var(--m-accent) !important; }
@media (max-width: 767px) {
	html body .slick-slide .container { padding: 0 var(--m-gutter); }
	html body .slick-slide .teaser { position: relative; margin: -40px 0 var(--m-7); width: auto; }
	html body .slick-dots { bottom: var(--m-4) !important; }
}

/* =====================================================================
   7. Kacheln: News, Termine
   ===================================================================== */
html body main .news > .row, html body main .news .row-equal-height, html body main #collapsibleNews > .row {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--m-5); margin: 0;
}
html body main .news .row::before, html body main .news .row::after { display: none; }
html body main .news [class*="col-"] { width: auto; float: none; padding: 0; min-height: 0; display: flex; }
html body .teaser {
	display: flex; flex-direction: column; width: 100%; height: auto !important; margin: 0 !important;
	background: var(--m-surface); border: 1px solid var(--m-border) !important; border-radius: var(--m-radius);
	overflow: hidden; box-shadow: var(--m-shadow);
	transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
html body .news .teaser:is(:hover, :focus-within) { transform: translateY(-3px); box-shadow: var(--m-shadow-hover); }
html body .teaser .teaser-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--m-surface-2); }
html body .teaser .teaser-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--m-ease); }
html body .teaser:hover .teaser-image img { transform: scale(1.04); }
html body .teaser .teaser-hover { display: none; }
html body .teaser .teaser-body {
	display: flex; flex-direction: column; flex: 1; gap: var(--m-2);
	padding: var(--m-5) !important; height: auto !important; background: transparent; color: var(--m-text);
}
html body .teaser .teaser-body > * { margin: 0; }
html body .teaser .teaser-date, html body .teaser .dtstamp p { color: var(--m-muted); font-size: 15px; font-family: var(--m-head); letter-spacing: .02em; margin: 0; }
html body .teaser .teaser-body h3 { font-size: clamp(20px, 17.6px + .4vw, 22.4px); line-height: 1.2; margin: 0; }
html body .teaser .teaser-body h3 a { color: var(--m-text) !important; text-decoration: none !important; }
html body .teaser:hover .teaser-body h3 a { color: var(--m-ink) !important; }
html body .teaser .teaser-body p { font-size: 16px; line-height: 1.6; }
html body .teaser .teaser-body :is(.bildnachweis, small, .copyright), html body .teaser .teaser-body p:has(> strong:first-child) { font-size: 13.5px; color: var(--m-muted); line-height: 1.45; }
html body .teaser .teaser-body > a:last-child, html body .teaser .teaser-body > a:has(> button) { margin-top: auto; padding-top: var(--m-3); align-self: flex-start; }
html[data-scheme="dark"] .teaser-image img[src$=".svg"] { filter: invert(.88) sepia(.3) hue-rotate(-10deg); }
html body main .teaser-archive-tools { display: flex; flex-wrap: wrap; gap: var(--m-3); justify-content: center; padding: var(--m-6) 0 0 !important; }

/* =====================================================================
   8. Kontakte
   ===================================================================== */
html body .tx-xm-evlks-kontakte { padding: 0 !important; margin: var(--m-6) auto; }
html body .tx-xm-evlks-kontakte .panel-group { display: grid; gap: var(--m-3); margin: 0; }
html body .tx-xm-evlks-kontakte .panel { background: transparent; border: 0; box-shadow: none; margin: 0 !important; }
html body .tx-xm-evlks-kontakte .address-box, html body .evlks-ad-wrapper {
	background: var(--m-surface); border: 1px solid var(--m-border) !important; border-radius: var(--m-radius);
	box-shadow: var(--m-shadow); overflow: hidden;
}
html body .tx-xm-evlks-kontakte :is(.panel-heading, .address-head, .vcard) { background: transparent !important; border: 0 !important; }
html body .tx-xm-evlks-kontakte .panel-heading { position: relative; padding: var(--m-4) var(--m-5) !important; }
html body .tx-xm-evlks-kontakte .panel-heading::before {
	content: attr(data-initials); position: absolute; left: var(--m-5); top: 50%; translate: 0 -50%;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: color-mix(in srgb, var(--m-ci) 16%, var(--m-surface)); color: var(--m-ink);
	font-family: var(--m-head-bold); font-size: 16px; letter-spacing: .03em;
}
html body .tx-xm-evlks-kontakte .panel-heading[data-initials] .address-head { padding-left: 60px; }
html body .tx-xm-evlks-kontakte .address-head { color: var(--m-muted); font-size: 16px; line-height: 1.45; }
html body .tx-xm-evlks-kontakte .address-head .row > [class*="col-"] { padding-top: 2px; padding-bottom: 2px; }
html body .tx-xm-evlks-kontakte .address-head .fn { font-family: var(--m-head-bold); font-size: 19px; color: var(--m-text); }
html body .tx-xm-evlks-kontakte .panel-title a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--m-surface-2); }
html body .tx-xm-evlks-kontakte .address-body { border: 0 !important; border-top: 1px solid var(--m-border) !important; padding: var(--m-5); background: var(--m-surface-2); color: var(--m-text); }
html body .tx-xm-evlks-kontakte .xm-responsive-images img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 140px; }
html body .tx-xm-evlks-kontakte a, html body .evlks-ad-wrapper a { color: var(--m-ink) !important; }

/* Einzelkontakt (Karte) */
html body .evlks-ad-wrapper { padding: var(--m-5) !important; margin: var(--m-6) auto !important; }
html body .evlks-ad-wrapper .address-box { border: 0 !important; box-shadow: none; background: transparent; }
html body .evlks-ad-wrapper :is(h3, .fn, strong:first-child) { font-family: var(--m-head-bold); font-size: 21px; line-height: 1.2; color: var(--m-text); margin: 0 0 var(--m-1); }
html body .evlks-ad-wrapper :is(h4, h5, .position, .evlks-ad-info) { font-family: var(--m-body); font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--m-muted); margin: 0 0 var(--m-4); }
html body .evlks-ad-wrapper .evlks-ad-body { margin: var(--m-3) 0 0; }
html body .evlks-ad-wrapper p { font-size: 16px; line-height: 1.6; margin: 0 0 var(--m-3); }

/* =====================================================================
   9. Infobox (Yellowbar) auf der Startseite
   ===================================================================== */
html body .parallax-content { display: none !important; }
html body .evlksyellowbar_Widget { margin: 0 !important; padding: 0 !important; }
html body .evlks-footer-info-service {
	display: grid; grid-template-columns: 1fr; gap: var(--m-4);
	max-width: 1140px; margin: var(--m-section) auto; padding: clamp(24px, 4vw, 40px) !important;
	background: var(--m-tint); border: 1px solid color-mix(in srgb, var(--m-accent) 22%, var(--m-border));
	border-radius: var(--m-radius); text-align: left;
}
@media (min-width: 900px) { html body .evlks-footer-info-service { grid-template-columns: 1.3fr 1fr; align-items: center; gap: var(--m-6); } }
html body .evlks-footer-info-service > [class*="col-"] { width: auto; float: none; padding: 0; text-align: left !important; color: var(--m-text); font-size: 17px; line-height: 1.55; }
html body .evlks-footer-info-service .capital {
	text-transform: none !important; letter-spacing: 0 !important;
	font-family: var(--m-head); font-size: clamp(24px, 17.6px + 1.4vw, 34px); line-height: 1.12; color: var(--m-text); margin-bottom: var(--m-2);
}
html body .evlks-footer-info-service > [class*="col-"]:last-child { display: flex; flex-direction: column; gap: var(--m-2); align-items: flex-start; }
html body .evlks-footer-info-service :is(.info-service-phone, .info-service-mail) {
	display: inline-flex; align-items: center; gap: var(--m-2); max-width: 100%;
	padding: 10px 16px; border-radius: var(--m-radius-sm); background: var(--m-surface); border: 1px solid var(--m-border);
	color: var(--m-text) !important; text-decoration: none !important; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere;
}
html body .evlks-footer-info-service :is(.info-service-phone, .info-service-mail)::before { color: var(--m-ink); }
html body .evlks-footer-info-service :is(.info-service-phone, .info-service-mail):hover { border-color: var(--m-border-strong); }

/* =====================================================================
   10. Footer und Losung
   ===================================================================== */
html body footer { background: var(--m-surface-2); color: var(--m-text); border-top: 1px solid var(--m-border); }
html body footer > .container { padding-top: var(--m-7); padding-bottom: var(--m-5); }
html body footer .evlks-footer-navigation { padding: 0 0 var(--m-6) !important; border: 0 !important; }
html body footer .evlks-footer-navigation [class*="col-"] { padding: 0; }
html body footer #footer-widget { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body footer #footer-widget > .container {
	width: auto; max-width: none; padding: 0 !important; margin: 0;
	display: grid; grid-template-columns: 1fr; gap: var(--m-6);
}
@media (min-width: 900px) { html body footer #footer-widget > .container { grid-template-columns: 1.15fr 1fr; gap: var(--m-7); align-items: start; } }
html body footer #footer-widget > .container::before, html body footer #footer-widget > .container::after { display: none; }
html body footer #footer-widget > .container > [class*="col-"] { width: auto; float: none; margin: 0 !important; padding: 0 !important; }
html body footer .widget { margin: 0 !important; padding: 0 !important; }
html body footer h3 { font-family: var(--m-head-bold); font-weight: 400; font-size: 18px; color: var(--m-text); margin: 0 0 var(--m-3); }
html body footer a { color: var(--m-text); }

html body footer .widget_losung {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(24px, 4vw, 36px) !important;
	background: var(--m-surface); border: 1px solid var(--m-border); border-radius: var(--m-radius);
	box-shadow: var(--m-shadow);
}
html body footer .widget_losung::before {
	content: "\201C"; position: absolute; z-index: -1; right: 14px; top: -18px;
	font-family: Georgia, serif; font-size: 150px; line-height: 1; color: color-mix(in srgb, var(--m-accent) 30%, transparent);
	pointer-events: none;
}
html body footer .widget_losung h3 {
	display: inline-flex; align-items: center; gap: var(--m-2);
	font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); margin-bottom: var(--m-4);
}
html body footer .widget_losung h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-accent); }
html body footer .widget_losung .losung-text { font-family: var(--m-head); font-size: clamp(20px, 17.6px + .5vw, 23.2px); line-height: 1.35; margin: 0 0 var(--m-1); color: var(--m-text); }
html body footer .widget_losung .losung-versangabe { font-family: var(--m-head); font-size: 16px; color: var(--m-ink); margin: 0 0 var(--m-4); }
html body footer .widget_losung .losung-copy { margin: var(--m-4) 0 0; padding-top: var(--m-3); border-top: 1px solid var(--m-border); }
html body footer .widget_losung .losung-copy, html body footer .widget_losung .losung-copy a { font-size: 14px; line-height: 1.5; color: var(--m-muted); }

html body footer .evlks-footer-social p { display: flex; flex-wrap: wrap; gap: var(--m-2); margin: 0; }
html body footer .evlks-footer-social a {
	display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0;
	border-radius: 50%; background: var(--m-surface); border: 1px solid var(--m-border); color: var(--m-text);
	transition: transform .2s var(--m-ease), border-color .2s;
}
html body footer .evlks-footer-social a:hover { transform: translateY(-2px); border-color: var(--m-border-strong); color: var(--m-ink); }
html body footer .evlks-footer-social > h3:empty { display: none; }

html body footer .evlks-footer-service-navigation {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--m-3) var(--m-5);
	margin: var(--m-7) 0 0 !important; padding: var(--m-5) 0 0; border-top: 1px solid var(--m-border);
}
html body footer .evlks-footer-service-navigation::before, html body footer .evlks-footer-service-navigation::after { display: none; }
html body footer .evlks-footer-service-navigation > [class*="col-"] { width: auto; float: none; margin: 0 !important; padding: 0 !important; }
html body footer #evlks-footer-navbar > ul.nav { display: flex; flex-wrap: wrap; gap: var(--m-2) var(--m-5); margin: 0; }
html body footer #evlks-footer-navbar > ul.nav > li { float: none; }
html body footer #evlks-footer-navbar > ul.nav > li > a { padding: 0; color: var(--m-text); font-size: 16px; background: none; }
html body footer .evlks-footer-service-copyright { color: var(--m-muted); font-size: 15px; }

/* =====================================================================
   11. Darkmode: Reste aus Bootstrap/Theme
   ===================================================================== */
html[data-scheme="dark"] :is(.modal-content, .panel, .panel-body, .well) { background-color: var(--m-surface); color: var(--m-text); border-color: var(--m-border); }
html[data-scheme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
html[data-scheme="dark"] .table-striped > tbody > tr:nth-of-type(odd) { background: var(--m-surface-2) !important; }
html[data-scheme="dark"] :is(.wp-block-table td, .wp-block-table th) { color: var(--m-text) !important; }
html[data-scheme="dark"] :is(input, textarea, select) { background: var(--m-surface-2); color: var(--m-text); border-color: var(--m-border); }
html[data-scheme="dark"] img:not(.evlks-logo):not([src$=".svg"]) { filter: brightness(.94); }
html[data-scheme="dark"] :is(.pb-accordion-item, .c-accordion__item) { background: var(--m-surface); border-color: var(--m-border); }
html[data-scheme="dark"] .shariff .theme-round a { filter: saturate(.85) brightness(.95); }

/* =====================================================================
   12. Feinschliff (Runde 2)
   ===================================================================== */
/* Theme-JS "Same height" setzt feste Hoehen – das Raster gleicht selbst aus */
html body main .news .teaser { min-height: 0 !important; }
html body main .news .teaser .shortnews { height: auto !important; display: flex; flex-direction: column; gap: var(--m-2); }
html body main .news .teaser .shortnews > * { margin: 0; }
html body .teaser .teaser-body h3 { margin-bottom: 2px; }

/* Mobiler Kopf: Werkzeuge in einer Zeile */
@media (max-width: 991px) {
	html body .evlks-service-navigation .mobile-only { display: flex !important; align-items: center; justify-content: flex-end; gap: 2px; }
	html body .evlks-service-navigation .mobile-only > * { float: none !important; margin: 0 !important; }
	html body .evlks-service-navigation .mobile-only > div:empty { display: none; }
	html body .evlks-service-navigation .mobile-only :is(.navbar-toggle, .evlks-search-mobile button, .m-scheme-toggle) { width: 44px; height: 44px; margin: 0 !important; display: inline-grid; place-items: center; }
	html body .evlks-service-navigation .mobile-only .navbar-header { margin: 0 !important; }
}

/* Slider mobil: Punkte unter der Box */
@media (max-width: 767px) {
	html body .slick-slide .teaser { margin-bottom: 56px; }
	html body .slick-dots { bottom: 12px !important; }
	html body .slick-dots li button::before { background: var(--m-border-strong) !important; }
	html body .slick-dots li.slick-active button::before { background: var(--m-text) !important; }
}

/* Footer-Menue: Bootstrap-Pseudoelemente raus, Eintraege nebeneinander */
html body footer #evlks-footer-navbar > ul.nav::before, html body footer #evlks-footer-navbar > ul.nav::after { display: none !important; }
html body footer #evlks-footer-navbar { flex: 1 1 auto; }
html body footer #evlks-footer-navbar > ul.nav > li { display: block; }
@media (max-width: 767px) {
	html body .slick-slide .teaser { margin-bottom: var(--m-3); }
	html body .slick-dots { position: static !important; margin: 0 0 var(--m-2) !important; }
}
html body footer .evlks-footer-service-copyright { white-space: nowrap; }

/* Runde 3 */
html body .navbar-toggle { background: transparent !important; border: 0 !important; }
html body main .the-content :is(h1, h2, h3, h4):not([class*="has-text-align"]) { text-align: left; }
html body main ol.breadcrumb > .active, html body main ol.breadcrumb > .active span { color: var(--m-text) !important; }
html body footer #footer-widget [class*="col-"], html body footer #footer-widget .widget { border: 0 !important; }
html body footer .evlks-footer-el-mobile { border: 0 !important; }

/* Einzelkontakt: Name, Funktion, Adresse */
html body .evlks-ad-wrapper .vcard > [class*="col-"] { width: auto; float: none; padding: 0; font-size: 16px; line-height: 1.6; color: var(--m-text); }
html body .evlks-ad-wrapper .org { font-family: var(--m-head-bold); font-size: 22px; line-height: 1.2; color: var(--m-text); margin-bottom: var(--m-4); }
html body .evlks-ad-wrapper .org small { display: block; margin-top: var(--m-2); font-family: var(--m-body); font-weight: 400; font-size: 16px; line-height: 1.45; color: var(--m-muted); }
html body .evlks-ad-wrapper .org br { display: none; }
html body .evlks-ad-wrapper .adr { margin-bottom: var(--m-3); color: var(--m-text); }
html body .evlks-ad-wrapper .adr > br:first-child { display: none; }

/* Kopf: am Desktop im Fluss (Theme fixiert erst beim Scrollen), mobil bleibt die Theme-Fixierung */
@media (min-width: 992px) {
	html body header:not(.sticky) { position: relative; }
	html body header.sticky { position: fixed; }
}

/* =====================================================================
   13. Mobilmenue (neu aufgebaut)
   ===================================================================== */
@media (max-width: 991px) {
	html body .evlks-header-main, html body .evlks-header-main > .row, html body .evlks-header-main [class*="col-"] { margin: 0 !important; padding: 0 !important; width: auto; float: none; }
	html body .evlks-header-main .navbar { margin: 0; border: 0; min-height: 0; background: transparent; }
	html body #evlks-header-navbar-collapse { margin: 0 !important; padding: 0 !important; max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--m-bg); border-top: 1px solid var(--m-border); box-shadow: var(--m-shadow); }
	html body #evlks-header-navbar-collapse .evlks-switcher:not(:has(a)) { display: none !important; }
	html body #evlks-header-navbar-collapse .evlks-switcher { display: flex; flex-wrap: wrap; gap: var(--m-2); margin: 0; padding: var(--m-3) var(--m-gutter); background: var(--m-surface-2); }
	html body #menu-hauptmenue { margin: 0 !important; padding: var(--m-2) 0 var(--m-4) !important; width: auto !important; float: none; }
	html body #menu-hauptmenue::before, html body #menu-hauptmenue::after { display: none; }
	html body #menu-hauptmenue > li { float: none; width: auto !important; margin: 0 !important; background: transparent !important; border-bottom: 1px solid var(--m-border); }
	html body #menu-hauptmenue > li > a {
		display: flex !important; align-items: center; justify-content: space-between; gap: var(--m-3);
		min-height: 52px; padding: 12px var(--m-gutter) !important; margin: 0;
		font-family: var(--m-head); font-size: 20px !important; letter-spacing: 0 !important; line-height: 1.25;
		color: var(--m-text) !important; background: transparent !important; text-decoration: none !important;
	}
	html body #menu-hauptmenue > li > a > span { border: 0 !important; }
	html body #menu-hauptmenue > li.menu-item-has-children > a::after {
		content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 4px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px);
		transition: transform .2s var(--m-ease);
	}
	html body #menu-hauptmenue > li.menu-item-has-children > a[aria-expanded="true"] { color: var(--m-ink) !important; }
	html body #menu-hauptmenue > li.menu-item-has-children > a[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
	html body #menu-hauptmenue > li:is(.current-menu-item, .current-menu-ancestor) > a { color: var(--m-ink) !important; }
	html body #menu-hauptmenue > li > ul {
		position: static !important; float: none; width: auto !important; margin: 0 !important; padding: 0 0 var(--m-2) !important;
		background: var(--m-surface-2) !important; border: 0 !important; box-shadow: none !important; list-style: none;
	}
	html body #menu-hauptmenue > li > ul > li { margin: 0 !important; width: auto !important; border: 0 !important; background: transparent !important; }
	html body #menu-hauptmenue > li > ul > li > a {
		display: block; margin: 0 !important; padding: 11px var(--m-gutter) 11px calc(var(--m-gutter) + 16px) !important;
		font-family: var(--m-head) !important; font-size: 18px !important; line-height: 1.3; letter-spacing: 0 !important;
		color: var(--m-text) !important; background: transparent !important; text-decoration: none !important;
	}
	html body #menu-hauptmenue > li > ul > li:is(.current-menu-item) > a { color: var(--m-ink) !important; }
	html body #menu-hauptmenue > li > ul > li > a:hover { color: var(--m-ink) !important; }
	html body #menu-hauptmenue ul ul a { padding-left: calc(var(--m-gutter) + 32px) !important; font-size: 17px !important; }
	html body #menu-hauptmenue a:focus-visible { outline-offset: -3px; }
}

/* Mobil: Inhalt beginnt exakt unter dem fixierten Kopf (Hoehe per JS gemessen) */
@media (max-width: 991px) {
	html body main { margin-top: var(--m-header-h, 81px) !important; }
}
html[data-scheme="dark"] img.evlks-logo { box-sizing: border-box; max-width: 100%; height: auto; padding: 6px 10px; }

/* Fokusrahmen nur bei Tastatur, nicht nach Antippen */
html body :is(#menu-hauptmenue, .navbar-header, .evlks-search-mobile) :is(a, button):focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
@media (max-width: 991px) {
	html body .navbar-toggle { padding: 0 !important; position: relative; }
	html body .navbar-toggle .evlks-header-navbar-indicator { position: absolute !important; inset: 0 !important; margin: auto !important; top: 0 !important; transform: none !important; background-position: center !important; }
}
@media (max-width: 991px) {
	html body .navbar-toggle .evlks-header-navbar-indicator { inset: auto !important; left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; margin: 0 !important; }
	html body .navbar-toggle .evlks-header-navbar-indicator::before { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; display: grid !important; place-items: center; }
}

/* =====================================================================
   14. Klassischer, eckiger: Slider und Suche
   ===================================================================== */
/* Slider */
html body .slick-slide .teaser { border-radius: var(--m-radius); box-shadow: 0 12px 32px -16px rgb(40 25 10 / .45); }
html body .slick-slide .teaser h2 { font-family: var(--m-head); font-weight: 400; letter-spacing: .005em; }
html body .slick-slide .teaser p { font-size: 18px; line-height: 1.55; max-width: 34em; }
@media (max-width: 767px) {
	html body .evlks-jumbotron-slider .slick-slide .image { aspect-ratio: 16 / 10; overflow: hidden; height: auto !important; }
	html body .evlks-jumbotron-slider .slick-slide .image img { width: 100%; height: 100% !important; object-fit: cover; }
	html body .slick-slide .container { padding: 0 !important; }
	html body .slick-slide .teaser { margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px var(--m-gutter) 28px !important; }
	html body .slick-slide .teaser h2 { font-size: 28px; line-height: 1.1; margin-bottom: 10px; }
	html body .slick-slide .teaser p { font-size: 17px; margin-bottom: 20px; }
	html body .evlks-jumbotron-slider .slick-dots { position: static !important; display: flex !important; justify-content: center; gap: 4px; margin: 0 !important; padding: 14px 0 6px !important; background: var(--m-bg); }
	html body .evlks-jumbotron-slider .slick-dots li { margin: 0 !important; }
}
html body .evlks-jumbotron-slider .slick-dots li button::before { border-radius: 1px !important; width: 22px !important; height: 4px !important; }
html body .evlks-jumbotron-slider .slick-dots li { width: 26px !important; }

/* Suche: ruhige Vollbild-Suche statt schwebendem Feld */
html body #evlks-search-modal { background: color-mix(in srgb, var(--m-bg) 97%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 !important; }
html body .modal-backdrop.in { opacity: .25; }
html body #evlks-search-modal .modal-dialog { width: auto; max-width: 820px; margin: 0 auto; padding: clamp(20px, 6vh, 72px) var(--m-gutter) var(--m-6); transform: none !important; }
html body #evlks-search-modal .modal-content { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
html body #evlks-search-modal .modal-header { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: var(--m-4); border: 0; padding: 0 0 var(--m-4); }
html body #evlks-search-modal .modal-header::before, html body #evlks-search-modal .modal-header::after { display: none; }
html body #evlks-search-modal .modal-title { font-family: var(--m-head); font-size: clamp(26px, 22px + 1.4vw, 38px); line-height: 1.1; color: var(--m-text); margin: 0; }
html body #evlks-search-modal .close {
	float: none; opacity: 1; flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; margin: 0;
	border: 1px solid var(--m-border-strong); border-radius: var(--m-radius); background: var(--m-surface); color: var(--m-text); text-shadow: none; font-size: 18px;
}
html body #evlks-search-modal .close:hover { border-color: var(--m-text); }
html body #evlks-search-modal .modal-body { padding: 0; }
html body #evlks-search-modal form { display: flex; align-items: stretch; margin: 0; background: var(--m-surface); border: 2px solid var(--m-text); border-radius: var(--m-radius); overflow: hidden; }
html body #evlks-search-modal form:focus-within { outline: 3px solid var(--m-focus); outline-offset: 2px; }
html body #evlks-search-modal input#evlks-search {
	flex: 1; min-width: 0; height: 58px; padding: 0 18px; margin: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important;
	background: transparent; color: var(--m-text); font-family: var(--m-body); font-size: 19px;
}
html body #evlks-search-modal input#evlks-search::placeholder { color: var(--m-muted); opacity: 1; }
html body #evlks-search-modal form button[type="submit"] {
	position: static !important; flex: 0 0 58px; width: 58px; height: 58px; margin: 0; border: 0; border-radius: 0;
	display: grid; place-items: center; background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; font-size: 22px;
}
html body #evlks-search-modal form button[type="submit"]::before { color: inherit !important; }
.m-search-quick { margin-top: var(--m-6); }
.m-search-quick h2 { font-family: var(--m-head-bold) !important; font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted) !important; margin: 0 0 var(--m-3) !important; }
.m-search-quick ul { display: flex; flex-wrap: wrap; gap: var(--m-2); margin: 0; padding: 0; list-style: none; }
.m-search-quick a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--m-border-strong); border-radius: var(--m-radius-sm); background: var(--m-surface);
	color: var(--m-text) !important; text-decoration: none !important; font-family: var(--m-head); font-size: 17px; line-height: 1.2;
}
.m-search-quick a:hover { border-color: var(--m-text); color: var(--m-ink) !important; }

/* Kopf ohne backdrop-filter: sonst wird er Bezugsrahmen der (darin liegenden) Vollbild-Suche */
html body header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--m-bg) !important; }
html body #evlks-search-modal { position: fixed !important; inset: 0 !important; height: 100dvh !important; overflow-y: auto; z-index: 2000 !important; }
html body #evlks-search-modal .modal-dialog { position: relative !important; top: auto !important; left: auto !important; right: auto !important; }
html body #evlks-search-modal .modal-content { z-index: auto; }
/* Slider-Punkte: slick setzt opacity .25 */
html body .evlks-jumbotron-slider .slick-dots li button::before { opacity: 1 !important; background: var(--m-border-strong) !important; }
html body .evlks-jumbotron-slider .slick-dots li.slick-active button::before { background: var(--m-text) !important; }
@media (min-width: 768px) {
	html body .evlks-jumbotron-slider .slick-dots li button::before { background: rgb(255 255 255 / .7) !important; }
	html body .evlks-jumbotron-slider .slick-dots li.slick-active button::before { background: #fff !important; }
}
html body #evlks-search-modal { background: var(--m-bg) !important; }
html body #evlks-search-modal .modal-title { color: var(--m-text) !important; }
html body #evlks-search-modal .close, html body #evlks-search-modal .close :is(span, i), html body #evlks-search-modal .close i::before { color: var(--m-text) !important; opacity: 1 !important; }
html body.modal-open .modal-backdrop { display: none; }

/* Suche: Schliessen als ruhiger Symbol-Knopf, auf Hoehe der Ueberschrift */
html body #evlks-search-modal .modal-header { align-items: center; padding-bottom: var(--m-5); }
html body #evlks-search-modal .close {
	width: 48px; height: 48px; margin: 0 -10px 0 0;
	border: 0 !important; background: transparent !important; border-radius: var(--m-radius);
	font-size: 22px; line-height: 1; transition: background .15s;
}
html body #evlks-search-modal .close:hover { background: var(--m-surface-2) !important; }
html body #evlks-search-modal .close:focus-visible { outline: 3px solid var(--m-focus); outline-offset: 0; }
html body #evlks-search-modal .close i { font-size: 22px; }
html body #evlks-search-modal .modal-header { padding: 0 0 var(--m-5) !important; }
html body #evlks-search-modal .modal-title { margin: 0 !important; }

/* =====================================================================
   15. Barrierefreiheit (axe-Befunde)
   ===================================================================== */
html body :is(.et_caption, .et_caption strong, figcaption, .bildnachweis, .copyright) { color: var(--m-muted) !important; }
html body footer :is(.evlks-footer-service-copyright, .col-md-offset-3) { color: var(--m-muted) !important; }
html body main .wp-block-table[tabindex]:focus-visible { outline: 3px solid var(--m-focus); outline-offset: 2px; }

/* =====================================================================
   16. Listen (Kalender-/Events-Uebersicht) und Filter
   ===================================================================== */
html body main .evlks-teaser-list { margin: 0; }
html body main .evlks-teaser-list-el { margin: 0 !important; padding: var(--m-5) 0 !important; border: 0 !important; border-bottom: 1px solid var(--m-border) !important; background: transparent !important; }
html body main .evlks-teaser-list-el:first-of-type { border-top: 1px solid var(--m-border) !important; }
html body main .evlks-teaser-list-el:hover { background: transparent !important; }
html body main .evlks-teaser-list-el > .csc-default { display: grid; grid-template-columns: 1fr; gap: var(--m-2) var(--m-5); }
@media (min-width: 768px) { html body main .evlks-teaser-list-el > .csc-default { grid-template-columns: 150px minmax(0, 1fr); } }
html body main .evlks-teaser-list-el > .csc-default > [class*="col-"] { width: auto; float: none; padding: 0 !important; border: 0 !important; min-height: 0; }
html body main .evlks-teaser-list-el .dtstamp { font-family: var(--m-head-bold); font-size: 19px; line-height: 1.2; color: var(--m-text); border: 0 !important; padding: 0 !important; margin: 0; }
html body main .evlks-teaser-list-el :is(.dtstart, .dtend) { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--m-head); font-size: 16px; color: var(--m-muted); border: 0 !important; padding: 0 !important; }
html body main .evlks-teaser-list-el :is(.dtstart, .dtend)::before, html body main .evlks-teaser-list-el .location::before { color: var(--m-ink) !important; }
html body main .evlks-teaser-list-el h2 { font-family: var(--m-head-bold); font-size: clamp(20px, 18px + .5vw, 23px); line-height: 1.2; margin: 0 0 var(--m-2) !important; padding: 0 !important; border: 0 !important; color: var(--m-text); }
html body main .evlks-teaser-list-el h2 a { color: var(--m-text) !important; text-decoration: none !important; }
html body main .evlks-teaser-list-el h2 a:hover { color: var(--m-ink) !important; }
html body main .evlks-teaser-list-el .event_intro { padding: 0 !important; }
html body main .evlks-teaser-list-el .location { font-size: 16px; line-height: 1.45; color: var(--m-text); }
html body main .evlks-teaser-list-el .location small { display: block; font-size: 15px; color: var(--m-muted); }
html body main .evlks-teaser-list-el .event_intro > .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--m-3); margin: var(--m-4) 0 0 !important; }
html body main .evlks-teaser-list-el .event_intro > .row::before, html body main .evlks-teaser-list-el .event_intro > .row::after { display: none; }
html body main .evlks-teaser-list-el .event_intro > .row > [class*="col-"] { width: auto; float: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
html body main .evlks-teaser-list-el .event_intro > .row strong { font-weight: 400; font-family: var(--m-head); font-size: 15px; color: var(--m-muted); }
html body main .evlks-teaser-list-el .event-tooltip a { color: var(--m-ink) !important; cursor: pointer; }
html body main .evlks-teaser-list-el .to_event { float: none !important; margin-left: auto; }
html body main .evlks-teaser-list-el .to_event .btn { background: transparent !important; color: var(--m-text) !important; border: 1.5px solid var(--m-border-strong) !important; min-height: 40px; padding: 8px 18px !important; font-size: 16px; }
html body main .evlks-teaser-list-el .to_event .btn:hover { border-color: var(--m-text) !important; background: var(--m-surface-2) !important; }
html body main span.to_event ::before { color: var(--m-muted) !important; }
html body main .evlks-teaser-list-el img { border-radius: var(--m-radius); }

/* Filter */
html body main .evlks-filter { background: var(--m-surface-2) !important; border: 1px solid var(--m-border); border-radius: var(--m-radius); color: var(--m-text); }
html body main .evlks-filter .evlks-filter-options { padding: var(--m-5) !important; }
html body main .evlks-filter :is(.icon-bg-primary, .icon-filter) { background: none !important; color: var(--m-ink) !important; width: auto; height: auto; padding: 0; }
html body main .evlks-filter-heading { display: flex; align-items: center; gap: var(--m-2); margin: 0 0 var(--m-4) !important; font-family: var(--m-head-bold); font-size: 20px; color: var(--m-text) !important; }
html body main .evlks-filter-collapse { display: flex !important; align-items: center; gap: var(--m-2); width: 100%; min-height: 48px; padding: 0 !important; background: transparent !important; color: var(--m-text) !important; font-family: var(--m-head-bold); font-size: 18px; }
html body main .evlks-filter :is(legend, label:not(.sr-only):not(.radio label)) { display: block; margin: 0 0 6px; padding: 0; border: 0; font-family: var(--m-head-bold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted) !important; }
html body main .evlks-filter .radio label { font-family: var(--m-body); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--m-text) !important; display: inline-flex; align-items: center; gap: 8px; padding-left: 0; }
html body main .evlks-filter .radio input { position: static; margin: 0; accent-color: var(--m-ink); width: 18px; height: 18px; }
html body main .evlks-filter .form-group { margin: 0 0 var(--m-4); padding: 0 0 var(--m-4); border-bottom: 1px solid var(--m-border); }
html body main .evlks-filter .form-group:last-of-type { border-bottom: 0; }
html body main .evlks-filter :is(input[type="text"], input[type="search"], select, .form-control, .btn.dropdown-toggle) {
	height: 44px; min-height: 44px; border: 1px solid var(--m-border-strong) !important; border-radius: var(--m-radius-sm) !important;
	background: var(--m-surface) !important; color: var(--m-text) !important; box-shadow: none !important; font-size: 16px;
}
html body main .evlks-filter .input-group { display: flex; width: 100%; }
html body main .evlks-filter .input-group .form-control { flex: 1; min-width: 0; border-radius: var(--m-radius-sm) 0 0 var(--m-radius-sm) !important; }
html body main .evlks-filter .input-group-addon { display: grid; place-items: center; width: 44px; border: 1px solid var(--m-border-strong); border-left: 0; border-radius: 0 var(--m-radius-sm) var(--m-radius-sm) 0; background: var(--m-surface); color: var(--m-muted); }
html body main .evlks-filter .input-daterange label { margin-top: var(--m-3); }
html body main .evlks-filter :is(button[type="submit"], input[type="submit"], .btn-primary) { width: 100%; justify-content: center; }
html body main .evlks-filter :focus-visible { outline: 3px solid var(--m-focus); outline-offset: 1px; }
html body main .pagination > li > :is(a, span) { border-color: var(--m-border); background: var(--m-surface); color: var(--m-text); }
html body main .pagination > .active > :is(a, span) { background: var(--m-text); border-color: var(--m-text); color: var(--m-bg); }
html[data-scheme="dark"] body main :is(.bootstrap-select .dropdown-menu, .dropdown-menu) { background: var(--m-surface); color: var(--m-text); border-color: var(--m-border); }
html[data-scheme="dark"] body main .dropdown-menu > li > a { color: var(--m-text); }
html body main .evlks-teaser-list-el > .csc-default > [class*="col-"]::before,
html body main .evlks-teaser-list-el > .csc-default > [class*="col-"]::after { display: none !important; content: none !important; }
html body main .evlks-filter .icon-filter { display: none !important; }
html body main .evlks-filter-collapse::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--m-ease); }
html body main .evlks-filter-collapse[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
html body main .evlks-filter-collapse[aria-expanded="true"] { margin-bottom: var(--m-4); }
@media (max-width: 991px) { html body main .evlks-filter-heading.desktop-only { display: none !important; } }
@media (min-width: 992px) { html body main .evlks-filter-collapse.mobile-only { display: none !important; } }
html body main .evlks-teaser-list-el .event_intro { border: 0 !important; }
html[data-scheme="dark"] body main small { color: var(--m-muted); }

/* =====================================================================
   17. Detailseiten: Termin, News-Artikel, Suche/404
   ===================================================================== */
/* gemeinsame Lesespalte */
html body main :is(.evlks-single-event, .news-single) { max-width: var(--m-measure); margin-left: auto !important; margin-right: auto !important; }
html body main section.flex-ordering-mobile > .container > h1,
html body main .news-single .section-headline {
	max-width: var(--m-measure); margin: 0 auto var(--m-3) !important; text-align: left !important;
	font-family: var(--m-head); font-weight: 400; font-size: clamp(30px, 18px + 3.2vw, 52px); line-height: 1.08;
}
html body main section.flex-ordering-mobile > .container { padding-bottom: 0; }
html body main section.flex-ordering-mobile > .container > :is(.evlks-section-sub, .calendar-subtitle):empty,
html body main .calendar-subtitle.m-empty { display: none; }

/* Termin */
html body main .evlks-single-event { display: block; }
html body main .evlks-single-event > .csc-default { display: grid; grid-template-columns: 1fr; gap: var(--m-5); }
html body main .evlks-single-event > .csc-default > [class*="col-"] { width: auto; float: none; padding: 0; }
html body main .evlks-single-event > .csc-default > [class*="col-"]::before, html body main .evlks-single-event > .csc-default > [class*="col-"]::after { display: none !important; }
html body main .evlks-single-event .dtstamp { display: inline; font-family: var(--m-head-bold); font-size: 20px; color: var(--m-text); border: 0 !important; padding: 0 !important; }
html body main .evlks-single-event :is(.dtstart, .dtend) { display: inline-flex; align-items: center; gap: 6px; margin-left: var(--m-3); font-family: var(--m-head); font-size: 18px; color: var(--m-muted); border: 0 !important; padding: 0 !important; }
html body main .evlks-single-event :is(.dtstart, .dtend, .location small)::before, html body main .evlks-single-event .location::before { color: var(--m-ink) !important; }
html body main .evlks-single-event .xm-responsive-images { margin-top: var(--m-4); }
html body main .evlks-single-event figure { margin: 0; }
html body main .evlks-single-event figure img { width: 100%; height: auto; border-radius: var(--m-radius); }
html body main .evlks-single-event figure .et_caption { display: block; margin-top: 6px; font-size: 14px; }
html body main .evlks-single-event .event_intro { border: 0 !important; padding: 0 !important; }
html body main .evlks-single-event .location { font-size: 18px; color: var(--m-text); }
html body main .evlks-single-event .location small { display: block; font-size: 16px; color: var(--m-muted); }
html body main .evlks-single-event .event_body > br { display: none; }
html body main .evlks-single-event .event_body > .row { display: grid; grid-template-columns: 1fr; gap: 2px var(--m-5); margin: 0 !important; padding: var(--m-3) 0; border-top: 1px solid var(--m-border); }
@media (min-width: 600px) { html body main .evlks-single-event .event_body > .row { grid-template-columns: 200px minmax(0, 1fr); } }
html body main .evlks-single-event .event_body > .row::before, html body main .evlks-single-event .event_body > .row::after { display: none; }
html body main .evlks-single-event .event_body > .row > [class*="col-"] { width: auto; float: none; padding: 0; line-height: 1.55; }
html body main .evlks-single-event .event_body > .row > [class*="col-"]:first-child strong { font-weight: 400; font-family: var(--m-head-bold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); }
html body main .evlks-single-event .description:empty { display: none; }

/* News-Artikel */
html body main .news-single h3.text-center { text-align: left !important; margin: 0 0 var(--m-5) !important; }
html body main .news-single h3.text-center br { display: none; }
html body main .news-single h3 small { font-family: var(--m-head); font-size: 17px; color: var(--m-muted); }
html body main .news-single .row { display: flex; flex-direction: column; gap: var(--m-5); margin: 0; }
html body main .news-single .row::before, html body main .news-single .row::after { display: none; }
html body main .news-single .row > [class*="col-"] { width: 100%; float: none; padding: 0; }
html body main .news-single img { width: 100%; height: auto; border-radius: var(--m-radius); }
html body main .news-single figcaption, html body main .news-single .wp-caption-text { font-size: 14px; margin-top: 6px; }
html body main .news-single .shariff { margin: var(--m-5) 0 0; padding: var(--m-4) 0 0; border-top: 1px solid var(--m-border); }
html body main .news-single a[href*="/news/"]:not(.shariff-link) { display: inline-flex; align-items: center; gap: 6px; font-family: var(--m-head); font-size: 17px; }

/* Such-/404-Band */
html body main section.evlks-bg-primary { background: var(--m-surface-2) !important; border-bottom: 1px solid var(--m-border); }
html body main section.evlks-bg-primary .evlks-jumbotron-image, html body main section.evlks-bg-primary .image { background: none !important; height: auto !important; min-height: 0 !important; }
html body main section.evlks-bg-primary .image::before, html body main section.evlks-bg-primary .image::after { display: none !important; }
html body main section.evlks-bg-primary .container { padding-top: var(--m-6) !important; padding-bottom: var(--m-6) !important; }
html body main section.evlks-bg-primary .row > [class*="col-"] { width: 100%; max-width: 760px; margin: 0 auto !important; float: none; padding: 0; }
html body main form.searchbox { display: flex; align-items: stretch; margin: 0; padding: 0; background: var(--m-surface); border: 2px solid var(--m-text); border-radius: var(--m-radius); overflow: hidden; box-shadow: none; }
html body main form.searchbox:focus-within { outline: 3px solid var(--m-focus); outline-offset: 2px; }
html body main form.searchbox input { flex: 1; min-width: 0; height: 56px; margin: 0; padding: 0 18px; border: 0 !important; outline: 0 !important; background: transparent; color: var(--m-text); font-family: var(--m-body); font-size: 19px; }
html body main form.searchbox button { position: static !important; flex: 0 0 56px; width: 56px; height: 56px; margin: 0; border: 0; display: grid; place-items: center; background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; }
html body main form.searchbox button i::before { color: var(--m-btn-fg) !important; }
html body main section > .container > .csc-default { padding-left: 0 !important; padding-right: 0 !important; }
html body main .evlks-single-event > .csc-default > [class*="col-"] { border: 0 !important; }
html body main .news-single .row > [class*="col-"] { display: block !important; }
html body main .news-single .news-backlink-wrap, html body main .evlks-single-calendar-back { display: block; width: auto; float: none; margin: var(--m-5) 0 0; padding: 0; text-align: left; }
html body main :is(.news-backlink-wrap, .evlks-single-calendar-back) a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--m-head); font-size: 17px; text-decoration: none !important; color: var(--m-ink) !important; }
html body main :is(.news-backlink-wrap, .evlks-single-calendar-back) a::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
html body main :is(.news-backlink-wrap, .evlks-single-calendar-back) a:hover { text-decoration: underline !important; }
html body main .csc-default { padding-left: 0 !important; padding-right: 0 !important; }
/* Archive mit Filter: Raster statt Bootstrap-Spalten */
html body main .row.flex-ordering-mobile { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: var(--m-6); margin: 0 !important; }
html body main .row.flex-ordering-mobile::before, html body main .row.flex-ordering-mobile::after { display: none; }
html body main .row.flex-ordering-mobile > [class*="col-"] { width: auto !important; float: none; padding: 0 !important; margin: 0 !important; }
html body main .row.flex-ordering-mobile > .flex-ordering-mobile-first { order: -1; }
@media (min-width: 992px) {
	html body main .row.flex-ordering-mobile { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
	html body main .row.flex-ordering-mobile > .flex-ordering-mobile-first { order: 2; position: sticky; top: 100px; }
}
html body:has(main .row.flex-ordering-mobile) main ol.breadcrumb { max-width: 1140px; }
html body main .evlks-filter-heading { padding: 0 !important; text-indent: 0; }
html body main .evlks-filter-heading > :not(i) { margin-left: 0; }

/* =====================================================================
   18. Runde 4: Darkmode-Luecken, Menue, Icons, Skeleton
   ===================================================================== */
/* Hauptmenue: kein gruener Theme-Block beim Hover, nur die Akzentlinie */
@media (min-width: 992px) {
	html body .evlks-header-main .navbar-nav > li,
	html body .evlks-header-main .navbar-nav > li:is(:hover, :focus-within, .open, .active, .current-menu-item, .current-menu-ancestor) { background: transparent !important; }
	html body .evlks-header-main .navbar-nav > li > a::after { background: var(--m-accent) !important; }
	html body .evlks-header-main .navbar-nav > li:is(:hover, .open) > a { color: var(--m-text) !important; background: transparent !important; }
	/* dritte Ebene: eingerueckt, gedaempft, aber lesbar */
	html body .evlks-header-main .navbar-nav > li > ul ul { display: block !important; position: static !important; float: none !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 0 var(--m-2) var(--m-3) !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul a { color: var(--m-muted) !important; font-size: 15px !important; padding: 4px var(--m-3) !important; background: transparent !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul a:hover { color: var(--m-ink) !important; }
}
html body .evlks-header-main .navbar-nav ul a { color: var(--m-text) !important; }
html body .evlks-header-main .navbar-nav ul ul a { color: var(--m-muted) !important; }

/* Brotkrumen: Icon und Trenner in Textfarbe statt fest #343434/#ccc */
html body main ol.breadcrumb::before { color: var(--m-muted) !important; }
html body main ol.breadcrumb > li + li::before { color: var(--m-border-strong) !important; }

/* Seitenzahlen (Kalender, Kategorie-/Kanalseiten, Suche, Veranstaltungen): gleich grosse Felder, mittig, Pfeile als Knoepfe */
html body main nav:has(> .evlks-pagination) { display: flex; justify-content: center; clear: both; margin: var(--m-6) 0 var(--m-4); }
html body main .evlks-pagination { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; float: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }
html body main .evlks-pagination > li { display: flex !important; float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
html body main .evlks-pagination > li > a,
html body main .evlks-pagination > li.current {
	display: inline-flex !important; align-items: center; justify-content: center; float: none !important; box-sizing: border-box;
	min-width: 44px; height: 44px; margin: 0 !important; padding: 0 12px !important; border-radius: var(--m-radius-sm) !important;
	background: var(--m-surface) !important; color: var(--m-text) !important; border: 1px solid var(--m-border-strong) !important;
	font-family: var(--m-head); font-size: 17px; line-height: 1; text-decoration: none !important; transition: border-color .15s, color .15s, background .15s;
}
html body main .evlks-pagination > li > a:hover { background: var(--m-surface) !important; border-color: var(--m-ink) !important; color: var(--m-ink) !important; }
html body main .evlks-pagination > li > a:focus-visible { outline: 3px solid var(--m-focus); outline-offset: 2px; }
html body main .evlks-pagination > li.current { background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; font-family: var(--m-head-bold); }
html[data-scheme="dark"] body main .evlks-pagination > li.current { color: #1c1814 !important; }
html body main .evlks-pagination > li.ellipsis { min-width: 20px; justify-content: center; padding: 0 !important; color: var(--m-muted); }
html body main .evlks-pagination > li.ellipsis::after { content: "\2026" !important; color: var(--m-muted) !important; padding: 0 !important; }
html body main .evlks-pagination :is(.evlks-pagination-previous, .evlks-pagination-next) > a { margin: 0 !important; }
html body main .evlks-pagination .evlks-pagination-previous { margin-right: 6px !important; }
html body main .evlks-pagination .evlks-pagination-next { margin-left: 6px !important; }
html body main .evlks-pagination :is(.evlks-pagination-previous, .evlks-pagination-next) > a::before,
html body main .evlks-pagination :is(.evlks-pagination-previous, .evlks-pagination-next) > a::after { content: none !important; }
html body main .evlks-pagination :is(.evlks-pagination-previous, .evlks-pagination-next) > a::before {
	content: "" !important; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
}
html body main .evlks-pagination .evlks-pagination-next > a::before { transform: translateX(-2px) rotate(-45deg); }
html body main .evlks-pagination .evlks-pagination-previous > a::before { transform: translateX(2px) rotate(135deg); }
/* Handy: nur aktuelle Seite, Nachbarn, erste/letzte und Pfeile */
@media (max-width: 575px) {
	html body main .evlks-pagination { gap: 4px; }
	html body main .evlks-pagination > li > a, html body main .evlks-pagination > li.current { min-width: 40px; height: 40px; padding: 0 8px !important; font-size: 16px; }
	html body main .evlks-pagination :is(.evlks-pagination-previous, .evlks-pagination-next) { margin: 0 !important; }
	html body main .evlks-pagination > li:not(.current, .ellipsis, .evlks-pagination-previous, .evlks-pagination-next, :has(+ .current), .current + li, :first-child, .evlks-pagination-previous + li, :nth-last-child(2)) { display: none !important; }
}

/* Such-Knopf im Suchband */
html body main form.searchbox button { background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; }
html body main form.searchbox button:hover { background: var(--m-btn-bg-hover) !important; }

/* Native Auswahllisten (auch versteckte von bootstrap-select) */
html[data-scheme="dark"] select option, html[data-scheme="dark"] select optgroup { background: var(--m-surface) !important; color: var(--m-text) !important; }
html[data-scheme="dark"] body main .bootstrap-select .dropdown-menu li a { color: var(--m-text) !important; }
html[data-scheme="dark"] body main .bootstrap-select .dropdown-menu li:is(.selected, :hover) a { background: var(--m-surface-2) !important; }

/* Slider-Punkte: Ziffern nur fuer Screenreader */
html body .slick-dots li button { color: transparent !important; font-size: 0 !important; }

/* Social (Footer): gleich grosse eckige Flaechen mit einheitlichen SVG-Icons (modern.js) */
html body footer .evlks-footer-social p { gap: var(--m-2); }
html body footer .evlks-footer-social a {
	width: 44px; height: 44px; border-radius: var(--m-radius) !important;
	background: transparent !important; border: 1px solid var(--m-border-strong) !important; color: var(--m-text) !important;
}
html body footer .evlks-footer-social a:hover { background: var(--m-text) !important; color: var(--m-bg) !important; border-color: var(--m-text) !important; transform: none; }
html body footer .evlks-footer-social a > .fa { display: none; }
/* Theme gibt Footer-Links padding-right (20/30 px) und grosse Zeilenhoehe: Icon sass oben links */
html body footer .evlks-footer-social a {
	display: inline-flex !important; align-items: center; justify-content: center;
	padding: 0 !important; line-height: 1 !important; vertical-align: top;
}
html body footer .evlks-footer-social a .m-icon { margin: 0; }
/* Ueberschrift wie bei der Losung (Punkt, Versalien) und auf derselben Hoehe wie deren Ueberschrift */
html body footer .evlkssocial_Widget > h3 {
	display: inline-flex; align-items: center; gap: var(--m-2);
	font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); margin: 0 0 var(--m-4);
}
html body footer .evlkssocial_Widget > h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-accent); }
@media (min-width: 900px) { html body footer .widget.evlkssocial_Widget { padding-top: clamp(24px, 4vw, 36px) !important; } }
/* Footer-Logo buendig mit dem Inhalt (Theme: margin-left -15px) */
html body footer .evlks-footer-navigation img.evlks-logo { margin-left: 0 !important; }
.m-icon { width: 20px; height: 20px; display: block; fill: currentColor; }

/* Teilen (Shariff): ruhige Reihe gleicher Knoepfe statt bunter Markenkreise */
html body .shariff { display: block !important; }
html body .shariff .shariff-buttons { display: flex !important; flex-wrap: wrap; align-items: center; gap: var(--m-2); margin: 0 !important; padding: 0 !important; }
html body .shariff .shariff-buttons::before { content: "Teilen"; font-family: var(--m-head); font-size: 16px; color: var(--m-muted); margin-right: var(--m-2); }
html body .shariff .shariff-button { width: auto !important; height: auto !important; margin: 0 !important; background: transparent !important; border-radius: 0 !important; }
html body .shariff .shariff-button a.shariff-link {
	display: inline-grid !important; place-items: center; width: 40px !important; height: 40px !important; padding: 0 !important;
	background: transparent !important; color: var(--m-text) !important; border: 1px solid var(--m-border-strong) !important;
	border-radius: var(--m-radius) !important; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s;
}
html body .shariff .shariff-button a.shariff-link:hover { background: var(--m-text) !important; color: var(--m-bg) !important; border-color: var(--m-text) !important; }
html body .shariff .shariff-icon { display: grid; place-items: center; width: 20px; height: 20px; }
html body .shariff .shariff-icon svg { width: 18px !important; height: 18px !important; }
html body .shariff .shariff-icon svg path { fill: currentColor !important; }
html body .shariff .shariff-text { display: none !important; }
html[data-scheme="dark"] .shariff .theme-round a { filter: none; }

/* Lazy Load mit Skeleton: Platzhalter-Flaeche, bis das Bild da ist (modern.js setzt/entfernt .m-skel) */
@keyframes m-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.m-skel {
	background-color: var(--m-surface-2) !important;
	background-image: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--m-surface) 70%, transparent) 50%, transparent 80%) !important;
	background-size: 200% 100% !important; background-repeat: no-repeat !important;
	animation: m-shimmer 1.3s linear infinite;
}
img.m-loading { opacity: 0 !important; }
img.m-loaded { transition: opacity .35s var(--m-ease); }
.m-skel-card { min-height: 280px; border: 1px solid var(--m-border); border-radius: var(--m-radius); overflow: hidden; background: var(--m-surface); }
.m-skel-card > .m-skel-media { aspect-ratio: 3 / 2; }
.m-skel-card > .m-skel-line { height: 14px; margin: var(--m-4) var(--m-4) 0; border-radius: 2px; }
.m-skel-card > .m-skel-line.is-title { height: 22px; width: 70%; }
.m-skel-card > .m-skel-line.is-short { width: 40%; }
@media (prefers-reduced-motion: reduce) { .m-skel { animation: none; } img.m-loaded { transition: none; } }

/* =====================================================================
   19. News (Theme-Templates template-parts/modern/news-*)
   ===================================================================== */
.evlks-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.m-chips { display: flex; flex-wrap: wrap; gap: var(--m-2); margin: var(--m-4) 0 0; }
html body .m-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
	border: 1px solid var(--m-border-strong); border-radius: var(--m-radius); background: transparent;
	font-family: var(--m-head); font-size: 16px; line-height: 1.2; color: var(--m-text) !important; text-decoration: none !important;
}
html body .m-chip:hover { border-color: var(--m-text); }
html body .m-chip[aria-current="page"] { background: var(--m-btn-bg); border-color: var(--m-btn-bg); color: var(--m-btn-fg) !important; }
.m-chip__count { font-size: 13px; opacity: .7; }

.m-news-archive, .m-news, .m-news-related { width: 100%; max-width: calc(1140px + 2 * var(--m-gutter)); margin: 0 auto; padding: 0 var(--m-gutter); }
.m-news-archive { padding-top: var(--m-5); padding-bottom: var(--m-section); }
.m-news-archive__head { margin-bottom: var(--m-6); }
.m-news-archive__head h1 { margin: 0; text-align: left; }
.m-news-archive__pages { margin-top: var(--m-7); }
.m-news-archive__empty { font-size: 18px; }

.m-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--m-5); }
.m-news-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--m-surface); border: 1px solid var(--m-border); border-radius: var(--m-radius); overflow: hidden;
	box-shadow: var(--m-shadow); transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.m-news-card:is(:hover, :focus-within) { transform: translateY(-3px); box-shadow: var(--m-shadow-hover); }
.m-news-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--m-surface-2); }
.m-news-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--m-ease); }
.m-news-card:hover .m-news-card__media img { transform: scale(1.04); }
.m-news-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--m-border-strong); }
.m-news-card__placeholder .evlks-icon { width: 48px; height: 48px; }
.m-news-card__body { display: flex; flex-direction: column; gap: var(--m-2); flex: 1; padding: var(--m-5); }
html body .m-news-card__body > * { margin: 0; }
.m-news-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--m-head); font-size: 15px; color: var(--m-muted); }
.m-news-card__cat { color: var(--m-ink); }
html body main .m-news-card__title { font-family: var(--m-head-bold); font-size: clamp(20px, 17.6px + .4vw, 22.4px); line-height: 1.2; margin: 0; }
html body main .m-news-card__title a { color: var(--m-text) !important; text-decoration: none !important; }
/* ganze Kachel klickbar, Titel bleibt der eine Link */
html body main .m-news-card__title a::after { content: ""; position: absolute; inset: 0; }
.m-news-card:hover .m-news-card__title a { color: var(--m-ink) !important; }
.m-news-card__excerpt { font-size: 16px; line-height: 1.6; color: var(--m-text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.m-news-card__more { margin-top: auto !important; padding-top: var(--m-3); display: inline-flex; align-items: center; gap: 6px; font-family: var(--m-head); font-size: 16px; color: var(--m-ink); }
.m-news-card:hover .m-news-card__more .evlks-icon { transform: translateX(3px); }
.m-news-card__more .evlks-icon { transition: transform .2s var(--m-ease); width: 18px; height: 18px; }
@media (min-width: 900px) {
	.m-news-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.m-news-card--featured .m-news-card__media { aspect-ratio: auto; min-height: 340px; }
	.m-news-card--featured .m-news-card__body { padding: var(--m-6); justify-content: center; }
	html body main .m-news-card--featured .m-news-card__title { font-family: var(--m-head); font-size: clamp(28px, 20px + 1.4vw, 38px); line-height: 1.12; }
	.m-news-card--featured .m-news-card__excerpt { font-size: 18px; -webkit-line-clamp: 6; }
}

/* Detailseite */
.m-news { padding-top: var(--m-5); }
.m-news__head { text-align: left; }
.m-news__head, .m-news__content, .m-news__foot { max-width: var(--m-measure); margin-left: auto; margin-right: auto; }
.m-news__cats { display: flex; flex-wrap: wrap; gap: var(--m-2); margin: 0 0 var(--m-4) !important; }
html body main .m-news__title { text-align: left; font-family: var(--m-head); font-size: clamp(32px, 18.4px + 3.2vw, 52px); line-height: 1.08; margin: 0 0 var(--m-4); }
.m-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--m-head); font-size: 16px; color: var(--m-muted); margin: 0 0 var(--m-5) !important; }
.m-news__time { display: inline-flex; align-items: center; gap: 6px; }
.m-news__time .evlks-icon { width: 16px; height: 16px; }
html body main .m-news__lead { font-size: clamp(19px, 17px + .5vw, 22px); line-height: 1.55; color: var(--m-text); margin: 0 0 var(--m-6); }
.m-news__media { max-width: 1140px; margin: 0 auto var(--m-6); }
.m-news__media img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: var(--m-radius-sm); }
.m-news__media figcaption { max-width: var(--m-measure); margin: var(--m-2) auto 0; font-size: 14px; color: var(--m-muted); }
.m-news__content { font-size: 18px; }
.m-news__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--m-4); margin-top: var(--m-7); padding-top: var(--m-5); border-top: 1px solid var(--m-border); }
html body main .m-news__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--m-head); font-size: 17px; color: var(--m-text) !important; text-decoration: none !important; }
html body main .m-news__back:hover { color: var(--m-ink) !important; }
.m-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--m-2); }
.m-share__label { font-family: var(--m-head); font-size: 16px; color: var(--m-muted); margin-right: 4px; }
html body .m-share__btn {
	position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid var(--m-border-strong); border-radius: var(--m-radius); color: var(--m-text) !important; text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s;
}
html body .m-share__btn:hover { background: var(--m-text); border-color: var(--m-text); color: var(--m-bg) !important; }
.m-share__btn[data-copied]::after {
	content: "Kopiert"; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	padding: 3px 8px; border-radius: 2px; background: var(--m-text); color: var(--m-bg); font-size: 13px; white-space: nowrap;
}
.m-news-related { padding-top: var(--m-section); padding-bottom: var(--m-section); }
.m-news-related h2 { margin: 0 0 var(--m-5) !important; }
/* Shariff haengt sich an jeden Inhalt; auf der News-Seite gibt es die eigene Teilen-Leiste */
html body .m-news__content .shariff { display: none !important; }
/* mobil: Platz fuer den schwebenden Consent-Knopf (Usercentrics), damit er Impressum/Datenschutz nicht verdeckt */
@media (max-width: 767px) { html body footer > .container { padding-bottom: 88px; } }

/* Filter-Auswahllisten (bootstrap-select): Theme laesst die Liste bis 2500 px im Fluss aufklappen; in der
   sticky Filterspalte lief sie ueber die Seite. Hier: ueberlagerndes Menue mit eigener Scrollleiste. */
html body main .bootstrap-select.btn-group { position: relative; }
html body main .bootstrap-select.btn-group .dropdown-menu.open {
	position: absolute !important; top: calc(100% + 4px) !important; left: 0; right: 0; z-index: 40;
	max-height: none !important; overflow: visible !important; min-height: 0 !important; margin: 0 !important; padding: 4px 0 !important;
	background: var(--m-surface) !important; border: 1px solid var(--m-border-strong) !important; border-radius: var(--m-radius) !important; box-shadow: var(--m-shadow-hover);
}
/* Wenig Platz darunter: bootstrap-select setzt .dropup (Bootstrap: bottom:100%). Ohne bottom:auto waeren top und bottom
   gesetzt und das Menue schrumpft auf 10 px, die Liste laeuft ohne Hintergrund ueber die Seite. Nach oben sauber aufklappen. */
html body main .bootstrap-select.btn-group:not(.dropup) .dropdown-menu.open { bottom: auto !important; }
html body main .bootstrap-select.btn-group.dropup .dropdown-menu.open { top: auto !important; bottom: calc(100% + 4px) !important; }
html body main .bootstrap-select.btn-group .dropdown-menu.inner {
	position: static !important; max-height: min(55vh, 380px) !important; min-height: 0 !important; overflow-y: auto !important; overscroll-behavior: contain;
	border: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important;
}
html body main .bootstrap-select.btn-group .dropdown-menu.inner > li > a { padding: 8px 14px; white-space: normal; }
html body main .bootstrap-select .bs-searchbox { padding: 6px 8px; }

/* =====================================================================
   20. Infobox (Yellowbar) ueberall gleich: Startseite und Footer-Spalte
   Theme (footer .evlks-footer-info-service > div:first-child/last-child) setzt orange Bloecke mit
   Rundungen, feste Hoehe 75 px, negative Raender und absolut positionierte Icons – alles zuruecksetzen.
   ===================================================================== */
html body .evlksyellowbar_Widget { container-type: inline-size; }
html body :is(main, footer, section) .evlks-footer-info-service {
	display: grid !important; grid-template-columns: 1fr; gap: var(--m-4); align-items: start;
	margin: var(--m-6) 0 0; max-width: 1140px;
}
html body footer .evlks-footer-info-service { margin: var(--m-6) 0 0 !important; padding: clamp(20px, 3vw, 32px) !important; }
@container (min-width: 720px) {
	html body .evlks-footer-info-service { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; gap: var(--m-6) !important; align-items: center !important; }
}
html body :is(main, footer, section) .evlks-footer-info-service > div:is(:first-child, :last-child) {
	position: static !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
	background: transparent !important; border-radius: 0 !important; color: var(--m-text) !important; text-align: left !important; width: auto !important;
}
html body :is(main, footer, section) .evlks-footer-info-service > div:first-child > div:first-child,
html body :is(main, footer, section) .evlks-footer-info-service .capital {
	padding: 0 !important; font-weight: 400 !important; font-family: var(--m-head-bold); font-size: clamp(20px, 17px + .8vw, 26px) !important; line-height: 1.2;
	text-transform: none !important; letter-spacing: 0 !important; margin: 0 0 var(--m-2);
}
html body :is(main, footer, section) .evlks-footer-info-service > div:first-child > div:last-child { font-size: 16px !important; line-height: 1.5; color: var(--m-text); }
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child { display: flex !important; flex-direction: column; gap: var(--m-2); align-items: stretch; }
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child > p { position: static !important; transform: none !important; margin: 0; }
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child :is(.info-service-phone, .info-service-mail) {
	position: relative !important; display: flex !important; align-items: center; gap: var(--m-3);
	margin: 0 !important; padding: 10px 14px !important; min-height: 44px;
	background: var(--m-surface) !important; border: 1px solid var(--m-border) !important; border-radius: var(--m-radius-sm) !important;
	color: var(--m-text) !important; text-decoration: none !important; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; word-break: normal;
}
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child :is(.info-service-phone, .info-service-mail):hover { border-color: var(--m-text) !important; }
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child :is(.info-service-phone, .info-service-mail)::before {
	position: static !important; flex: 0 0 auto; width: auto !important; height: auto !important; margin: 0 !important; border: 0 !important;
	font-size: 18px !important; line-height: 1; color: var(--m-ink) !important;
}
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child :is(.info-service-phone, .info-service-mail)::after { content: none !important; }
/* Icons auch ausserhalb des Footers (Theme setzt sie nur dort), Kaesten nur so breit wie ihr Inhalt */
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child { align-items: flex-start !important; }
html body :is(main, footer, section) .evlks-footer-info-service .info-service-phone::before { content: "\e919" !important; font-family: "evlks-iconfont" !important; }
html body :is(main, footer, section) .evlks-footer-info-service .info-service-mail::before { content: "\e90f" !important; font-family: "evlks-iconfont" !important; }

/* =====================================================================
   21. Kontakte: Visitenkarte mit Foto, Aufklapp-Knopf; Kacheln (News/Termine) einheitlich
   ===================================================================== */
html body .evlks-ad-wrapper { container-type: inline-size; max-width: 820px; }
html body .evlks-ad-wrapper .vcard { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: var(--m-5); align-items: start; margin: 0 !important; }
html body .evlks-ad-wrapper .vcard::before, html body .evlks-ad-wrapper .vcard::after { display: none !important; }
@container (min-width: 520px) {
	html body .evlks-ad-wrapper .vcard:has(.evlks-ad-image) { grid-template-columns: 200px minmax(0, 1fr); gap: var(--m-6); }
}
html body .evlks-ad-wrapper .evlks-ad-image { margin: 0 !important; text-align: left !important; }
html body .evlks-ad-wrapper .evlks-ad-image img {
	display: block; width: 100%; max-width: 200px; height: auto !important; max-height: 260px; object-fit: contain; object-position: left top;
	margin: 0 !important; border-radius: var(--m-radius-sm);
}
html body .evlks-ad-wrapper .evlks-ad-image figcaption { text-align: left !important; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--m-muted); }
html body .evlks-ad-wrapper .evlks-ad-image figcaption:empty { display: none; }
html body .evlks-ad-wrapper .vcard hr { display: none; }

/* Aufklapp-Knopf der Kontaktliste: eckiges Feld mit Pfeil, sauberer Fokus */
html body .tx-xm-evlks-kontakte .panel-heading { cursor: pointer; }
html body .tx-xm-evlks-kontakte .panel-title a {
	position: relative; display: inline-grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important;
	border-radius: var(--m-radius) !important; background: transparent !important; border: 1px solid var(--m-border-strong) !important;
	color: var(--m-text) !important; outline: 0; transition: border-color .2s, background .2s;
}
html body .tx-xm-evlks-kontakte .panel-title a > span { display: none !important; }
html body .tx-xm-evlks-kontakte .panel-title a::before {
	content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--m-ease);
}
html body .tx-xm-evlks-kontakte .panel-title a[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
html body .tx-xm-evlks-kontakte .panel-heading:hover .panel-title a { border-color: var(--m-text) !important; }
html body .tx-xm-evlks-kontakte .panel-title a:focus { outline: 0 !important; box-shadow: none !important; }
html body .tx-xm-evlks-kontakte .panel-title a:focus-visible { outline: 3px solid var(--m-focus) !important; outline-offset: 2px; }

/* Kacheln einheitlich: News (Startseite/Uebersicht/Weitere News) und Termine */
html body .teaser .teaser-body :is(.bildnachweis, small, .copyright, .et_caption),
html body .teaser .teaser-body p:has(> strong:first-child),
.m-news-card__credit { font-size: 13.5px !important; line-height: 1.45; color: var(--m-muted) !important; margin: 0 !important; }
:is(.teaser .teaser-body, .m-news-card__credit) strong { font-family: var(--m-body) !important; font-weight: 400 !important; color: var(--m-muted); }
html body .teaser .teaser-body > a:last-child > button.btn,
html body .teaser .teaser-body > a:has(> button) > button {
	all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	font-family: var(--m-head); font-size: 16px; line-height: 1.3; color: var(--m-ink);
}
html body .teaser .teaser-body > a:has(> button) > button::after { content: "\2192"; transition: transform .2s var(--m-ease); }
html body .teaser:hover .teaser-body > a:has(> button) > button::after { transform: translateX(3px); }
html body .teaser .teaser-body > a:has(> button) { padding-top: var(--m-3) !important; }

/* Startseite: News-Bereich (template-parts/modern/news-home) */
.m-news-home { width: 100%; max-width: calc(1140px + 2 * var(--m-gutter)); margin: 0 auto; padding: var(--m-section) var(--m-gutter); }
.m-news-home__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--m-3); margin-bottom: var(--m-5); }
html body main .m-news-home__head h2 { margin: 0 !important; }
html body .m-link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--m-head); font-size: 17px; color: var(--m-ink) !important; text-decoration: none !important; }
html body .m-link-more:hover { text-decoration: underline !important; }
.m-news-home__more { margin-top: var(--m-5); }
.m-news-home__more[hidden] { display: none !important; }
.m-news-home__tools { display: flex; justify-content: center; margin-top: var(--m-6); }
html body .m-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
	border: 1.5px solid var(--m-border-strong); border-radius: var(--m-radius); background: transparent; color: var(--m-text);
	font-family: var(--m-head); font-size: 17px; cursor: pointer;
}
html body .m-btn-outline:hover { border-color: var(--m-text); background: var(--m-surface-2); }

/* Visitenkarte ohne Theme-Mindesthoehen (Leerraum unter dem Inhalt) */
html body .evlks-ad-wrapper, html body .evlks-ad-wrapper :is(.address-box, .vcard, .vcard > [class*="col-"]) { min-height: 0 !important; height: auto !important; }
html body .evlks-ad-wrapper .vcard > [class*="col-"] > :last-child { margin-bottom: 0 !important; }

/* Breiten wie im Editor (editor.css): Textspalte 736 px, breite Bloecke 1140 px – immer zentriert, egal wie tief verschachtelt */
html body main .the-content :is(.tx-xm-evlks-kontakte, .wp-block-table, .wp-block-columns, .wp-block-gallery, .news) { max-width: 1140px; margin-left: auto !important; margin-right: auto !important; }
html body main .the-content .evlks-ad-wrapper { max-width: var(--m-measure) !important; margin-left: auto !important; margin-right: auto !important; }

/* =====================================================================
   22. Farbwelt sichtbar (EVLKS-Stil): CI-Farbe fuer Markierungen, Titel, Menue
   --m-ci (Farbwelt), --m-ink (barrierefreie Textfarbe der Farbwelt), --m-ink-dark (Darkmode)
   ===================================================================== */
:root { --m-accent: var(--m-ci); --m-tint: color-mix(in srgb, var(--m-ci) 9%, #ffffff); }
html[data-scheme="dark"] { --m-accent: var(--m-ink-dark); --m-tint: color-mix(in srgb, var(--m-ink-dark) 12%, #25201a); }

/* Titel wie im EVLKS-Layout in der Farbwelt (Kacheln, Kontakte, Abschnitte) */
html body main :is(.m-news-card__title a, .teaser .teaser-body h3 a) { color: var(--m-ink) !important; }
html body main :is(.m-news-card, .teaser):hover :is(.m-news-card__title a, .teaser-body h3 a) { text-decoration: underline !important; text-decoration-thickness: .07em; text-underline-offset: .18em; }
html body main .the-content :is(h2, h3):not([class*="has-text-color"]) { color: var(--m-ink); }
html body main .tx-xm-evlks-kontakte .address-head .fn, html body .evlks-ad-wrapper .org { color: var(--m-ink) !important; }

/* Abschnittsueberschriften (Aktuelles, Weitere News, Uebersichten) mit kurzer Linie in der Farbwelt */
:is(.m-news-home__head h2, .m-news-related h2, .m-news-archive__head h1)::after {
	content: ""; display: block; width: 56px; height: 3px; margin-top: var(--m-3); background: var(--m-ci);
}

/* Footer: Linie oben in der Farbwelt, Punkte und Zitatzeichen */
html body footer { border-top: 3px solid var(--m-ci) !important; }
html body footer .widget_losung::before { color: color-mix(in srgb, var(--m-ci) 26%, transparent) !important; }

/* Buttons/Chips: gefuellt in der Farbwelt (Token --m-btn-bg = --m-ink), Umriss beim Hover in der Farbwelt */
html body .m-btn-outline:hover, html body .m-chip:hover, html body .m-share__btn:hover { border-color: var(--m-ink) !important; }
html body .m-share__btn:hover { background: var(--m-ink) !important; color: #fff !important; }
html[data-scheme="dark"] body .m-share__btn:hover { color: #1c1814 !important; }

/* ---------------- Hauptmenue (Desktop): EVLKS-Sperrung, CI-Flaeche fuer Hover/aktiv, Dropdown mit CI-Kante */
@media (min-width: 992px) {
	html body .evlks-header-main .navbar-nav > li > a {
		letter-spacing: .06em !important; font-size: clamp(17px, 1.3vw, 19px) !important; padding-left: 16px !important; padding-right: 16px !important;
		transition: background .2s, color .2s;
	}
	html body .evlks-header-main .navbar-nav > li > a::after { left: 0 !important; right: 0 !important; bottom: 0 !important; height: 3px; border-radius: 0 !important; background: var(--m-ci) !important; }
	html body header.sticky .evlks-header-main .navbar-nav > li > a::after { bottom: 0 !important; }
	html body .evlks-header-main .navbar-nav > li:is(:hover, :focus-within, .open) > a,
	html body .evlks-header-main .navbar-nav > li > a[aria-expanded="true"] { background: var(--m-tint) !important; color: var(--m-ink) !important; }
	html body .evlks-header-main .navbar-nav > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a { color: var(--m-ink) !important; }

	html body .evlks-header-main .navbar-nav > li > ul, .m-more-panel {
		top: 100% !important; border: 0 !important; border-top: 3px solid var(--m-ci) !important; border-radius: 0 0 var(--m-radius) var(--m-radius) !important;
		padding: var(--m-4) var(--m-3) !important; background: var(--m-surface) !important;
	}
	html body .evlks-header-main .navbar-nav > li > ul > li > a, .m-more-panel a {
		color: var(--m-ink) !important; font-size: 17px !important; letter-spacing: .01em; border-radius: var(--m-radius-sm);
	}
	html body .evlks-header-main .navbar-nav > li > ul > li > a:hover, .m-more-panel a:hover { background: var(--m-tint) !important; color: var(--m-ink) !important; text-decoration: none !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul a { color: var(--m-muted) !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul a:hover { color: var(--m-ink) !important; background: transparent !important; }
	.m-more > button { letter-spacing: .06em; }
	.m-more > button:hover, .m-more > button[aria-expanded="true"] { background: var(--m-tint); color: var(--m-ink); }
}
/* Mobil: aktueller Bereich und Pfeile in der Farbwelt */
@media (max-width: 991px) {
	html body .evlks-header-main .navbar-nav > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a { color: var(--m-ink) !important; }
	html body .evlks-header-main .navbar-nav > li > a { letter-spacing: .04em; }
	html body .evlks-header-main .navbar-nav :is(.m-sub-toggle, button) svg { color: var(--m-ink); }
}
/* Suche/Darkmode-Knoepfe: Hover in der Farbwelt */
html body header .evlks-search.btn:hover, .m-scheme-toggle:hover { border-color: var(--m-ink) !important; color: var(--m-ink) !important; }
/* Mega-Dropdown buendig zur Menueleiste (nicht ab dem Menuepunkt, sonst laeuft es rechts aus dem Bild) */
@media (min-width: 992px) {
	html body .evlks-header-main .navbar-nav { position: relative; }
	html body .evlks-header-main .navbar-nav > li { position: static !important; }
	html body .evlks-header-main .navbar-nav > li > a { position: relative; }
	html body .evlks-header-main .navbar-nav > li > ul { left: 0 !important; right: 0 !important; width: auto !important; max-width: 1140px; }
}
/* Mega-Dropdown am Kopfbereich (.evlks-header-main, Inhaltsbreite) verankert – im grossen und im kompakten Kopf
   gleich breit wie der Inhalt; Theme-Rand (0 15px) raus, damit Kante und Flaeche buendig sind */
@media (min-width: 992px) {
	html body header .evlks-header-main { position: relative !important; }
	html body header .evlks-header-main :is(.row, [class*="col-"], .navbar, .navbar-collapse, .menu-hauptmenue-container, .navbar-nav) { position: static !important; }
	html body .evlks-header-main .navbar-nav > li > ul {
		left: 0 !important; right: 0 !important; top: 100% !important; width: auto !important; max-width: none !important; margin: 0 !important;
		display: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px var(--m-5); padding: var(--m-5) var(--m-6) var(--m-6) !important;
	}
	html body .evlks-header-main .navbar-nav > li:is(:hover, :focus-within, .open) > ul { display: grid !important; }
	html body .evlks-header-main .navbar-nav > li > ul > li { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
}
/* Dropdown-Eintraege als fliessende Spalten (Unterpunkte bleiben bei ihrem Elternpunkt, keine Leerzeilen) */
@media (min-width: 992px) {
	html body .evlks-header-main .navbar-nav > li:is(:hover, :focus-within, .open) > ul { display: block !important; columns: 4 220px; column-gap: var(--m-5); }
	html body .evlks-header-main .navbar-nav > li > ul > li { break-inside: avoid; }
}
@media (min-width: 992px) { html body .evlks-header-main .navbar-nav > li > ul ul { padding-top: 0 !important; margin-top: -6px !important; } }

/* =====================================================================
   23. Logo im Darkmode, Suchergebnisse, Fokus, Filter, Teilen-Icons
   ===================================================================== */
/* Helle Plakette per Schatten statt Innenabstand: Logo behaelt exakt die Groesse des hellen Modus
   (vorher wuchs es auf Spaltenbreite und schob das Menue unter den Such-Knopf) */
html[data-scheme="dark"] img.evlks-logo {
	padding: 0 !important; box-sizing: content-box !important; height: revert-layer; max-width: revert-layer;
	background: #f6f1e8 !important; box-shadow: 0 0 0 7px #f6f1e8; border-radius: 1px;
}
html[data-scheme="dark"] header img.evlks-logo { width: auto !important; height: 75px !important; max-width: 100% !important; }
html[data-scheme="dark"] header.sticky img.evlks-logo { height: 50px !important; }
html[data-scheme="dark"] footer img.evlks-logo { width: auto !important; height: auto !important; max-width: 320px !important; max-height: 75px !important; }
/* Negativ-Logo (Customizer, inc/modern.php): im Darkmode statt Logo + Plakette, im hellen Modus unsichtbar.
   object-fit: breite Wortmarken werden in schmalen Spalten verkleinert statt gestaucht. */
html body img.evlks-logo--neg { display: none !important; }
html[data-scheme="dark"] body img.evlks-logo:has(+ img.evlks-logo--neg) { display: none !important; }
html[data-scheme="dark"] body img.evlks-logo.evlks-logo--neg {
	display: inline-block !important; background: none !important; box-shadow: none !important; object-fit: contain; object-position: left center;
}

/* Fokusrahmen nur bei Tastaturbedienung, nicht nach Mausklick */
html body :is(a, button, summary):focus:not(:focus-visible) { outline: 0 !important; box-shadow: none; }

/* Suchergebnisse */
html body main .tx-xm-evlks-search ~ *, html body main h2.section-headline:has(+ .tx-xm-evlks-search) { text-align: left !important; }
html body main .evlks-teaser-list-el > .row { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: var(--m-4); margin: 0 !important; }
@media (min-width: 768px) { html body main .evlks-teaser-list-el > .row:has(img) { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--m-5); } }
html body main .evlks-teaser-list-el > .row::before, html body main .evlks-teaser-list-el > .row::after { display: none !important; }
html body main .evlks-teaser-list-el > .row > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; }
html body main .evlks-teaser-list-el img.wp-post-image { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--m-radius-sm); }
html body main .evlks-teaser-list-el .et_caption { display: none !important; }
html body main .evlks-teaser-list-el h2 { font-family: var(--m-head-bold); font-size: clamp(20px, 17.6px + .4vw, 23px); margin: 2px 0 var(--m-2) !important; }
html body main .evlks-teaser-list-el h2 a { color: var(--m-ink) !important; text-decoration: none !important; }
html body main .evlks-teaser-list-el h2 a:hover { text-decoration: underline !important; }
html body main .evlks-teaser-list-el .teaser-date { font-family: var(--m-head); font-size: 15px; color: var(--m-muted); }

/* Filter (Suche, News, Kalender): normale Schrift, grosse Kaestchen */
html body main .evlks-filter .checkbox label, html body main form#filter .checkbox label {
	display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 !important;
	font-family: var(--m-body); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none !important; color: var(--m-text);
}
html body main :is(.evlks-filter, form#filter) input[type="checkbox"] { position: static !important; width: 18px; height: 18px; margin: 0 !important; accent-color: var(--m-ink); flex: 0 0 auto; }

/* Teilen (Shariff): Icon exakt mittig, gleiche Groesse fuer alle Anbieter */
html body .shariff .shariff-button a.shariff-link { display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; }
html body .shariff .shariff-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
html body .shariff .shariff-icon svg { display: block !important; width: 18px !important; height: 18px !important; margin: 0 !important; }

/* =====================================================================
   24. Runde Knoepfe wie im bisherigen EVLKS-Layout (Kai 2026-11-25), Kontaktkarten mit integriertem Foto
   ===================================================================== */
html .btn-evlks, html .btn-primary, html .btn-secondary, html .btn-default, html .btn-orange,
html .wp-block-button__link, html .wp-block-file__button, html body main .teaser-archive-tools > a,
html body .m-btn-outline, html body .m-chip, html body .m-link-more,
html body main form.searchbox button, html body main .wp-block-search__button, html body main .evlks-filter .btn,
html body header .evlks-search.btn, .m-scheme-toggle,
html body .m-share__btn, html body .shariff .shariff-button a.shariff-link, html body footer .evlks-footer-social a,
html body .tx-xm-evlks-kontakte .panel-title a { border-radius: 999px !important; }
html body main form.searchbox { border-radius: 999px !important; overflow: hidden; }
html body main form.searchbox input { padding-left: 24px !important; }
html body main .m-chip { padding-left: 16px; padding-right: 16px; }

/* Kontaktkarte: Foto als Teil der Karte (schmal: oben randlos, breit: links randlos ueber die ganze Hoehe) */
html body .evlks-ad-wrapper { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
html body .evlks-ad-wrapper .address-box { flex: 1; display: flex; }
html body .evlks-ad-wrapper .vcard { flex: 1; gap: 0 !important; grid-template-rows: auto 1fr; }
html body .evlks-ad-wrapper .vcard > [class*="col-"]:not(:has(.evlks-ad-image)) { padding: var(--m-5) !important; }
html body .evlks-ad-wrapper .vcard > [class*="col-"]:has(.evlks-ad-image) { padding: 0 !important; }
html body .evlks-ad-wrapper .evlks-ad-image { height: 100%; position: relative; background: var(--m-surface-2); }
html body .evlks-ad-wrapper .evlks-ad-image img {
	display: block; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important;
	aspect-ratio: 4 / 3; object-fit: cover !important; object-position: 50% 25%; border-radius: 0 !important;
}
html body .evlks-ad-wrapper .evlks-ad-image figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 18px 10px 6px;
	background: linear-gradient(to top, rgb(0 0 0 / .65), rgb(0 0 0 / 0)); color: #fff !important; font-size: 12px !important;
}
/* Logos und Grafiken (per JS erkannt): ganz zeigen, mit Rand */
html body .evlks-ad-wrapper .evlks-ad-image.m-is-logo { display: grid; place-items: center; padding: var(--m-5); background: #fff; }
html body .evlks-ad-wrapper .evlks-ad-image.m-is-logo img { height: auto !important; aspect-ratio: auto; object-fit: contain !important; max-height: 140px !important; }
@container (min-width: 520px) {
	html body .evlks-ad-wrapper .vcard:has(.evlks-ad-image) { grid-template-columns: 220px minmax(0, 1fr) !important; grid-template-rows: 1fr; }
	html body .evlks-ad-wrapper .evlks-ad-image img { aspect-ratio: auto; min-height: 100%; }
}

/* Mehrere Kontaktkarten nacheinander bzw. in Spalten: Reihe mit gleicher Hoehe */
html body main .m-contact-row {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--m-5);
	max-width: 1140px; margin: var(--m-6) auto !important; align-items: stretch;
}
html body main .m-contact-row > .evlks-ad-wrapper, html body main .wp-block-column > .evlks-ad-wrapper { margin: 0 !important; max-width: none !important; height: 100%; }
html body main .wp-block-columns:has(.evlks-ad-wrapper) { align-items: stretch !important; }
/* Foto bestimmt nie die Kartenhoehe: schmal 4:3 oben, breit absolut in der Fotospalte (Text bestimmt die Hoehe) */
html body .evlks-ad-wrapper .evlks-ad-image img { height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 3; }
@container (min-width: 520px) {
	html body .evlks-ad-wrapper .vcard:has(.evlks-ad-image) { grid-template-columns: 200px minmax(0, 1fr) !important; grid-template-rows: auto !important; }
	html body .evlks-ad-wrapper .vcard > [class*="col-"]:has(.evlks-ad-image) { position: relative !important; min-height: 240px; }
	html body .evlks-ad-wrapper .evlks-ad-image:not(.m-is-logo) { position: absolute !important; inset: 0; height: auto; }
	html body .evlks-ad-wrapper .evlks-ad-image:not(.m-is-logo) img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto; }
	html body .evlks-ad-wrapper .evlks-ad-image.m-is-logo { height: 100%; }
}
@container (min-width: 520px) {
	html body .evlks-ad-wrapper .vcard:has(.evlks-ad-image) { align-items: stretch !important; }
	html body .evlks-ad-wrapper .vcard:has(.evlks-ad-image) > [class*="col-"]:has(.evlks-ad-image) { min-height: 240px !important; height: auto !important; align-self: stretch !important; }
}
html body :is(main, footer, section) .evlks-footer-info-service > div:last-child :is(.info-service-phone, .info-service-mail) { border-radius: 999px !important; padding-left: 18px !important; padding-right: 20px !important; }
/* Nur ein aktiver Hauptmenuepunkt (modern.js setzt data-m-current); WordPress markiert sonst jeden Vorfahren */
html body .evlks-header-main .navbar-nav > li:not([data-m-current]):is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .active):not(:hover):not(.open) > a { color: var(--m-text) !important; background: transparent !important; }
html body .evlks-header-main .navbar-nav > li:not([data-m-current]):is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .active):not(:hover):not(.open) > a::after { transform: scaleX(0) !important; }
html body .evlks-header-main .navbar-nav > li[data-m-current] > a { color: var(--m-ink) !important; }
html body .evlks-header-main .navbar-nav > li[data-m-current] > a::after { transform: scaleX(1) !important; }
/* Menuezeile niedriger (vorher 95 px) */
@media (min-width: 992px) {
	html body header:not(.sticky) .evlks-header-main .navbar-nav > li > a { padding-top: 18px !important; padding-bottom: 17px !important; }
	html body header:not(.sticky) .m-more > button { padding-top: 18px; padding-bottom: 17px; }
}

/* =====================================================================
   25. Eine Seitenbreite (1140 px) fuer alle Inhalte; Buttons nur in der Farbwelt
   ===================================================================== */
html body main .the-content > :is(.alignwide, .alignfull) { max-width: 1140px !important; margin-left: auto !important; margin-right: auto !important; }
html body main .the-content .evlks-ad-wrapper { max-width: 1140px !important; }
/* Buttons: eigene Farben aus aelteren Inhalten werden ueberstimmt – gefuellt bzw. Umriss in der Farbwelt */
html body .wp-block-button > .wp-block-button__link,
html body .wp-block-button > .wp-block-button__link.has-background,
html body .wp-block-button > .wp-block-button__link[style] {
	background: var(--m-btn-bg) !important; color: var(--m-btn-fg) !important; border: 1.5px solid var(--m-btn-bg) !important; text-decoration: none !important;
}
html body .wp-block-button > .wp-block-button__link:hover { background: var(--m-btn-bg-hover) !important; border-color: var(--m-btn-bg-hover) !important; }
html body .wp-block-button.is-style-outline > .wp-block-button__link,
html body .wp-block-button.is-style-outline > .wp-block-button__link[style] { background: transparent !important; color: var(--m-ink) !important; border-color: var(--m-ink) !important; }
html body .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--m-tint) !important; }
html body .wp-block-button > .wp-block-button__link * { color: inherit !important; text-decoration: none !important; }
html body .wp-block-button > .wp-block-button__link[href^="http"]::after { color: inherit !important; }
/* "weitere Events laden" und "Alle Events" gleich hoch */
html body main .teaser-archive-tools > :is(a, button) { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px !important; height: 44px; padding: 0 22px !important; margin: 0 !important; line-height: 1 !important; font-family: var(--m-head); font-size: 16px; }
/* News-Kachel: "Weiterlesen" als eigener Link ueber der klickbaren Kachelflaeche */
html body .m-news-card__more { position: relative; z-index: 1; align-self: flex-start; text-decoration: none !important; color: var(--m-ink) !important; }
html body .m-news-card__more:hover { text-decoration: underline !important; text-underline-offset: .2em; }
html body .m-news-card__more:focus-visible { outline: 3px solid var(--m-focus); outline-offset: 3px; border-radius: 2px; }

/* Footer-Untermenue (z. B. Kirchenchorwerk "Landeskirche"): ruhige Linkzeile statt Ueberschriftgroesse */
html body footer #evlks-sub-footer-navbar .nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--m-2) var(--m-5); margin: 0 !important; }
html body footer #evlks-sub-footer-navbar .nav > li > a { padding: 0 !important; font-family: var(--m-body); font-size: 16px !important; color: var(--m-text) !important; text-decoration: underline; text-underline-offset: 3px; background: none !important; }
html body footer #evlks-sub-footer-navbar .nav > li > a:hover { color: var(--m-ink) !important; }
/* "weitere ... laden": Theme-Pluszeichen war hell unsichtbar und dunkel als Fremdkoerper sichtbar - einheitlich ohne */
html body main .teaser-archive-tools > button::before, html body main .teaser-archive-tools > button > span::before { content: none !important; display: none !important; }
/* Logo-Hinterlegung in Kontaktkarten im Darkmode wie beim Kopf-Logo: warmes Papierweiss statt Reinweiss */
html[data-scheme="dark"] body .evlks-ad-wrapper .evlks-ad-image.m-is-logo { background: #f6f1e8; }

/* =====================================================================
   26. Hauptmenue: Hoehe, "Mehr" wie die anderen Menuepunkte, Ebenen
   ===================================================================== */
@media (min-width: 992px) {
	/* Theme gibt dem Kopf 95 px (klassisch: Logo und Menue in einer Zeile); hier steht das Menue in eigener Zeile
	   -> ohne Mindesthoehe, die Menuepunkte bestimmen die Hoehe (ca. 60 px), "Mehr" gleich hoch */
	html body header:not(.sticky) .evlks-header-main { min-height: 0 !important; height: auto !important; }
	html body header:not(.sticky) .evlks-header-main .navbar { min-height: 0 !important; height: auto !important; }
	html body header:not(.sticky) .evlks-header-main .nav > li > a { height: auto !important; }
	html body header .evlks-header-main .navbar-nav { height: auto !important; }
	html body header .evlks-header-main .navbar-nav > li.m-more { align-self: stretch; }
	html body header .m-more > button { height: 100%; }
	/* Ebenen: Kopf ueber dem Inhalt, offene Menues ueber dem Kopf-Inhalt; "Mehr" und Untermenues auf gleicher Ebene */
	html body header .evlks-header-main .navbar-nav > li > ul,
	html body header .m-more-panel { z-index: 1100 !important; }
	html body header .m-more.m-more-open > button { background: var(--m-tint); color: var(--m-ink); }
	/* Solange "Mehr" offen ist, oeffnen andere Untermenues nicht nur durch Ueberfahren (Maus auf dem Weg ins Panel) */
	html body header .evlks-header-main .navbar-nav:has(.m-more-open) > li:not(.m-more):not(:focus-within) > ul { display: none !important; }
}

/* =====================================================================
   27. Seitenkopf als Einheit: Kopfbild, Brotkrumen, Titel auf einer Achse
   Kopfbild bleibt randlos mit EVLKS-Punkteraster (Abschnitt 28: Brotkrumen als Reiter auf der Bildkante).
   Brotkrumen und Seitentitel stehen dicht beieinander, linksbuendig an der Inhaltskante (1140 px) –
   auf Inhaltsseiten, Kalender, News und Suche gleich.
   ===================================================================== */
html body main .evlks-jumbotron-image .image { height: clamp(180px, 21vw, 300px) !important; max-height: none !important; }
/* Kopfbild als echtes <img> (Kalender, Kategorien): Flaeche ganz fuellen, sonst schaut das Punkteraster unten heraus */
html body main .evlks-jumbotron-image .image > img:not(.invisible) { display: block; width: 100% !important; height: 100% !important; object-fit: cover; aspect-ratio: auto !important; }
html body main > .container:has(> ol.breadcrumb) {
	width: 100%; max-width: calc(1140px + 2 * var(--m-gutter)); padding: 0 var(--m-gutter); margin: 0 auto;
}
html body main ol.breadcrumb {
	max-width: none !important; margin: 0 !important; padding: var(--m-5) 0 0 !important;
	display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 15px; line-height: 1.4;
}
html body main ol.breadcrumb > li + li::before { padding: 0 8px !important; }
/* Titel direkt unter den Brotkrumen (vorher bis zu 190 px Luft) */
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container { padding-top: var(--m-3) !important; }
/* Seitentitel: links, gleiche Groesse, kurze Linie in der Farbwelt – Inhaltsseiten (h1.title) und Uebersichten (Kalender) */
html body main article.post > h1.title,
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container > h2.section-headline:first-child {
	max-width: 1140px !important; margin: 0 auto var(--m-6) !important; text-align: left !important;
	font-family: var(--m-head); font-weight: 400; font-size: clamp(32px, 18.4px + 3.2vw, 52px); line-height: 1.08;
}
html body main article.post > h1.title::after,
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container > h2.section-headline:first-child::after {
	content: ""; display: block; width: 56px; height: 3px; margin-top: var(--m-3); background: var(--m-ci);
}
/* Ohne Kopfbild: Brotkrumen mit Abstand zum Menue */
@media (max-width: 767px) {
	html body main .evlks-jumbotron-image .image { height: 160px !important; }
	html body main ol.breadcrumb { font-size: 14px; padding-top: var(--m-4) !important; }
}
/* Kompakter Kopf: die rechte Spalte (Suche/Darkmode) liegt ueber der Menuezeile – leere Flaeche laesst Klicks durch */
@media (min-width: 992px) {
	html body header .desktop-only:is([class*="col-md-3"]) { pointer-events: none; }
	html body header .desktop-only:is([class*="col-md-3"]) :is(a, button, input, form, label) { pointer-events: auto; }
}
/* Menuepunkte und "Mehr" einheitlich senkrecht zentriert (grosser Kopf 60 px, kompakter Kopf 70 px) */
@media (min-width: 992px) {
	html body header .evlks-header-main .navbar-nav > li > a,
	html body header .evlks-header-main .navbar-nav > li.m-more > button {
		display: flex !important; align-items: center; gap: 6px; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 60px; line-height: 1.2 !important;
	}
	html body header.sticky .evlks-header-main .navbar-nav > li > a,
	html body header.sticky .evlks-header-main .navbar-nav > li.m-more > button { min-height: 70px; height: 70px !important; }
}

/* =====================================================================
   28. Brotkrumen als Reiter auf der Kopfbild-Kante; ohne Kopfbild ein dezentes Band
   (Kai 2026-11-25: keine Linie unter dem Bild; Seiten ohne Hintergrund dezent illustrieren)
   ===================================================================== */
html body main > .container:has(> ol.breadcrumb) { position: relative; z-index: 2; }
html body main ol.breadcrumb {
	display: inline-flex !important; width: auto; max-width: calc(100% + 20px) !important;
	margin: -30px 0 0 -20px !important; padding: 12px 22px 0 20px !important;
	background: var(--m-bg); border-radius: 6px 6px 0 0;
}
/* Ohne Kopfbild (und nicht Startseite): flaches Band in der Farbwelt-Toenung mit EVLKS-Punkteraster,
   das nach rechts dichter wird – wie das Raster auf den Kopfbildern, nur ganz zurueckhaltend */
html body:not(.home) main:not(:has(.evlks-jumbotron-image, .evlks-jumbotron-slider))::before {
	content: ""; display: block; height: clamp(84px, 9vw, 128px);
	background-color: var(--m-tint);
	background-image:
		linear-gradient(to right, var(--m-tint) 22%, color-mix(in srgb, var(--m-tint) 55%, transparent) 60%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ci) 38%, transparent) 0 1.6px, transparent 2.1px);
	background-size: 100% 100%, 14px 14px;
	background-position: 0 0, right 7px top 7px;
}
html[data-scheme="dark"] body:not(.home) main:not(:has(.evlks-jumbotron-image, .evlks-jumbotron-slider))::before {
	background-image:
		linear-gradient(to right, var(--m-tint) 22%, color-mix(in srgb, var(--m-tint) 55%, transparent) 60%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ink-dark) 30%, transparent) 0 1.6px, transparent 2.1px);
}
/* Seiten ohne Brotkrumen-Container direkt nach dem Band (z. B. eigene Vorlagen): Inhalt nicht ankleben */
html body main > .container:first-child > ol.breadcrumb { padding-top: 12px !important; }
@media (max-width: 767px) {
	html body main ol.breadcrumb { margin: -24px 0 0 -14px !important; padding: 10px 16px 0 14px !important; max-width: calc(100% + 14px) !important; }
}
/* Aktuelle Seite in den Brotkrumen ist kein Ziel: nicht unterstrichen */
html body main ol.breadcrumb > li.active :is(a, span) { text-decoration: none !important; color: var(--m-text) !important; }

/* Lange Links (URLs, Mailadressen) brechen um statt aus dem Kasten zu laufen (aus style.css 1.4.1 hierher: nur Modern) */
html body main :is(p, li, h1, h2, h3, h4) a { overflow-wrap: anywhere; }

/* =====================================================================
   29. Termin-Kacheln (Kalender-/Events-Block) wie die News-Kacheln (Kai 2026-11-25)
   Gleiches Raster und gleiche Abstaende (auch zwischen den Reihen), Abschluss als Textlink mit Pfeil statt Knopf.
   ===================================================================== */
html body main .news > .row,
html body main .news .collapse > .row,
html body main .news .row-equal-height {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--m-5);
	margin: 0 0 var(--m-5) !important;
}
html body main .news .row::before, html body main .news .row::after { display: none !important; }
html body main .news .row > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; display: flex; }
html body main .news .row > [class*="col-"] > .teaser { flex: 1; }
html body main .news .collapse.in, html body main .news .collapsing { display: block; }
/* Kopfzeile wie News-Meta */
html body main .news .teaser .dtstamp p, html body main .news .teaser .teaser-date { font-family: var(--m-head); font-size: 15px; color: var(--m-muted); letter-spacing: 0; }
/* Abschluss: "Zum Event" / "Zur Veranstaltung und Anmeldung" als Textlink wie "Weiterlesen" */
html body main .news .teaser .teaser-body > a:has(> button) { margin-top: auto; padding-top: var(--m-3); align-self: flex-start; text-decoration: none !important; }
html body main .news .teaser .teaser-body > a > button.btn {
	all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	font-family: var(--m-head); font-size: 16px; line-height: 1.3; color: var(--m-ink);
}
html body main .news .teaser .teaser-body > a > button.btn::after { content: "\2192"; display: inline-block; font-size: 18px; transition: transform .2s var(--m-ease); }
html body main .news .teaser:hover .teaser-body > a > button.btn::after { transform: translateX(3px); }
html body main .news .teaser .teaser-body > a > button.btn::before { display: none !important; }
html body main .news .teaser .teaser-body > a > button.btn {
	background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 0 !important; min-height: 0 !important; height: auto !important; color: var(--m-ink) !important;
	font-family: var(--m-head) !important; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important;
}
html body main .news .teaser .teaser-body > a > button.btn:hover { background: transparent !important; color: var(--m-ink) !important; }

/* =====================================================================
   30. Terminliste (/kalender) als Karten mit Datumsblock und Monats-Ueberschriften
   Sonderfassungen: Rubrikfarbe (--evlkscalendar-rubric-color), Rubrik-Stempel, Kanaele bleiben erhalten.
   ===================================================================== */
html body main .m-cal-month {
	font-family: var(--m-head); font-weight: 400; font-size: clamp(22px, 18px + .8vw, 28px); color: var(--m-text);
	margin: var(--m-6) 0 var(--m-3) !important; display: flex; align-items: center; gap: var(--m-3);
}
html body main .m-cal-month::after { content: ""; flex: 1; height: 1px; background: var(--m-border); }
html body main #detailsElements > .m-cal-month:first-child { margin-top: 0 !important; }
html body main .evlks-teaser-list-el.m-cal-item {
	position: relative; margin: 0 0 var(--m-4) !important; padding: var(--m-5) !important;
	background: var(--m-surface) !important; border: 1px solid var(--m-border) !important; border-radius: var(--m-radius);
	box-shadow: var(--m-shadow); transition: box-shadow .25s var(--m-ease), transform .25s var(--m-ease);
}
html body main .evlks-teaser-list-el.m-cal-item:first-of-type { border-top: 1px solid var(--m-border) !important; }
html body main .evlks-teaser-list-el.m-cal-item:hover { box-shadow: var(--m-shadow-hover); transform: translateY(-2px); background: var(--m-surface) !important; }
html body main .evlks-teaser-list-el.m-cal-item > .csc-default { grid-template-columns: 84px minmax(0, 1fr) !important; gap: var(--m-5) !important; align-items: start; }
/* Datumsblock */
.m-cal-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
	width: 84px; min-height: 92px; padding: 10px 6px; border-radius: var(--m-radius);
	background: var(--m-tint); color: var(--m-ink); text-align: center;
	border-top: 4px solid var(--evlkscalendar-rubric-color, var(--m-ci));
}
.m-cal-date__wd { font-family: var(--m-head); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); }
.m-cal-date__day { font-family: var(--m-head-bold); font-size: 34px; line-height: 1; margin: 2px 0; }
.m-cal-date--range .m-cal-date__day { font-size: 21px; line-height: 1.15; }
.m-cal-date__mon { font-family: var(--m-head); font-size: 15px; }
/* Rubrikfarbe der Sonderfassung: modern.js setzt --evlkscalendar-rubric-color auf die Karte (Datumsblock-Kante) */
/* Inhalt */
html body main .m-cal-item .event_intro { display: flex; flex-direction: column; gap: var(--m-2); border: 0 !important; padding: 0 !important; }
html body main .m-cal-item .event_intro > br { display: none; }
html body main .m-cal-item h2 { margin: 0 !important; font-size: clamp(20px, 17.6px + .5vw, 23px) !important; }
html body main .m-cal-item h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
html body main .m-cal-item h2[style*="color"] a { color: inherit !important; }
html body main .m-cal-item:hover h2 a { text-decoration: underline !important; text-decoration-thickness: .07em; text-underline-offset: .18em; }
html body main .m-cal-time { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-family: var(--m-head); font-size: 16px; color: var(--m-text); }
html body main .m-cal-time svg { width: 17px; height: 17px; color: var(--m-ink); flex: none; }
html body main .m-cal-item .location { display: flex; gap: 6px; font-size: 16px; }
html body main .m-cal-item .event_intro > div:not([class]):not([itemprop]) { font-size: 16px; line-height: 1.6; color: var(--m-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html body main .m-cal-item .evlkscalendar-channels { position: relative; z-index: 1; }
/* Fuss: Link kopieren links, Details rechts – ueber der Karten-Klickflaeche */
html body main .m-cal-item .event_intro > .row { margin: var(--m-2) 0 0 !important; padding-top: var(--m-3); border-top: 1px solid var(--m-border); position: relative; z-index: 1; }
html body main .m-cal-item .m-cal-copy strong { font-family: var(--m-head) !important; font-size: 15px !important; color: var(--m-muted) !important; }
html body main .m-cal-item .to_event .btn.m-cal-go {
	background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; min-height: 0 !important;
	color: var(--m-ink) !important; font-family: var(--m-head) !important; font-size: 16px !important; display: inline-flex; align-items: center; gap: 6px;
}
html body main .m-cal-item .to_event .btn.m-cal-go::after { content: "\2192"; font-size: 18px; transition: transform .2s var(--m-ease); }
html body main .m-cal-item:hover .to_event .btn.m-cal-go::after { transform: translateX(3px); }
/* Rubrik-Stempel der Sonderfassung: oben rechts auf der Karte statt in der Datumsspalte */
html body main .m-cal-item .evlkscalendar-badges--date { position: absolute; top: 12px; right: 14px; z-index: 1; margin: 0 !important; width: 96px; pointer-events: none; }
html body main .m-cal-item .evlkscalendar-badges--date .evlkscalendar-badge { width: 100%; }
html body main .m-cal-item:has(.evlkscalendar-badges--date) .event_intro { padding-right: 104px !important; }
@media (max-width: 600px) {
	html body main .evlks-teaser-list-el.m-cal-item { padding: var(--m-4) !important; }
	html body main .evlks-teaser-list-el.m-cal-item > .csc-default { grid-template-columns: 64px minmax(0, 1fr) !important; gap: var(--m-4) !important; }
	.m-cal-date { width: 64px; min-height: 74px; }
	.m-cal-date__day { font-size: 26px; }
	.m-cal-date--range .m-cal-date__day { font-size: 16px; }
	html body main .m-cal-item .evlkscalendar-badges--date { width: 72px; top: 8px; right: 8px; }
	html body main .m-cal-item:has(.evlkscalendar-badges--date) .event_intro { padding-right: 0 !important; }
	html body main .m-cal-item:has(.evlkscalendar-badges--date) h2 { padding-right: 78px; }
}
/* Terminkarte: Feinschliff (Abstand unten, Stempel-Position, Rest " - " der alten Zeitangabe, nur Pfeil am Details-Link) */
html body main .evlks-teaser-list-el.m-cal-item > .csc-default { margin: 0 !important; }
html body main .m-cal-item > .csc-default > [class*="col-"] { position: static !important; }
html body main .m-cal-item > .csc-default > [class*="col-sm-2"] { font-size: 0 !important; line-height: 0; }
html body main .m-cal-item .to_event .btn.m-cal-go::before, html body main .m-cal-item .to_event .btn.m-cal-go i { display: none !important; }
html body main .m-cal-item .m-cal-date { line-height: 1.2; }
html body main .m-cal-item .m-cal-date__day { line-height: 1; }
html body main .m-cal-item:has(.evlkscalendar-badges--date) .event_intro { padding-right: 0 !important; }
html body main .m-cal-item:has(.evlkscalendar-badges--date) :is(.event_intro > h2, .m-cal-time) { padding-right: 104px; }
@media (max-width: 600px) { html body main .m-cal-item:has(.evlkscalendar-badges--date) :is(.event_intro > h2, .m-cal-time) { padding-right: 78px; } }
html[data-scheme="dark"] body main .evlkscalendar-channel--plain { background: transparent !important; color: var(--m-text) !important; border-color: var(--m-border-strong) !important; }
/* Rubrikfarben der Kunden (z. B. #1970C1) im Darkmode lesbar halten */
html[data-scheme="dark"] body main .m-cal-item .event_intro > h2[style*="color"] { filter: brightness(1.55) saturate(.85); }

/* =====================================================================
   31. Kalender als Eyecatcher: Vorschaubilder, Aufmacher, Highlight, Kanal-/Kategorie-Kopf, Filter
   ===================================================================== */
/* Karte mit Bild: Datum | Inhalt | Bild */
@media (min-width: 768px) {
	html body main .evlks-teaser-list-el.m-cal-item--img > .csc-default { grid-template-columns: 84px minmax(0, 1fr) 220px !important; }
}
.m-cal-thumb { margin: 0; position: relative; z-index: 0; }
.m-cal-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--m-radius); background: var(--m-surface-2); transition: transform .5s var(--m-ease); }
.m-cal-item:hover .m-cal-thumb img { transform: scale(1.02); }
.m-cal-thumb figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--m-muted); }
@media (max-width: 767px) {
	html body main .m-cal-item--img .m-cal-thumb { grid-column: 1 / -1; order: -1; }
	.m-cal-thumb img { aspect-ratio: 16 / 9; }
}
/* Aufmacher (erster Termin, Seite 1): Bild gross oben, Titel groesser */
@media (min-width: 768px) {
	html body main .evlks-teaser-list-el.m-cal-item--featured.m-cal-item--img > .csc-default { grid-template-columns: 84px minmax(0, 1fr) !important; }
	html body main .m-cal-item--featured.m-cal-item--img .m-cal-thumb { grid-column: 1 / -1; order: -1; }
	html body main .m-cal-item--featured .m-cal-thumb img { aspect-ratio: 21 / 9; }
	html body main .m-cal-item--featured .event_intro > h2 { font-family: var(--m-head) !important; font-size: clamp(26px, 20px + 1.2vw, 34px) !important; line-height: 1.12; }
}
html body main .m-cal-item--featured { border-color: color-mix(in srgb, var(--m-ci) 45%, var(--m-border)) !important; }
.m-cal-eyebrow, .m-cal-flag {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
	font-family: var(--m-head); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.m-cal-eyebrow { background: var(--m-tint); color: var(--m-ink); }
.m-cal-flag { background: var(--m-ci); color: #fff; }
.m-cal-flag::before { content: "\2605"; font-size: 12px; }
html[data-scheme="dark"] .m-cal-flag { color: #1c1814; background: var(--m-ink-dark); }
html body main .m-cal-item--highlight { border-left: 0 !important; box-shadow: var(--m-shadow), inset 3px 0 0 var(--m-ci) !important; }
/* Kanal-/Kategorie-/Ortsansicht: Kopf wie Seitentitel, Art als kleine Zeile darueber */
html body main .category-headline { font-family: var(--m-head) !important; font-weight: 400; font-size: clamp(28px, 18px + 2.4vw, 44px) !important; line-height: 1.1; color: var(--m-text) !important; text-align: left !important; margin: 0 0 var(--m-6) !important; }
html body main .category-headline::after { content: ""; display: block; width: 56px; height: 3px; margin-top: var(--m-3); background: var(--m-ci); }
html body main .section-headline:has(+ .category-headline) { font-size: 14px !important; font-family: var(--m-head) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted) !important; margin: 0 0 var(--m-2) !important; text-align: left !important; }
html body main .section-headline:has(+ .category-headline)::after { display: none !important; }
/* Filter: ruhige Karte, mitlaufend am Desktop */
@media (min-width: 768px) {
	html body main .flex-ordering-mobile-first:has(.evlks-filter) { align-self: flex-start; position: sticky; top: calc(var(--m-sticky-h, 84px) + 16px); }
	html body main .row.flex-ordering-mobile:has(.evlks-filter) { display: flex; align-items: flex-start; }
}
html body main .evlks-filter { background: var(--m-surface) !important; border: 1px solid var(--m-border) !important; border-radius: var(--m-radius); box-shadow: var(--m-shadow); }
html body main .evlks-filter legend, html body main .evlks-filter .control-label { font-family: var(--m-head) !important; font-size: 13.5px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted) !important; border: 0 !important; margin-bottom: 6px !important; }
html body main .evlks-filter .form-group { margin-bottom: var(--m-4) !important; padding-bottom: var(--m-4); border-bottom: 1px solid var(--m-border); }
html body main .evlks-filter .form-group:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* =====================================================================
   32. Shariff (Teilen): klarer Abstand zum Inhalt, "Teilen" mittig zu den Symbolen
   ===================================================================== */
html body main .the-content > .shariff, html body main .the-content .shariff:last-child {
	margin: var(--m-6) 0 0 !important; padding: var(--m-4) 0 0 !important; border-top: 1px solid var(--m-border);
}
html body .shariff .shariff-buttons { align-items: center !important; gap: 10px !important; min-height: 40px; }
html body .shariff .shariff-buttons::before { display: inline-flex; align-items: center; height: 40px; line-height: 1 !important; margin: 0 6px 0 0 !important; }
html body .shariff .shariff-button { display: inline-flex !important; align-items: center; }
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container > h2.section-headline:first-child:has(+ .category-headline) {
	font-size: 14px !important; font-family: var(--m-head) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted) !important; margin: 0 0 var(--m-2) !important; line-height: 1.4;
}
html body main > .container:has(> ol.breadcrumb) + section.evlks-bg-white > .container > h2.section-headline:first-child:has(+ .category-headline)::after { display: none !important; }

/* =====================================================================
   33. Termin-Detailseite: Titelbereich, Inhalt links, "Auf einen Blick" rechts (mitlaufend)
   Abstaende im Raster 16 / 24 / 32 px (--m-4 / --m-5 / --m-6)
   ===================================================================== */
html body.m-ev-page main section.flex-ordering-mobile > .container { max-width: calc(1140px + 2 * var(--m-gutter)); }
html body.m-ev-page main .evlks-section-sub:empty { display: none; }
html body.m-ev-page main h1[itemprop="name"] {
	text-align: left !important; max-width: 1140px; margin: var(--m-3) auto var(--m-3) !important;
	font-family: var(--m-head); font-weight: 400; font-size: clamp(32px, 18.4px + 3.2vw, 52px); line-height: 1.08;
}
html body.m-ev-page main h1[itemprop="name"]::after { content: ""; display: block; width: 56px; height: 3px; margin-top: var(--m-3); background: var(--evlkscalendar-rubric-color, var(--m-ci)); }
html body.m-ev-page main .calendar-subtitle {
	text-align: left !important; max-width: 760px; margin: 0 0 var(--m-6) !important;
	font-family: var(--m-body) !important; font-weight: 400 !important; font-size: clamp(18px, 16px + .4vw, 21px) !important; line-height: 1.5; color: var(--m-muted) !important;
}
html body.m-ev-page main .evlks-single-event { margin: 0 !important; }
html body.m-ev-page main .evlks-single-event > .csc-default {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-6);
}
@media (min-width: 992px) {
	html body.m-ev-page main .evlks-single-event > .csc-default { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}
html body.m-ev-page main .evlks-single-event > .csc-default > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; border: 0 !important; min-height: 0; position: static; }
html body.m-ev-page main .evlks-single-event > .csc-default::before, html body.m-ev-page main .evlks-single-event > .csc-default::after { display: none; }
html body.m-ev-page main .evlks-single-event .col-sm-10 { order: 1; }
html body.m-ev-page main .evlks-single-event .col-sm-2 { order: 2; font-size: 0; line-height: 0; }
@media (max-width: 991px) { html body.m-ev-page main .evlks-single-event .col-sm-2 { order: 0; } }
/* Kasten */
.m-ev-aside {
	font-size: 16px; line-height: 1.5; background: var(--m-surface); border: 1px solid var(--m-border); border-radius: var(--m-radius);
	box-shadow: var(--m-shadow); overflow: hidden; border-top: 4px solid var(--evlkscalendar-rubric-color, var(--m-ci));
}
@media (min-width: 992px) { .m-ev-aside { position: sticky; top: calc(var(--m-sticky-h, 84px) + 16px); } }
.m-ev-aside__img { margin: 0; }
.m-ev-aside__img img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; }
.m-ev-aside__img figcaption { padding: 8px var(--m-5) 0; font-size: 12.5px; line-height: 1.35; color: var(--m-muted); }
.m-ev-aside__body { display: flex; flex-direction: column; gap: var(--m-4); padding: var(--m-5); }
.m-ev-fact { margin: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--m-4); border-bottom: 1px solid var(--m-border); }
.m-ev-fact__label { font-family: var(--m-head); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); }
.m-ev-fact__value { font-family: var(--m-head-bold); font-size: 21px; line-height: 1.25; color: var(--m-text); }
.m-ev-fact__sub { font-family: var(--m-head); font-size: 18px; color: var(--m-ink); }
html body main .m-ev-fact--where .location { font-size: 17px; line-height: 1.45; color: var(--m-text); }
html body main .m-ev-fact--where .location small { display: block; font-size: 15px; color: var(--m-muted); }
html body main .m-ev-fact--where .location br { display: none; }
.m-ev-route { align-self: flex-start; margin-top: 4px; font-family: var(--m-head); font-size: 15px; color: var(--m-ink) !important; }
.m-ev-route::after { content: " \2197"; }
.m-ev-actions { display: flex; flex-direction: column; gap: var(--m-3); }
html body main .m-ev-actions .m-ev-register { display: inline-flex; justify-content: center; width: 100%; }
.m-ev-copy { align-self: center; background: none; border: 0; padding: 4px 0; font-family: var(--m-head); font-size: 15px; color: var(--m-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.m-ev-copy:hover { color: var(--m-ink); }
/* Inhalt */
html body.m-ev-page main .evlks-single-event .event_intro { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body.m-ev-page main .evlks-single-event .event_intro:empty { display: none; }
html body.m-ev-page main .evlks-single-event .description { font-size: 18px; line-height: 1.7; margin: 0 0 var(--m-6); max-width: 70ch; }
html body.m-ev-page main .evlks-single-event .event_body > .row {
	display: grid !important; grid-template-columns: 1fr; gap: 2px var(--m-5); margin: 0 !important; padding: var(--m-4) 0; border-top: 1px solid var(--m-border);
}
@media (min-width: 768px) { html body.m-ev-page main .evlks-single-event .event_body > .row { grid-template-columns: 200px minmax(0, 1fr); } }
html body.m-ev-page main .evlks-single-event .event_body > .row:last-of-type { border-bottom: 1px solid var(--m-border); }
html body.m-ev-page main .evlks-single-event .event_body > .row::before, html body.m-ev-page main .evlks-single-event .event_body > .row::after { display: none; }
html body.m-ev-page main .evlks-single-event .event_body > .row > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; }
html body.m-ev-page main .evlks-single-event .event_body > .row strong { font-family: var(--m-head); font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--m-muted); }
html body.m-ev-page main .evlks-single-event .event_body > .row a { overflow-wrap: anywhere; }
html body.m-ev-page main .evlks-single-calendar-back { margin-top: var(--m-6) !important; padding: 0 !important; }
html body.m-ev-page main .evlks-single-calendar-back a { font-family: var(--m-head); font-size: 17px; }
@media (min-width: 992px) {
	html body.m-ev-page main .evlks-single-event > .csc-default > .col-sm-10 { grid-column: 1; grid-row: 1; }
	html body.m-ev-page main .evlks-single-event > .csc-default > .col-sm-2 { grid-column: 2; grid-row: 1 / span 2; }
	html body.m-ev-page main .evlks-single-event > .csc-default > .evlks-single-calendar-back { grid-column: 1; grid-row: 2; order: 3; }
}
@media (max-width: 991px) { html body.m-ev-page main .evlks-single-event > .csc-default > .evlks-single-calendar-back { order: 3; } }
html body.m-ev-page main .evlks-single-event .description:empty { display: none; }
html body.m-ev-page main .m-ev-fact--where .m-ev-place { font-size: 17px; line-height: 1.45; color: var(--m-text); }

/* Detailseite: Abstaende Titel -> Inhalt, Kasten buendig oben, leere Reste ausblenden */
html body.m-ev-page main section.flex-ordering-mobile > .container { padding-bottom: 0 !important; }
html body.m-ev-page main section.evlks-bg-white:not(.flex-ordering-mobile) > .container { padding-top: 0 !important; }
html body.m-ev-page main .evlks-single-event .col-sm-2 > :not(.m-ev-aside):not(.screen-reader-text) { display: none !important; }
html body.m-ev-page main .evlks-single-event .event_body > .row.m-empty { display: none !important; }
html body.m-ev-page main .evlks-single-event .description { margin-top: 0; }
html body .shariff .shariff-buttons::before { align-self: stretch; height: auto !important; }

/* =====================================================================
   34. Kalender-Filter (Liste, Kategorie-, Kanal-, Ortsseiten)
   Desktop: Seitenleiste rechts, Felder untereinander. Tablet: Leiste ueber der Liste. Handy: ausklappbar oben.
   ===================================================================== */
html body main .evlks-filter.m-cal-bar { position: static !important; margin: 0 !important; padding: var(--m-5) !important; }
html body main .m-cal-bar .evlks-filter-options { padding: 0 !important; }
html body main .m-cal-bar form#filter { display: flex; flex-direction: column; gap: var(--m-4); }
@media (min-width: 768px) {
	html body main .m-cal-bar #fc { display: block !important; height: auto !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
	html body main .m-cal-bar form#filter {
		display: grid; gap: var(--m-4) var(--m-5); align-items: end;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "search dates" "cat cat" "loc chan" "hl submit";
	}
}
@media (min-width: 992px) {
	/* Seitenleiste: nicht sticky – mit Kategorien ist sie hoeher als viele Bildschirme */
	html body main .row.flex-ordering-mobile > .flex-ordering-mobile-first:has(.m-cal-bar) { position: static; }
	html body main .row.flex-ordering-mobile:has(.m-cal-bar) { grid-template-columns: minmax(0, 1fr) 320px; }
	html body main .m-cal-bar .evlks-filter-heading { margin-bottom: var(--m-4) !important; }
}
html body main .m-cal-bar form#filter > .form-group { margin: 0 !important; padding: 0 !important; border: 0 !important; min-width: 0; }
html body main .m-cal-bar .m-f-search { grid-area: search; }
html body main .m-cal-bar .m-f-dates { grid-area: dates; }
html body main .m-cal-bar .m-f-hl { grid-area: hl; }
html body main .m-cal-bar .m-f-cat { grid-area: cat; }
html body main .m-cal-bar .m-f-chan { grid-area: chan; }
html body main .m-cal-bar .m-f-loc { grid-area: loc; }
html body main .m-cal-bar .m-f-submit { grid-area: submit; justify-self: end; }
html body main .m-cal-bar fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
html body main .m-cal-bar legend:empty { display: none; }
/* Von/Bis nebeneinander */
html body main .m-cal-bar .m-f-dates fieldset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; gap: 4px 12px; }
html body main .m-cal-bar .m-f-dates .form-control { padding-right: 6px !important; padding-left: 10px !important; }
html body main .m-cal-bar .m-f-dates label { margin: 0 !important; font-family: var(--m-head); font-size: 15px; color: var(--m-muted); font-weight: 400; }
/* Alle | Highlights als Umschalter */
html body main .m-cal-bar .m-f-hl fieldset { display: inline-flex; border: 1.5px solid var(--m-border-strong); border-radius: 999px; padding: 3px !important; gap: 2px; }
html body main .m-cal-bar .m-f-hl legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html body main .m-cal-bar .m-f-hl .radio { margin: 0 !important; }
html body main .m-cal-bar .m-f-hl .radio label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px !important; margin: 0; border-radius: 999px; cursor: pointer; font-family: var(--m-head); font-size: 16px; color: var(--m-text); }
html body main .m-cal-bar .m-f-hl .radio input { position: absolute; opacity: 0; inset: 0; margin: 0 !important; cursor: pointer; }
html body main .m-cal-bar .m-f-hl .radio label:has(input:checked) { background: var(--m-ink); color: #fff; }
html[data-scheme="dark"] body main .m-cal-bar .m-f-hl .radio label:has(input:checked) { color: #1c1814; }
html body main .m-cal-bar .m-f-hl .radio label:has(input:focus-visible) { outline: 2px solid var(--m-ink); outline-offset: 2px; }
/* Kategorien als Chips */
html body main .m-cal-bar .m-f-cat--chips .bootstrap-select, html body main .m-cal-bar .m-f-cat--chips select { display: none !important; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip-toggle {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
	background: var(--m-surface); border: 1.5px solid var(--m-border-strong); color: var(--m-text); font-family: var(--m-head); font-size: 15px;
	transition: background .15s, border-color .15s, color .15s;
}
.m-chip-toggle:hover { border-color: var(--m-ink); color: var(--m-ink); }
.m-chip-toggle[aria-pressed="true"] { background: var(--m-ink); border-color: var(--m-ink); color: #fff; }
.m-chip-toggle[aria-pressed="true"]::before { content: "\2713"; font-size: 13px; }
html[data-scheme="dark"] .m-chip-toggle[aria-pressed="true"] { color: #1c1814; }
/* Aktive Filter */
.m-cal-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--m-5); }
.m-cal-active__label { font-family: var(--m-head); font-size: 15px; color: var(--m-muted); margin-right: 4px; }
.m-cal-active__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--m-tint); color: var(--m-ink) !important; font-family: var(--m-head); font-size: 15px; text-decoration: none !important; }
.m-cal-active__chip::after { content: "\00d7"; font-size: 17px; line-height: 1; }
.m-cal-active__chip:hover { background: var(--m-ink); color: #fff !important; }
.m-cal-active__reset { font-family: var(--m-head); font-size: 15px; color: var(--m-muted) !important; margin-left: 6px; }
/* Handy und Seitenleiste: Knopf ueber die ganze Breite */
@media (max-width: 767px), (min-width: 992px) {
	html body main .m-cal-bar .m-f-submit { justify-self: stretch; }
	html body main .m-cal-bar .m-f-submit :is(input, button) { width: 100%; }
}
html body main .category-headline { display: block !important; }

/* =====================================================================
   35. Mega-Menue gegliedert: Ebene 2 als Gruppenkopf, Ebene 3 sichtbar darunter eingerueckt
   (Fuehrungslinie links, kein Abstand zum Kopf), Gruppen mit Luft dazwischen
   ===================================================================== */
@media (min-width: 992px) {
	html body .evlks-header-main .navbar-nav > li > ul > li { margin: 0 0 var(--m-3) !important; }
	html body .evlks-header-main .navbar-nav > li > ul > li > a {
		display: block; margin: 0 !important; padding: 8px 12px !important; border-radius: var(--m-radius-sm);
		font-family: var(--m-head-bold) !important; font-size: 17px !important; color: var(--m-ink) !important;
	}
	html body .evlks-header-main .navbar-nav > li > ul > li:has(> ul) { margin-bottom: var(--m-4) !important; }
	/* :not(#m-x) hebt die Spezifitaet ueber Theme-Regel ".evlks-header-main ul.collapse ul.collapse { display: inline !important }" */
	html body .evlks-header-main .navbar-nav > li > ul ul:not(#m-x) {
		display: block !important; columns: auto !important; height: auto !important; visibility: visible !important;
		margin: 0 0 0 12px !important; padding: 2px 0 2px 0 !important;
		border-left: 2px solid var(--m-border) !important; transition: border-color .15s;
	}
	html body .evlks-header-main .navbar-nav > li > ul ul > li { margin: 0 !important; padding: 0 !important; float: none !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul > li::before, html body .evlks-header-main .navbar-nav > li > ul ul::before { content: none !important; display: none !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul a {
		display: block; margin: 0 0 0 -2px !important; padding: 5px 12px 5px 14px !important; border-left: 2px solid transparent;
		font-family: var(--m-head) !important; font-size: 15px !important; line-height: 1.3; color: var(--m-text) !important; opacity: .82;
	}
	html body .evlks-header-main .navbar-nav > li > ul ul a:hover,
	html body .evlks-header-main .navbar-nav > li > ul ul a:focus-visible { opacity: 1; color: var(--m-ink) !important; border-left-color: var(--m-ink); background: var(--m-tint) !important; text-decoration: none !important; }
	html body .evlks-header-main .navbar-nav > li > ul > li:hover > ul { border-left-color: color-mix(in srgb, var(--m-ink) 45%, var(--m-border)) !important; }
	html body .evlks-header-main .navbar-nav > li > ul ul li:is(.current-menu-item, .current_page_item) > a { opacity: 1; color: var(--m-ink) !important; border-left-color: var(--m-ink); }
}

/* =====================================================================
   36. Beitragsbilder, die nicht laden: Standardmuster (Farbwelt-Toenung mit EVLKS-Punkteraster wie das Kopfband)
   modern.js versucht vorher das abweichende News-/Veranstaltungsbild aus den Theme-Einstellungen.
   ===================================================================== */
.m-img-pattern {
	background-color: var(--m-tint) !important;
	background-image:
		linear-gradient(120deg, var(--m-tint) 18%, color-mix(in srgb, var(--m-tint) 55%, transparent) 55%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ci) 38%, transparent) 0 1.6px, transparent 2.1px) !important;
	background-size: 100% 100%, 14px 14px !important;
	background-position: 0 0, right 7px top 7px !important;
}
html[data-scheme="dark"] .m-img-pattern {
	background-image:
		linear-gradient(120deg, var(--m-tint) 18%, color-mix(in srgb, var(--m-tint) 55%, transparent) 55%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ink-dark) 30%, transparent) 0 1.6px, transparent 2.1px) !important;
}
.m-img-pattern > .evlks-icon { display: none; }
img.m-img-failed { visibility: hidden !important; }
.m-img-pattern > img.m-img-failed, .m-img-pattern > a > img.m-img-failed { position: absolute; width: 1px !important; height: 1px !important; }
figure.m-img-pattern, .teaser .m-img-pattern, .m-ev-aside__img.m-img-pattern { aspect-ratio: 3 / 2; border-radius: var(--m-radius); overflow: hidden; }
.m-news-card__media.m-img-pattern { display: block; }

/* =====================================================================
   37. Mitlaufender Kopf ohne Springen (Desktop): main.sticky haelt genau die Hoehe des Kopfes im Fluss
   (--m-head-h, gemessen in modern.js); das Theme setzte einen festen Wert, der Inhalt sprang um ~175 px.
   ===================================================================== */
@media (min-width: 992px) {
	html body main.sticky { margin-top: var(--m-head-h, 0px) !important; }
}
/* Mitlaufender Kopf: Theme-Kante #e5e5e5 war im Darkmode ein heller Strich. Feine Kante in der Rahmenfarbe,
   darunter ein weicher Schatten, der den Kopf vom Inhalt abhebt (hell dezent, dunkel kraeftiger) */
html body header.sticky { border-bottom: 1px solid var(--m-border) !important; box-shadow: 0 6px 18px -8px rgba(40, 30, 20, .22) !important; }
html[data-scheme="dark"] body header.sticky { border-bottom-color: color-mix(in srgb, var(--m-border) 70%, #000) !important; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .65) !important; }
/* Kopfbild leer (Seite ohne Beitragsbild: style="background-image:url()") oder nicht ladbar: im klassischen Layout
   0 px hoch, hier sonst eine weisse Flaeche in voller Kopfhoehe. Stattdessen das zurueckhaltende Musterband. */
html body main .evlks-jumbotron-image .image:is([style*="url()"], [style*="url('')"], [style*='url("")'], .m-head-empty):not(:has(img:not(.invisible))) {
	height: clamp(84px, 9vw, 128px) !important;
	background-color: var(--m-tint) !important;
	background-image:
		linear-gradient(to right, var(--m-tint) 22%, color-mix(in srgb, var(--m-tint) 55%, transparent) 60%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ci) 38%, transparent) 0 1.6px, transparent 2.1px) !important;
	background-size: 100% 100%, 14px 14px !important;
	background-position: 0 0, right 7px top 7px !important;
}
html[data-scheme="dark"] body main .evlks-jumbotron-image .image:is([style*="url()"], [style*="url('')"], [style*='url("")'], .m-head-empty):not(:has(img:not(.invisible))) {
	background-image:
		linear-gradient(to right, var(--m-tint) 22%, color-mix(in srgb, var(--m-tint) 55%, transparent) 60%, transparent 100%),
		radial-gradient(circle, color-mix(in srgb, var(--m-ink-dark) 30%, transparent) 0 1.6px, transparent 2.1px) !important;
}
html body main .evlks-jumbotron-image:has(.image.m-head-empty, .image:is([style*="url()"], [style*="url('')"], [style*='url("")'])) { height: auto !important; min-height: 0 !important; }
html body main .evlks-jumbotron-image .image:is(.m-head-empty, [style*="url()"])::after { display: none !important; }

/* =====================================================================
   38. Ortsangaben aus dem Kalender-Import (Detailseite): Barrierefreiheits-Piktogramme als beschriftete Chips,
   Ortsfoto als Karte neben der Adresse statt gestapelter schwarzer Kacheln und Hochkantfoto im Textfluss
   ===================================================================== */
html body main .m-place { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-4); align-items: start; }
@media (min-width: 600px) { html body main .m-place--img { grid-template-columns: minmax(0, 1fr) 176px; } }
html body main .m-place__text { min-width: 0; }
html body main .m-place__img { margin: 0; max-width: 240px; }
html body main .m-place__img img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--m-radius-sm); border: 1px solid var(--m-border); }
html body main .m-place__img figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--m-muted); }
html body main ul.m-equip { list-style: none !important; margin: var(--m-3) 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
html body main ul.m-equip > li.m-equip__item {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 3px 12px 3px 3px !important;
	border-radius: 999px; background: var(--m-tint); color: var(--m-text); font-family: var(--m-head); font-size: 14.5px; line-height: 1.2;
}
html body main ul.m-equip > li.m-equip__item::before { content: none !important; display: none !important; }
html body main .m-equip__item img { display: block; flex: none; width: 26px !important; height: 26px !important; margin: 0 !important; border-radius: 50%; object-fit: cover; }
/* im Kasten "Auf einen Blick": nur Symbole, Beschriftung als Tooltip und fuer Screenreader */
html body main ul.m-equip--compact { margin-top: var(--m-2) !important; gap: 4px; }
html body main ul.m-equip--compact > li.m-equip__item { padding: 2px !important; background: transparent; }
html body main .m-equip--compact .m-equip__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body main .m-equip--compact .m-equip__item img { width: 24px !important; height: 24px !important; }
