/*
Theme Name:   Schützengilde 1719
Theme URI:    https://psg-doberlug.de/
Author:       Fensal
Author URI:   https://zocker-loge.de/
Description:  Theme für die Privilegierte Schützengilde 1719 Doberlug e. V.: scrollbare Startseite mit Geschichte, Doberlug-Kirchhain, Tradition, Vereinsleben, Aktivitäten, Neuigkeiten, Historischen Artefakten, Terminen und Vereinsheim-Vermietung. Alle Inhalte unter Design → Gilde-Theme bearbeitbar. Vorlagen für Vorstand, Vereinsseiten und Sponsoren, Anfrageformular, lokal eingebundene Schriften.
Version:      1.1.0
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.0
License:      GPL-2.0-or-later
Text Domain:  psg-gilde
*/

/* ==========================================================================
   Grundwerte
   ========================================================================== */

:root {
	--psg-primary: #1c3a2a;
	--psg-accent: #b08d3e;
	--psg-deep: #12261b;
	--psg-deep: color-mix(in srgb, var(--psg-primary) 68%, #000);
	--psg-tint: #e7ece6;
	--psg-tint: color-mix(in srgb, var(--psg-primary) 9%, #fff);
	--psg-paper: #f1f2ec;
	--psg-ink: #1b1f1c;
	--psg-muted: #555e57;
	--psg-line: rgba(27, 31, 28, .14);
	--psg-on-dark: #f3f1e8;
	--psg-serif: "Alegreya", Georgia, "Times New Roman", serif;
	--psg-sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--psg-wrap: 1200px;
	--psg-radius: 4px;
	--psg-header: 76px;
	--psg-space: clamp(4rem, 9vw, 7.5rem);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--psg-header) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: #fff;
	color: var(--psg-ink);
	font-family: var(--psg-sans);
	font-size: 1.125rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-family: var(--psg-serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--psg-primary);
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.15rem; }

p, ul, ol, dl, figure, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

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

:focus-visible { outline: 3px solid var(--psg-accent); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--psg-wrap)); margin-inline: auto; }

.screen-reader-text, .hp {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 200;
	padding: .6rem 1rem; background: var(--psg-accent); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.6em;
	border: 2px solid transparent;
	border-radius: var(--psg-radius);
	font-family: var(--psg-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--psg-primary); border-color: var(--psg-primary); color: #fff; }
.btn--primary:hover { background: var(--psg-deep); border-color: var(--psg-deep); color: #fff; }
.btn--accent { background: var(--psg-accent); border-color: var(--psg-accent); color: #fff; }
.btn--accent:hover { background: transparent; color: var(--psg-on-dark); border-color: var(--psg-accent); }
.btn--outline { border-color: var(--psg-primary); color: var(--psg-primary); background: transparent; }
.btn--outline:hover { background: var(--psg-primary); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--psg-primary); }
.btn--block { display: flex; width: 100%; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ==========================================================================
   Ornament (Schießscheibe)
   ========================================================================== */

.ornament { display: block; width: 120px; height: 20px; margin: .1rem 0 1.1rem; color: var(--psg-accent); }
.ornament svg { width: 100%; height: 100%; overflow: visible; }
.ornament line, .ornament circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.ornament .ornament__dot { fill: currentColor; stroke: none; }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--psg-primary);
	color: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
	transition: background-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.has-header-over .site-header {
	position: fixed;
	left: 0; right: 0;
	background: transparent;
	box-shadow: none;
}
.has-header-over .site-header.is-scrolled,
.has-header-over.nav-open .site-header {
	background: var(--psg-primary);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--psg-header);
}

.brand {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin-right: auto;
	color: #fff;
	text-decoration: none;
}
.brand:hover { color: #fff; }
.brand__logo {
	width: 50px; height: 50px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--psg-accent);
}
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__l1 { font-family: var(--psg-serif); font-size: 1.15rem; font-weight: 500; }
.brand__l2 { font-size: .85rem; opacity: .8; }

.site-nav .menu { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav a {
	display: block;
	padding: .6rem .8rem;
	color: #fff;
	font-size: 1.02rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--psg-radius);
}
.site-nav .menu > li > a { position: relative; }
.site-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: .8rem; right: .8rem; bottom: .3rem;
	height: 2px;
	background: var(--psg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s;
}
.site-nav .menu > li > a:hover::after,
.site-nav .menu > li.is-active > a::after,
.site-nav .menu > li.current-menu-item > a::after,
body:not(.home) .site-nav .menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.home .site-nav .menu > li.current-menu-item > a[href*="#"]::after { transform: scaleX(0); }
.site-nav .menu > li.is-active > a::after { transform: scaleX(1) !important; }
.site-nav a:hover { color: #fff; }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	margin: 0;
	padding: .5rem;
	list-style: none;
	background: #fff;
	border-top: 3px solid var(--psg-accent);
	border-radius: 0 0 var(--psg-radius) var(--psg-radius);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { color: var(--psg-ink); font-weight: 400; padding: .5rem .75rem; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: var(--psg-tint); color: var(--psg-primary); }
.menu-item-has-children > a { padding-right: 1.6rem !important; }
.menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: .6rem; top: 50%;
	width: .4rem; height: .4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	opacity: .8;
}
.sub-toggle { display: none; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .55rem;
	padding: .55rem .8rem;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: var(--psg-radius);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
	content: "";
	position: absolute; left: 0; right: 0;
	height: 2px;
	background: currentColor;
	transition: transform .2s, opacity .2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 6px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span { opacity: 0; }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed;
		inset: var(--psg-header) 0 0 0;
		overflow-y: auto;
		padding: 1rem 1.25rem 2rem;
		background: var(--psg-primary);
		visibility: hidden;
		opacity: 0;
		transition: opacity .2s, visibility .2s;
	}
	.nav-open .site-nav { visibility: visible; opacity: 1; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.site-nav a { padding: .95rem .25rem; font-size: 1.2rem; }
	.site-nav .menu > li > a::after { display: none; }
	.menu-item-has-children > a::before { display: none; }
	.menu-item-has-children > a { padding-right: 3rem !important; }
	.sub-toggle {
		display: grid;
		place-items: center;
		position: absolute;
		right: 0; top: .45rem;
		width: 2.6rem; height: 2.6rem;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, .3);
		border-radius: var(--psg-radius);
		color: #fff;
		cursor: pointer;
	}
	.sub-toggle .icon { transition: transform .2s; }
	.is-open > .sub-toggle .icon { transform: rotate(180deg); }
	.site-nav .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 .75rem;
		padding: 0 0 0 1rem;
		background: transparent;
		border: 0;
		border-left: 2px solid var(--psg-accent);
		box-shadow: none;
		opacity: 1; visibility: visible; transform: none;
	}
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { color: #fff; padding: .55rem .5rem; font-size: 1.05rem; }
	.site-nav .sub-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}
@media (max-width: 480px) {
	.brand__l2 { display: none; }
	.brand__logo { width: 42px; height: 42px; }
	.nav-toggle__label { display: none; }
}

/* ==========================================================================
   Abschnitte allgemein
   ========================================================================== */

.sec { position: relative; padding-block: var(--psg-space); }
.sec--alt { background: var(--psg-paper); }
.sec--dark { background: var(--psg-primary); color: var(--psg-on-dark); }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark a:not(.btn) { color: #fff; }

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head__title { margin-bottom: .35em; }
.sec-head__sub { margin: 0; font-size: 1.2rem; color: var(--psg-muted); }
.sec-head--light .sec-head__sub { color: rgba(255, 255, 255, .78); }
.sec-more { margin: clamp(2rem, 4vw, 3rem) 0 0; }

.frame { margin: 0; position: relative; isolation: isolate; }
.frame img { width: 100%; border-radius: var(--psg-radius); }
.frame::after {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	z-index: -1;
	border: 2px solid var(--psg-accent);
	border-radius: var(--psg-radius);
}

.admin-hint {
	padding: .9rem 1.1rem;
	border: 2px dashed var(--psg-accent);
	background: #fff;
	color: var(--psg-ink);
	font-size: .95rem;
}

/* ==========================================================================
   Titelbereich
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: min(92vh, 860px);
	padding: calc(var(--psg-header) + 3rem) 0 2rem;
	color: #fff;
	background: var(--psg-deep);
	isolation: isolate;
	overflow: hidden;
}
body:not(.has-header-over) .hero { padding-top: 4rem; min-height: min(80vh, 760px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(10, 24, 16, .94) 0%, rgba(14, 32, 22, .82) 42%, rgba(18, 38, 27, .45) 100%),
		linear-gradient(0deg, rgba(10, 24, 16, .6), transparent 40%);
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	flex: 1;
}
.hero:not(.hero--emblem) .hero__inner { grid-template-columns: minmax(0, 46rem); }
.hero__kicker { margin: 0 0 .9rem; font-size: 1.1rem; color: var(--psg-accent); font-weight: 700; }
.hero__title { margin: 0 0 .35em; color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.05; max-width: 15ch; }
.hero .ornament { margin-bottom: 1.4rem; }
.hero__lead { max-width: 38rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.hero__emblem { justify-self: center; }
.hero__emblem img { width: min(100%, 360px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.hero__fact { margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .25); font-family: var(--psg-serif); font-style: italic; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.hero__scroll {
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	color: #fff;
}
.hero__scroll:hover { background: #fff; color: var(--psg-primary); }
@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__emblem { order: -1; justify-self: start; }
	.hero__emblem img { width: 140px; }
}

/* ==========================================================================
   Zweispaltig (Geschichte)
   ========================================================================== */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split--single { grid-template-columns: minmax(0, 46rem); }
.split__media { position: sticky; top: calc(var(--psg-header) + 2rem); }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__media { position: relative; top: 0; max-width: 34rem; }
}

.timeline { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.timeline::before {
	content: "";
	position: absolute;
	left: 1.5rem; top: .5rem; bottom: .5rem;
	width: 2px;
	background: linear-gradient(var(--psg-accent), var(--psg-line));
}
.timeline__item { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	border-radius: 50%;
	background: #fff;
	color: var(--psg-primary);
	font-family: var(--psg-serif);
	font-size: 1.25rem;
	font-weight: 700;
	box-shadow: 0 0 0 2px var(--psg-primary), 0 0 0 6px #fff, 0 0 0 8px var(--psg-accent);
}
.timeline__title { margin: .55rem 0 .3rem; }
.timeline__body p { margin: 0; color: var(--psg-muted); }

/* ==========================================================================
   Doberlug-Kirchhain
   ========================================================================== */

.stadt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stadt__img { margin-bottom: 2.2rem; }
.stadt__lead { font-family: var(--psg-serif); font-size: 1.25rem; font-style: italic; line-height: 1.55; color: var(--psg-primary); padding-left: 1.2rem; border-left: 3px solid var(--psg-accent); }
.stadt__lead p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .stadt { grid-template-columns: 1fr; } }

.tabs { background: #fff; border-radius: var(--psg-radius); box-shadow: 0 1px 0 var(--psg-line), 0 20px 40px -24px rgba(28, 58, 42, .35); }
.tabs__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--psg-line); }
.tabs__tab {
	position: relative;
	padding: 1rem 1.25rem 1rem 3rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--psg-line);
	color: var(--psg-ink);
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.tabs__tab:last-child { border-bottom: 0; }
.tabs__tab::before {
	content: "";
	position: absolute;
	left: 1.25rem; top: 50%;
	width: .85rem; height: .85rem;
	border-radius: 50%;
	border: 2px solid var(--psg-line);
	transform: translateY(-50%);
}
.tabs__tab[aria-selected="true"] { color: var(--psg-primary); background: var(--psg-tint); }
.tabs__tab[aria-selected="true"]::before { border-color: var(--psg-accent); background: radial-gradient(circle, var(--psg-accent) 0 35%, transparent 40%); }
.tabs__panel { padding: 1.6rem 1.6rem 1.2rem; }
.tabs__heading { margin-bottom: .5rem; }

/* ==========================================================================
   Tradition
   ========================================================================== */

.tradition { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.tradition--noimg { grid-template-columns: 1fr; }
.customs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.customs__item { padding: 1.6rem 1.6rem 1.6rem 0; border-top: 1px solid var(--psg-line); }
.customs__item:nth-child(even) { padding-left: 1.6rem; padding-right: 0; border-left: 1px solid var(--psg-line); }
.customs__title { display: flex; align-items: center; gap: .65rem; }
.customs__title::before {
	content: "";
	flex: none;
	width: 1.05rem; height: 1.05rem;
	border-radius: 50%;
	background: radial-gradient(circle, var(--psg-accent) 0 22%, transparent 26% 48%, var(--psg-accent) 52% 62%, transparent 66%);
	box-shadow: 0 0 0 2px var(--psg-accent);
}
.customs__item p { margin: 0; color: var(--psg-muted); }
@media (max-width: 900px) { .tradition { grid-template-columns: 1fr; } .tradition__img { max-width: 30rem; } }
@media (max-width: 560px) {
	.customs { grid-template-columns: 1fr; }
	.customs__item, .customs__item:nth-child(even) { padding: 1.3rem 0; border-left: 0; }
}

/* ==========================================================================
   Vereinsleben
   ========================================================================== */

.sec--vereinsleben { background: var(--psg-primary); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.col-text { padding-top: 1.2rem; border-top: 2px solid var(--psg-accent); }
.col-text p { color: rgba(255, 255, 255, .82); margin: 0; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }

.carousel { position: relative; }
.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 48%);
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: .75rem;
}
.carousel__item { margin: 0; scroll-snap-align: start; }
.carousel__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--psg-radius); }
.carousel__item figcaption { margin-top: .6rem; font-family: var(--psg-serif); font-style: italic; font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.carousel__nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.carousel__btn {
	display: grid;
	place-items: center;
	width: 2.75rem; height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.carousel__btn:hover { background: #fff; color: var(--psg-primary); }
@media (max-width: 640px) { .carousel__track { grid-auto-columns: 85%; } }

/* ==========================================================================
   Aktivitäten
   ========================================================================== */

.activities { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.activities--noimg { grid-template-columns: 1fr; }
.activities__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 2rem; margin: 0; padding: 0; list-style: none; }
.activity { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.activity__icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--psg-tint); overflow: hidden; }
.activity__icon img { width: 100%; height: 100%; object-fit: cover; }
.activity__icon .ornament { width: 2.5rem; margin: 0; }
.activity__title { margin: .3rem 0 .35rem; font-size: 1.25rem; }
.activity p { margin: 0; color: var(--psg-muted); }
@media (max-width: 960px) { .activities { grid-template-columns: 1fr; } .activities__img { max-width: 34rem; } }
@media (max-width: 560px) { .activities__list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Beiträge (Karten)
   ========================================================================== */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--psg-radius); overflow: hidden; box-shadow: 0 1px 0 var(--psg-line); }
.sec--alt .card { box-shadow: none; }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--psg-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: grid; place-items: center; height: 100%; }
.card__placeholder .ornament { width: 140px; margin: 0; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .5rem; font-size: .92rem; color: var(--psg-muted); }
.card__cat { color: var(--psg-accent); font-weight: 700; }
.card__title { margin: 0 0 .5rem; font-size: 1.4rem; }
.card__title a { color: var(--psg-primary); text-decoration: none; }
.card__title a:hover { color: var(--psg-accent); }
.card__excerpt { color: var(--psg-muted); font-size: 1.02rem; }
.card__excerpt p { margin: 0 0 1rem; }
.card__more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__more::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .4em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); }

/* ==========================================================================
   Artefakte (Galerie)
   ========================================================================== */

.masonry { columns: 3 260px; column-gap: 1.25rem; }
.masonry--few { columns: 2 260px; max-width: 54rem; }
.masonry__item { break-inside: avoid; margin: 0 0 1.25rem; }
.masonry__item a { display: block; border-radius: var(--psg-radius); overflow: hidden; background: var(--psg-tint); }
.masonry__item img { width: 100%; transition: transform .5s, filter .3s; }
.masonry__item a:hover img { transform: scale(1.03); }
.masonry__item figcaption { margin-top: .5rem; font-family: var(--psg-serif); font-style: italic; color: var(--psg-muted); }

/* ==========================================================================
   Termine
   ========================================================================== */

.termine .gek-cal { margin: 0; }
.termine .gek-day { background: #fff; }
.termine .gek-grid { background: #fff; }

/* ==========================================================================
   Vereinsheim mieten
   ========================================================================== */

.mosaic {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(160px, 17vw, 240px);
	gap: 12px;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mosaic__item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--psg-tint); isolation: isolate; }
.mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic--1 .mosaic__item { grid-column: 1 / -1; grid-row: span 2; }
.mosaic--2 .mosaic__item { grid-column: span 2; grid-row: span 2; }
.mosaic--3 .mosaic__item:not(:first-child) { grid-column: span 2; }
.mosaic--4 .mosaic__item:last-child { grid-column: span 2; }

.mosaic__link { position: relative; display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.mosaic__link:hover, .mosaic__link:focus-visible { color: #fff; }
.mosaic__link:focus-visible { outline: none; }
.mosaic__link img {
	width: 100%; height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	filter: saturate(.92);
	transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s;
}

/* Verlauf, der beim Überfahren in Schützengrün übergeht */
.mosaic__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(10, 24, 16, .78) 100%);
	transition: background-color .5s, opacity .5s;
}
.mosaic__shade::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(160deg, color-mix(in srgb, var(--psg-primary) 15%, transparent), color-mix(in srgb, var(--psg-deep) 82%, transparent));
	opacity: 0;
	transition: opacity .5s;
}

/* Messingrahmen, der sich von außen nach innen zieht */
.mosaic__link::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid var(--psg-accent);
	border-radius: 8px;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity .45s, transform .6s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}

/* Scheiben-Symbol in der Mitte */
.mosaic__zoom {
	position: absolute;
	left: 50%; top: 50%;
	width: 64px; height: 64px;
	margin: -32px 0 0 -32px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
	opacity: 0;
	transform: scale(.6) rotate(-45deg);
	transition: opacity .4s, transform .55s cubic-bezier(.2, .9, .3, 1.3);
}
.mosaic__zoom svg { width: 38px; height: 38px; }
.mosaic__zoom circle, .mosaic__zoom path { fill: none; stroke: #fff; stroke-width: 2; }
.mosaic__zoom circle:last-of-type { fill: var(--psg-accent); stroke: var(--psg-accent); }

.mosaic__cap {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 1.1rem 1.25rem 1.05rem;
	display: flex; flex-direction: column; gap: .1rem;
	transform: translateY(.35rem);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mosaic__title {
	font-family: var(--psg-serif);
	font-size: clamp(1.1rem, 1.6vw, 1.45rem);
	line-height: 1.2;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.mosaic__item:first-child .mosaic__title { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.mosaic__hint {
	display: inline-flex; align-items: center; gap: .4rem;
	font-size: .85rem; font-weight: 700;
	color: var(--psg-accent);
	opacity: 0;
	transform: translateY(.4rem);
	transition: opacity .4s .05s, transform .5s .05s;
}
.mosaic__hint::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; }

.mosaic__more {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--psg-deep) 70%, transparent);
	font-family: var(--psg-serif);
	font-size: clamp(2rem, 3.5vw, 2.8rem);
	line-height: 1;
	transition: background-color .4s;
}
.has-more .mosaic__cap { opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.has-more:hover .mosaic__cap, .has-more:focus-visible .mosaic__cap { opacity: 1; }
.mosaic__more small { margin-top: .4rem; font-family: var(--psg-sans); font-size: .9rem; font-weight: 700; color: var(--psg-accent); }

@media (hover: hover) {
	.mosaic__link:hover img, .mosaic__link:focus-visible img { transform: scale(1.08); filter: saturate(1.05); }
	.mosaic__link:hover .mosaic__shade::after, .mosaic__link:focus-visible .mosaic__shade::after { opacity: .7; }
	.mosaic__link:hover::after, .mosaic__link:focus-visible::after { opacity: 1; transform: scale(1); }
	.mosaic__link:hover .mosaic__zoom, .mosaic__link:focus-visible .mosaic__zoom { opacity: 1; transform: scale(1) rotate(0); }
	.mosaic__link:hover .mosaic__cap, .mosaic__link:focus-visible .mosaic__cap { transform: translateY(0); }
	.mosaic__link:hover .mosaic__hint, .mosaic__link:focus-visible .mosaic__hint { opacity: 1; transform: none; }
	.mosaic__link:hover .mosaic__more { background: transparent; }
	.mosaic__link:hover .mosaic__more { opacity: 0; transition: opacity .4s; }
	.mosaic:hover .mosaic__item:not(:hover) img { filter: saturate(.7) brightness(.85); }
}
@media (hover: none) {
	.mosaic__hint { opacity: 1; transform: none; }
}

.mosaic__placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
	height: 100%;
	color: var(--psg-primary);
	background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(28, 58, 42, .04) 14px 28px);
}
.mosaic__placeholder .icon { width: 2.6rem; height: 2.6rem; opacity: .35; }
.mosaic__placeholder span { font-family: var(--psg-serif); font-size: 1.1rem; opacity: .6; }

@media (max-width: 760px) {
	.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
	.mosaic .mosaic__item { grid-column: span 1; grid-row: span 1; border-radius: 10px; }
	.mosaic .mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
	.mosaic--2 .mosaic__item:last-child, .mosaic--4 .mosaic__item:last-child { grid-column: span 2; }
	.mosaic__cap { padding: .8rem .9rem; }
}

.rent { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rent__features { margin: 0; padding: 0; list-style: none; }
.rent__feature { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--psg-line); }
.rent__feature:first-child { border-top: 0; padding-top: 0; }
.rent__feature h3 { margin: .2rem 0 .35rem; }
.rent__feature p { margin: 0; color: var(--psg-muted); }
.rent__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; background: var(--psg-tint); }
.rent__icon img { width: 100%; height: 100%; object-fit: cover; }

.booking {
	position: sticky;
	top: calc(var(--psg-header) + 1.5rem);
	padding: 1.8rem;
	background: var(--psg-paper);
	border-top: 4px solid var(--psg-accent);
	border-radius: var(--psg-radius);
}
.booking__title { margin-bottom: 1rem; }
.booking__facts { margin: 0 0 1rem; }
.booking__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--psg-line); }
.booking__facts dt { display: flex; align-items: center; gap: .45rem; color: var(--psg-muted); }
.booking__facts dd { margin: 0; font-weight: 700; text-align: right; }
.booking__phone { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 .8rem; font-family: var(--psg-serif); font-size: 1.8rem; font-weight: 700; color: var(--psg-primary); text-decoration: none; }
.booking__phone .icon { color: var(--psg-accent); }
.booking__note { font-size: 1rem; color: var(--psg-muted); }
@media (max-width: 900px) { .rent { grid-template-columns: 1fr; } .booking { position: static; } }

/* ==========================================================================
   Schützen werden
   ========================================================================== */

.sec--cta { overflow: hidden; background: var(--psg-deep); }
.cta { position: relative; max-width: 46rem; }
.cta__title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.cta__text { font-size: 1.2rem; color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.cta__target {
	position: absolute;
	right: -6rem; top: 50%;
	width: clamp(320px, 42vw, 560px);
	transform: translateY(-50%);
	color: var(--psg-accent);
	opacity: .22;
	pointer-events: none;
}
.cta__target circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.cta__target .cta__bull { fill: currentColor; }

/* ==========================================================================
   Unterseiten
   ========================================================================== */

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.5rem); background: var(--psg-primary); color: var(--psg-on-dark); }
.page-head__title { margin: 0 0 .3em; color: #fff; }
.page-head__sub { margin: 0; color: rgba(255, 255, 255, .8); }
.ornament--light { color: var(--psg-accent); }

.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 50rem; }
.page-body--wide { max-width: var(--psg-wrap); }

.with-aside { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.with-aside__nav { position: sticky; top: calc(var(--psg-header) + 1.5rem); }
.verein-nav { padding: 1.3rem; background: var(--psg-paper); border-top: 4px solid var(--psg-accent); border-radius: var(--psg-radius); }
.verein-nav__title { margin: 0 0 .6rem; font-family: var(--psg-serif); font-size: 1.25rem; color: var(--psg-primary); }
.verein-nav__list { margin: 0; padding: 0; list-style: none; }
.verein-nav__list a { display: block; padding: .5rem .7rem; border-radius: var(--psg-radius); color: var(--psg-ink); text-decoration: none; }
.verein-nav__list a:hover { background: #fff; color: var(--psg-primary); }
.verein-nav__list .current-menu-item > a, .verein-nav__list .current_page_item > a { background: var(--psg-primary); color: #fff; }
@media (max-width: 860px) {
	.with-aside { grid-template-columns: 1fr; }
	.with-aside__nav { position: static; }
	.verein-nav__list { display: flex; flex-wrap: wrap; gap: .3rem; }
}

.entry { min-width: 0; }
.entry__thumb { margin-bottom: 2.5rem; }
.entry__content { max-width: 46rem; }
.entry__content > * { margin-block: 0 1.2em; }
.entry__content h2 { margin-top: 1.8em; font-size: 2rem; }
.entry__content h3 { margin-top: 1.5em; }
.entry__content blockquote { padding-left: 1.2em; border-left: 3px solid var(--psg-accent); font-family: var(--psg-serif); font-style: italic; font-size: 1.2rem; }
.entry__content table { width: 100%; border-collapse: collapse; }
.entry__content th, .entry__content td { padding: .6rem .7rem; border-bottom: 1px solid var(--psg-line); text-align: left; }
.entry__content .alignwide { max-width: none; }
.entry__content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: var(--psg-paper); border-radius: var(--psg-radius); }
.entry__content .wp-block-file__button { background: var(--psg-primary); border-radius: var(--psg-radius); }
.entry__content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.entry__content .gallery-item { margin: 0; }
.entry__content .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--psg-radius); }
.entry__tags { font-size: .95rem; color: var(--psg-muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--psg-line); }
.post-nav div:last-child { text-align: right; }
.post-nav a { display: block; font-family: var(--psg-serif); font-size: 1.15rem; text-decoration: none; }
.post-nav span { display: block; font-family: var(--psg-sans); font-size: .9rem; color: var(--psg-muted); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--psg-line); border-radius: var(--psg-radius); text-decoration: none; }
.pagination .page-numbers.current { background: var(--psg-primary); border-color: var(--psg-primary); color: #fff; }

.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.search-form label { flex: 1; }
.search-field, .gilde-form input:not([type="checkbox"]):not([type="radio"]), .gilde-form select, .gilde-form textarea, .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid rgba(27, 31, 28, .28);
	border-radius: var(--psg-radius);
	background: #fff;
	color: var(--psg-ink);
	font: inherit;
	font-size: 1rem;
}
.search-submit { padding: .75rem 1.2rem; background: var(--psg-primary); color: #fff; border: 0; border-radius: var(--psg-radius); font: inherit; font-weight: 700; cursor: pointer; }

/* Vorstand */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.board__photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; border-radius: var(--psg-radius); overflow: hidden; background: var(--psg-tint); }
.board__photo img { width: 100%; height: 100%; object-fit: cover; }
.board__initial { display: grid; place-items: center; height: 100%; font-family: var(--psg-serif); font-size: 4rem; color: var(--psg-primary); opacity: .4; }
.board__role { margin: 0 0 .15rem; color: var(--psg-accent); font-weight: 700; }
.board__name { margin: 0 0 .5rem; font-size: 1.4rem; }
.board__text { color: var(--psg-muted); font-size: 1rem; }
.board__text p { margin: 0 0 .6rem; }
.board__contact { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0 0; font-size: 1rem; }
.board__contact a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }

/* Sponsoren */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.sponsors__item { padding: 1.25rem; border: 1px solid var(--psg-line); border-radius: var(--psg-radius); }
.sponsors__item > a, .sponsors__item > div { display: block; color: inherit; text-decoration: none; }
.sponsors__logo { display: grid; place-items: center; height: 110px; margin-bottom: .8rem; }
.sponsors__logo img { max-height: 110px; width: auto; object-fit: contain; }
.sponsors__fallback { font-family: var(--psg-serif); font-size: 1.4rem; color: var(--psg-primary); text-align: center; }
.sponsors__name { display: block; font-weight: 700; }
.sponsors__text { margin-top: .4rem; font-size: .98rem; color: var(--psg-muted); }

/* ==========================================================================
   Anfrageformular
   ========================================================================== */

.gilde-form { max-width: 46rem; scroll-margin-top: calc(var(--psg-header) + 20px); }
.form-types { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
.form-types legend { margin-bottom: .6rem; font-weight: 700; }
.form-type input { position: absolute; opacity: 0; }
.form-type span { display: inline-block; padding: .55rem 1rem; border: 1px solid rgba(27, 31, 28, .28); border-radius: 999px; cursor: pointer; }
.form-type input:checked + span { background: var(--psg-primary); border-color: var(--psg-primary); color: #fff; }
.form-type input:focus-visible + span { outline: 3px solid var(--psg-accent); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-field { margin: 0 0 1.1rem; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: 1rem; }
.form-field[hidden] { display: none; }
.req { color: #9c2b2b; }
.form-consent label { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }
.form-consent input { margin-top: .35rem; }
.form-note { font-size: .9rem; color: var(--psg-muted); }
.form-notice { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--psg-radius); }
.form-notice p:last-child, .form-notice ul:last-child { margin-bottom: 0; }
.form-notice--ok { background: var(--psg-tint); border-left: 4px solid var(--psg-primary); }
.form-notice--err { background: #fbeeee; border-left: 4px solid #9c2b2b; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Kommentare */
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--psg-line); }
.comments__list { padding-left: 0; list-style: none; }
.comments__list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--psg-line); }
.comment-form p { margin-bottom: 1rem; }

.notfound { text-align: left; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */

.site-footer { background: var(--psg-deep); color: rgba(255, 255, 255, .82); font-size: 1.02rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--psg-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; box-shadow: 0 0 0 2px var(--psg-accent); }
.site-footer__name { margin: 0 0 .8rem; font-family: var(--psg-serif); font-size: 1.25rem; color: #fff; line-height: 1.3; }
.site-footer address { font-style: normal; }
.site-footer__h { margin: 0 0 1rem; font-family: var(--psg-serif); font-size: 1.2rem; color: var(--psg-accent); }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: .45rem; }
.site-footer__contact li { display: flex; gap: .55rem; align-items: flex-start; }
.site-footer__contact .icon { margin-top: .3rem; color: var(--psg-accent); }
.site-footer__partners { padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__partners ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__partners img { height: 64px; width: auto; border-radius: 3px; background: #fff; padding: 4px; }
.site-footer__bottom { padding-block: 1.1rem; background: rgba(0, 0, 0, .2); font-size: .95rem; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer__bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	padding: 3.5rem 4.5rem 1.5rem;
	background: rgba(8, 16, 11, .94);
	color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__cap { margin: 1rem 0 0; font-family: var(--psg-serif); font-style: italic; font-size: 1.15rem; text-align: center; }
.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: rgba(0, 0, 0, .3);
	color: #fff;
	cursor: pointer;
}
.lightbox__btn:hover { background: #fff; color: var(--psg-primary); }
.lightbox__close { top: 1rem; right: 1rem; font-size: 1.6rem; line-height: 1; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.lightbox { padding: 3.5rem .75rem 1rem; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}

/* WordPress-Standardklassen */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .95rem; color: var(--psg-muted); }
.sticky .card__title::before { content: "★ "; color: var(--psg-accent); }

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