/* ==========================================================================
   Kleingartenverein Süd-West 25 Neuhofen-Tal e.V. – Stylesheet
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben abgestimmt auf den Jubiläums-Banner:
     Logo-Grün, Sepia aus dem historischen Foto, Blütengelb & Rosé, Papierweiß */
  --sepia-950: #211a17;
  --ink-900: #2e2521;
  --sepia-700: #6b5549;
  --sepia-200: #e4d8c9;
  --green-800: #275f1d;
  --green-700: #2f7524;
  --green-600: #3d9129;
  --green-500: #54a830;
  --green-200: #cfe5bf;
  --green-100: #eaf4e2;
  --sun-500: #dea53a;
  --sun-400: #f1c96f;
  --sun-100: #fbf0d7;
  --rose-400: #d8939c;
  --rose-100: #f8e8e7;
  --berry: #a8434f;
  --berry-100: #f7e3e4;
  --cream: #f8f4ec;
  --paper: #fffefa;
  --ink: #2b2422;
  --ink-soft: #4a403a;
  --muted: #75695f;
  --line: #e7dfd2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(43 36 34 / .06), 0 2px 8px rgb(43 36 34 / .05);
  --shadow: 0 2px 4px rgb(43 36 34 / .05), 0 12px 32px -8px rgb(43 36 34 / .16);
  --shadow-lg: 0 24px 40px -18px rgb(33 26 23 / .32);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--berry); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun-400); color: var(--sepia-950); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink-900);
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
em.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--green-600);
}

[hidden] { display: none !important; }
.sr-only {
  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: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink-900); color: #fff; padding: .7em 1.1em; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper); }
.section--green { background: var(--ink-900); color: #efe6dc; }
.section--green h2, .section--green h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--sun-500);
}
.section--green .eyebrow { color: var(--sun-400); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--sun-500); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .3s, color .3s, background-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sun-400); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(33 26 23 / .55); color: var(--sepia-950); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sun { --btn-bg: var(--sun-400); --btn-fg: var(--sepia-950); }
.btn--sun::before { background: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); border-color: currentColor; }
.btn--ghost-light { --btn-bg: rgb(255 255 255 / .08); --btn-fg: #fff; border-color: rgb(255 255 255 / .55); backdrop-filter: blur(6px); }
.btn--small { padding: .6em 1.1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--green-700);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Ankündigungsleiste ---------- */
.announce {
  position: relative; z-index: 60;
  background: var(--sepia-950); color: #efe6dc; font-size: .92rem;
}
.announce[hidden] { display: none; }
html:not(.js) .announce { display: none; }
/* Platz von Anfang an reservieren, damit beim Laden nichts springt */
.announce .container { min-height: 44px; }
@media (max-width: 600px) { .announce { font-size: .84rem; } .announce .container { min-height: 62px; } }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; text-align: center; }
.announce a { color: var(--sun-400); font-weight: 700; }
.announce .container > span:first-child svg { width: 18px; height: 18px; color: var(--sun-400); }
.announce__close {
  flex: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; border-radius: 6px; opacity: .75;
}
.announce__close:hover { opacity: 1; }
.announce__close svg { width: 18px; height: 18px; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
  background: rgb(248 244 236 / .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgb(33 26 23 / .45); border-bottom-color: var(--line); }
/* Unterseiten: Header liegt transparent über dem Bild-Seitenkopf */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-scrolled { background: rgb(248 244 236 / .85); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-900); flex: none; }
.brand img { width: 58px; height: auto; transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.has-hero .site-header:not(.is-scrolled) .brand { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .brand-text small { color: rgb(255 255 255 / .8); }
.brand:hover { color: inherit; }

.nav-list, .sub-nav { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a {
  position: relative; display: block; padding: .55em .9em; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: color .2s, background-color .2s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: .9em; right: .9em; bottom: .3em; height: 2px; border-radius: 2px;
  background: var(--sun-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .nav-list > li.is-current > a::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--green-700); }
.has-hero .site-header:not(.is-scrolled) .nav-list > li > a { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .nav-list > li > a:hover { color: var(--sun-400); }

.nav-list .nav-cta { background: var(--green-700); color: #fff !important; padding-inline: 1.2em; margin-left: 8px; }
.nav-list .nav-cta::after { display: none; }
.nav-list .nav-cta:hover { background: var(--sun-400); color: var(--sepia-950) !important; }
.has-hero .site-header:not(.is-scrolled) .nav-cta { background: var(--sun-400); color: var(--sepia-950) !important; }
.has-hero .site-header:not(.is-scrolled) .nav-cta:hover { background: #fff; }

.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; border-radius: 50%;
}
.has-hero .site-header:not(.is-scrolled) .sub-toggle { color: #fff; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.has-sub:hover .sub-toggle svg, .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-nav {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 230px;
  padding: 8px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav, .has-sub.is-open .sub-nav {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.sub-nav a { padding: .65em 1em; border-radius: var(--radius-sm); color: var(--ink) !important; }
.sub-nav a:hover, .sub-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-800) !important; }

.nav-toggle {
  display: none; position: relative; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff;
}
.burger { position: absolute; left: 14px; right: 14px; top: 50%; height: 14px; transform: translateY(-50%); }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 50px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 65;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--ink-900);
    background-image:
      radial-gradient(circle at 85% 12%, rgb(241 201 111 / .22), transparent 40%),
      radial-gradient(circle at 10% 95%, rgb(84 168 48 / .28), transparent 45%);
    clip-path: circle(0 at calc(100% - 44px) 34px);
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
    overflow-y: auto;
  }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; transition: clip-path .65s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li { flex-wrap: wrap; opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
  .nav-open .nav-list > li { opacity: 1; transform: none; }
  .nav-open .nav-list > li:nth-child(1) { transition-delay: .15s; }
  .nav-open .nav-list > li:nth-child(2) { transition-delay: .2s; }
  .nav-open .nav-list > li:nth-child(3) { transition-delay: .25s; }
  .nav-open .nav-list > li:nth-child(4) { transition-delay: .3s; }
  .nav-open .nav-list > li:nth-child(5) { transition-delay: .35s; }
  .nav-list > li > a, .has-hero .site-header:not(.is-scrolled) .nav-list > li > a {
    flex: 1; color: #fff; font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; padding: .25em 0;
  }
  .nav-list > li > a::after { left: 0; right: auto; width: 40px; bottom: .1em; }
  .nav-list > li > a:hover { color: var(--sun-400); }
  .nav-list .nav-cta { margin: 18px 0 0; text-align: center; font-family: var(--font-body) !important; font-size: 1.1rem !important; padding: .9em 1.2em !important; background: var(--sun-400); color: var(--sepia-950) !important; }
  .sub-toggle, .has-hero .site-header:not(.is-scrolled) .sub-toggle { width: 48px; height: 48px; margin: 0; color: #fff; }
  .sub-toggle svg { width: 20px; height: 20px; }
  .has-sub:hover .sub-toggle svg { transform: none; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub-nav {
    position: static; flex-basis: 100%; min-width: 0; transform: none; opacity: 1; visibility: hidden;
    background: rgb(255 255 255 / .06); border: 0; box-shadow: none; padding: 0 8px;
    max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), padding .3s;
  }
  .sub-nav::before { display: none; }
  .has-sub.is-open .sub-nav { max-height: 220px; padding: 8px; transform: none; visibility: visible; }
  .has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { transform: none; }
  .sub-nav a { color: #efe6dc !important; font-size: 1.05rem; }
  .sub-nav a:hover, .sub-nav a[aria-current="page"] { background: rgb(255 255 255 / .1); color: var(--sun-400) !important; }
  .nav-open .site-header .brand, .nav-open .site-header .brand-text small { color: #fff; position: relative; z-index: 70; }
  .nav-open .nav-toggle { background: var(--sun-400); color: var(--sepia-950); }
  .nav-open .site-header { background: transparent !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
}

/* ---------- Hero (Startseite) mit Jubiläums-Banner ----------
   Der Banner liegt nicht als Karte auf, sondern löst sich an den Rändern
   weich in den Papier-Hintergrund auf. Sein grüner Balken läuft als
   „Bodenlinie“ über die ganze Breite weiter. */
.hero-banner {
  --banner-sky: #fbfaf6;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 0 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(ellipse 55% 60% at 0% 100%, rgb(216 147 156 / .16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 85%, rgb(84 168 48 / .10), transparent 70%),
    linear-gradient(var(--banner-sky) 0, var(--banner-sky) clamp(180px, 26vw, 360px), var(--cream) clamp(420px, 48vw, 640px));
}
.banner-stage { position: relative; }
.banner {
  position: relative; margin: 0 auto; max-width: 1268px;
  /* Ränder blenden aus, damit das Bild mit dem Hintergrund verschmilzt */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.banner img { width: 100%; height: auto; aspect-ratio: 1268 / 363; }
.banner-thumb { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border-bottom: 6px solid #55af3b; transition: transform .5s var(--ease); }
.banner-thumb:hover { transform: translateY(-4px) rotate(-.5deg); }
.banner-ground {
  height: clamp(8px, 1.2vw, 15px); background: #55af3b;
  box-shadow: 0 1px 0 rgb(255 255 255 / .6), 0 12px 30px -12px rgb(47 117 36 / .55);
}
/* „Foto entwickelt sich“ beim Laden: nur eine Deckfläche wird ausgeblendet */
.js .hero-banner .banner::after {
  content: ""; position: absolute; inset: 0; background: var(--banner-sky); pointer-events: none;
  animation: develop 1.4s .1s ease-out both;
}
@media (max-width: 600px) {
  .banner { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
}
/* Sanftes Parallax beim Scrollen – vom Browser selbst gesteuert (kein JavaScript) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .banner-stage .banner { animation: bannerScroll linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .page-hero__bg { animation: heroScroll linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
.hero-intro {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px);
  align-items: end; margin-top: clamp(28px, 4.5vw, 56px);
}
.hero-intro h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); margin: 0; }
.hero-intro h1 em { font-style: italic; font-weight: 500; color: var(--green-600); }
.hero__text { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); margin: 0 0 26px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .86rem; font-weight: 600; letter-spacing: .02em;
}
.hero__kicker .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); }
.hero__kicker .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-500); animation: ping 2.4s ease-out infinite; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 18px; height: 18px; opacity: .9; color: #f0d89c; animation: fall linear infinite; }
.petal:nth-child(1) { left: 6%;  animation-duration: 17s; animation-delay: -2s; }
.petal:nth-child(2) { left: 22%; animation-duration: 22s; animation-delay: -9s; color: #e3a7ad; width: 14px; }
.petal:nth-child(3) { left: 41%; animation-duration: 19s; animation-delay: -5s; color: #a8b484; }
.petal:nth-child(4) { left: 58%; animation-duration: 25s; animation-delay: -14s; color: #e3a7ad; width: 15px; }
.petal:nth-child(5) { left: 76%; animation-duration: 20s; animation-delay: -1s; color: #f0d89c; width: 13px; }
.petal:nth-child(6) { left: 91%; animation-duration: 27s; animation-delay: -18s; color: #a8b484; width: 12px; }
.hero-banner .stats { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 820px) { .hero-intro { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; color: var(--cream); pointer-events: none; }
.hero__wave svg { width: 100%; height: clamp(50px, 8vw, 110px); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 150px);
  color: #fff; padding-top: calc(var(--header-h) + clamp(60px, 9vw, 110px));
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(.92); animation: kenburns 26s ease-in-out infinite alternate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgb(33 26 23 / .86) 0%, rgb(43 34 30 / .6) 50%, rgb(60 44 38 / .25) 100%);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--sun-400); }
.page-hero .lead { color: rgb(255 255 255 / .88); max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: var(--sun-400); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: rgb(255 255 255 / .75); }
.breadcrumb a { color: rgb(255 255 255 / .9); text-decoration: none; }
.breadcrumb a:hover { color: var(--sun-400); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero .hero__wave { color: var(--cream); }
.page-hero .hero__wave svg { height: clamp(36px, 5vw, 70px); }

/* ---------- Zahlen / Statistiken ---------- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px); text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat__icon { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 14px; background: var(--green-100); color: var(--green-600); }
.stat__icon svg { width: 24px; height: 24px; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 2vw, 3rem); white-space: nowrap; font-weight: 600; color: var(--green-800); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .unit { font-size: .6em; margin-left: .1em; }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Split-Layout (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split, .split--aside { grid-template-columns: minmax(0, 1fr); } }

.photo-stack { position: relative; margin-bottom: clamp(28px, 4vw, 40px); }
.photo-stack__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.photo-stack__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-stack:hover .photo-stack__main img { transform: scale(1.05); }
/* Jubiläums-Abzeichen: ein SVG, Text exakt auf den Kreisumfang verteilt; nur der Ring dreht sich */
.photo-stack__badge {
  position: absolute; left: clamp(-36px, -2.5vw, -12px); bottom: clamp(-40px, -3vw, -24px);
  width: clamp(124px, 30%, 172px); height: auto; overflow: visible;
  filter: drop-shadow(0 10px 18px rgb(33 26 23 / .22));
  animation: float 6s ease-in-out infinite;
}
.badge__scheibe { fill: var(--sun-400); }
.badge__linie { fill: none; stroke: var(--sepia-950); stroke-opacity: .25; stroke-width: 1.5; stroke-dasharray: 2 5; }
.badge__ring { transform-box: view-box; transform-origin: 100px 100px; animation: spin 30s linear infinite; }
.badge__umlauf { font-family: var(--font-body); font-size: 14px; font-weight: 700; fill: var(--sepia-950); }
.badge__zahl { font-family: var(--font-display); font-size: 54px; font-weight: 700; fill: var(--sepia-950); }
.badge__plus { font-size: 24px; }
.badge__wort { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 3px; fill: var(--sepia-950); }
@media (max-width: 860px) { .photo-stack__badge { left: 12px; } }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 160px; height: 160px; border-radius: 50%;
  background: var(--green-100); transform: scale(.4); opacity: 0; transition: transform .7s var(--ease), opacity .5s;
}
a.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--green-200); color: var(--ink); }
a.card:hover::after { transform: scale(2.6); opacity: 1; }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 8px;
  background: var(--green-100); color: var(--green-700);
  transition: transform .6s var(--ease-spring), background-color .3s, color .3s;
}
.card__icon svg { width: 28px; height: 28px; }
a.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); background: var(--sun-400); color: var(--sepia-950); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 10px; }

/* ---------- Termine ---------- */
.events { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2.4vw, 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.event:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--green-200); }
.event__date {
  width: 76px; text-align: center; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--green-100); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--green-200);
}
.event__date .m { display: block; background: var(--green-700); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; }
.event__date .d { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; padding-top: 6px; }
.event__date .w { display: block; font-size: .78rem; font-weight: 600; padding-bottom: 6px; color: var(--muted); }
.event__body h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin: 0 0 4px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta svg { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sun-100); color: #6e4f0c; }
.tag--next { position: relative; background: var(--sun-400); color: var(--sepia-950); }
.tag--next::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--sun-400); animation: glow 2.4s ease-in-out infinite; }
.tag--past { background: #ece5da; color: var(--muted); }
.event.is-past { opacity: .55; }
.event.is-past .event__date .m { background: var(--muted); }
.event.is-next { border-color: var(--sun-500); box-shadow: 0 0 0 3px var(--sun-100), var(--shadow); }
.event__ics {
  display: inline-flex; align-items: center; gap: 6px; padding: .55em .95em; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--green-200); color: var(--green-700);
  font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.event__ics:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.event__ics svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 600px) {
  .event { grid-template-columns: auto 1fr; }
  .event__ics { grid-column: 1 / -1; justify-self: start; }
  .event__date { width: 64px; }
}
.events-empty { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px dashed var(--green-200); color: var(--muted); text-align: center; }

.year-switch { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.year-switch h2 { margin: 0; }

/* ---------- Infobox ---------- */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius);
  background: var(--sun-100); border: 1px solid #efd9a3; color: #4a3708;
}
.notice__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sun-400); color: var(--sepia-950); }
.notice__icon svg { width: 24px; height: 24px; }
.notice h3 { font-size: 1.15rem; margin: 0 0 6px; color: #3b2b06; }
.notice p:last-child { margin-bottom: 0; }
.notice--green { background: var(--green-100); border-color: var(--green-200); color: var(--ink-900); }
.notice--green .notice__icon { background: var(--green-700); color: #fff; }
.notice--green h3 { color: var(--ink-900); }
.notice--berry { background: var(--berry-100); border-color: #ecc3c7; color: #5c1d26; }
.notice--berry .notice__icon { background: var(--berry); color: #fff; }
.notice--berry h3 { color: #5c1d26; }

/* ---------- Jubiläumsband ---------- */
.jubilee { position: relative; overflow: hidden; }
.jubilee__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.jubilee__deco { position: absolute; right: -120px; top: -120px; width: 420px; opacity: .07; animation: spin 80s linear infinite; pointer-events: none; }
.jubilee__num { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 700; line-height: .85; color: var(--sun-400); letter-spacing: -.04em; }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.milestone {
  padding: 18px 20px; border-radius: var(--radius); background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .12);
}
.milestone b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--sun-400); line-height: 1.1; }
.milestone span { font-size: .95rem; color: #e3d7ca; }
@media (max-width: 860px) { .jubilee__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .milestones { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lage / Anfahrt ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.location__info { padding: clamp(28px, 4vw, 54px); }
.location__map { position: relative; min-height: 320px; background: var(--green-100); overflow: hidden; }
.location__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin__drop { animation: pinbounce 2.4s var(--ease) infinite; }
.address { font-style: normal; display: grid; gap: 14px; margin: 22px 0 28px; }
.address div { display: flex; gap: 14px; align-items: flex-start; }
.address svg { flex: none; width: 22px; height: 22px; color: var(--green-600); margin-top: 3px; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } .location__map { min-height: 260px; } }

/* ---------- Über uns ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.4em; }
.prose .eyebrow + h2, .prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green-500); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-top: 10px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin: 0 0 4px; color: var(--ink-900); }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Lageplan-Kompass */
.compass { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-inline: auto; }
.compass__garden {
  position: absolute; inset: 27%; border-radius: 30% 40% 35% 45%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, var(--green-500), var(--green-700)); color: #fff; box-shadow: var(--shadow-lg);
  animation: blob 14s ease-in-out infinite;
}
.compass__garden > div { animation: blob 14s ease-in-out infinite reverse; }
.compass__garden strong { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); display: block; line-height: 1.1; }
.compass__garden span { font-size: .8rem; opacity: .85; }
.compass__item {
  position: absolute; width: 38%; text-align: center; font-size: .86rem; font-weight: 600; color: var(--ink-900);
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 1.3;
}
.compass__item b { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.compass__item--n { top: 0; left: 31%; }
.compass__item--s { bottom: 0; left: 31%; }
.compass__item--w { left: 0; top: 50%; transform: translateY(-50%); width: 28%; }
.compass__item--o { right: 0; top: 50%; transform: translateY(-50%); width: 28%; }
.compass__ring { position: absolute; inset: 14%; border: 2px dashed var(--green-200); border-radius: 50%; animation: spin 60s linear infinite; }

/* Vorstand */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.person {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.person__avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-900);
  background: linear-gradient(135deg, var(--sun-400), var(--rose-400));
  transition: transform .6s var(--ease-spring);
}
.person:hover .person__avatar { transform: rotate(-10deg) scale(1.08); }
.person__role { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.person__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
.board--lead .person { background: var(--ink-900); border-color: var(--ink-900); }
.board--lead .person__name { color: #fff; }
.board--lead .person__role { color: var(--sun-400); }

/* ---------- Zeitleiste ---------- */
.timeline-wrap { position: relative; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline-wrap::before, .timeline__progress {
  content: ""; position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; border-radius: 3px;
}
.timeline-wrap::before { bottom: 0; background: var(--green-200); }
.timeline__progress { background: linear-gradient(var(--sun-400), var(--green-500)); height: var(--progress, 0%); z-index: 1; }
.tl-item { position: relative; width: 50%; padding: 0 clamp(28px, 4vw, 56px) clamp(26px, 3vw, 40px) 0; text-align: right; }
.tl-item.tl-right { margin-left: 50%; padding: 0 0 clamp(26px, 3vw, 40px) clamp(28px, 4vw, 56px); text-align: left; }
.tl-item::before {
  content: ""; position: absolute; top: 18px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--green-500); z-index: 2;
  transition: transform .5s var(--ease-spring), background-color .3s, border-color .3s;
}
.tl-item.tl-right::before { right: auto; left: -9px; }
.tl-item.is-visible::before { background: var(--sun-400); border-color: var(--green-700); transform: scale(1.15); }
.tl-card { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .4s; }
.js .tl-item:not(.is-visible) .tl-card { opacity: 0; transform: translateX(-40px); }
.js .tl-item.tl-right:not(.is-visible) .tl-card { transform: translateX(40px); }
.tl-card {
  display: inline-block; text-align: left; max-width: 480px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tl-card:hover { box-shadow: var(--shadow); }
.tl-year { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--green-700); line-height: 1; margin-bottom: 6px; }
.tl-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.tl-item--highlight .tl-card { background: var(--ink-900); border-color: var(--ink-900); }
.tl-item--highlight .tl-card p { color: #eadfd4; }
.tl-item--highlight .tl-year { color: var(--sun-400); }
.tl-era { position: relative; z-index: 3; margin: 6px 0 clamp(26px, 3vw, 40px); text-align: center; }
.tl-era span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--sun-400); color: var(--sepia-950); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
@media (max-width: 760px) {
  .timeline-wrap::before, .timeline__progress { left: 12px; }
  .tl-item, .tl-item.tl-right { width: 100%; margin-left: 0; text-align: left; padding: 0 0 22px 42px; }
  .tl-item::before, .tl-item.tl-right::before { left: 3px; right: auto; }
  .js .tl-item:not(.is-visible) .tl-card, .js .tl-item.tl-right:not(.is-visible) .tl-card { transform: translateX(30px); }
  .tl-era { text-align: left; }
}

/* Festschrift */
.book {
  position: relative; perspective: 1200px; max-width: 340px; margin-inline: auto;
}
.book img {
  border-radius: 4px 14px 14px 4px; box-shadow: -12px 20px 40px -10px rgb(0 0 0 / .35), inset 4px 0 8px rgb(0 0 0 / .2);
  transform: rotateY(-18deg) rotateX(4deg); transition: transform .9s var(--ease);
}
.book:hover img { transform: rotateY(0) rotateX(0) scale(1.03); }

/* ---------- Galerie / Lightbox ---------- */
.zoomable { cursor: zoom-in; display: block; border: 0; padding: 0; background: none; border-radius: inherit; width: 100%; }
.lightbox {
  width: min(96vw, 1200px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgb(33 26 23 / .85); backdrop-filter: blur(6px); }
.lightbox[open] { animation: zoomin .45s var(--ease); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox__close {
  position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sun-400); color: var(--sepia-950); display: grid; place-items: center; box-shadow: var(--shadow);
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Formulare ---------- */
.form-card { padding: clamp(24px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink-900); }
.field label .req { color: var(--berry); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e5e2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgb(84 168 48 / .18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--berry); box-shadow: 0 0 0 4px rgb(168 67 79 / .12); }
.field__error { font-size: .85rem; color: var(--berry); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: .85rem; color: var(--muted); }
.field .checkbox, .checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; font-weight: 400; color: var(--ink-soft); cursor: pointer; }
.checkbox input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green-600); cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-status { margin-top: 20px; }
.form-status:empty { display: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.2rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li::marker { color: var(--green-500); }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.toc h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.toc a { text-decoration: none; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; order: -1; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--sepia-950); color: #d6cabe; padding-top: clamp(70px, 8vw, 110px); overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: clamp(30px, 4vw, 60px);
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-240 40-480 40-720 20S240 0 0 40Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-240 40-480 40-720 20S240 0 0 40Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.section--paper + .site-footer::before { background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 50px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-400); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #f1e9df; text-decoration: none; }
.site-footer a:hover { color: var(--sun-400); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 64px; background: #fff; border-radius: 16px; padding: 6px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.35rem; color: #fff; display: block; line-height: 1.15; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 70px); padding: 22px 0; border-top: 1px solid rgb(255 255 255 / .1);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: #ab9d90;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
  transition: opacity .3s, transform .45s var(--ease-spring), visibility .3s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sun-400); color: var(--sepia-950); transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Mitgliederbereich (PHP-Seiten) ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.portal-card { padding: clamp(28px, 3vw, 40px); }
.portal-card .lock { position: absolute; top: 24px; right: 24px; color: var(--muted); }
.portal-card .lock svg { width: 22px; height: 22px; }
.login-box { max-width: 460px; margin-inline: auto; }
.posts { display: grid; gap: 18px; }
.post { padding: clamp(20px, 3vw, 30px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.post__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 10px; }
.post__head h3 { margin: 0; }
.post__meta { font-size: .88rem; color: var(--muted); }
.post__body { white-space: pre-line; color: var(--ink-soft); }
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.post__file { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; background: var(--green-100); color: var(--green-800); text-decoration: none; font-weight: 600; font-size: .92rem; }
.post__file svg { width: 18px; height: 18px; }
.btn-link-danger { background: none; border: 0; padding: 0; cursor: pointer; color: var(--berry); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { background: var(--green-100); color: var(--ink-900); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.data-table select { min-width: 150px; }
.userbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; margin-bottom: 30px; border-radius: var(--radius); background: var(--green-100); border: 1px solid var(--green-200); }
.userbar nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs-nav a { padding: .45em 1em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--green-800); background: var(--paper); border: 1px solid var(--green-200); }
.tabs-nav a[aria-current="page"], .tabs-nav a:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
/* Dokumente */
.dok-suche { margin-bottom: 28px; }
.dok-suche input { width: 100%; padding: .9em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.dok-suche input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgb(84 168 48 / .18); }
.dok-gruppe { margin-bottom: 34px; }
.dok-gruppe h2 { font-size: 1.35rem; margin-bottom: 14px; }
.dok-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dok {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.dok:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dok__typ {
  width: 52px; height: 60px; display: grid; place-items: center; border-radius: 10px 18px 10px 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-100); color: var(--green-800);
}
.dok__typ--pdf { background: var(--berry-100); color: var(--berry); }
.dok__typ--word, .dok__typ--text { background: #e4ecf7; color: #2b579a; }
.dok__typ--excel, .dok__typ--tabelle { background: #e3f2e8; color: #1d6f42; }
.dok__typ--bild { background: var(--sun-100); color: #6e4f0c; }
.dok__text h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.dok__text p { margin: 0 0 4px; font-size: .93rem; color: var(--ink-soft); }
.dok__aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.dok__aktionen form { margin: 0; }
@media (max-width: 640px) {
  .dok { grid-template-columns: auto minmax(0, 1fr); }
  .dok__aktionen { grid-column: 1 / -1; justify-content: flex-start; }
}
.stack { display: grid; gap: clamp(36px, 5vw, 60px); }

/* ---------- 404 ---------- */
.notfound__num { font-family: var(--font-display); font-size: clamp(6rem, 4rem + 10vw, 12rem); font-weight: 700; line-height: 1; color: var(--green-700); }
.notfound__num span { display: inline-block; color: var(--sun-500); animation: wobble 3s ease-in-out infinite; }

/* ---------- Scroll-Animationen ----------
   Es werden nur opacity und transform animiert: Das übernimmt die Grafikkarte,
   dadurch bleibt es auch auf älteren Geräten flüssig. */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero-Einstieg */
.js .hero-banner [data-intro] { opacity: 0; transform: translateY(26px); animation: introUp .9s var(--ease) forwards; animation-delay: var(--delay, 0s); }
.js .page-hero [data-intro] { opacity: 0; transform: translateY(24px); animation: introUp .9s var(--ease) forwards; animation-delay: var(--delay, 0s); }

/* Wort-für-Wort-Animation der Hero-Überschrift */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .85s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + .15s); }

/* ---------- Keyframes ---------- */
@keyframes develop { from { opacity: 1; } to { opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes heroScroll { to { transform: translateY(22vh); } }
@keyframes bannerScroll { to { transform: translateY(-5vh); opacity: .45; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes glow { 50% { opacity: 0; transform: scale(1.06); } }
@keyframes blob { 0%, 100% { transform: rotate(0) scale(1); } 33% { transform: rotate(8deg) scale(1.04); } 66% { transform: rotate(-6deg) scale(.97); } }
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate3d(40px, 50vh, 0) rotate(200deg); }
  90% { opacity: .7; }
  100% { transform: translate3d(-20px, 105vh, 0) rotate(420deg); opacity: 0; }
}
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pinbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes zoomin { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-8px); } }


/* ---------- Weiche Seitenübergänge (moderne Browser, ältere wechseln einfach normal) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s ease both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

/* Endlos-Animationen außerhalb des Bildschirms anhalten (spart Akku, sieht niemand) */
.anim-paused, .anim-paused * { animation-play-state: paused !important; }

/* ---------- Reduzierte Bewegung & Sparmodus für schwache Geräte ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-intro], .js .tl-item .tl-card { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .petals, .js .banner::after { display: none; }
}
/* Sparmodus (Datensparen aktiv): gleiche Inhalte, keine Effekte */
.lite *, .lite *::before, .lite *::after { animation: none !important; }
.lite [data-reveal], .lite [data-intro], .lite .tl-item .tl-card { opacity: 1 !important; transform: none !important; transition: none !important; }
.lite .banner::after, .lite .petals { display: none; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .to-top, .announce, .hero__wave, .nav-toggle, .event__ics, .petals { display: none !important; }
  body { background: #fff; }
  .page-hero { color: #000; padding: 20px 0; margin: 0; }
  .page-hero::before, .page-hero__bg, .banner::after { display: none; }
  .page-hero h1, .page-hero .lead { color: #000; }
  .js [data-reveal], .js [data-intro], .js .tl-item .tl-card { opacity: 1; transform: none; }
}
