/*
Theme Name: Pfarre Neuerdberg
Theme URI: https://www.pfarre-neuerdberg.at
Description: Schlankes Eigen-Theme der Pfarre Neuerdberg Don Bosco. Startseite mit Gottesdienstzeiten, Berichten und Terminen (Events Manager). Schriften lokal eingebunden, keine externen Dienste.
Version: 1.14.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuerdberg
*/

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/raleway-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/raleway-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url("assets/fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Grundwerte ---------- */
:root {
	--nd-red: #c91f2f;
	--nd-red-dark: #a8192a;
	--nd-red-tint: #fbedee;
	--nd-dark: #3c3d40;
	--nd-ink: #2a2b2e;
	--nd-muted: #55565b;
	--nd-line: #e6e6ea;
	--nd-placeholder: #e9e9ec;
	--nd-on-dark: #e4e5e8;
	--nd-on-dark-muted: #d6d7da;
	--nd-font-head: "Raleway", "Segoe UI", Arial, sans-serif;
	--nd-font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--nd-wrap: 1200px;
	--nd-gutter: 24px;
	--nd-radius: 12px;
	--nd-radius-s: 6px;
}

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

html { scroll-padding-top: 24px; }

body {
	margin: 0;
	font-family: var(--nd-font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--nd-ink);
	background: #fff;
	-webkit-text-size-adjust: 100%;
}

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

a { color: var(--nd-red); }
a:hover { color: #9e1623; }

:focus-visible {
	outline: 3px solid var(--nd-red);
	outline-offset: 2px;
}
.nd-on-red :focus-visible,
.nd-on-dark :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 {
	font-family: var(--nd-font-head);
	line-height: 1.2;
	margin: 0 0 .5em;
}

.nd-wrap {
	width: 100%;
	max-width: var(--nd-wrap);
	margin: 0 auto;
	padding-inline: var(--nd-gutter);
}

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

/* ---------- Buttons ---------- */
.nd-btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: var(--nd-radius-s);
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
}
.nd-btn--red { background: var(--nd-red); color: #fff; }
.nd-btn--red:hover { background: var(--nd-red-dark); color: #fff; }
.nd-btn--light { background: #fff; color: var(--nd-ink); }
.nd-btn--light:hover { background: var(--nd-red-tint); color: var(--nd-ink); }
.nd-btn--block { display: block; text-align: center; }

/* ---------- Kopfbereich ---------- */
.nd-header {
	background: #fff;
	border-bottom: 1px solid #ececee;
	position: relative;
	z-index: 20;
}
.nd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 88px;
	padding-block: 12px;
}
.nd-brand { display: flex; align-items: center; flex: none; }
.nd-brand img { display: block; height: 60px; width: auto; }
.nd-brand__text { font-family: var(--nd-font-head); font-weight: 800; font-size: 20px; color: var(--nd-ink); text-decoration: none; }

.nd-nav { display: flex; align-items: center; gap: 4px; }
.nd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nd-nav li { position: relative; }
.nd-nav a {
	display: block;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 16px;
	color: var(--nd-ink);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.nd-nav a:hover { color: var(--nd-red); }
.nd-nav .current-menu-item > a,
.nd-nav .current-menu-ancestor > a,
.nd-nav .current_page_item > a,
.nd-nav .current_page_ancestor > a { color: var(--nd-red); border-bottom-color: var(--nd-red); }

/* Untermenüs (Desktop) */
.nd-nav .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--nd-line);
	border-radius: 8px;
	padding: 6px;
	flex-direction: column;
	box-shadow: 0 8px 24px rgba(42, 43, 46, .12);
}
.nd-nav .sub-menu a { border-bottom: 0; padding: 9px 12px; border-radius: 4px; }
.nd-nav .sub-menu a:hover { background: var(--nd-red-tint); }
.nd-nav li:hover > .sub-menu,
.nd-nav li:focus-within > .sub-menu { display: flex; }

.nd-icon-btn {
	width: 44px; height: 44px;
	border-radius: 22px;
	border: 1px solid #dcdce0;
	background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	flex: none;
	padding: 0;
}
.nd-icon-btn svg { width: 18px; height: 18px; }
.nd-menu-toggle { display: none; background: var(--nd-red); border-color: var(--nd-red); }

.nd-search-panel { border-top: 1px solid #ececee; background: #fff; padding-block: 16px; }
.nd-search-panel[hidden] { display: none; }

.nd-searchform { display: flex; gap: 8px; max-width: 640px; }
.nd-searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font: inherit;
	border: 1px solid #c8c8ce;
	border-radius: var(--nd-radius-s);
}

@media (max-width: 960px) {
	.nd-header__inner { min-height: 68px; }
	.nd-brand img { height: 46px; }
	.nd-menu-toggle { display: inline-flex; }
	.nd-nav { gap: 8px; }
	.nd-nav__menu {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		border-bottom: 1px solid #ececee;
		padding: 8px var(--nd-gutter) 16px;
		box-shadow: 0 12px 24px rgba(42, 43, 46, .1);
	}
	.nd-nav__menu.is-open { display: block; }
	.nd-nav__menu ul { flex-direction: column; }
	.nd-nav__menu a { padding: 12px 4px; border-bottom: 1px solid #ececee; font-size: 17px; }
	.nd-nav .sub-menu {
		display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0;
	}
	.nd-nav .sub-menu a { padding: 10px 4px; border-bottom: 1px solid #f2f2f4; border-radius: 0; }
}

/* ---------- Startbild ---------- */
.nd-hero {
	position: relative;
	background: #2e2f32;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.nd-hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.nd-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(20, 20, 22, .72) 0%, rgba(20, 20, 22, .25) 55%, rgba(20, 20, 22, 0) 100%);
}
.nd-hero__content { position: relative; z-index: 1; padding-block: 64px; }
.nd-hero__kicker { margin: 0 0 8px; color: #f3c9cd; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.nd-hero__title {
	margin: 0;
	color: #fff;
	font-weight: 800;
	font-size: clamp(36px, 5.2vw, 60px);
	line-height: 1.05;
}
.nd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 640px) {
	.nd-hero { min-height: 360px; }
	.nd-hero__content { padding-block: 32px; }
}

/* ---------- Infoband ---------- */
.nd-info { background: var(--nd-red); color: #fff; }
.nd-info a { color: #fff; }
.nd-info__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	padding-block: 64px;
}
.nd-info__col { display: flex; flex-direction: column; gap: 12px; }
.nd-info__head { display: flex; align-items: center; gap: 12px; }
.nd-info__head svg { width: 28px; height: 28px; flex: none; }
.nd-info__head h2 { margin: 0; font-weight: 700; font-size: 26px; }
.nd-times {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 20px;
	row-gap: 6px;
	margin: 0;
}
.nd-times dt, .nd-times dd { margin: 0; }
.nd-times .is-strong { font-weight: 700; }
.nd-info p { margin: 0; }
.nd-info__phone { font-weight: 700; }
.nd-emergency { margin-top: 12px; padding: 16px 18px; background: var(--nd-red-dark); border-radius: 8px; }
.nd-emergency__title { font-family: var(--nd-font-head); font-weight: 700; font-size: 19px; }
.nd-downloads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nd-downloads a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: #fff; color: var(--nd-ink);
	padding: 13px 16px; border-radius: 8px;
	font-weight: 600; text-decoration: none;
}
.nd-downloads a:hover { background: var(--nd-red-tint); }
.nd-downloads span { color: var(--nd-red); font-size: 14px; font-weight: 700; flex: none; }

/* ---------- Hervorgehobener Termin ---------- */
.nd-highlight { padding-top: 56px; }
.nd-highlight__box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: 28px 32px;
	border-radius: var(--nd-radius);
	background: var(--nd-red-tint);
}
.nd-highlight__label { margin: 0; font-size: 15px; font-weight: 700; color: var(--nd-red); }
.nd-highlight__title { margin: 4px 0 2px; font-weight: 800; font-size: 32px; }
.nd-highlight__date { margin: 0; font-size: 18px; }

/* ---------- Berichte + Termine ---------- */
.nd-main-split {
	display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;
	padding-block: 56px 72px;
}
.nd-main-split__posts { flex: 999 1 560px; min-width: 0; }
.nd-section-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
	margin-bottom: 24px;
}
.nd-section-head h2 { margin: 0; font-weight: 800; font-size: 34px; }
.nd-section-head a { font-weight: 700; text-decoration: none; }

.nd-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.nd-card {
	display: flex; flex-direction: column;
	border: 1px solid var(--nd-line);
	border-radius: var(--nd-radius);
	overflow: hidden;
	background: #fff;
	color: var(--nd-ink);
	text-decoration: none;
}
.nd-card:hover { border-color: #c9c9cf; color: var(--nd-ink); }
.nd-card:hover .nd-card__title { color: var(--nd-red); }
.nd-card__media { aspect-ratio: 16 / 10; background: var(--nd-placeholder); }
.nd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.nd-card__meta { font-size: 14px; font-weight: 700; color: var(--nd-red); }
.nd-card__title { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.25; }
.nd-card__excerpt { margin: 0; color: var(--nd-muted); font-size: 16px; }

.nd-events {
	flex: 1 1 340px; min-width: 0;
	background: var(--nd-dark); color: #fff;
	border-radius: var(--nd-radius);
	padding: 28px 24px;
}
.nd-events h2 { margin: 0 0 16px; font-weight: 800; font-size: 28px; }
.nd-events__list { list-style: none; margin: 0; padding: 0; }
.nd-event { border-top: 1px solid #55565b; }
.nd-event a { display: flex; gap: 16px; padding: 12px 0; color: #fff; text-decoration: none; }
.nd-event a:hover .nd-event__title { text-decoration: underline; }
.nd-event__date {
	width: 52px; flex: none; text-align: center;
	background: #fff; color: var(--nd-ink);
	border-radius: 8px; padding: 6px 0; line-height: 1.1;
	align-self: flex-start;
}
.nd-event__mon { display: block; font-size: 12px; font-weight: 700; color: var(--nd-red); }
.nd-event__day { display: block; font-size: 22px; font-weight: 700; }
.nd-event__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-event__meta { font-size: 14px; color: var(--nd-on-dark-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nd-event__rec { display: inline-flex; align-items: center; gap: 4px; }
.nd-event__rec svg { width: 14px; height: 14px; }
.nd-event__tag { background: var(--nd-red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.nd-event__title { font-size: 17px; font-weight: 600; }
.nd-events__empty { color: var(--nd-on-dark); margin: 0 0 8px; }
.nd-events .nd-btn { margin-top: 16px; }
.nd-events__ical { display: block; margin-top: 10px; text-align: center; color: #fff; font-size: 15px; }
.nd-events__ical:hover { color: #fff; }

/* ---------- Kacheln ---------- */
.nd-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	padding-bottom: 72px;
}
.nd-tile {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
	min-height: 240px;
	padding: 32px;
	border-radius: var(--nd-radius);
	background: var(--nd-dark);
	color: #fff;
	text-decoration: none;
}
.nd-tile:nth-child(2) { background: var(--nd-red); }
.nd-tile:hover { color: #fff; }
.nd-tile:hover .nd-tile__more { text-decoration: underline; }
.nd-tile h3 { margin: 0; font-weight: 800; font-size: 28px; }
.nd-tile p { margin: 0; color: var(--nd-on-dark); }
.nd-tile:nth-child(2) p { color: #fff; }
.nd-tile__more { font-weight: 700; }

/* ---------- Zitat ---------- */
.nd-quote { background: var(--nd-red); color: #fff; text-align: center; }
.nd-quote figure { margin: 0 auto; max-width: 900px; padding: 64px var(--nd-gutter); }
.nd-quote blockquote { margin: 0; font-family: var(--nd-font-head); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.nd-quote figcaption { margin-top: 12px; font-size: 16px; color: #f6dadd; }

/* ---------- Karte (Zwei-Klick-Lösung) ---------- */
.nd-map { background: #4a4b4f; color: var(--nd-on-dark); }
.nd-map__consent {
	min-height: 280px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	text-align: center;
	padding: 32px var(--nd-gutter);
}
.nd-map__consent p { margin: 0; max-width: 560px; font-size: 15px; }
.nd-map__consent a { color: #fff; }
.nd-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Fußbereich ---------- */
.nd-footer { background: var(--nd-dark); color: var(--nd-on-dark); }
.nd-footer a { color: #fff; }
.nd-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	padding-block: 48px;
}
.nd-footer h2 { margin: 0 0 10px; font-weight: 700; font-size: 20px; color: #fff; }
.nd-footer p { margin: 0; }
.nd-footer__logo img { height: 60px; width: auto; display: block; margin-bottom: 14px; }
.nd-footer__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nd-footer__menu a { color: var(--nd-on-dark); }
.nd-footer__bottom { border-top: 1px solid #55565b; padding-block: 16px; font-size: 14px; color: var(--nd-on-dark-muted); }

/* ---------- Unterseiten, Beiträge, Archive ---------- */
.nd-page { padding-block: 48px 72px; }
.nd-page__head { margin-bottom: 28px; }
.nd-page__title { font-weight: 800; font-size: clamp(30px, 4vw, 42px); margin: 0; }
.nd-page__meta { margin: 8px 0 0; color: var(--nd-muted); font-size: 16px; }
.nd-page__meta a { font-weight: 600; }
.nd-page__thumb { margin: 0 0 28px; }
.nd-page__thumb img { border-radius: var(--nd-radius); display: block; width: 100%; }

.nd-content { max-width: 760px; }
.nd-content > * { margin-block: 0 1em; }
.nd-content h2 { font-size: 28px; margin-top: 1.4em; }
.nd-content h3 { font-size: 22px; margin-top: 1.3em; }
.nd-content img { border-radius: 8px; }
.nd-content figure { margin-inline: 0; }
.nd-content figcaption { font-size: 15px; color: var(--nd-muted); }
.nd-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--nd-red); font-style: italic; }
.nd-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.nd-content th, .nd-content td { border: 1px solid var(--nd-line); padding: 8px 10px; text-align: left; }
.nd-content .alignwide { max-width: var(--nd-wrap); }
.nd-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.nd-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.nd-content .aligncenter { margin-inline: auto; display: block; }
.nd-content .gallery, .nd-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.nd-content .gallery-item { margin: 0; }
.nd-content::after { content: ""; display: table; clear: both; }

/* Events Manager auf Unterseiten etwas an das Theme angleichen */
.nd-content .em.pixelbones { --font-family: var(--nd-font-body); --accent-color: var(--nd-red); --accent-color-hover: var(--nd-red-dark); }

.nd-postnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--nd-line); max-width: 760px; }
.nd-postnav a { font-weight: 600; text-decoration: none; }

.nd-archive-desc { color: var(--nd-muted); max-width: 760px; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--nd-line); border-radius: var(--nd-radius-s);
	text-decoration: none; font-weight: 600; color: var(--nd-ink);
}
.pagination .page-numbers.current { background: var(--nd-dark); border-color: var(--nd-dark); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--nd-red); color: var(--nd-red); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Alte Inhalte (Vamtam-Shortcodes) ---------- */
.nd-content p:empty { display: none; }
.nd-col { float: left; margin-right: 24px; width: calc((100% + 24px) * var(--nd-w, 1) - 24px); min-height: 1px; }
.nd-col.is-last { margin-right: 0; }
.nd-col--full { float: none; width: 100%; margin-right: 0; }
.nd-col > :first-child { margin-top: 0; }
.nd-col-clear { clear: both; }
@media (max-width: 720px) {
	.nd-col { float: none; width: 100%; margin-right: 0; }
}
.nd-spacer { display: block; }
.nd-text-divider { font-size: 26px; margin-top: 1.2em; }
.nd-divider { border: 0; border-top: 1px solid var(--nd-line); margin: 28px 0; clear: both; }
.nd-list ul { padding-left: 1.2em; }
.nd-list li { margin-bottom: .3em; }
.nd-panes { margin: 0 0 1em; }
.nd-pane { border: 1px solid var(--nd-line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.nd-pane summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-family: var(--nd-font-head); min-height: 44px; }
.nd-pane summary:hover { color: var(--nd-red); }
.nd-pane__body { padding: 0 16px 8px; }
.nd-person { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.nd-person__img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; }
.nd-person__body p { margin: 0 0 4px; }
.nd-person__name { font-weight: 700; font-family: var(--nd-font-head); font-size: 19px; }
.nd-person__pos { color: var(--nd-muted); }
.nd-linkarea { display: block; color: inherit; text-decoration: none; }
a.nd-linkarea:hover { color: var(--nd-red); }
.nd-service { margin-bottom: 20px; }
.nd-highlight-text { background: var(--nd-red-tint); padding: 16px 20px; border-radius: 8px; margin-bottom: 1em; }
.nd-event-list { list-style: none; padding: 0; }
.nd-event-list li { border-top: 1px solid var(--nd-line); padding: 10px 0; }
.nd-event-list a { text-decoration: none; color: var(--nd-ink); }
.nd-event-list a:hover { color: var(--nd-red); }
.nd-content .gallery a, .nd-content a[data-nd-lb] { cursor: zoom-in; }
.nd-content .gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 0 !important; }

/* ---------- Lightbox ---------- */
.nd-lb {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(20, 20, 22, .94);
	display: flex; align-items: center; justify-content: center;
}
.nd-lb[hidden] { display: none; }
.nd-lb__figure { margin: 0; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nd-lb__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; }
.nd-lb__caption { color: #e4e5e8; font-size: 15px; text-align: center; min-height: 1.2em; }
.nd-lb__btn {
	position: absolute; width: 48px; height: 48px; border-radius: 24px;
	border: 0; background: rgba(255, 255, 255, .14); color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nd-lb__btn:hover { background: rgba(255, 255, 255, .28); }
.nd-lb__btn svg { width: 22px; height: 22px; }
.nd-lb__close { top: 16px; right: 16px; }
.nd-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.nd-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.nd-lb__count { position: absolute; top: 28px; left: 24px; color: #d6d7da; font-size: 14px; }
.nd-lb :focus-visible { outline-color: #fff; }
@media (max-width: 640px) {
	.nd-lb__prev, .nd-lb__next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- 1.2: Slider ---------- */
.nd-hero__img { opacity: 0; transition: opacity 1.2s ease; }
.nd-hero__img.is-active { opacity: 1; }
.nd-hero__pause {
	position: absolute; right: 20px; bottom: 20px; z-index: 2;
	width: 44px; height: 44px; border-radius: 22px; border: 0;
	background: rgba(20, 20, 22, .55); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.nd-hero__pause:hover { background: rgba(20, 20, 22, .8); }
.nd-hero__pause svg { width: 18px; height: 18px; }
.nd-hero__pause .nd-icon-play, .nd-hero.is-paused .nd-hero__pause .nd-icon-pause { display: none; }
.nd-hero.is-paused .nd-hero__pause .nd-icon-play { display: block; }
.nd-hero__pause:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { .nd-hero__img { transition: none; } }

/* ---------- 1.2: Hervorgehobene Termine ---------- */
.nd-event.is-featured { border-left: 3px solid var(--nd-red); padding-left: 10px; margin-left: -13px; }
.nd-event__mark { width: 12px; height: 12px; color: #f08a94; }

/* ---------- 1.2: Titelbalken und Bereichsmenü ---------- */
.nd-band { background: var(--nd-red); color: #fff; }
.nd-band__title { margin: 0; padding-block: 34px; font-family: var(--nd-font-head); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.nd-page--nav { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.nd-page__main { min-width: 0; }
.nd-subnav__toggle { display: none; }
.nd-subnav__list { list-style: none; margin: 0; padding: 0; }
.nd-subnav__item a { display: block; padding: 11px 10px; border-bottom: 1px solid var(--nd-line); color: var(--nd-ink); text-decoration: none; font-weight: 600; }
.nd-subnav__item--d2 a { padding-left: 26px; font-weight: 400; }
.nd-subnav__item a:hover { color: var(--nd-red); }
.nd-subnav__item a[aria-current="page"] { color: var(--nd-red); border-left: 3px solid var(--nd-red); padding-left: 12px; background: var(--nd-red-tint); }
@media (max-width: 900px) {
	.nd-page--nav { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nd-subnav.has-js .nd-subnav__toggle {
		display: flex; width: 100%; justify-content: space-between; align-items: center;
		min-height: 48px; padding: 10px 16px; border: 1px solid var(--nd-line); border-radius: 8px;
		background: #fff; font: inherit; font-weight: 700; color: var(--nd-ink); cursor: pointer; text-align: left;
	}
	.nd-subnav.has-js .nd-subnav__toggle::after { content: "+"; font-size: 22px; color: var(--nd-red); }
	.nd-subnav.has-js.is-open .nd-subnav__toggle::after { content: "–"; }
	.nd-subnav.has-js .nd-subnav__list { display: none; margin-top: 8px; }
	.nd-subnav.has-js.is-open .nd-subnav__list { display: block; }
}

/* ---------- 1.2: Dateilisten und Ordner-Galerie ---------- */
.nd-filelist { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.nd-filelist a {
	display: flex; justify-content: space-between; gap: 12px; align-items: center;
	padding: 12px 16px; border: 1px solid var(--nd-line); border-radius: 8px;
	text-decoration: none; color: var(--nd-ink); font-weight: 600; background: #fff;
}
.nd-filelist a:hover { border-color: var(--nd-red); color: var(--nd-red); }
.nd-filelist span { color: var(--nd-red); font-size: 14px; font-weight: 700; flex: none; }
.nd-folder-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 28px; clear: both; }
.nd-folder-gallery figure { margin: 0; }
.nd-folder-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 6px; }
.nd-folder-gallery figcaption { font-size: 14px; color: var(--nd-muted); margin-top: 4px; }

/* ---------- 1.2: PDF-Overlay ---------- */
.nd-pdf { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px; gap: 10px; }
.nd-pdf__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #fff; min-height: 48px; }
.nd-pdf__title { flex: 1 1 auto; font-weight: 700; font-size: 17px; min-width: 0; }
.nd-pdf__action { color: #fff; background: rgba(255,255,255,.14); padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nd-pdf__action:hover { color: #fff; background: rgba(255,255,255,.28); }
.nd-pdf .nd-lb__btn { position: static; }
.nd-pdf__frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; border-radius: 6px; }

/* ---------- 1.2: Events Manager (Kalender und Listen) ---------- */
.em.pixelbones, .em.pixelbones * { font-family: var(--nd-font-body); }
.em.pixelbones { --accent-color: var(--nd-red); --accent-color-hover: var(--nd-red-dark); }
.em-calendar .em-cal-head > div, .em-calendar .month-nav .month { font-family: var(--nd-font-head); }
.em-calendar .em-cal-event a { color: var(--nd-ink); }
.em-calendar .em-cal-event a:hover { color: var(--nd-red); }

/* ---------- 1.3: Kacheln mit Bild und Symbol ---------- */
.nd-tile { position: relative; overflow: hidden; isolation: isolate; text-align: center; align-items: center; justify-content: center; min-height: 340px; }
.nd-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.nd-tile.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 28, 30, .62); }
a.nd-tile.has-image:hover .nd-tile__img { transform: scale(1.04); }
.nd-tile__icon { width: 64px; height: 64px; margin-bottom: 6px; }
.nd-tile:nth-child(2) .nd-tile__icon { color: #fff; }
.nd-tile__more { display: inline-block; margin-top: 14px; padding: 10px 22px; border: 1px solid rgba(255,255,255,.85); border-radius: 4px; font-weight: 600; letter-spacing: .02em; }
a.nd-tile:hover .nd-tile__more { background: #fff; color: var(--nd-ink); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .nd-tile__img { transition: none; } }

/* ---------- 1.3: Heute / Jetzt ---------- */
.nd-times .is-today, .nd-hours .is-today { font-weight: 700; }
.nd-now { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }
.nd-now--heute { background: #fff; color: var(--nd-red); }
.nd-now--jetzt { background: #ffd84d; color: #2a2b2e; }

/* ---------- 1.3: Lageplan ---------- */
.nd-lageplan__link { position: relative; display: block; background: #4a4b4f; color: #fff; text-decoration: none; min-height: 120px; }
.nd-lageplan__img { display: block; width: 100%; height: 300px; object-fit: cover; filter: saturate(.85); }
.nd-lageplan__label { position: absolute; right: 20px; bottom: 20px; background: var(--nd-ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.nd-lageplan__link:not(.has-image) .nd-lageplan__label { position: static; display: inline-block; margin: 40px var(--nd-gutter); }
.nd-lageplan__link:hover .nd-lageplan__label { background: var(--nd-red); }
.nd-lageplan__link:focus-visible { outline-offset: -4px; outline-color: #fff; }
.nd-footer__order-logo img { max-width: 140px; height: auto; display: block; }

/* ---------- 1.3: Terminseite breit ---------- */
.nd-page--wide .nd-content { max-width: none; }

/* ---------- 1.3: Termin-Detailseite ---------- */
.nd-event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.nd-back { margin: 0 0 12px; font-size: 15px; }
.nd-back a { text-decoration: none; font-weight: 600; }
.nd-event-detail__flag { margin: 0 0 6px; color: var(--nd-red); font-weight: 700; font-size: 15px; }
.nd-event-facts { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--nd-radius); background: var(--nd-red-tint); }
.nd-fact { display: flex; flex-direction: column; gap: 2px; }
.nd-fact__label { font-size: 13px; font-weight: 700; color: var(--nd-red); text-transform: none; }
.nd-fact strong { font-size: 18px; }
.nd-fact__note { font-size: 14px; color: var(--nd-muted); }
.nd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nd-chip { background: #fff; border: 1px solid #ecc6ca; border-radius: 14px; padding: 2px 10px; font-size: 14px; }
.nd-event-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding-bottom: 72px; }
.nd-event-more h2 { font-size: 24px; font-weight: 800; }
.nd-datelist { list-style: none; margin: 0; padding: 0; }
.nd-datelist li { border-top: 1px solid var(--nd-line); }
.nd-datelist a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 4px; text-decoration: none; color: var(--nd-ink); }
.nd-datelist a:hover strong { color: var(--nd-red); }
.nd-datelist span { color: var(--nd-muted); }
@media (max-width: 900px) {
	.nd-event-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nd-event-facts { position: static; order: -1; }
}

/* ---------- 1.3: Berichte-Filter ---------- */
.nd-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 28px; padding: 16px 18px; background: #f6f6f7; border-radius: var(--nd-radius); }
.nd-filter__field { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.nd-filter label { font-size: 14px; font-weight: 700; }
.nd-filter select { font: inherit; padding: 10px 12px; border: 1px solid #c8c8ce; border-radius: var(--nd-radius-s); background: #fff; max-width: 100%; }
.nd-filter__reset { font-weight: 600; padding: 12px 4px; }
.nd-content .nd-times { margin-bottom: 1em; }
.nd-content .nd-now--heute { background: var(--nd-red); color: #fff; }
.nd-content [id] { scroll-margin-top: 24px; }

/* ---------- 1.4 ---------- */
/* Downloads im roten Band */
.nd-downloads__group { margin: 6px 0 -2px; font-size: 14px; font-weight: 700; color: #f6dadd; }
/* Seiteninhalt nutzt die volle Breite, wenn rechts nichts steht */
.nd-page .nd-content { max-width: none; }
.nd-page--post .nd-content { max-width: none; }
.nd-content > p, .nd-content > ul, .nd-content > ol { max-width: 82ch; }
/* Termine heute in der grauen Leiste */
.nd-event.is-today { background: rgba(255, 255, 255, .08); border-radius: 8px; }
.nd-event.is-today .nd-event__date { background: #ffd84d; }
.nd-event .nd-now--heute { background: #ffd84d; color: #2a2b2e; }
/* Berichte: Bild kleiner, Seitenspalte */
.nd-page--post { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.nd-page--post .nd-page__thumb img { max-height: 460px; width: 100%; object-fit: cover; }
.nd-post-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.nd-aside-box { padding: 20px; border-radius: var(--nd-radius); background: #f6f6f7; }
.nd-aside-box h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.nd-aside-box--dark { background: var(--nd-dark); color: #fff; }
.nd-aside-more { display: inline-block; margin-top: 10px; color: #fff; font-weight: 600; }
@media (max-width: 900px) {
	.nd-page--post { grid-template-columns: minmax(0, 1fr); }
	.nd-post-aside { position: static; }
}
/* Kompakte Berichte-Liste (Seitenspalte, Gruppen) */
.nd-postlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nd-postlist a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--nd-ink); }
.nd-postlist a:hover strong { color: var(--nd-red); }
.nd-postlist img, .nd-postlist i { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: var(--nd-placeholder); display: block; }
.nd-postlist span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nd-postlist strong { font-size: 15px; }
.nd-postlist small { color: var(--nd-muted); font-size: 13px; margin-top: 2px; }
/* Termin-Liste (Gruppen, Seitenspalte) */
.nd-event-list { list-style: none; margin: 0; padding: 0; }
.nd-content .nd-event-list { background: var(--nd-dark); border-radius: var(--nd-radius); padding: 8px 18px; }
.nd-event-list li { border-top: 1px solid rgba(255,255,255,.15); }
.nd-event-list li:first-child { border-top: 0; }
.nd-event-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; padding: 10px 0; text-decoration: none; color: #fff; }
.nd-event-list a:hover .nd-event-list__title { text-decoration: underline; }
.nd-event-list__date { grid-row: span 2; font-size: 13px; color: #d6d7da; line-height: 1.2; }
.nd-event-list__date strong { display: block; font-size: 18px; color: #fff; }
.nd-event-list__title { font-weight: 600; }
.nd-event-list__time { font-size: 13px; color: #d6d7da; }
.nd-event-list li.is-today a { color: #fff; }
.nd-event-list .nd-now--heute { background: #ffd84d; color: #2a2b2e; margin-left: 0; margin-top: 4px; }
/* Spalten mit Personen (Team, Kontakt in Gruppen) */
.nd-col .nd-person { flex-direction: column; align-items: flex-start; gap: 10px; }
.nd-col .nd-person__body { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.nd-col:has(> .nd-person), .nd-col:has(> p > .nd-person) { background: var(--nd-red-tint); border-radius: var(--nd-radius); padding: 18px; }
.nd-person { overflow-wrap: anywhere; }
/* Gruppen: drei Spalten */
.nd-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .nd-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nd-groups { grid-template-columns: minmax(0, 1fr); } }
/* Lageplan ohne Bild */
.nd-lageplan__link:not(.has-image) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px max(var(--nd-gutter), calc((100% - var(--nd-wrap)) / 2 + var(--nd-gutter))); background: var(--nd-red-tint); color: var(--nd-ink); min-height: 0; }
.nd-lageplan__info { display: flex; align-items: center; gap: 14px; }
.nd-lageplan__info svg { width: 40px; height: 40px; color: var(--nd-red); flex: none; }
.nd-lageplan__link:not(.has-image) .nd-lageplan__label { position: static; margin: 0; }
.nd-footer__order-logo img { width: 102px; height: auto; }
/* Kalender von Events Manager: Einträge mit Bild */
.em-calendar .em-cal-event img { display: block; width: 100%; height: 64px; object-fit: cover; border-radius: 4px; margin: 2px 0 4px; }
.em-calendar .nd-cal-time { font-size: 12px; color: var(--nd-muted); display: block; }

/* ---------- 1.5 ---------- */
/* Aufklappbereiche als Karten (z. B. Angebote) */
.nd-panes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 0 0 1.5em; }
.nd-pane { margin: 0; border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
.nd-pane:hover { box-shadow: 0 6px 20px rgba(42, 43, 46, .08); }
.nd-pane[open] { grid-column: 1 / -1; }
.nd-pane summary { list-style: none; display: flex; flex-direction: column; padding: 0; min-height: 0; cursor: pointer; font-family: var(--nd-font-body); font-weight: 400; }
.nd-pane summary::-webkit-details-marker { display: none; }
.nd-pane__thumb { display: block; height: 170px; background-size: cover; background-position: center; background-color: var(--nd-placeholder); }
.nd-pane:not(.has-thumb) summary { border-top: 5px solid var(--nd-red); }
.nd-pane__text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.nd-pane__title { font-family: var(--nd-font-head); font-weight: 800; font-size: 21px; color: var(--nd-ink); }
.nd-pane__teaser { color: var(--nd-muted); font-size: 15px; }
.nd-pane__more { color: var(--nd-red); font-weight: 700; font-size: 15px; }
.nd-pane__more::after { content: " ▸"; }
.nd-pane[open] .nd-pane__more::after { content: " ▾"; }
.nd-pane[open] .nd-pane__more { font-size: 0; }
.nd-pane[open] .nd-pane__more::before { content: "Schließen"; font-size: 15px; }
.nd-pane[open] summary { flex-direction: row; align-items: center; }
.nd-pane[open] .nd-pane__thumb { width: 140px; height: 90px; flex: none; }
.nd-pane[open] .nd-pane__teaser { display: none; }
.nd-pane__body { padding: 8px 22px 22px; border-top: 1px solid var(--nd-line); }
.nd-pane summary:focus-visible { outline-offset: -3px; }
/* Abstände vor Buttons und Download-Listen */
.nd-content .nd-btn { margin-top: 10px; }
.nd-content .nd-filelist { margin-top: 12px; }
.nd-content h2 + .nd-filelist, .nd-content h3 + .nd-filelist { margin-top: 0; }
/* Hinweise zu Einzelterminen */
.nd-event__note { font-size: 14px; color: #ffd84d; }
.nd-note { color: var(--nd-red); font-weight: 600; }
.nd-fact__note-strong { font-weight: 700; color: var(--nd-red); }

/* ---------- 1.6: Monatskalender ---------- */
.nd-cal { margin-top: 8px; }
.nd-cal__ical { margin-left: auto; align-self: center; font-weight: 600; }
.nd-cal__nav { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.nd-cal__title { margin: 0; font-size: 28px; font-weight: 800; min-width: 12ch; text-align: center; }
.nd-cal__step { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--nd-line); border-radius: 22px; text-decoration: none; font-size: 24px; color: var(--nd-ink); }
.nd-cal__step:hover { border-color: var(--nd-red); color: var(--nd-red); }
.nd-cal__today { margin-left: 6px; padding: 8px 14px; border: 1px solid var(--nd-line); border-radius: 18px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nd-cal__empty { color: var(--nd-muted); }
.nd-cal__head, .nd-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nd-cal__head span { padding: 8px; font-size: 13px; font-weight: 700; color: var(--nd-muted); text-transform: uppercase; letter-spacing: .04em; }
.nd-cal__grid { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nd-line); border-left: 1px solid var(--nd-line); }
.nd-cal__day { position: relative; min-height: 120px; padding: 6px; border-right: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line); background: #fff; }
.nd-cal__day.is-outside { background: #f7f7f8; }
.nd-cal__day.is-outside .nd-cal__num { color: #b5b6ba; }
.nd-cal__day.is-today { background: #fffbe6; }
.nd-cal__day.is-today .nd-cal__num { background: var(--nd-red); color: #fff; }
.nd-cal__num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.nd-cal__wd, .nd-cal__mon { display: none; }
.nd-cal__events { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nd-cal__ev { position: relative; }
.nd-cal__ev > a { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; border-radius: 6px; background: #f3f3f5; color: var(--nd-ink); text-decoration: none; font-size: 13px; line-height: 1.3; border-left: 3px solid #b9babf; }
.nd-cal__ev.is-featured > a { background: var(--nd-red-tint); border-left-color: var(--nd-red); }
.nd-cal__ev > a:hover, .nd-cal__ev > a:focus-visible { background: var(--nd-dark); color: #fff; }
.nd-cal__img { display: block; width: 100%; height: 56px; object-fit: cover; border-radius: 4px; margin-bottom: 3px; }
.nd-cal__time { font-size: 12px; font-weight: 700; opacity: .8; }
.nd-cal__name { font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.nd-cal__note { font-size: 12px; color: var(--nd-red); }
.nd-cal__ev > a:hover .nd-cal__note, .nd-cal__ev > a:focus-visible .nd-cal__note { color: #ffd84d; }
.nd-cal__tip {
	display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 260px;
	padding: 12px 14px; border-radius: 8px; background: var(--nd-dark); color: #fff; font-size: 14px; line-height: 1.4;
	box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-direction: column; gap: 3px; pointer-events: none;
}
.nd-cal__day.is-right .nd-cal__tip { left: auto; right: 0; }
.nd-cal__tip strong { font-size: 15px; }
.nd-cal__tipnote { color: #ffd84d; font-weight: 600; }
.nd-cal__tiptext { color: var(--nd-on-dark); margin-top: 4px; }
.nd-cal__ev:hover .nd-cal__tip, .nd-cal__ev:focus-within .nd-cal__tip { display: flex; }
@media (hover: none) { .nd-cal__ev:hover .nd-cal__tip { display: none; } }
/* Handy und schmale Bildschirme: Liste der Tage mit Terminen */
@media (max-width: 760px) {
	.nd-cal__head { display: none; }
	.nd-cal__grid { display: block; border: 0; }
	.nd-cal__day { display: none; min-height: 0; border: 0; border-top: 1px solid var(--nd-line); padding: 12px 0; }
	.nd-cal__day.has-events { display: block; }
	.nd-cal__num { justify-content: flex-start; padding: 0; height: auto; font-size: 16px; }
	.nd-cal__day.is-today .nd-cal__num { padding: 2px 10px; }
	.nd-cal__wd, .nd-cal__mon { display: inline; }
	.nd-cal__ev > a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; padding: 10px 12px; }
	.nd-cal__img { display: none; }
	.nd-cal__tip { display: none !important; }
	.nd-cal__title { font-size: 22px; min-width: 0; }
}

/* ---------- 1.7 ---------- */
.nd-lageplan__img { height: 240px; }
.nd-lageplan__img--svg { object-fit: cover; object-position: 45% 50%; filter: none; }
@media (max-width: 640px) { .nd-lageplan__img { height: 200px; } .nd-lageplan__label { right: 12px; bottom: 12px; font-size: 14px; } }
/* Kalender: Monatstitel auf einer Linie mit den Pfeilen */
.nd-cal .nd-cal__title { margin: 0; line-height: 1.2; }
.nd-cal__nav { align-items: center; }
/* Gruppen: Abstand zwischen Kontakten und vor Überschriften */
.nd-col { margin-bottom: 20px; }
.nd-col:has(> .nd-person) + .nd-col:has(> .nd-person) { margin-top: 0; }
.nd-person + .nd-person { margin-top: 16px; }
.nd-content .nd-col > h2:first-child, .nd-content .nd-col > h3:first-child, .nd-content .nd-text-divider { margin-top: 1.2em; }
.nd-content .nd-col:first-child > h2:first-child, .nd-content .nd-col:first-child > h3:first-child { margin-top: 0; }
.nd-event-detail__empty { color: var(--nd-muted); font-style: italic; }

/* ---------- 1.8: Terminleiste nach Tagen ---------- */
.nd-day { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid #55565b; }
.nd-day__date { width: 54px; flex: none; text-align: center; background: #fff; color: var(--nd-ink); border-radius: 8px; padding: 6px 0 7px; line-height: 1.05; align-self: flex-start; }
.nd-day__wd { display: block; font-size: 12px; font-weight: 800; color: var(--nd-red); letter-spacing: .04em; }
.nd-day__num { display: block; font-size: 22px; font-weight: 700; }
.nd-day__mon { display: block; font-size: 11px; font-weight: 600; color: var(--nd-muted); text-transform: uppercase; }
.nd-day__events { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.nd-day .nd-event { border-top: 0; }
.nd-day .nd-event a { display: flex; flex-direction: column; gap: 1px; padding: 0; color: #fff; text-decoration: none; }
.nd-day .nd-event.is-featured { border-left: 3px solid var(--nd-red); padding-left: 9px; margin-left: -12px; background: none; }
.nd-day.is-today { background: rgba(255,255,255,.08); border-radius: 8px; margin: 0 -10px; padding: 12px 10px; }
.nd-day.is-today .nd-day__date { background: #ffd84d; }
.nd-day .nd-now--heute { background: #ffd84d; color: #2a2b2e; }
/* Klammerzusätze bei Gottesdienst- und Kanzleizeiten */
.nd-paren { font-size: .82em; opacity: .9; white-space: nowrap; }
.nd-paren { font-size: .74em; white-space: normal; letter-spacing: -.005em; }
.nd-times { column-gap: 14px; }

/* ---------- 1.9: Umgewandelte Blöcke ---------- */
.nd-person-block { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--nd-radius); background: var(--nd-red-tint); margin-bottom: 16px; }
.nd-person-block > .wp-block-image { flex: none; margin: 0; }
.nd-person-block > .wp-block-image img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; display: block; }
.nd-person-text { min-width: 0; overflow-wrap: anywhere; }
.nd-person-text p { margin: 0 0 4px; }
.nd-person-text p:first-child strong { font-family: var(--nd-font-head); font-size: 18px; }
.wp-block-column .nd-person-block { flex-direction: column; }
.nd-content .wp-block-columns { gap: 32px; margin-bottom: 1.5em; }
.nd-content .wp-block-button__link { background: var(--nd-red); color: #fff; border-radius: var(--nd-radius-s); padding: 12px 22px; font-weight: 700; text-decoration: none; }
.nd-content .wp-block-button__link:hover { background: var(--nd-red-dark); color: #fff; }
.nd-panes.wp-block-group { margin-bottom: 1.5em; }
/* Lageplan: Kartengrundlage in voller Proportion, auf Inhaltsbreite */
.nd-lageplan { background: #ebe9e4; }
.nd-lageplan__link.has-image { max-width: var(--nd-wrap); margin: 0 auto; background: #ebe9e4; }
.nd-lageplan__img--svg { height: auto; aspect-ratio: 1533 / 396; width: 100%; object-fit: cover; object-position: 45% 50%; }
@media (max-width: 760px) { .nd-lageplan__img--svg { aspect-ratio: auto; height: 230px; } }

/* ---------- 1.10 ---------- */
/* Breitere Inhaltsfläche auf großen Bildschirmen */
@media (min-width: 1600px) { :root { --nd-wrap: 1440px; } }
@media (min-width: 2200px) { :root { --nd-wrap: 1600px; } }
/* Lageplan über die volle Breite, gleichbleibender Maßstab, weiche Ränder */
.nd-lageplan__link.has-image { max-width: none; }
.nd-lageplan__img--svg { width: auto; max-width: none; height: 310px; aspect-ratio: auto; margin: 0 auto; object-fit: cover; }
@media (min-width: 1241px) {
	.nd-lageplan__img--svg { width: 1200px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%); }
	.nd-lageplan__label { right: max(20px, calc((100% - 1200px) / 2 + 20px)); }
}
@media (max-width: 1240px) { .nd-lageplan__img--svg { width: 100%; height: auto; aspect-ratio: 1533 / 396; } }
@media (max-width: 760px) { .nd-lageplan__img--svg { aspect-ratio: auto; height: 230px; } }
/* Kalender: Datum am Handy „Donnerstag, 1. Oktober“, sonst nur die Zahl */
.nd-cal__mon { display: none; }
@media (max-width: 760px) {
	.nd-cal__num { display: block; }
	.nd-cal__wd, .nd-cal__mon { display: inline; }
}
@media (max-width: 760px) {
	.nd-cal__nav { gap: 8px; }
	.nd-cal .nd-cal__title { flex: 1; font-size: 20px; min-width: 0; }
	.nd-cal__step { width: 40px; height: 40px; }
	.nd-cal__today { padding: 6px 10px; font-size: 14px; margin-left: 0; }
}

/* ---------- 1.11 ---------- */
/* Lageplan etwas breiter, Ränder weiter außen ausblenden */
@media (min-width: 1241px) {
	.nd-lageplan__img--svg { width: 1400px; height: 362px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); }
	.nd-lageplan__label { right: max(20px, calc((100% - 1400px) / 2 + 30px)); }
}
/* Startseite: 4 Berichte, auf breiten Bildschirmen 6 in drei Spalten */
.nd-cards--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-cards--home > .nd-card:nth-child(n+5) { display: none; }
@media (min-width: 1600px) {
	.nd-cards--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nd-cards--home > .nd-card:nth-child(n+5) { display: flex; }
}
@media (max-width: 640px) { .nd-cards--home { grid-template-columns: minmax(0, 1fr); } }
.nd-more-link { text-align: right; margin: 18px 0 0; }
.nd-more-link a { font-weight: 700; text-decoration: none; }
.nd-more-link a:hover { text-decoration: underline; }
/* Fußzeilen-Links rechtsbündig */
.nd-footer__menu { justify-self: end; text-align: right; }
.nd-footer__menu ul { align-items: flex-end; }
@media (max-width: 720px) { .nd-footer__menu { justify-self: start; text-align: left; } .nd-footer__menu ul { align-items: flex-start; } }
/* Bildausschnitt: Köpfe sitzen meist im oberen Drittel */
.nd-card__media img, .nd-postlist img, .nd-folder-gallery img, .nd-cal__img { object-position: 50% 28%; }
.nd-pane__thumb { background-position: 50% 25%; }
.nd-tile__img { object-position: 50% 30%; }
/* Priesternotruf-Kasten nicht über die ganze Spaltenbreite */
.nd-emergency { max-width: 380px; }

/* ---------- 1.12: Kalender ---------- */
.nd-cal__day.is-outside .nd-cal__events { opacity: .75; }
.nd-cal__day.is-past { background: #f6f6f7; }
.nd-cal__day.is-past .nd-cal__num { color: #a0a1a6; }
.nd-cal__day.is-past .nd-cal__ev > a { opacity: .55; filter: grayscale(.7); }
.nd-cal__day.is-past .nd-cal__ev > a:hover, .nd-cal__day.is-past .nd-cal__ev > a:focus-visible { opacity: 1; filter: none; }
.nd-cal__next { text-align: right; margin: 16px 0 0; }
.nd-cal__next a { font-weight: 700; text-decoration: none; }
.nd-cal__next a:hover { text-decoration: underline; }
@media (max-width: 760px) {
	.nd-cal__day.is-outside.has-events { display: block; }
	.nd-cal__day.is-past.has-events .nd-cal__num { color: #8a8b90; }
}
@media (max-width: 760px) {
	.nd-cal__day.is-outside:not(.is-past) { background: none; }
	.nd-cal__day.is-outside:not(.is-past) .nd-cal__num { color: var(--nd-ink); }
	.nd-cal__day.is-outside:not(.is-past) .nd-cal__events { opacity: 1; }
}

/* ---------- 1.13 ---------- */
.nd-event.is-now .nd-event__title { color: #ffd84d; }
.nd-day .nd-now--jetzt { background: #ffd84d; color: #2a2b2e; }
.nd-highlight__date .nd-now { vertical-align: 1px; }
.nd-highlight__date .nd-now--heute { background: var(--nd-red); color: #fff; }
.nd-highlight__box[hidden], .nd-highlight[hidden] { display: none; }

/* ---------- 1.14: heute beendete Termine im Kalender dämpfen ---------- */
.nd-cal__ev.is-past > a { opacity: .55; filter: grayscale(.7); }
.nd-cal__ev.is-past > a:hover, .nd-cal__ev.is-past > a:focus-visible { opacity: 1; filter: none; }
