/* Gartenfreunde Bad Mergentheim – hell, freundlich, Apple-inspiriert */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --green: #248a3d;          /* Text/Buttons, AA auf Weiß */
  --green-soft: #34c759;
  --green-tint: #eaf6ee;
  --radius: 28px;
  --radius-s: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);   /* weiches Ausgleiten, kein Überschwingen */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 3rem); margin-inline: auto; }
section { padding: clamp(4rem, 9vw, 8rem) 0; }
.alt { background: var(--bg-alt); }

/* Typografie: große Schrift enger, kleine weiter */
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.5rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.015em; }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--green); letter-spacing: .01em; margin: 0 0 .8rem; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--muted); letter-spacing: -.012em; max-width: 36ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
p { margin: 0 0 1rem; }

/* Navigation: Glasmaterial, Inhalt scrollt darunter */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 251, 253, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .4s var(--ease), background .4s var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__bar { width: min(1080px, 100% - 3rem); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--text); opacity: .75; font-size: .9rem; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; text-decoration: none; }
.nav__links a[aria-current] { color: var(--green); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 40; padding: 2rem 1.5rem;
  background: rgba(251, 251, 253, .96); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet nav { display: grid; gap: .25rem; }
.sheet a { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; color: var(--text); padding: .5rem 0; }
.sheet a[aria-current] { color: var(--green); }

/* Buttons – Feedback sofort beim Drücken */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.6rem; border-radius: 980px; border: 0; cursor: pointer;
  font: 500 1.0625rem var(--font); background: var(--green); color: #fff; transition: transform .15s var(--ease), background .25s, box-shadow .3s var(--ease); }
.btn:hover { background: #1c7432; text-decoration: none; box-shadow: 0 8px 24px rgba(36, 138, 61, .3); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn--ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--ghost:hover { background: var(--green-tint); box-shadow: inset 0 0 0 1.5px var(--green); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.link-more { font-size: 1.0625rem; }
.link-more::after { content: " ›"; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--nav-h) + 3rem) 0 4rem; overflow: hidden; color: #fff; isolation: isolate; }
.hero__img { position: absolute; inset: -6% 0; z-index: -2; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.6) 100%); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: rgba(255, 255, 255, .92); margin-top: 1.2rem; }
.hero .btn { background: #fff; color: var(--text); }
.hero .btn:hover { background: #f0f0f2; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero .btn--ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.3); }
.hero--small { min-height: 52svh; }
.hero--plain { min-height: 0; background: var(--bg-alt); color: var(--text); padding: calc(var(--nav-h) + 5rem) 0 4rem; }
.hero--plain::after { display: none; }
.hero--plain h1 { color: var(--text); max-width: none; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero--plain .lead { color: var(--muted); }

/* Karten */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 50px rgba(0,0,0,.09); }
.card .meta { font-size: .85rem; font-weight: 600; color: var(--green); margin-bottom: .6rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0; }
.alt .card { box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.icon { width: 52px; height: 52px; border-radius: 15px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 1.2rem; }
.icon svg { width: 26px; height: 26px; }

.section-head { margin-bottom: 3rem; }

/* Split / Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.split--portrait img { aspect-ratio: auto; max-width: 320px; margin-inline: auto; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stats strong { display: block; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Vorstand */
.person { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; font-size: 1.7rem; font-weight: 600;
  color: var(--green); background: linear-gradient(145deg, var(--green-tint), #d6efdd); }
.person .role { color: var(--green); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.person p { font-size: .95rem; }
.person a { display: block; }

/* Zeitleiste */
.timeline { display: grid; gap: 1.25rem; }
.timeline .card { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; }
.timeline .date { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.timeline .date small { display: block; color: var(--green); font-size: .85rem; font-weight: 600; margin-top: .2rem; }

/* Liste */
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23248a3d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Formular */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: .9rem 1rem; border-radius: 14px; border: 1.5px solid transparent; background: var(--bg-alt); color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; background: #fff; border-color: var(--green-soft); box-shadow: 0 0 0 4px rgba(52, 199, 89, .18); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 500; }
.notice--ok { background: var(--green-tint); color: #17612b; }
.notice--err { background: #fdecec; color: #a3201b; }

/* Hinweis-Banner */
.banner { background: var(--green-tint); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.banner img { width: 150px; }

/* Rechtstexte */
.legal h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 2.5rem 0 .6rem; }
.legal p, .legal li { color: #3a3a3c; }

/* Footer */
.footer { background: var(--bg-alt); padding: 3rem 0 2rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer a { color: var(--muted); } .footer a:hover { color: var(--text); }
.footer p { margin: .4rem 0 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer__grid strong { color: var(--text); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; }

/* Eintritts-Animationen (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-right: -12px; }
  .split { grid-template-columns: 1fr; }
  .timeline .card { grid-template-columns: 1fr; gap: .6rem; }
  .banner { grid-template-columns: 1fr; text-align: center; }
  .banner img { margin-inline: auto; width: 120px; }
  .hero { padding-bottom: 3rem; }
}

/* Barrierefreiheit: weniger Bewegung, weniger Transparenz, mehr Kontrast */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s ease; }
  .card:hover { transform: none; }
  .hero__img { transform: none !important; }
  .sheet { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet, .ann { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3a3a3c; --line: rgba(0,0,0,.35); }
  .card { box-shadow: 0 0 0 1.5px var(--text); }
}

/* =========================================================
   Extra-Effekte
   ========================================================= */

/* Seitenübergang */
body { animation: pageIn .7s var(--ease) both; }
body.is-leaving { opacity: 0; transform: scale(.992); transition: opacity .25s ease, transform .25s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll-Fortschritt */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green-soft), #a3e635); }

/* Überschriften: Wort für Wort aus der Maske */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.w > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--base, 0ms)); }
[data-split].is-in .w > span { transform: none; opacity: 1; }

/* Hero: langsamer Ken-Burns, Scroll-Hinweis */
.hero__img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
.cue { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; animation: fadeIn 1s 1.6s var(--ease) forwards; }
.cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Laufband */
.marquee { overflow: hidden; padding: 2.2rem 0; background: var(--bg); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; padding-right: 3rem; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(36, 138, 61, .55); transition: color .4s; }
.marquee span:nth-child(3n+2) { color: var(--green); -webkit-text-stroke: 0; }
.marquee span::after { content: "✿"; margin-left: 3rem; font-size: .5em; vertical-align: middle; color: var(--green-soft); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Karten: 3D-Neigung + Lichtreflex, der dem Zeiger folgt */
.card { position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 199, 89, .16), transparent 60%); }
.card:hover::after { opacity: 1; }
.js .reveal.done { transition: opacity .3s, transform .45s var(--ease), box-shadow .5s var(--ease); transition-delay: 0s; }
.js .card.done { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .card.done:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.icon { transition: transform .6s var(--ease), background .4s; }
.card:hover .icon { transform: scale(1.12) rotate(-6deg); background: #d6efdd; }

/* Magnetische Buttons */
.btn { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.96); }
.btn:not(.btn--ghost)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-120%); }
.btn:not(.btn--ghost):hover::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn { position: relative; overflow: hidden; }

/* Bilder: Maske öffnet sich beim Scrollen */
.js .split img.reveal { clip-path: inset(14% 14% 14% 14% round var(--radius)); transform: scale(1.08);
  transition: clip-path 1.5s var(--ease), transform 1.5s var(--ease), opacity 1s var(--ease); }
.js .split img.reveal.is-in { clip-path: inset(0 round var(--radius)); transform: none; }

/* Zahlen */
.stats-sec { background: linear-gradient(180deg, var(--bg) 0%, var(--green-tint) 100%); }
.stats strong { font-size: clamp(3.5rem, 11vw, 8rem); background: linear-gradient(180deg, var(--green) 0%, var(--green-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: .8rem; font-size: 1rem; }

/* Galerie zum Ziehen */
.gallery-sec { padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.gallery { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 max(1.5rem, calc((100vw - 1080px) / 2)) 1.5rem;
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { margin: 0; flex: 0 0 min(78vw, 400px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.gallery img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }

/* Unterseiten-Hero: langsam treibende Farbflächen */
.hero--plain { position: relative; overflow: hidden; isolation: isolate; }
.hero--plain::before, .hero--plain::after { display: block; content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .7; }
.hero--plain::before { width: 520px; height: 520px; right: -120px; top: -160px; background: #bfe9cb; animation: drift 26s ease-in-out infinite alternate; }
.hero--plain::after { width: 420px; height: 420px; left: 8%; bottom: -220px; background: #e4f5a8; animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }

/* Navigation: Unterstreichung gleitet ein */
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__brand img { transition: transform .8s var(--ease); }
.nav__brand:hover img { transform: rotate(360deg); }

/* Footer-Schriftzug */
.footer { overflow: hidden; }
.footer__mark { margin: 2rem 0 -.18em; text-align: center; font-weight: 800; font-size: clamp(3.5rem, 17vw, 14rem); letter-spacing: -.05em; line-height: .9;
  color: transparent; background: linear-gradient(180deg, rgba(36,138,61,.2), rgba(36,138,61,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* Ankündigung: schwebende Glaskarte im Hero (nur Startseite) */
.ann { --a-fg: #17612b; --a-tint: rgba(52, 199, 89, .18); --a-dot: var(--green-soft);
  position: absolute; z-index: 3; top: calc(var(--nav-h) + 2.5rem); right: max(1.5rem, calc((100vw - 1080px) / 2));
  /* Größe folgt dem Inhalt: wenig Text = kleine Karte, viel Text = größere Karte */
  width: fit-content; min-width: min(250px, calc(100% - 3rem)); max-width: min(440px, calc(100% - 3rem));
  padding: 1.2rem 1.4rem 1.4rem; border-radius: var(--radius); color: var(--text);
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .65); box-shadow: 0 24px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .8);
  opacity: 0; transform: translateY(-18px) scale(.96); filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
.ann--termin { --a-fg: #0b3d8c; --a-tint: rgba(10, 132, 255, .16); --a-dot: #0a84ff; }
.ann--wichtig { --a-fg: #8a4b00; --a-tint: rgba(255, 159, 10, .2); --a-dot: #ff9f0a; }
.ann.is-open { opacity: 1; transform: none; filter: none; }
.ann__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.ann__tag { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .8rem .28rem .65rem; border-radius: 980px; background: var(--a-tint); color: var(--a-fg);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.ann__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-dot); position: relative; }
.ann__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--a-dot); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.ann__title { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .4rem; }
.ann__text { margin: 0; font-size: .95rem; line-height: 1.45; color: #3a3a3c; }
.ann__link { display: inline-block; margin-top: 1rem; padding: .5rem 1.1rem; border-radius: 980px; background: var(--a-fg); color: #fff; font-size: .88rem; font-weight: 500;
  transition: transform .15s var(--ease), opacity .2s; }
.ann__link:hover { text-decoration: none; opacity: .88; }
.ann__link:active { transform: scale(.95); }
@media (max-width: 800px) {
  .ann { top: calc(var(--nav-h) + 1rem); right: 1rem; left: auto; min-width: min(250px, calc(100% - 2rem)); max-width: calc(100% - 2rem); }
}

/* =========================================================
   Unterseiten (Mitglieder, Dokumente, Archiv, Formulare)
   ========================================================= */

/* Untermenü Mitglieder */
.nav__links { align-items: center; }
.has-menu { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.menu { position: absolute; top: 100%; left: 50%; min-width: 270px; padding: .5rem; border-radius: 18px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .14), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.97); transform-origin: 50% 0;
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.menu a { display: block; padding: .6rem .9rem; border-radius: 10px; font-size: .92rem; opacity: 1; }
.menu a::after { display: none; }
.menu a:hover { background: var(--green-tint); text-decoration: none; }
.menu a[aria-current] { color: var(--green); font-weight: 600; }
.sheet { overflow-y: auto; }
.sheet__sub { display: grid; padding: 0 0 .6rem 1rem; }
.sheet__sub a { font-size: 1.2rem; font-weight: 500; color: var(--muted); padding: .3rem 0; letter-spacing: -.01em; }
.sheet__sub a[aria-current] { color: var(--green); }

/* Fließtext */
.prose h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 2.4rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.prose h3.sub { font-size: 1.1rem; margin: 1.8rem 0 .7rem; }
.prose h4 { font-size: 1rem; margin: 1.4rem 0 .5rem; letter-spacing: -.005em; }
.prose p, .prose li { color: #3a3a3c; }
.prose .checks { margin: 1rem 0; }
.callout { padding: 1rem 1.3rem; border-radius: var(--radius-s); background: var(--green-tint); color: #17612b !important; }
.hint { color: var(--muted); font-size: .85rem; }
.steps { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 1rem 0; }
.steps li::marker { color: var(--green); font-weight: 700; }
.route { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .4rem; }
.route li { display: grid; grid-template-columns: 5.5rem 1fr; padding: .6rem 1rem; border-radius: 12px; background: var(--bg-alt); }
.route b { color: var(--green); font-variant-numeric: tabular-nums; }

/* Dokumentlisten */
.docs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.docs a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.04); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.docs a:hover { text-decoration: none; transform: translateX(6px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 14px 34px rgba(0,0,0,.08); }
.doc-type { flex: none; min-width: 3.2rem; padding: .2rem .5rem; border-radius: 8px; background: var(--green-tint); color: var(--green); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-align: center; }

/* Aufklappbereiche */
.acc { background: var(--surface); border-radius: var(--radius-s); margin-bottom: .8rem; padding: 0 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.04); }
.acc summary { list-style: none; cursor: pointer; padding: 1.2rem 2rem 1.2rem 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .5s var(--ease), margin .5s var(--ease); }
.acc[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.acc__body { padding-bottom: 1.4rem; }

/* Chips (Jahre, Bereiche) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-block; padding: .55rem 1.1rem; border-radius: 980px; background: var(--surface); color: var(--text); font-size: .95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04); transition: transform .3s var(--ease), background .3s, color .3s; }
.chip:hover { text-decoration: none; background: var(--green); color: #fff; transform: translateY(-2px); }
.chip:active { transform: scale(.96); }
.year { margin-bottom: 2.4rem; }
.year h2 { font-size: 1.6rem; margin-bottom: 1rem; }

/* Areale */
.areale { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.areale figure { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.05); }
.areale img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg-alt); transition: transform 1s var(--ease); }
.areale figure:hover img { transform: scale(1.04); }
.areale figcaption { padding: 1rem 1.3rem 1.2rem; font-weight: 600; letter-spacing: -.01em; }

/* Archiv-Beiträge */
.timeline .card .prose > h3 { font-size: 1.35rem; }
@media (min-width: 801px) { .timeline .card .date { position: sticky; top: calc(var(--nav-h) + 1rem); } }
.photo { margin: 0 0 1.2rem; }
.photo img { width: 100%; border-radius: var(--radius-s); }
.photo figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

/* Formularelemente */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field select { width: 100%; font: inherit; padding: .9rem 1rem; border-radius: 14px; border: 1.5px solid transparent; background: var(--bg-alt); color: var(--text); }
.field input[readonly] { color: var(--muted); }
.alt .field input, .alt .field textarea, .alt .field select { background: #fff; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.choices legend { font-size: .9rem; font-weight: 600; margin-bottom: .5rem; padding: 0; }
.choices label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.choices input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* Karte (erst nach Klick laden) */
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: linear-gradient(135deg, var(--green-tint), #dff2c9); display: grid; place-items: center; text-align: center; }
.map__ph { padding: 2rem; max-width: 420px; }
.map__ph p { color: var(--muted); margin-bottom: 1.2rem; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Captcha */
.captcha__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha .captcha__img { width: 220px; max-width: 100%; height: auto; aspect-ratio: 220 / 70; border-radius: 12px; background: #f5f7f5; box-shadow: none; object-fit: fill; outline: 1px solid var(--line); outline-offset: -1px; }
.captcha__new { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-alt); cursor: pointer; font-size: 1.3rem; color: var(--green); transition: transform .5s var(--ease), background .2s; }
.captcha__new:hover { background: var(--green-tint); }
.captcha__new.spin { transform: rotate(360deg); }
.captcha input[name="captcha"] { text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }

/* Bildergalerie (Portfolio) */
.portfolio { columns: 3 260px; column-gap: 1rem; }
.portfolio__item { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-s); overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); }
.portfolio__item a { display: block; overflow: hidden; }
.portfolio__item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.portfolio__item:hover img { transform: scale(1.05); }
.portfolio__item figcaption { padding: .7rem 1rem; font-size: .9rem; color: var(--muted); }
.portfolio__empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .4s var(--ease); padding: 1rem; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; margin-inline: auto; }
.lightbox figcaption { color: #fff; margin-top: .8rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: background .2s, transform .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox button:active { transform: scale(.92); }
.lightbox .lb-x { top: 1rem; right: 1rem; } .lightbox .lb-p { left: 1rem; top: 50%; } .lightbox .lb-n { right: 1rem; top: 50%; }

/* Hinweisleiste für angemeldete Vorstände */
.staffbar { position: fixed; left: 50%; bottom: 1rem; z-index: 80; transform: translateX(-50%); display: flex; gap: .2rem; padding: .35rem; border-radius: 980px;
  background: rgba(29, 29, 31, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.staffbar a { color: #fff; padding: .5rem 1rem; border-radius: 980px; font-size: .88rem; white-space: nowrap; }
.staffbar a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.staffbanner { margin-top: var(--nav-h); background: #fff1dc; color: #8a4b00; text-align: center; padding: .6rem 1rem; font-size: .9rem; }
.footer__login { opacity: .85; }

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox figure { transition: none; }
  .portfolio__item img { transition: none; }
  .ann { transition: opacity .3s; transform: none; filter: none; }
  .ann__dot::after { animation: none; }
  body { animation: none; }
  .hero__img, .marquee__track, .hero--plain::before, .hero--plain::after, .cue span { animation: none; }
  .marquee { overflow-x: auto; }
  .w > span { transform: none; opacity: 1; transition: none; }
  .js .split img.reveal { clip-path: none; transform: none; }
  .js .card.done, .js .card.done:hover { transform: none; }
  .btn, .btn:active { transform: none; }
  .nav__brand:hover img { transform: none; }
}
@media (hover: none) { .card::after { display: none; } }
@media (max-width: 800px) {
  .cue { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .stats span { font-size: .78rem; }
}
