/* =========================================================================
   Fischereiverein München – theme styles
   Rebuilt from the previous site's design (Tailwind-based) in plain CSS.
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bitter-v39-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bitter-v39-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bitter-v39-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/work-sans-v19-latin-regular.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--bg: #f3f4f6;
	--surface: #ffffff;
	--surface-2: #f9fafb;
	--text: #111827;
	--text-2: #374151;
	--muted: #6b7280;
	--border: #e5e7eb;
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--primary-soft: #dbeafe;
	--chip-dark: #111827;
	--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 12px rgb(0 0 0 / .06);
	--shadow-lg: 0 10px 30px rgb(0 0 0 / .12);
	--radius: 12px;
	--radius-sm: 8px;
	--header-h: 64px;
	--font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-title: "Bitter", Georgia, "Times New Roman", serif;
	--deco-opacity: .28;

	--tone-blue-bg: #dbeafe;   --tone-blue-fg: #1d4ed8;
	--tone-orange-bg: #ffedd5; --tone-orange-fg: #c2410c;
	--tone-green-bg: #dcfce7;  --tone-green-fg: #15803d;
	--tone-red-bg: #fee2e2;    --tone-red-fg: #b91c1c;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #111827; --surface: #1f2937; --surface-2: #273244; --text: #f9fafb; --text-2: #d1d5db; --muted: #9ca3af;
		--border: #374151; --primary: #60a5fa; --primary-hover: #93c5fd; --primary-soft: rgb(59 130 246 / .18); --chip-dark: #030712;
		--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .3); --deco-opacity: .12;
		--tone-blue-bg: rgb(59 130 246 / .18);  --tone-blue-fg: #93c5fd;
		--tone-orange-bg: rgb(249 115 22 / .18); --tone-orange-fg: #fdba74;
		--tone-green-bg: rgb(34 197 94 / .18);  --tone-green-fg: #86efac;
		--tone-red-bg: rgb(239 68 68 / .18);    --tone-red-fg: #fca5a5;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #111827; --surface: #1f2937; --surface-2: #273244; --text: #f9fafb; --text-2: #d1d5db; --muted: #9ca3af;
	--border: #374151; --primary: #60a5fa; --primary-hover: #93c5fd; --primary-soft: rgb(59 130 246 / .18); --chip-dark: #030712;
	--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .3); --deco-opacity: .12;
	--tone-blue-bg: rgb(59 130 246 / .18);  --tone-blue-fg: #93c5fd;
	--tone-orange-bg: rgb(249 115 22 / .18); --tone-orange-fg: #fdba74;
	--tone-green-bg: rgb(34 197 94 / .18);  --tone-green-fg: #86efac;
	--tone-red-bg: rgb(239 68 68 / .18);    --tone-red-fg: #fca5a5;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 16px; position: relative; z-index: 1; }
.container--narrow { max-width: 1040px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.site-main { position: relative; padding-top: var(--header-h); min-height: 60vh; }
.section { padding-block: 32px 64px; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: .8125rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; }
.meta__dot { color: var(--muted); padding-inline: 4px; }

/* Icons */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.icon--xs { width: 14px; height: 14px; vertical-align: -2px; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon--red { color: #ef4444; }

/* ---------- Buttons, labels, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); font: 600 .9rem/1.2 var(--font-body); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #0b1220; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary-soft); }
.btn--sm { padding: 7px 12px; font-size: .8125rem; }

.label { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.label.tone-blue, .label.tone-orange, .label.tone-green, .label.tone-red { padding: 3px 10px; border-radius: 999px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chip { font-size: .72rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.chips--dark .chip { background: var(--chip-dark); color: #fff; }
.chips--dark .chip--more { background: var(--border); color: var(--text-2); }
.chips--glass .chip { background: rgb(17 24 39 / .7); color: #fff; backdrop-filter: blur(4px); }
.chips--blue .chip { background: var(--primary-soft); color: var(--primary); }

.tone-blue { --tone-bg: var(--tone-blue-bg); --tone-fg: var(--tone-blue-fg); }
.tone-orange { --tone-bg: var(--tone-orange-bg); --tone-fg: var(--tone-orange-fg); }
.tone-green { --tone-bg: var(--tone-green-bg); --tone-fg: var(--tone-green-fg); }
.tone-red { --tone-bg: var(--tone-red-bg); --tone-fg: var(--tone-red-fg); }
.label[class*="tone-"], .event-mini__cat { color: var(--tone-fg); background: var(--tone-bg); }

/* ---------- Header & navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); transition: background .25s, border-color .25s; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { color: var(--primary); }
.brand__logo { width: 40px; height: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; font-size: .95rem; }
@media (min-width: 640px) { .brand__logo { width: 44px; } .brand__name { flex-direction: row; gap: .3em; } }

/* Transparent header over the video, solid after scrolling (JS adds .is-solid). */
@media (min-width: 1024px) {
	.site-header--overlay:not(.is-solid):not(.nav-open) { background: transparent; border-color: transparent; backdrop-filter: none; }
	.site-header--overlay:not(.is-solid):not(.nav-open) .brand,
	.site-header--overlay:not(.is-solid):not(.nav-open) .nav__link,
	.site-header--overlay:not(.is-solid):not(.nav-open) .nav__toggle,
	.site-header--overlay:not(.is-solid):not(.nav-open) .icon-btn { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .4); }
}

.site-header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon--sun, :root[data-theme="dark"] .icon--moon { display: none; }
:root[data-theme="dark"] .icon--sun { display: inline-block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon--moon { display: none; } :root:not([data-theme="light"]) .icon--sun { display: inline-block; } }

.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 12px; color: var(--text); font-size: .95rem; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__toggle { border: 0; background: none; color: var(--text); cursor: pointer; padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.nav__toggle .icon { transition: transform .2s; }
.nav__item.is-open > .nav__toggle .icon { transform: rotate(180deg); }
.nav__sublink { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.nav__sublink:hover, .nav__sublink[aria-current] { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--text); }
.nav__subtitle { font-weight: 600; font-size: .9rem; }
.nav__desc { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Desktop: horizontal with dropdown panels */
@media (min-width: 1024px) {
	.nav { margin-left: auto; }
	.nav__list { display: flex; align-items: center; gap: 2px; }
	.nav__item { position: relative; display: flex; align-items: center; }
	.nav__item--parent > .nav__link { padding-right: 2px; }
	.nav__panel { position: absolute; top: calc(100% + 10px); left: 50%; width: max-content; max-width: 640px; min-width: 260px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; }
	.nav__panel::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
	.nav__item--parent:hover > .nav__panel, .nav__item.is-open > .nav__panel, .nav__item--parent:focus-within > .nav__panel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
	.nav__sub { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 2px; }
	.nav-burger { display: none; }
}

/* Mobile: slide-down panel */
@media (max-width: 1023.98px) {
	/* Absolute to the fixed header with an explicit height: the header's backdrop-filter makes it the
	   containing block for fixed children, so "position: fixed; inset: …" collapsed the panel to 0 px. */
	.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--surface); overflow-y: auto; padding: 12px 16px 40px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
	.site-header.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
	.site-header.nav-open { background: var(--surface); }
	.nav__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--border); }
	.nav__link { padding: 14px 4px; font-size: 1.05rem; font-weight: 600; }
	.nav__link::after { display: none; }
	.nav__toggle { width: 48px; }
	.nav__panel { grid-column: 1 / -1; display: none; padding-bottom: 10px; }
	.nav__item.is-open > .nav__panel { display: block; }
	.icon--close, .nav-open .icon--open { display: none; }
	.nav-open .icon--close { display: inline-block; }
}

/* ---------- Decorations ---------- */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco__item { position: absolute; width: 96px; opacity: var(--deco-opacity); filter: grayscale(1); }
:root[data-theme="dark"] .deco__item { filter: grayscale(1) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deco__item { filter: grayscale(1) invert(1); } }
.deco--l1 { left: -10px; top: 200px; transform: rotate(-12deg); }
.deco--r1 { right: 0; top: 420px; }
.deco--l2 { left: 20px; top: 900px; width: 72px; }
.deco--r2 { right: 30px; top: 1300px; width: 72px; }
.deco--l3 { left: 10px; top: 1700px; }
@media (max-width: 1399px) { .deco { display: none; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.card--pad { padding: 20px; }
@media (min-width: 640px) { .card--pad { padding: 24px; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.card__head .section-title { margin: 0; }
.card--link { transition: transform .2s, box-shadow .2s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media--tall { aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card--link:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; }
.card__placeholder img { width: 72px; height: auto; opacity: .2; object-fit: contain; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0; }
.card__title a { color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__excerpt { color: var(--text-2); font-size: .875rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.card__more { font-weight: 600; font-size: .875rem; position: relative; z-index: 1; }
.post-card .card__body .label { margin: 0; }

.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid > .card { display: flex; flex-direction: column; }

.section-title { font-size: 1.35rem; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.section-title--sm { font-size: 1.15rem; }

/* ---------- Page header & breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; padding-inline: 4px; }
.breadcrumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.page-header { margin-bottom: 28px; }
.page-header--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 0 0 8px; }
.page-intro { color: var(--text-2); max-width: 760px; margin: 0; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter__btn { padding: 7px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 500; box-shadow: var(--shadow); }
.filter__btn--pill { border-radius: 999px; box-shadow: none; background: transparent; }
.filter__btn:hover { color: var(--primary); }
.filter__btn.is-active { background: var(--primary); color: #fff; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- Hero (start page) ---------- */
.hero { position: relative; height: clamp(520px, 78vh, 760px); margin-top: calc(var(--header-h) * -1); display: grid; place-items: center; color: #fff; overflow: hidden; background: #1e293b; }
.hero__media, .hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
.hero__shade { background: linear-gradient(180deg, rgb(15 23 42 / .35) 0%, rgb(15 23 42 / .1) 40%, rgb(15 23 42 / .35) 100%); }
.hero__box { position: relative; margin: 0 16px 90px; max-width: 880px; text-align: center; padding: 22px 28px; background: rgb(30 41 59 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); }
.hero__title { color: #fff; font-size: clamp(1.9rem, 5vw, 3.1rem); margin: 0 0 8px; }
.hero__text { margin: 0; font-size: clamp(.95rem, 2vw, 1.1rem); color: rgb(255 255 255 / .85); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; fill: var(--bg); }
@media (prefers-reduced-motion: reduce) { .hero__video[autoplay] { display: none; } }

/* ---------- Start page ---------- */
.home { position: relative; padding-bottom: 64px; }
.home > .container { display: grid; gap: 32px; }
.quicklinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -110px; position: relative; z-index: 2; }
@media (min-width: 1024px) { .quicklinks { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.quicklink { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: var(--text); transition: transform .2s, box-shadow .2s; }
.quicklink:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.quicklink__title { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; }
.quicklink__text { font-size: .85rem; color: var(--text-2); line-height: 1.45; }

.about-teaser { display: grid; gap: 24px; padding: 20px; }
@media (min-width: 768px) { .about-teaser { grid-template-columns: 1fr 1fr; align-items: center; padding: 32px; } }
.about-teaser__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.about-teaser__body p { color: var(--text-2); line-height: 1.75; }

.home-split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .home-split { grid-template-columns: 1fr 1fr; align-items: start; } }

.water-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.water-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #1e293b; color: #fff; }
.water-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.water-tile:hover .water-tile__img { transform: scale(1.05); }
.water-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .05) 45%, rgb(0 0 0 / .45) 100%); }
.water-tile__body { position: absolute; inset: 0; z-index: 1; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.water-tile__title { font-family: var(--font-title); font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.water-tile:hover { color: #fff; }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; color: var(--text); }
.news-item:hover { color: var(--text); }
.news-item:hover .news-item__title { color: var(--primary); }
.news-item__thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-item__title { font-family: var(--font-title); font-weight: 600; line-height: 1.25; }
.news-item__excerpt { font-size: .8125rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.event-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .event-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .event-row { grid-template-columns: repeat(3, 1fr); } }
.event-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-mini { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .04); height: 100%; }
.event-mini:hover { border-color: var(--primary); color: var(--text); }
.event-mini__body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.event-mini__title { font-family: var(--font-title); font-weight: 600; line-height: 1.25; }
.event-mini__cat { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }

.date-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; padding: 6px 4px; border-radius: var(--radius-sm); background: var(--tone-bg, var(--primary-soft)); color: var(--tone-fg, var(--primary)); font-family: var(--font-title); font-weight: 700; line-height: 1.1; }
.date-badge--blue { --tone-bg: var(--tone-blue-bg); --tone-fg: var(--tone-blue-fg); }
.date-badge--orange { --tone-bg: var(--tone-orange-bg); --tone-fg: var(--tone-orange-fg); }
.date-badge--green { --tone-bg: var(--tone-green-bg); --tone-fg: var(--tone-green-fg); }
.date-badge--red { --tone-bg: var(--tone-red-bg); --tone-fg: var(--tone-red-fg); }
.date-badge__day { font-size: 1.25rem; }
.date-badge__month { font-size: .9rem; }

.youth { display: grid; }
@media (min-width: 1024px) { .youth { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; } .youth__media { grid-row: 1; } .youth__body { grid-row: 2; } .youth__events { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--border); } }
.youth__media { position: relative; margin-bottom: 30px; }
.youth__media > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.youth__icons { position: absolute; left: 16px; right: 16px; bottom: -28px; display: flex; justify-content: space-around; }
.youth__icons span { display: grid; place-items: center; width: 52px; height: 52px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
.youth__icons span:nth-child(odd) { transform: rotate(-6deg); }
.youth__icons span:nth-child(even) { transform: rotate(5deg) translateY(-4px); }
:root[data-theme="dark"] .youth__icons img { filter: invert(1); }
.youth__body, .youth__events { padding: 20px 24px 28px; }
.youth__body p { color: var(--text-2); }

/* ---------- Water cards & cover ---------- */
.water-card .chips { margin-top: -2px; }

.cover { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; background: #1e293b; }
@media (min-width: 768px) { .cover { min-height: 380px; } }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 25%, rgb(0 0 0 / .78) 100%); }
.cover__content { position: relative; z-index: 1; padding: 24px; display: grid; gap: 8px; }
@media (min-width: 768px) { .cover__content { padding: 28px 32px; } }
.cover__meta { display: flex; align-items: center; gap: 4px; margin: 0; font-size: .9rem; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .7); }
.cover__meta .meta__dot { color: #fff; }
.cover__title { text-shadow: 0 2px 8px rgb(0 0 0 / .45); }
.cover__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0; }
.cover--plain { min-height: 200px; }

/* ---------- Articles ---------- */
.article__body { padding: 24px 20px 32px; display: grid; gap: 28px; }
@media (min-width: 768px) { .article__body { padding: 28px 32px 36px; } }
.article--pad { padding: 24px 20px 32px; display: grid; gap: 24px; }
@media (min-width: 768px) { .article--pad { padding: 32px; } }
.article__title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0; }
.article__head { display: grid; gap: 6px; justify-items: start; }
.article__cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article__cover--contain { background: var(--surface-2); }
.article__cover--contain img { object-fit: contain; max-height: 640px; margin-inline: auto; }
.article__back { margin: 0; }
.link-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }

.prose { color: var(--text-2); line-height: 1.75; font-size: .97rem; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1em; }
.prose > h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose > h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose > h4 { font-size: 1.05rem; margin-top: 1.2em; }
.prose > :is(h2, h3, h4) + * { margin-top: .5em; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .3em; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 0; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.facts li { display: flex; gap: 8px; align-items: center; }
.event-head { display: flex; gap: 18px; align-items: center; }
.event-head .date-badge { width: 72px; padding: 10px 6px; }
.event-head .date-badge__day { font-size: 1.6rem; }

.notice { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--text-2); margin: 0; }
.notice--error { background: var(--tone-red-bg); color: var(--tone-red-fg); }
.callout { padding: 16px 18px; background: var(--surface-2); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); margin-top: 16px; }

/* Map with click-to-load */
.map-consent { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.map-consent__inner { max-width: 420px; text-align: center; padding: 24px; display: grid; gap: 12px; justify-items: center; color: var(--text-2); font-size: .9rem; }
.map-consent__inner p { margin: 0; }
.map-consent iframe { width: 100%; height: 100%; border: 0; }

/* Gallery */
.gallery-block .section-title { margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox__close { position: absolute; top: -48px; right: 0; color: #fff; }

/* Downloads */
.downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.downloads a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); word-break: break-word; }
.downloads a:hover { border-color: var(--primary); color: var(--primary); }
.downloads a span { flex: 1; }
.downloads small { color: var(--muted); white-space: nowrap; }

/* ---------- Events overview ---------- */
.event-cat { display: flex; flex-direction: column; }
.event-cat__head { background: var(--tone-bg); color: var(--tone-fg); padding: 18px 22px; }
.event-cat__head p { margin: 4px 0 0; font-size: .9rem; }
.event-cat__title { font-size: 1.35rem; margin: 0; color: var(--tone-fg); }
.event-cat__title a { color: inherit; }
.event-cat__body { padding: 6px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.event-cat__empty { padding-top: 16px; margin: 0; }
.event-cat__more { margin: auto 0 0; padding-top: 18px; text-align: center; }
.event-cat .btn--primary { background: var(--tone-fg); }
.event-cat .btn--primary:hover { filter: brightness(.92); background: var(--tone-fg); }
:root[data-theme="dark"] .event-cat .btn--primary { color: #0b1220; }
.event-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.event-item:last-of-type { border-bottom: 0; }
.event-item__title { font-size: 1.05rem; margin: 0 0 6px; }
.event-item__title a { color: var(--text); }
.event-item__title a:hover { color: var(--primary); }
.event-item__meta { margin: 2px 0 0; display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: .875rem; }
.past-events { margin-top: 24px; }
.past-events summary { cursor: pointer; padding: 16px 22px; font-weight: 600; }

/* ---------- Pages: board, tables, FAQ, teasers ---------- */
.board { padding-top: 40px; }
.board > .section-title { font-size: 1.8rem; }
.board__group { font-size: 1.35rem; margin: 28px 0 16px; }
.board__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .board__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.person { display: flex; flex-direction: column; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--surface-2); }
.person__body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.person__name { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.person__role { font-size: .85rem; color: var(--text-2); }

.teaser { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--text); }
.teaser:hover { color: var(--text); }
.teaser__title { font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; }
.teaser__text { font-size: .875rem; color: var(--text-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 500; }
.table .num { text-align: right; white-space: nowrap; }
@media (max-width: 639.98px) {
	.table thead { display: none; }
	.table, .table tbody, .table tr, .table th, .table td { display: block; }
	.table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
	.table tbody th { border: 0; padding-bottom: 4px; font-weight: 600; }
	.table td { border: 0; padding: 2px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}

.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq__item summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__chevron { transition: transform .2s; }
.faq__item .prose { padding: 0 16px 16px; }

/* ---------- Members area ---------- */
.login-card { max-width: 460px; margin: 0 auto; padding: 32px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.login-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.login-card form { width: 100%; text-align: left; display: grid; gap: 12px; }
.login-card form p { margin: 0; display: grid; gap: 4px; }
.login-card label { font-size: .875rem; font-weight: 500; }
.login-card input[type="text"], .login-card input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.login-card input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.login-card .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.login-card .button-primary { width: 100%; padding: 11px; border: 0; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }
.login-card .button-primary:hover { background: var(--primary-hover); }
.login-card__help { font-size: .85rem; color: var(--muted); margin: 0; }
.login-card .fvm-pw-login input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.login-card__alt { width: 100%; text-align: left; font-size: .85rem; }
.login-card__alt summary { cursor: pointer; color: var(--muted); text-align: center; padding: 4px 0; }
.login-card__alt[open] summary { margin-bottom: 12px; }
.intern-links { margin-bottom: 32px; }
.intern-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.intern-list a { display: grid; gap: 4px; padding: 16px 20px; color: var(--text); }
.intern-list__title { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.intern-list__excerpt { font-size: .875rem; color: var(--text-2); }

/* Top catches */
.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.stats li { display: grid; }
.stats strong { font-family: var(--font-title); font-size: 1.2rem; }
.stats span { font-size: .75rem; color: var(--muted); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.fact-grid div { padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.fact-grid dt { font-size: .75rem; color: var(--muted); }
.fact-grid dd { margin: 2px 0 0; font-weight: 600; }

.not-found { text-align: center; justify-items: center; }
.not-found img { opacity: .5; }
:root[data-theme="dark"] .not-found img { filter: invert(1); }
.not-found__links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Pagination */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; padding: 8px 12px; text-align: center; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand { display: flex; gap: 16px; align-items: center; }
.site-footer__brand img { width: 64px; }
.site-footer__name { font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.site-footer__tagline { font-size: .875rem; color: var(--text-2); margin: 0; }
.site-footer__heading { font-size: 1rem; margin: 0 0 10px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .875rem; }
.site-footer__links a { color: var(--text-2); }
.site-footer__links a:hover { color: var(--primary); }
.site-footer__bottom { display: grid; justify-items: center; gap: 6px; padding: 16px 16px 28px; font-size: .78rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }

/* ---------- Gutenberg block alignment inside .prose ---------- */
.prose .wp-block-image img { height: auto; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-image figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 6px; }
.prose .wp-block-button__link { background: var(--primary); color: #fff; border-radius: var(--radius-sm); padding: 9px 16px; text-decoration: none; }

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