/*
Theme Name: FWA
Description: Schlankes Theme für die Freiwillige Feuerwehr Aßlar e.V.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fwa
*/

/* ---------- Tokens ---------- */
:root {
	color-scheme: light dark;

	--bg: #f5f5f7;
	--surface: #ffffff;
	--surface-2: #f5f5f7;
	--text: #1d1d1f;
	--text-2: #6e6e73;
	--separator: rgba(0, 0, 0, 0.1);
	--accent: #c8102e;
	--accent-hover: #a60d26;
	--accent-text: #ffffff;
	--accent-soft: rgba(200, 16, 46, 0.08);
	--focus: rgba(200, 16, 46, 0.45);
	--chrome: rgba(245, 245, 247, 0.72);
	--chrome-solid: #f5f5f7;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
	--shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.1);
	--logo-blend: multiply;
	--logo-filter: none;
	--logo-light: block;
	--logo-dark: none;

	--radius-s: 10px;
	--radius: 18px;
	--radius-l: 24px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--maxw: 82rem;
	--aside-w: 21rem;
	--readw: 42rem;
	--header-h: 4.5rem;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in: cubic-bezier(0.64, 0, 0.78, 0);
}

/* Dunkel: automatisch nach System (außer „Hell“ gewählt) oder ausdrücklich gewählt */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #000000;
		--surface: #1c1c1e;
		--surface-2: #2c2c2e;
		--text: #f5f5f7;
		--text-2: #a1a1a6;
		--separator: rgba(255, 255, 255, 0.12);
		--accent: #ff453a;
		--accent-hover: #ff6961;
		--accent-text: #ffffff;
		--accent-soft: rgba(255, 69, 58, 0.14);
		--focus: rgba(255, 69, 58, 0.55);
		--chrome: rgba(22, 22, 23, 0.72);
		--chrome-solid: #161617;
		--shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
		--shadow-lift: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.5);
		--logo-blend: screen;
		--logo-filter: invert(1);
		--logo-light: none;
		--logo-dark: block;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #000000;
	--surface: #1c1c1e;
	--surface-2: #2c2c2e;
	--text: #f5f5f7;
	--text-2: #a1a1a6;
	--separator: rgba(255, 255, 255, 0.12);
	--accent: #ff453a;
	--accent-hover: #ff6961;
	--accent-text: #ffffff;
	--accent-soft: rgba(255, 69, 58, 0.14);
	--focus: rgba(255, 69, 58, 0.55);
	--chrome: rgba(22, 22, 23, 0.72);
	--chrome-solid: #161617;
	--shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
	--shadow-lift: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.5);
	--logo-blend: screen;
	--logo-filter: invert(1);
	--logo-light: none;
	--logo-dark: block;
}

:root[data-theme="light"] {
	color-scheme: light;
}

/* Sanfter Wechsel beim Umschalten */
html.theme-switching,
html.theme-switching * {
	transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, filter 260ms ease !important;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-tap-highlight-color: transparent;
}

body.menu-open {
	overflow: hidden;
}

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

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

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

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--surface);
	color: var(--text);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-lift);
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Typografie ---------- */
.display {
	margin: 0;
	font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.page-title {
	margin: 0;
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.section-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.eyebrow {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--text-2);
}

/* ---------- Kopfzeile ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--chrome);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 var(--separator);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--maxw);
	min-height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
	padding-top: env(safe-area-inset-top, 0);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--text);
	border-radius: 6px;
}

.brand:hover {
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: auto;
	height: 3.25rem;
}

/* Freigestelltes Vereinslogo: passende Fassung je Erscheinungsbild */
.brand-logo-light {
	display: var(--logo-light);
}

.brand-logo-dark {
	display: var(--logo-dark);
}

/* Hochgeladenes Logo mit weißem Hintergrund */
.brand-logo-custom {
	filter: var(--logo-filter);
	mix-blend-mode: var(--logo-blend);
}

.brand-name {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.nav-list {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: background-color 150ms ease, color 150ms ease;
}

.nav-list a:hover {
	text-decoration: none;
	background: var(--accent-soft);
}

.nav-list a:active {
	transform: scale(0.97);
	transition-duration: 80ms;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-parent > a,
.nav-list .current_page_parent > a {
	color: var(--accent);
	background: var(--accent-soft);
}

/* Menü-Knopf (mobil) */
.menu-button {
	display: none;
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease;
}

.menu-button:active {
	transform: scale(0.94);
	background: var(--accent-soft);
}

.menu-icon {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1.125rem;
	height: 0.75rem;
}

.menu-icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 320ms var(--ease-out), top 320ms var(--ease-out);
}

.menu-icon span:first-child {
	top: 0;
}

.menu-icon span:last-child {
	top: calc(100% - 2px);
}

.menu-button[aria-expanded="true"] .menu-icon span:first-child {
	top: calc(50% - 1px);
	transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon span:last-child {
	top: calc(50% - 1px);
	transform: rotate(-45deg);
}

/* Mobiles Menü: klappt aus der Kopfzeile auf, schließt in dieselbe Richtung */
.nav-mobile {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: 0.5rem var(--gutter) 1.25rem;
	background: var(--chrome-solid);
	box-shadow: 0 1px 0 var(--separator), 0 20px 40px rgba(0, 0, 0, 0.12);
	transform-origin: top center;
	opacity: 0;
	transform: translateY(-0.75rem) scale(0.98);
	transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in);
}

.nav-mobile[hidden] {
	display: none;
}

.nav-mobile.is-open {
	opacity: 1;
	transform: none;
	transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out);
}

.nav-mobile-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-mobile-list li + li {
	border-top: 1px solid var(--separator);
}

.nav-mobile-list a {
	display: block;
	padding: 0.95rem 0.25rem;
	color: var(--text);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.nav-mobile-list a:hover {
	text-decoration: none;
}

.nav-mobile-list a:active {
	color: var(--accent);
}

.nav-mobile-list .current-menu-item > a,
.nav-mobile-list .current_page_item > a,
.nav-mobile-list .current_page_parent > a {
	color: var(--accent);
}

.menu-scrim {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(0, 0, 0, 0.28);
	opacity: 0;
	transition: opacity 220ms ease;
}

.menu-scrim[hidden] {
	display: none;
}

.menu-scrim.is-open {
	opacity: 1;
	transition-duration: 320ms;
}

@media (max-width: 860px) {
	.nav-desktop {
		display: none;
	}

	.menu-button {
		display: block;
	}

	.brand-logo {
		height: 2.875rem;
	}
}

@media (min-width: 861px) {
	.nav-mobile,
	.menu-scrim {
		display: none !important;
	}
}

/* ---------- Hauptbereich ---------- */
.site-main {
	flex: 1;
	padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero {
	padding: clamp(3rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}

.hero-inner {
	max-width: 52rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.hero .eyebrow {
	color: var(--accent);
	font-size: 0.9375rem;
	margin-bottom: 0.75rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.page-head {
	padding: clamp(2.5rem, 7vw, 4.5rem) 0 0;
}

.section {
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.section-tight {
	padding-top: 1.5rem;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.section-head .section-title {
	margin: 0;
}

/* ---------- Karten ---------- */
.card {
	background: var(--surface);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow);
}

.card-content {
	padding: clamp(1.5rem, 5vw, 3rem);
}

/* ---------- Layout: Inhalt + Seitenleiste ---------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 1.75rem);
	padding-top: 1.5rem;
}

@media (min-width: 1024px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) var(--aside-w);
		align-items: start;
	}

	.layout-aside {
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
	}

	.admin-bar .layout-aside {
		top: calc(var(--header-h) + 1.5rem + 32px);
	}

	.entry {
		font-size: 1.125rem;
	}
}

.layout-aside {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	align-content: start;
}

.aside-card {
	padding: 1.25rem 1.25rem 1.5rem;
}

.aside-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.aside-title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.aside-list {
	margin: 0 -0.5rem;
	padding: 0;
	list-style: none;
}

.aside-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.6rem 0.5rem;
	border-radius: var(--radius-s);
	color: var(--text);
	transition: background-color 150ms ease;
}

.aside-item:hover {
	text-decoration: none;
	background: var(--accent-soft);
}

.aside-item:active {
	transform: scale(0.98);
}

.aside-thumb {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border-radius: var(--radius-s);
	background: var(--surface-2);
}

.aside-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aside-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.aside-item-title {
	font-weight: 600;
	font-size: 0.9875rem;
	line-height: 1.3;
}

.aside-date {
	color: var(--text-2);
	font-size: 0.8125rem;
}

.aside-support {
	background: linear-gradient(160deg, var(--accent), var(--accent-hover));
	color: #fff;
}

.aside-support .aside-title {
	color: #fff;
}

.aside-support p {
	margin: 0.6rem 0 1.25rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.9375rem;
}

.aside-support .button-primary {
	background: #fff;
	color: #b00e28;
}

.aside-support .button-primary:hover {
	background: rgba(255, 255, 255, 0.9);
	color: #b00e28;
}

/* ---------- Gegliederte Inhalte ---------- */
.sections {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	align-items: stretch;
}

@media (min-width: 1200px) {
	.sections-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* Erste Karte als Einstieg über die volle Breite; eine übrige letzte Karte ebenso */
	.sections-grid > :first-child,
	.sections-grid > :last-child:nth-child(even) {
		grid-column: 1 / -1;
	}

	.sections-grid > .section-card:not(:first-child) .entry {
		font-size: 1.0625rem;
	}
}

.section-card .entry > p,
.section-card .entry > ul,
.section-card .entry > ol {
	max-width: 68ch;
}

.section-card .entry > h1,
.section-card .entry > h2,
.section-card .entry > h3 {
	margin-top: 1.75em;
}

.section-card .entry > :is(h1, h2, h3, .block-title):first-child {
	margin-top: 0;
}

.section-card .entry > h1 {
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
	letter-spacing: -0.03em;
}

.block-title {
	margin: 0 0 1.15rem;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.entry .block-subtitle {
	margin: 1.75em 0 0.65em;
	font-size: 1.125rem;
	letter-spacing: -0.015em;
}

.entry .lead {
	max-width: 40ch;
	margin-bottom: 1rem;
	font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.entry .lead + p {
	color: var(--text-2);
	font-size: 1.125em;
}

.entry .callout {
	position: relative;
	max-width: none;
	margin: 1.75rem 0 0;
	padding: 1.1rem 1.25rem 1.1rem 3.25rem;
	border-radius: var(--radius);
	background: var(--accent-soft);
	color: var(--text);
	font-weight: 650;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.entry .callout::before {
	content: "";
	position: absolute;
	left: 1.15rem;
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: -0.625rem;
	background: var(--accent);
	/* Flamme */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 3.2-1 5.3-2.6 7.2C7.8 11 6 13 6 15.7 6 19.2 8.7 22 12 22s6-2.8 6-6.3c0-2.3-1.1-4.2-2.6-5.6-.3 1.6-1.1 2.8-2.3 3.4.4-3.9-.6-8.5-1.1-11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 3.2-1 5.3-2.6 7.2C7.8 11 6 13 6 15.7 6 19.2 8.7 22 12 22s6-2.8 6-6.3c0-2.3-1.1-4.2-2.6-5.6-.3 1.6-1.1 2.8-2.3 3.4.4-3.9-.6-8.5-1.1-11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Infokacheln */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0.875rem;
	margin: 1.75rem 0;
}

.entry > .info-grid:first-child {
	margin-top: 0;
}

.entry > .info-grid:last-child {
	margin-bottom: 0;
}

.info-tile {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.35rem 1.35rem;
	border-radius: var(--radius);
	background: var(--surface-2);
}

.entry .info-tile-title {
	margin: 0 0 0.65rem;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.entry .info-tile p {
	margin: 0;
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 1.55;
	hyphens: manual;
}

.entry .info-tile p + p {
	margin-top: 0.5rem;
}

.info-tile a {
	overflow-wrap: break-word;
}

.nowrap {
	white-space: nowrap;
}

/* Gleichmäßige Reihen: 2 oder 4 Kacheln als 2 Spalten, statt einer einzelnen Kachel in der letzten Reihe */
@media (min-width: 560px) {
	.info-grid[data-count="2"],
	.info-grid[data-count="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.entry .tile-action-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mail-user {
	overflow-wrap: anywhere;
}

.mail-domain {
	color: var(--text-2);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Titel, Text und Aktion aller Kacheln einer Reihe teilen sich dieselben Zeilen */
@supports (grid-template-rows: subgrid) {
	.info-grid {
		row-gap: 0;
	}

	.info-tile {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
		margin-bottom: 0.875rem;
	}

	.entry .info-tile p + p {
		margin-top: 0;
	}

	.entry .info-tile .tile-action-row {
		align-self: end;
	}
}

/* Abschließender Link (z. B. E-Mail) unten bündig – in allen Kacheln einer Reihe auf gleicher Höhe */
.entry .info-tile .tile-action-row {
	margin-top: auto;
	padding-top: 1rem;
}

.entry .tile-action {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border-radius: var(--radius-s);
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--separator);
	color: var(--accent);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 150ms ease, transform 100ms ease;
}

.entry .tile-action:hover {
	background: var(--accent-soft);
	text-decoration: none;
}

.entry .tile-action:active {
	transform: scale(0.98);
}

.tile-action-mail::before {
	content: "";
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.info-tile em {
	font-style: normal;
	font-variant-numeric: tabular-nums;
}

/* GiroCode in der Spendenkonto-Kachel */
.giro-qr[hidden] {
	display: none;
}

.entry .info-tile .giro-qr {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 1.1rem;
	margin-top: 1.1rem;
	border-top: 1px solid var(--separator);
}

.giro-qr-code {
	flex-shrink: 0;
	width: 7.5rem;
	padding: 0.5rem;
	border-radius: var(--radius-s);
	/* QR-Codes brauchen hellen Grund – auch im Dunkelmodus */
	background: #fff;
	box-shadow: 0 0 0 1px var(--separator);
}

.giro-qr-code svg {
	display: block;
	width: 100%;
	height: auto;
}

.giro-qr-code svg rect[fill="white"],
.giro-qr-code svg rect[fill="#ffffff"] {
	fill: #fff;
}

.entry .info-tile .giro-qr-caption {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.giro-qr-caption strong {
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 650;
}

.giro-qr-caption > span {
	color: var(--text-2);
}

.copy-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.4rem;
	min-height: 2.25rem;
	margin-top: 0.5rem;
	padding: 0.35rem 0.85rem 0.35rem 0.7rem;
	border: 0;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--separator);
	color: var(--accent);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
}

.copy-button:hover {
	background: var(--accent-soft);
}

.copy-button:active {
	transform: scale(0.95);
}

.copy-button svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity 200ms ease, transform 300ms var(--ease-out);
}

.copy-button .check-icon {
	position: absolute;
	left: 0.7rem;
	opacity: 0;
	transform: scale(0.5);
}

.copy-button.is-done {
	color: #248a3d;
}

.copy-button.is-done .copy-icon {
	opacity: 0;
	transform: scale(0.5);
}

.copy-button.is-done .check-icon {
	opacity: 1;
	transform: none;
}

:root[data-theme="dark"] .copy-button.is-done {
	color: #30d158;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .copy-button.is-done {
		color: #30d158;
	}
}

/* Spamschutz-Feld: für Menschen unsichtbar, aber nicht display:none (das erkennen Bots) */
.fwa-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Formular in eigener Karte */
.section-form .wpcf7 {
	margin: 0;
	padding: 0;
	background: none;
}

/* Soziale Kanäle (WhatsApp, Instagram) */
.aside-social p {
	margin: 0.5rem 0 0.9rem;
	color: var(--text-2);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.social-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: var(--radius-s);
	background: var(--surface-2);
	color: var(--text);
	text-decoration: none;
	transition: background-color 150ms ease, transform 100ms ease;
}

.social-link:hover {
	text-decoration: none;
	color: var(--text);
}

.social-link:active {
	transform: scale(0.98);
}

.social-whatsapp:hover {
	background: color-mix(in srgb, #25d366 16%, var(--surface-2));
}

.social-instagram:hover {
	background: color-mix(in srgb, #e1306c 12%, var(--surface-2));
}

.social-badge {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.7rem;
}

.social-whatsapp .social-badge {
	background: #25d366;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.social-instagram .social-badge {
	background: radial-gradient(circle at 30% 110%, #ffdb7a 0%, #fd5949 40%, #d6249f 65%, #285aeb 100%);
	box-shadow: 0 4px 12px rgba(214, 36, 159, 0.3);
}

.social-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.social-name {
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.25;
}

.social-action {
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 600;
}

.social-action::after {
	content: " ›";
}

.wa-icon,
.ig-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.wa-icon .wa-bubble {
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
	stroke-linejoin: round;
}

.wa-icon .wa-phone,
.ig-icon .ig-dot {
	fill: #fff;
	stroke: none;
}

.ig-icon rect,
.ig-icon circle:not(.ig-dot) {
	fill: none;
	stroke: #fff;
	stroke-width: 1.9;
}

/* Fußzeile */
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem 0.4rem 0.45rem;
	border-radius: 999px;
	background: var(--surface-2);
	box-shadow: inset 0 0 0 1px var(--separator);
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 150ms ease, transform 100ms ease;
}

.footer-social-link:hover {
	color: var(--text);
	text-decoration: none;
}

.footer-whatsapp:hover {
	background: color-mix(in srgb, #25d366 16%, var(--surface-2));
}

.footer-instagram:hover {
	background: color-mix(in srgb, #e1306c 12%, var(--surface-2));
}

.footer-social-link:active {
	transform: scale(0.97);
}

.footer-social-link svg {
	box-sizing: content-box;
	width: 1rem;
	height: 1rem;
	padding: 0.3rem;
	border-radius: 999px;
}

.footer-whatsapp svg {
	background: #25d366;
}

.footer-instagram svg {
	background: radial-gradient(circle at 30% 110%, #ffdb7a 0%, #fd5949 40%, #d6249f 65%, #285aeb 100%);
}

/* Dokumentenseite: Dateien als Raster */
.entry:has(> .wp-block-file:first-child) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 0.75rem;
}

.entry:has(> .wp-block-file:first-child) > .wp-block-file {
	margin: 0;
}

/* Kontaktformular: Name und E-Mail nebeneinander */
@media (min-width: 720px) {
	.wpcf7 form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1rem;
	}

	.wpcf7 form > * {
		grid-column: 1 / -1;
	}

	.wpcf7 form > p:nth-of-type(1),
	.wpcf7 form > p:nth-of-type(2) {
		grid-column: auto;
	}
}

/* ---------- Umschalter Erscheinungsbild ---------- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-right: -0.5rem;
}

.icon-button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease;
}

.icon-button:hover {
	background: var(--accent-soft);
}

.icon-button:active {
	transform: scale(0.92);
}

.icon-button svg {
	grid-area: 1 / 1;
	width: 1.3rem;
	height: 1.3rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out);
}

.icon-button .icon-sun circle {
	fill: currentColor;
	stroke: none;
}

.icon-button .icon-moon path {
	fill: currentColor;
	stroke: none;
}

/* Gezeigt wird, wohin man wechselt: im Hellen der Mond, im Dunkeln die Sonne */
.theme-toggle .icon-sun {
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.theme-toggle[aria-pressed="true"] .icon-sun {
	opacity: 1;
	transform: none;
}

.theme-toggle[aria-pressed="true"] .icon-moon {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.segmented {
	display: inline-flex;
	padding: 2px;
	border-radius: 9px;
	background: var(--surface-2);
	box-shadow: inset 0 0 0 1px var(--separator);
}

.segmented button {
	padding: 0.35rem 0.8rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--text-2);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.segmented button[aria-checked="true"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.segmented button:not([aria-checked="true"]):hover {
	color: var(--text);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.post-card {
	overflow: hidden;
	transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lift);
}

.post-card:active {
	transform: scale(0.985);
	transition-duration: 120ms;
}

.post-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.post-card-link:hover {
	text-decoration: none;
}

.post-card-link:focus-visible {
	outline-offset: -3px;
	border-radius: var(--radius-l);
}

.post-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface-2);
}

.post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem 1.5rem 1.5rem;
}

.post-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.post-card-excerpt {
	margin: 0 0 1rem;
	color: var(--text-2);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.post-card .text-link {
	margin-top: auto;
}

.empty {
	text-align: center;
	color: var(--text-2);
}

/* ---------- Knöpfe & Links ---------- */
.button,
.wp-element-button,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	text-decoration: none;
}

.button:active,
.wp-element-button:active,
.wp-block-button__link:active,
.wpcf7-submit:active {
	transform: scale(0.97);
}

.button-primary,
.wp-block-button__link,
.wpcf7-submit {
	background: var(--accent);
	color: var(--accent-text);
}

.button-primary:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover {
	background: var(--accent-hover);
	color: var(--accent-text);
}

.button-secondary {
	background: var(--surface);
	color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--separator);
}

.button-secondary:hover {
	background: var(--accent-soft);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--accent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.text-link::after {
	content: "›";
	font-size: 1.2em;
	line-height: 1;
	transition: transform 200ms var(--ease-out);
}

.text-link-back::after {
	content: none;
}

.text-link-back::before {
	content: "‹";
	font-size: 1.2em;
	line-height: 1;
}

a.text-link:hover::after,
.post-card:hover .text-link::after {
	transform: translateX(3px);
}

/* ---------- Inhalt aus dem Editor ---------- */
.entry {
	overflow-wrap: break-word;
}

.entry > :first-child {
	margin-top: 0;
}

.entry > :last-child {
	margin-bottom: 0;
}

/* Leere Absätze aus dem Editor nicht als Abstand zeigen */
.entry p:empty {
	display: none;
}

.entry p,
.entry ul,
.entry ol {
	margin: 0 0 1.1em;
}

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

.entry li + li {
	margin-top: 0.3em;
}

.entry h1,
.entry h2,
.entry h3,
.entry h4 {
	margin: 2em 0 0.8em;
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

.entry h1 {
	font-size: 1.875rem;
	letter-spacing: -0.03em;
}

.entry h2 {
	font-size: 1.5rem;
	letter-spacing: -0.025em;
}

.entry h3 {
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.entry h4 {
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.entry hr,
.entry .wp-block-separator {
	height: 0;
	margin: 2.25rem 0;
	border: 0;
	border-top: 1px solid var(--separator);
	opacity: 1;
}

.entry strong {
	font-weight: 650;
}

.entry a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
	text-underline-offset: 0.18em;
}

.entry a:hover {
	text-decoration-color: currentColor;
}

.entry a:not([href]) {
	color: inherit;
	text-decoration: none;
}

.entry figure {
	margin: 2rem 0;
}

.entry img {
	border-radius: var(--radius);
}

.entry .wp-block-image img {
	box-shadow: var(--shadow);
}

.entry figcaption {
	margin-top: 0.6rem;
	color: var(--text-2);
	font-size: 0.875rem;
	text-align: center;
}

.entry .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.entry blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--text-2);
}

/* Datei-Blöcke als Dokumentenliste */
.entry .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.85rem 0.9rem 0.85rem 3.4rem;
	position: relative;
	background: var(--surface-2);
	border-radius: var(--radius);
	transition: background-color 150ms ease;
}

.entry .wp-block-file + .wp-block-file {
	margin-top: 0.5rem;
}

.entry .wp-block-file + :not(.wp-block-file) {
	margin-top: 1.5rem;
}

.entry .wp-block-file::before {
	content: "PDF";
	position: absolute;
	left: 0.85rem;
	top: 50%;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 2.3rem;
	margin-top: -1.15rem;
	border-radius: 5px;
	background: var(--accent);
	color: var(--accent-text);
	font-size: 0.5625rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.entry .wp-block-file > a:first-child {
	flex: 1 1 8rem;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: break-word;
}

/* Ganze Zeile anklickbar */
.entry .wp-block-file > a:first-child::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.entry .wp-block-file:hover {
	background: var(--accent-soft);
}

.entry .wp-block-file .wp-block-file__button {
	position: relative;
	z-index: 1;
	min-height: 2.25rem;
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
	text-decoration: none;
	background: var(--accent);
	color: var(--accent-text);
}

.entry .wp-block-file .wp-block-file__button:hover {
	background: var(--accent-hover);
	color: var(--accent-text);
}

/* ---------- Formulare (Contact Form 7) ---------- */
.wpcf7 {
	margin-top: 2rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	background: var(--surface-2);
	border-radius: var(--radius);
}

.wpcf7 form > p {
	margin: 0 0 1.1rem;
}

.wpcf7 label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text);
}

.wpcf7 label br {
	display: none;
}

.wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.4rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--separator);
	border-radius: var(--radius-s);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wpcf7 textarea {
	min-height: 9rem;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.wpcf7 .wpcf7-submit {
	width: 100%;
}

@media (min-width: 600px) {
	.wpcf7 .wpcf7-submit {
		width: auto;
		min-width: 10rem;
	}
}

.wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 500;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--surface);
	font-size: 0.9375rem;
}

.wpcf7 form.sent .wpcf7-response-output {
	box-shadow: inset 3px 0 0 #34c759;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	box-shadow: inset 3px 0 0 var(--accent);
}

.wpcf7-spinner {
	margin: 0 0 0 0.75rem;
	vertical-align: middle;
}

/* ---------- Beitrag ---------- */
.post-hero {
	margin: 0 0 2rem;
}

.post-hero img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.post-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-inline: 0.5rem;
}

.post-nav-pair {
	display: flex;
	gap: 1.25rem;
}

.pagination {
	margin-top: 2rem;
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	gap: 0.25rem;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	color: var(--text);
	font-weight: 600;
}

.pagination .current {
	background: var(--accent);
	color: var(--accent-text);
}

/* ---------- Fußzeile ---------- */
.site-footer {
	padding: 2.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0));
	border-top: 1px solid var(--separator);
	color: var(--text-2);
	font-size: 0.875rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	max-width: var(--maxw);
	margin-inline: auto;
}

.footer-name {
	margin: 0 0 0.2rem;
	color: var(--text);
	font-weight: 600;
}

.footer-meta {
	margin: 0;
}

.footer-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a {
	color: var(--text-2);
}

.footer-list a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	max-width: var(--maxw);
	margin: 1.75rem auto 0;
}

.footer-copy {
	margin: 0;
}

/* ---------- Termine ---------- */
.date-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 3.25rem;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--separator), 0 1px 2px rgba(0, 0, 0, 0.05);
	line-height: 1;
	text-align: center;
}

.date-badge-month {
	width: 100%;
	padding: 0.28rem 0 0.22rem;
	background: var(--accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.date-badge-day {
	padding: 0.32rem 0 0.4rem;
	color: var(--text);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.date-badge-large {
	width: 4.5rem;
	border-radius: 16px;
}

.date-badge-large .date-badge-month {
	font-size: 0.8125rem;
	padding: 0.35rem 0 0.3rem;
}

.date-badge-large .date-badge-day {
	font-size: 2.1rem;
	padding: 0.4rem 0 0.5rem;
}

/* Termin ohne Datum („Datum folgt“) */
.date-badge.is-tba {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
	outline: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent);
	outline-offset: -1.5px;
}

.date-badge.is-tba .date-badge-month {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent);
}

.date-badge.is-tba .date-badge-day {
	color: var(--text-2);
	letter-spacing: 0.05em;
}

.event-row.is-tba .event-meta {
	color: var(--accent);
	font-weight: 500;
}

.event-tba-note {
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius);
	background: var(--accent-soft);
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.event-month {
	margin: 2rem 0 0.75rem;
	color: var(--text-2);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
}

.event-month:first-child {
	margin-top: 0;
}

.event-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.event-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--radius);
	transition: background-color 150ms ease;
}

.event-row + .event-row {
	margin-top: 0.35rem;
}

.event-row:hover {
	background: var(--surface-2);
}

.event-link {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	padding: 0.6rem;
	border-radius: var(--radius);
	color: var(--text);
}

.event-link:hover {
	text-decoration: none;
}

.event-link:active {
	transform: scale(0.99);
}

.event-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.event-title {
	font-size: 1.0625rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.event-meta {
	color: var(--text-2);
	font-size: 0.875rem;
	line-height: 1.4;
}

.event-ics {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: 0.4rem;
	border-radius: 999px;
	color: var(--accent);
	transition: background-color 150ms ease, transform 100ms ease;
}

.event-ics:hover {
	background: var(--accent-soft);
}

.event-ics:active {
	transform: scale(0.92);
}

.event-ics svg,
.button-icon {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.button-icon {
	margin-right: 0.45rem;
	width: 1.1rem;
	height: 1.1rem;
}

.event-row.is-past {
	opacity: 0.6;
}

.event-row.is-past .date-badge-month {
	background: var(--text-2);
}

.event-list-compact .event-link {
	gap: 0.8rem;
	padding: 0.45rem;
}

.event-list-compact .date-badge {
	width: 2.75rem;
	border-radius: 10px;
}

.event-list-compact .date-badge-month {
	font-size: 0.5625rem;
}

.event-list-compact .date-badge-day {
	font-size: 1.15rem;
}

.event-list-compact .event-title {
	font-size: 0.9375rem;
}

.event-list-compact .event-meta {
	font-size: 0.8125rem;
}

.event-list-compact .event-ics {
	display: none;
}

.aside-card .event-list {
	margin: 0 -0.45rem;
}

.event-head {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.event-head .eyebrow {
	margin-bottom: 0.3rem;
}

.event-actions {
	margin: 1.5rem 0 0;
}

.event-content {
	margin-top: 0;
}

.post-hero + .event-content {
	margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

/* Terminseite: Eckdaten in der Seitenleiste */
.event-facts {
	padding: 1.5rem;
}

.event-facts .aside-title {
	margin-bottom: 1rem;
}

.fact-list {
	display: grid;
	gap: 0.25rem;
	margin: 0;
}

.fact {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	align-items: start;
	gap: 0.85rem;
	padding: 0.75rem 0;
}

.fact + .fact {
	border-top: 1px solid var(--separator);
}

.fact-icon {
	box-sizing: border-box;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.45rem;
	border-radius: 0.65rem;
	background: var(--accent-soft);
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fact dt {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--text-2);
}

.fact dd {
	margin: 0.1rem 0 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text);
	overflow-wrap: anywhere;
}

.event-facts-button {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 1.25rem;
}

.event-facts-note {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--text-2);
}

.event-facts-actions {
	display: grid;
	gap: 0.625rem;
	margin-top: 1.25rem;
}

.event-facts-actions .event-facts-button {
	margin-top: 0;
}

.event-facts-actions .label-short {
	display: none;
}

/* Handy und Tablet: beide Knöpfe klein nebeneinander */
@media (max-width: 1023px) {
	.event-facts-actions .label-long {
		display: none;
	}

	.event-facts-actions .label-short {
		display: inline;
	}

	.event-facts-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		margin-top: 1rem;
	}

	.event-facts-actions .event-facts-button {
		display: inline-flex;
		width: auto;
		min-height: 2.25rem;
		padding: 0.4rem 0.9rem;
		font-size: 0.875rem;
	}

	.event-facts-actions .button-icon {
		width: 1rem;
		height: 1rem;
		margin-right: 0.35rem;
	}
}

/* Teilen-Blatt mit Story-Vorschau */
.share-sheet {
	width: min(26rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 1.25rem;
	border: 0;
	border-radius: 1.5rem;
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-lift);
	overflow: auto;
}

.share-sheet::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.share-sheet[open] {
	display: grid;
	gap: 1rem;
	animation: share-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

@keyframes share-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

.share-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.share-close {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--text-2);
	cursor: pointer;
}

.share-close svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.share-preview-wrap {
	display: grid;
	place-items: center;
	padding: 0.75rem;
	border-radius: 1rem;
	background: var(--surface-2);
}

.share-preview {
	display: block;
	width: auto;
	height: min(48dvh, 26rem);
	aspect-ratio: 9 / 16;
	border-radius: 0.75rem;
	background: linear-gradient(135deg, #d3152f, #6e0614);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.share-format {
	display: flex;
}

.share-format button {
	flex: 1;
	padding-block: 0.5rem;
	font-size: 0.875rem;
}

.share-sheet[data-format="square"] .share-preview {
	width: min(100%, 22rem);
	height: auto;
	aspect-ratio: 1;
}

.share-hint {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--text-2);
}

.share-actions {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0.5rem;
}

.share-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 4.25rem;
	padding: 0.65rem 0.4rem;
	border: 0;
	border-radius: 0.875rem;
	background: var(--surface-2);
	color: var(--text);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease;
}

.share-action:hover {
	background: var(--accent-soft);
	color: var(--text);
	text-decoration: none;
}

.share-action:active {
	transform: scale(0.96);
}

.share-action svg {
	width: 1.375rem;
	height: 1.375rem;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.share-action-main {
	background: var(--accent);
	color: var(--accent-text);
}

.share-action-main:hover {
	background: var(--accent-hover);
	color: var(--accent-text);
}

.share-action-main svg {
	stroke: currentColor;
}

.share-action.is-done svg {
	stroke: var(--text-2);
}

.share-action[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.share-sheet[open] {
		animation: none;
	}
}

/* Schmale Bildschirme: Eckdaten vor dem Text */
@media (max-width: 1023px) {
	.layout-event .event-aside {
		order: -1;
	}
}

@media print {
	.layout-event .event-aside {
		display: grid !important;
	}
}

.page-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.calendar-actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.calendar-help > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 2.5rem;
	padding: 0 0.25rem;
	color: var(--accent);
	font-size: 0.9375rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	border-radius: 8px;
}

.calendar-help > summary::-webkit-details-marker {
	display: none;
}

.calendar-help > summary::after {
	content: "›";
	font-size: 1.2em;
	line-height: 1;
	transition: transform 250ms var(--ease-out);
}

.calendar-help[open] > summary::after {
	transform: rotate(90deg);
}

.calendar-help-body {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 20;
	width: min(26rem, calc(100vw - 2 * var(--gutter)));
	padding: 1.1rem 1.25rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 0 0 0.5px var(--separator), 0 16px 48px rgba(0, 0, 0, 0.16);
	font-size: 0.9375rem;
	line-height: 1.5;
	transform-origin: top right;
	animation: help-in 320ms var(--ease-out);
}

@keyframes help-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-0.25rem);
	}
}

.calendar-help-body p {
	margin: 0 0 0.75rem;
}

.calendar-help-body p:last-child {
	margin-bottom: 0;
}

.calendar-url {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.calendar-url code {
	display: block;
	padding: 0.5rem 0.7rem;
	border-radius: var(--radius-s);
	background: var(--surface-2);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.calendar-url .copy-button {
	margin-top: 0;
}

@media (max-width: 600px) {
	.calendar-help-body {
		left: 0;
		right: auto;
		transform-origin: top left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.calendar-help-body {
		animation: none;
	}
}

.button-small {
	min-height: 2.5rem;
	padding: 0.5rem 1.1rem;
	font-size: 0.9375rem;
}

.empty-state {
	padding: 2rem 1rem;
	text-align: center;
}

.empty-state .date-badge {
	margin-bottom: 1.25rem;
	opacity: 0.85;
}

.empty-title {
	margin: 0 0 0.35rem;
	font-size: 1.1875rem;
	font-weight: 650;
	letter-spacing: -0.015em;
}

.empty-text {
	margin: 0;
	color: var(--text-2);
}

/* ---------- Bild-Vollansicht ---------- */
.zoomable {
	cursor: zoom-in;
	transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}

.zoomable:hover {
	transform: scale(1.015);
	box-shadow: var(--shadow-lift);
}

.zoomable:active {
	transform: scale(0.98);
}

html.lightbox-lock,
html.lightbox-lock body {
	overflow: hidden;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	touch-action: none;
}

.lightbox.is-open {
	display: block;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

@supports (backdrop-filter: blur(1px)) {
	.lightbox-backdrop {
		background: rgba(0, 0, 0, 0.82);
		-webkit-backdrop-filter: blur(24px) saturate(140%);
		backdrop-filter: blur(24px) saturate(140%);
	}
}

.lightbox-image {
	position: absolute;
	border-radius: 12px;
	object-fit: contain;
	cursor: grab;
	user-select: none;
	-webkit-user-drag: none;
	transform-origin: center center;
	will-change: transform;
}

.lightbox-image:active {
	cursor: grabbing;
}

.lightbox-close {
	position: absolute;
	top: calc(1rem + env(safe-area-inset-top, 0));
	right: 1rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: background-color 150ms ease, transform 100ms ease;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.26);
}

.lightbox-close:active {
	transform: scale(0.92);
}

.lightbox-close svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

@media (prefers-reduced-transparency: reduce) {
	.lightbox-backdrop {
		background: #000;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zoomable,
	.zoomable:hover,
	.zoomable:active {
		transform: none;
		transition: none;
	}
}

/* ---------- Bearbeiten-Leiste (nur für angemeldete Mitglieder) ---------- */
.has-edit-bar .site-footer {
	padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0));
}

.edit-bar {
	position: fixed;
	left: 50%;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0));
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	max-width: calc(100vw - 2rem);
	padding: 0.3rem;
	border-radius: 999px;
	background: var(--chrome);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 0 0 0.5px var(--separator), 0 8px 30px rgba(0, 0, 0, 0.16);
	transform: translateX(-50%);
	animation: eb-in 520ms var(--ease-out) both;
}

@keyframes eb-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(1.25rem) scale(0.96);
	}
}

.eb-button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0 1.05rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease;
}

.eb-button:hover {
	background: var(--accent-soft);
	text-decoration: none;
}

.eb-button:active {
	transform: scale(0.95);
}

.eb-primary {
	background: var(--accent);
	color: var(--accent-text);
}

.eb-primary:hover {
	background: var(--accent-hover);
	color: var(--accent-text);
}

.eb-more {
	width: 2.75rem;
	padding: 0;
	justify-content: center;
}

.eb-more[aria-expanded="true"] {
	background: var(--accent-soft);
}

.eb-icon {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eb-icon-more circle {
	fill: currentColor;
	stroke: none;
}

/* Menü wächst aus dem „Mehr“-Knopf nach oben */
.eb-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.6rem);
	min-width: 15rem;
	padding: 0.4rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 0 0 0.5px var(--separator), 0 16px 48px rgba(0, 0, 0, 0.2);
	transform-origin: calc(100% - 1.4rem) 100%;
	opacity: 0;
	transform: scale(0.9) translateY(0.5rem);
	transition: opacity 180ms var(--ease-in), transform 200ms var(--ease-in);
}

.eb-menu[hidden] {
	display: none;
}

.eb-menu.is-open {
	opacity: 1;
	transform: none;
	transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out);
}

.eb-menu-user {
	margin: 0;
	padding: 0.55rem 0.75rem 0.65rem;
	border-bottom: 1px solid var(--separator);
	margin-bottom: 0.3rem;
	color: var(--text-2);
	font-size: 0.8125rem;
}

.eb-menu-user strong {
	color: var(--text);
	font-weight: 600;
}

.eb-menu a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: var(--radius-s);
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.eb-menu a:hover,
.eb-menu a:focus-visible {
	background: var(--accent-soft);
	text-decoration: none;
}

.eb-menu .eb-menu-logout {
	margin-top: 0.3rem;
	border-top: 1px solid var(--separator);
	border-radius: 0 0 var(--radius-s) var(--radius-s);
	color: var(--accent);
}

@media (max-width: 480px) {
	.eb-button:not(.eb-primary):not(.eb-more) span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.eb-button:not(.eb-primary):not(.eb-more) {
		width: 2.75rem;
		padding: 0;
		justify-content: center;
	}
}

.footer-login {
	color: var(--text-2);
}

.footer-login:hover {
	color: var(--text);
}

@media (prefers-reduced-transparency: reduce) {
	.edit-bar {
		background: var(--chrome-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.edit-bar {
		animation: none;
	}

	.eb-menu,
	.eb-menu.is-open {
		transform: none;
		transition: opacity 150ms ease;
	}
}

@media print {
	.edit-bar {
		display: none !important;
	}
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}

	.nav-mobile,
	.nav-mobile.is-open {
		transform: none;
		transition: opacity 180ms ease;
	}

	.menu-icon span,
	.post-card,
	.text-link::after {
		transition: none;
	}

	.icon-button svg,
	.theme-toggle .icon-sun,
	.theme-toggle[aria-pressed="true"] .icon-moon {
		transform: none;
		transition: opacity 150ms ease;
	}

	.post-card:hover,
	.post-card:active {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.site-header {
		background: var(--chrome-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-contrast: more) {
	:root {
		--separator: rgba(127, 127, 127, 0.6);
		--text-2: var(--text);
	}

	.site-header {
		background: var(--chrome-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.card {
		box-shadow: 0 0 0 1px var(--separator);
	}
}

@media print {
	.site-header,
	.menu-scrim,
	.site-footer,
	.layout-aside,
	.hero-actions,
	.post-nav {
		display: none !important;
	}

	.card {
		box-shadow: none;
	}
}
