/*
 * Wuhletal-Paten – public site styles.
 * Colors and fonts follow the previous Divi site (green #5e792b -> blue #0577a8,
 * Candal headings, Open Sans text). All presentation lives here; templates only
 * use semantic class names.
 */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: 'Candal'; src: url('../fonts/candal-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- design tokens ---------- */
:root {
  --green: #5e792b;
  --green-light: #7d9b3f;
  --blue: #0577a8;
  --blue-strong: #0c71c3;
  --sky: #e8f9ff;
  --mist: #f1f3f7;
  --text: #222;
  --muted: #5f6670;
  --line: #dfe5ea;
  --white: #fff;
  --radius: 15px;
  --shadow: 0 6px 24px rgba(20, 60, 90, .12);
  --font-head: 'Candal', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --container: 1120px;
  --icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --gutter: clamp(16px, 4vw, 32px);
  /* white wave at the bottom of hero and page heads: crest left, trough right */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70c240-60 480-60 720 0s480 60 720 0v70H0z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding: anchor targets stay visible below the sticky header (65px) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--white); }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--blue); margin: 1.4em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .6em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--white); padding: .5em 1em; }
.skip-link:focus { left: 1em; }
.hp { position: absolute; left: -9999px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.button {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: .7em 1.5em; font: 700 1rem var(--font-body); text-decoration: none;
  color: var(--white); background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.button:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 60, 90, .2); }

/* ---------- header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: .4rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* min-height keeps the header height independent of the logo size */
.brand { display: flex; align-items: center; gap: .6rem; min-height: 52px; text-decoration: none; color: var(--blue); }
.brand__logo { width: auto; height: 39px; }
.brand__name { font-family: var(--font-head); font-size: 1.15rem; }

.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: wrap; }
.main-nav__item { position: relative; }
.main-nav__item > a { display: block; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem; }
.main-nav__item > a:hover, .main-nav__item.is-active > a { color: var(--blue); background: var(--sky); }
.main-nav__sub { list-style: none; margin: 0; padding: .4rem; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.main-nav__item:hover > .main-nav__sub, .main-nav__item:focus-within > .main-nav__sub { opacity: 1; visibility: visible; transform: none; }
.main-nav__sub a { display: block; padding: .45rem .7rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.main-nav__sub a:hover, .main-nav__sub a[aria-current] { background: var(--sky); color: var(--blue); }
.main-nav__toggle { display: none; }

@media (max-width: 900px) {
  .main-nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--sky); cursor: pointer; }
  .main-nav__toggle-bars, .main-nav__toggle-bars::before, .main-nav__toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--blue); position: relative; transition: .2s; }
  .main-nav__toggle-bars::before, .main-nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
  .main-nav__toggle-bars::before { top: -7px; }
  .main-nav__toggle-bars::after { top: 7px; }
  .main-nav.is-open .main-nav__toggle-bars { background: transparent; }
  .main-nav.is-open .main-nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
  .main-nav.is-open .main-nav__toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .main-nav__list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--white); padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow); max-height: calc(100vh - 60px); overflow-y: auto; }
  .main-nav.is-open .main-nav__list { display: flex; }
  .main-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
}
/* Without JavaScript the menu is simply always visible. */
.no-js .main-nav__list { display: flex; }

/* ---------- hero with river video ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(380px, 70vh, 640px); display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--blue)); color: var(--white); padding: 3rem var(--gutter) 7rem; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* The wide hero crops the 16:9 video; anchor it at the top so the far bank stays visible. */
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; animation: hero-in 1.6s ease-out .3s both; }
.hero__logo { width: clamp(180px, 30vw, 380px); height: auto; border-radius: 50%; border: clamp(10px, 2vw, 22px) solid var(--white);
  box-shadow: -30px 22px 250px #e5e8ef; background: var(--white);
  /* as on the old site: the whole logo is slightly see-through over the video */
  opacity: .81; filter: contrast(108%) sepia(5%); }
/* wider screens: logo centred in the right half, like the old site */
@media (min-width: 48rem) { .hero__content { justify-self: end; width: 50%; } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 10vw, 140px); background: var(--white);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
          mask: var(--wave) center / 100% 100% no-repeat; }
@keyframes hero-in { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__content { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.site-main { padding-bottom: 3rem; }
.home-section, .events-block { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.home-section:nth-of-type(even) { background: var(--sky); }
.section-title { margin-top: 0; text-align: center; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; margin: .5em auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.home-section .prose { max-width: 760px; margin: 0 auto; }
.home-section--start-pate-werden { background: var(--blue-strong) !important; color: var(--white); }
.home-section--start-pate-werden .section-title, .home-section--start-pate-werden a { color: var(--white); }
.home-section--start-pate-werden h2:not(.section-title) { color: var(--white); font-size: clamp(1.3rem, 2.6vw, 1.75rem); text-align: center; }
.home-section--start-pate-werden .prose, .home-section--start-natur .prose, .home-section--start-team .prose { max-width: 960px; }
.home-section--start-pate-werden .cta { text-align: center; }
.home-section--start-haltung { background: var(--mist) !important; font-size: .95rem; color: var(--muted); }
.more-link { text-align: center; margin-top: 1.5rem; }

/* ---------- events ---------- */
.events-block--current { background: linear-gradient(180deg, var(--white), var(--sky)); }
.events-block--past { background: var(--mist); }
.events-empty { text-align: center; color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.event-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card__image img { transform: scale(1.04); }
.event-card__image { overflow: hidden; }
.event-card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.event-card__date { margin: 0; font-weight: 700; color: var(--green); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.event-card__time::before { content: ' · '; }
.event-card__title { margin: 0; font-size: 1.25rem; }
.event-card__title a { color: var(--blue); text-decoration: none; }
.event-card__title a:hover { color: var(--green); }
.event-card__location { margin: 0; color: var(--muted); font-size: .95rem; }
.event-card__location::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -.05em;
  background: currentColor; -webkit-mask: var(--icon-pin) center / contain no-repeat; mask: var(--icon-pin) center / contain no-repeat; }
.event-card__image--graphic { background: var(--white); border-bottom: 1px solid var(--line); }
.event-card__image--graphic img { object-fit: contain; padding: .75rem; }
.event-card__text { margin: .3rem 0 0; }
.event-card__more { margin-top: auto; padding-top: .5rem; font-weight: 700; }
.event-card--featured { max-width: 900px; margin: 0 auto 1.5rem; }
@media (min-width: 720px) {
  .event-card--featured { flex-direction: row; }
  .event-card--featured .event-card__image { flex: 0 0 45%; }
  .event-card--featured .event-card__image img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .event-card--featured .event-card__body { padding: 1.75rem 2rem; }
  .event-card--featured .event-card__title { font-size: 1.7rem; }
}
.event-card--compact .event-card__text { font-size: .95rem; color: var(--muted); }

.page-head { padding-top: 1rem; }
.year-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.year-nav a { padding: .3rem .8rem; border-radius: 999px; background: var(--sky); text-decoration: none; font-weight: 700; }
.year-heading { color: var(--green); margin: 2rem 0 1rem; }
.year-heading:first-of-type { margin-top: 0; }

.event-detail, .content-page { padding-top: 1.5rem; max-width: 900px; }

/* ---------- regular pages: gradient head with wave, optional round portrait, reed divider ---------- */
.page-head { position: relative; isolation: isolate; background: linear-gradient(135deg, var(--green), var(--blue)); }
.page-head__inner, .page-article__body { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.page-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: clamp(150px, 22vw, 280px); padding-top: 1.5rem; padding-bottom: clamp(40px, 7vw, 100px); }
.page-head--wide .page-head__inner { max-width: var(--container); }
.page-head .year-nav { margin: 1rem 0 0; }
.page-head__text { min-width: 0; }
.page-head__title { margin: 0; overflow-wrap: break-word; hyphens: auto; color: var(--white); font-size: clamp(1.6rem, 6vw, 3.8rem); text-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
/* the portrait dips into the wave, like on the old site */
.page-head__portrait {
  flex-shrink: 0; align-self: flex-end; margin-bottom: calc(-1 * clamp(36px, 6vw, 85px)); position: relative; z-index: 1;
  width: clamp(96px, 26vw, 280px); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: clamp(6px, 1.4vw, 14px) solid var(--white); box-shadow: -20px 18px 60px rgba(20, 60, 90, .25);
}
.page-head__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 100px); background: var(--white);
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; }
/* full-width reed strip (cattails) between head and content, like on the old site; always shown completely */
.reed-divider { aspect-ratio: 10 / 1; margin-top: -.5rem; background: url("../img/reeds.png") center bottom / 100% auto no-repeat; }
.page-article__body { padding-top: 1rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); }
.event-facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--sky); border-radius: var(--radius); }
.event-facts div { display: flex; flex-direction: column; }
.event-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.event-facts dd { margin: 0; font-weight: 700; }
.event-detail__report { border-left: 4px solid var(--green); padding-left: 1.25rem; margin-bottom: 2rem; }
.event-detail__announcement h2, .event-detail__report h2 { margin-top: 0; }
.event-detail__cta { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--mist); }

/* ---------- prose & media ---------- */
.prose { overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose blockquote { margin-left: 0; padding: .5rem 1.25rem; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 0 10px 10px 0; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 1.5rem 0; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: opacity .2s; }
.gallery__item a:hover img { opacity: .85; }
/* captions: clearly readable, but still a step below body text */
.gallery__item figcaption, .embed figcaption, .media-item figcaption { font-size: .9rem; font-weight: 600; color: #39414a; padding-top: .35rem; }
.media-videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 1.5rem 0; }
.media-item { margin: 0; }
.media-item video, .embed video { width: 100%; max-height: min(70vh, 560px); object-fit: contain; border-radius: 10px; background: #000; }
.embed { margin: 1.5rem 0; }
.embed-row { display: grid; gap: 1rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.embed-row--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.embed-row .embed { margin: 0; }
/* images on directly adjacent lines: always side by side (before/after comparison) */
.embed-set { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: .75rem; margin: 1rem 0; align-items: start; }
.embed-set--2 { --n: 2; } .embed-set--3 { --n: 3; } .embed-set--4 { --n: 4; }
.embed-set .embed { margin: 0; }
.embed-set .embed img { width: 100%; }
/* stations along a river ({{stationen}} block): thin wavy river line in the middle,
   stations alternate left/right with round pictures; on phones the line runs on the left */
.stations, .prose .stations { --line-x: 50%; --pic: clamp(110px, 15vw, 160px); position: relative; list-style: none; margin: 2rem 0; padding: 1rem 0; }
.stations::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 24px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 120'%3E%3Cpath d='M12 0C20 30 4 90 12 120' fill='none' stroke='%232f8fbf' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center top / 24px 120px repeat-y; }
.station { position: relative; display: grid; grid-template-columns: var(--pic) minmax(0, 1fr) 56px minmax(0, 1fr) var(--pic); align-items: center; gap: 0 1rem; min-height: 3.2rem; margin: .4rem 0; }
.station__dot { grid-column: 3; grid-row: 1; justify-self: center; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue); box-shadow: 0 0 0 4px var(--white); }
.station__text { font-weight: 600; line-height: 1.4; hyphens: auto; overflow-wrap: break-word; }
.station:nth-child(odd) .station__text { grid-column: 2; grid-row: 1; text-align: right; }
.station:nth-child(odd) .station__media { grid-column: 1; grid-row: 1; }
.station:nth-child(even) .station__text { grid-column: 4; grid-row: 1; }
.station:nth-child(even) .station__media { grid-column: 5; grid-row: 1; }
.station__media .embed { margin: 0; }
.station__media .embed img { width: var(--pic); max-height: none; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--white); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .stations, .prose .stations { --line-x: 14px; --pic: 88px; }
  .station { grid-template-columns: 28px 1fr auto; gap: 0 .8rem; }
  .station .station__dot { grid-column: 1; }
  .station:nth-child(n) .station__text { grid-column: 2; text-align: left; }
  .station:nth-child(n) .station__media { grid-column: 3; }
  .station__media .embed img { border-width: 3px; }
}
/* a heading right above such a comparison is centred like the home section titles */
.prose h2:has(+ .embed-set) { text-align: center; }
.prose h2:has(+ .embed-set)::after { content: ''; display: block; width: 64px; height: 4px; margin: .5em auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.embed-row .embed img { width: 100%; }
/* linked images (mostly partner logos): never cropped or enlarged, centred in their cell */
.embed-row .embed:has(> .embed__link) { align-self: center; text-align: center; }
.embed-row .embed__link img { width: auto; max-width: 100%; height: auto; }
.embed-row .embed--portrait img { max-width: 100%; }
.embed__link { display: block; overflow: hidden; border-radius: 10px; }
.embed__doc { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.embed__doc img { display: block; width: 100%; height: auto; max-height: none; border-radius: 0; }
.embed__doc-label { position: absolute; right: .6rem; bottom: .6rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: .9rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.embed__doc:hover .embed__doc-label { background: var(--green); }
.embed__link img { transition: transform .4s; }
.embed__link:hover img { transform: scale(1.04); }
.embed figcaption a { font-weight: 700; font-size: 1rem; }
.prose .cta { margin: 1.5rem 0; }
.prose .cta a { display: inline-block; border-radius: 999px; padding: .7em 1.5em; font-weight: 700; text-decoration: none;
  color: var(--white); background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: var(--shadow); }
.prose .cta a:hover { color: var(--white); filter: brightness(1.08); }
.home-section--start-pate-werden .cta a { background: var(--white); color: var(--blue); }
.embed img { border-radius: 10px; margin: 0 auto; max-height: 75vh; width: auto; }
.embed--portrait img { max-width: min(100%, 420px); }
.media-file::before { content: '→ '; }

.yt-embed { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center;
  border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--blue)); color: var(--white); }
.yt-embed a { color: var(--white); }
.yt-embed__note { font-size: .8rem; margin: 0; opacity: .85; }
.yt-embed__play { border: 0; border-radius: 999px; padding: .7em 1.4em; font: 700 1rem var(--font-body); background: var(--white); color: var(--blue); cursor: pointer; }
.yt-embed.is-loaded { padding: 0; background: #000; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* child pages as tiles */
.child-pages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 2rem; }
.child-page { display: block; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.child-page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.child-page span { display: block; padding: .7rem 1rem; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 20, 30, .9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
/* every image gets the same size in the pop-out (80 % of the window height, also
   small ones from the old site); object-fit keeps the aspect ratio inside that box */
.lightbox img { height: 80vh; width: auto; max-width: min(100%, 90vw); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--white); padding-top: .75rem; text-align: center; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .15); color: var(--white); font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: .5rem; top: 50%; }
.lightbox__next { right: .5rem; top: 50%; }

/* ---------- forms ---------- */
.contact-form { max-width: 640px; display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .3rem; font-weight: 700; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: 2px solid var(--sky); }
.field__hint { font-weight: 400; font-size: .88rem; color: var(--muted); }
.req { color: var(--blue); font-weight: 700; }

/* sign-up form ("aktiv mitmachen", placed via {{anmeldeformular}}) */
.signup { margin: 2.5rem 0; padding: clamp(1.2rem, 4vw, 2.2rem); border-radius: var(--radius); background: var(--sky); box-shadow: var(--shadow); }
.signup__title { margin-top: 0; text-align: center; }
.signup__title::after { content: ''; display: block; width: 64px; height: 4px; margin: .5em auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.signup-form { display: grid; gap: 1.1rem; }
.signup-form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.choice { margin: 0; padding: 0; border: 0; display: grid; gap: .45rem; }
.choice legend { padding: 0; margin-bottom: .35rem; font-weight: 700; }
.choice__item { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.choice__item input { margin-top: .3rem; flex-shrink: 0; accent-color: var(--blue); }
.signup-form .field--check input { accent-color: var(--blue); }
.signup-form__legal { margin: -.4rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.signup-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.signup-form .button { justify-self: start; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.field--check input { margin-top: .35rem; }
.notice { padding: .8rem 1rem; border-radius: 10px; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice--success { background: #e7f5e1; color: #2c5a12; }
.notice--error { background: #fde8e8; color: #8a1c1c; }
.error-page { text-align: center; padding: 3rem var(--gutter); }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: var(--white); position: relative; margin-top: 2rem; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -40px; height: 41px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C360 0 720 40 1080 20S1440 10 1440 10v30z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C360 0 720 40 1080 20S1440 10 1440 10v30z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 2rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: flex-start; }

/* ---------- print ---------- */
@media print {
  .site-header, .hero, .site-footer, .lightbox, .event-card__more { display: none; }
  body { font-size: 11pt; }
}
