/* ==========================================================================
   Bürgerstiftung Bernterode · Stylesheet
   Schriften lokal (Fraunces, Figtree – SIL OFL), keine externen Ressourcen.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  /* Farben – abgeleitet aus Wappen (Grün, Schwarz, Gold) und den Luftbildern (Dachziegel, Felder) */
  --paper: #f5f2eb;
  --paper-2: #ece6da;
  --card: #fbfaf6;
  --ink: #1d2420;
  --ink-2: #47514a;
  --ink-3: #6f776f;
  --line: #d9d2c3;
  --forest: #23422f;
  --forest-2: #2f5a3f;
  --moss: #6b7d5c;
  --clay: #a4583b;
  --clay-2: #8e4a31;
  --gold: #c69b3c;
  --gold-soft: #e9d8a8;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(29, 36, 32, .05), 0 8px 28px rgba(29, 36, 32, .08);
  --shadow-lg: 0 2px 4px rgba(29, 36, 32, .06), 0 24px 60px rgba(29, 36, 32, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.nav-open body { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-optical-sizing: auto; color: var(--ink); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Kicker / Eyebrow ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker .num { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--ink-3); font-weight: 400; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); color: var(--ink-2); max-width: 60ch; }
.section-head { display: grid; gap: 1rem 4rem; grid-template-columns: 1fr; margin-bottom: clamp(2rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr .9fr; } .section-head .lead { margin-bottom: .4rem; } }
.section-head h2 { margin: 0; }
.section-head h2 em { font-style: italic; color: var(--forest-2); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.35em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { --bg: var(--forest-2); color: var(--fg); transform: translateY(-1px); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { --bg: var(--gold-soft); --fg: var(--ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { background: transparent; --fg: var(--forest); border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--forest-2); }
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease), color .35s;
  color: #fff;
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 16, 12, .55), rgba(10, 16, 12, 0)); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled, .site-header--solid, html.nav-open .site-header {
  background: rgba(245, 242, 235, .9); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before, .site-header--solid::before, html.nav-open .site-header::before { opacity: 0; }
.site-header.is-scrolled { --header-h: 64px; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand img { width: auto; height: 46px; transition: height .35s var(--ease); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.site-header.is-scrolled .brand img { height: 40px; filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 600 1.12rem/1.05 var(--serif); letter-spacing: -.01em; }
.brand-text small { font: 600 .66rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .78; }
.brand:hover { color: inherit; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  position: relative; display: block; padding: .55rem .8rem; border-radius: 999px;
  color: inherit; text-decoration: none; font: 500 .95rem/1 var(--sans);
}
.main-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a:hover { color: inherit; }
.main-nav .nav-cta a { background: var(--gold); color: var(--ink); margin-left: .4rem; padding-inline: 1.1rem; font-weight: 600; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--gold-soft); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; position: relative; z-index: 3;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; content: ""; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--paper); color: var(--ink);
    padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  html.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { font: 500 1.6rem/1.2 var(--serif); padding: 1rem 0; border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { border: 0; margin-top: 1.5rem; }
  .main-nav .nav-cta a { display: inline-block; margin: 0; padding: .9rem 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--sans); }
}

/* ==========================================================================
   Hero-Slider
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px; color: #fff; overflow: hidden; background: #26352b; isolation: isolate; }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transform-origin: var(--origin, 50% 50%); }
.slide.is-active img { animation: kenburns calc(var(--slide-duration, 7000ms) + 1800ms) linear forwards; }
.hero.is-paused .slide.is-active img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(var(--dx, -1.5%), var(--dy, -1%), 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 20, 15, .82) 0%, rgba(12, 20, 15, .35) 38%, rgba(12, 20, 15, 0) 62%),
    linear-gradient(to right, rgba(12, 20, 15, .45), rgba(12, 20, 15, 0) 60%);
}
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(5.5rem, 12vh, 8rem); }
.hero-eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; opacity: .92; }
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff; font-weight: 400; font-size: clamp(2.7rem, 1.4rem + 6vw, 6.6rem); line-height: .98; letter-spacing: -.03em; max-width: 13ch; margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 46ch; opacity: .92; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.slider-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.6rem; }
.slider-ui .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.slider-count { font: 400 .95rem/1 var(--serif); font-style: italic; opacity: .9; min-width: 5.5em; }
.slider-count b { font: 500 1.3rem/1 var(--serif); font-style: normal; }
.slider-dots { display: flex; gap: 6px; flex: 1; max-width: 420px; }
.slider-dots button { flex: 1; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.slider-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(255, 255, 255, .32); border-radius: 2px; }
.slider-dots button::after { content: ""; position: absolute; left: 0; top: 9px; height: 2px; width: 0; background: #fff; border-radius: 2px; }
.slider-dots button[aria-current]::after { width: 100%; }
.hero.is-ticking .slider-dots button[aria-current]::after { width: 0; animation: tick var(--slide-duration, 7000ms) linear forwards; }
.hero.is-paused .slider-dots button[aria-current]::after { animation: none; width: 100%; }
@keyframes tick { to { width: 100%; } }
.slider-btns { display: flex; gap: .4rem; }
.slider-btns button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.slider-btns button:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.slider-btns svg { width: 18px; height: 18px; }
.slider-pause .i-play { display: none; }
.hero.is-paused .slider-pause .i-play { display: block; }
.hero.is-paused .slider-pause .i-pause { display: none; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 5.6rem; width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.7)); transform: translateX(-50%); display: none; }
@media (min-width: 1100px) { .scroll-cue { display: block; animation: cue 2.4s var(--ease) infinite; } }
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }
@media (max-width: 600px) { .slider-count { display: none; } .slider-dots { max-width: none; } }

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tint { background: var(--paper-2); }
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .08s; } .js [data-reveal="3"] { transition-delay: .16s; } .js [data-reveal="4"] { transition-delay: .24s; }

/* ---------- Intro mit Kennzahlen ---------- */
.intro { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.intro-grid { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.intro-quote { font: 400 clamp(1.55rem, 1.1rem + 1.7vw, 2.55rem)/1.22 var(--serif); letter-spacing: -.015em; margin: 0; color: var(--ink); }
.intro-quote em { color: var(--forest-2); }
.intro-quote::first-letter { font-size: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: .5rem; }
.fact { padding: 1.3rem 1rem 1.3rem 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 1.3rem; }
.fact b { display: block; font: 400 clamp(2rem, 1.5rem + 1.6vw, 2.9rem)/1 var(--serif); letter-spacing: -.03em; color: var(--forest); font-variant-numeric: lining-nums tabular-nums; }
.fact b small { font-size: .5em; letter-spacing: 0; margin-left: .1em; }
.fact span { display: block; margin-top: .45rem; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }

/* ==========================================================================
   Entdecken – Bento-Raster
   ========================================================================== */
.bento { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(12, 1fr); }
.place {
  position: relative; grid-column: span 12; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--forest); box-shadow: var(--shadow); isolation: isolate;
}
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.place::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 22, 17, .9) 0%, rgba(14, 22, 17, .45) 42%, rgba(14, 22, 17, .05) 75%); transition: opacity .4s; }
.place:hover { color: #fff; }
.place:hover img { transform: scale(1.06); }
.place-body { padding: clamp(1.3rem, 2.4vw, 2rem); }
.place .tag { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .5em .8em; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: .9rem; }
.place .tag--new { background: var(--gold); color: var(--ink); }
.place h3 { color: #fff; font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); margin-bottom: .45rem; }
.place p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .98rem; max-width: 48ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.place .more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.place .more svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.place:hover .more svg { transform: translateX(5px); }
.place .meta-num { position: absolute; top: 1.2rem; right: 1.4rem; font: italic 400 1rem/1 var(--serif); opacity: .85; }
@media (min-width: 720px) {
  .place { grid-column: span 6; }
  .place--hero { grid-column: span 12; min-height: 460px; }
}
@media (min-width: 1040px) {
  .place--hero { grid-column: span 7; grid-row: span 2; min-height: 620px; }
  .place--tall { grid-column: span 5; }
  .place--third { grid-column: span 4; min-height: 360px; }
  .place--hero h3 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
}

/* ==========================================================================
   Aktuelles – Dorfchronik
   ========================================================================== */
.chronik-top { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .chronik-top { grid-template-columns: 1fr 1fr; align-items: end; } }
.chronik-filter { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-start; }
@media (min-width: 960px) { .chronik-filter { justify-content: flex-end; } }
.chronik-filter button {
  font: 600 .88rem/1 var(--sans); padding: .7em 1.05em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: all .2s;
}
.chronik-filter button:hover { border-color: var(--forest); color: var(--forest); }
.chronik-filter button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Titelgeschichte */
.headline-story {
  display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--forest); color: #fff;
  box-shadow: var(--shadow-lg); margin-bottom: clamp(3rem, 6vw, 5rem); text-decoration: none;
}
@media (min-width: 900px) { .headline-story { grid-template-columns: 1.25fr 1fr; } }
.headline-story figure { margin: 0; position: relative; min-height: 300px; overflow: hidden; }
.headline-story figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.headline-story:hover figure img { transform: scale(1.04); }
.headline-story .hs-body { padding: clamp(1.8rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; position: relative; }
.headline-story .hs-body::before { content: "Titelgeschichte"; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.headline-story time { font: italic 400 1rem/1 var(--serif); opacity: .8; margin-bottom: .8rem; display: block; }
.headline-story h3 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.9rem); font-weight: 400; }
.headline-story p { color: rgba(255, 255, 255, .85); }
.headline-story .hs-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: .6rem 0 1.8rem; padding: 1.1rem 0; border-block: 1px solid rgba(255, 255, 255, .18); }
.headline-story .hs-facts div b { display: block; font: 400 1.7rem/1 var(--serif); color: var(--gold-soft); }
.headline-story .hs-facts div span { font-size: .8rem; opacity: .75; letter-spacing: .04em; }
.headline-story .btn { align-self: flex-start; }

/* Zeitleiste */
.chronik { position: relative; }
.chronik-year { display: grid; gap: 0 3rem; padding-top: 1rem; }
@media (min-width: 900px) { .chronik-year { grid-template-columns: 170px 1fr; } }
.year-label { position: relative; }
.year-label span {
  display: block; font: 300 clamp(3.2rem, 2.4rem + 3vw, 5.2rem)/1 var(--serif); letter-spacing: -.05em; color: var(--forest);
  font-variant-numeric: lining-nums; margin-bottom: 1.2rem;
}
@media (min-width: 900px) { .year-label span { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.year-items { position: relative; padding-left: 1.6rem; border-left: 1px solid var(--line); padding-bottom: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .year-items { padding-left: 2.6rem; } }
.chronik-item[hidden], .chronik-year[hidden] { display: none; }
.chronik-item { position: relative; }
.chronik-item::before { content: ""; position: absolute; left: calc(-1.6rem - 6px); top: 1.85rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--clay); }
@media (min-width: 900px) { .chronik-item::before { left: calc(-2.6rem - 6px); } }
.news-card {
  display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; cursor: pointer; text-align: left; width: 100%; font: inherit; padding: 0;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbc2b0; color: inherit; }
@media (min-width: 640px) { .news-card { grid-template-columns: 220px 1fr; } .news-card--noimg { grid-template-columns: 1fr; } }
.news-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
@media (min-width: 640px) { .news-card figure { aspect-ratio: auto; height: 100%; min-height: 170px; } }
.news-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover figure img { transform: scale(1.05); }
.news-card .nc-body { padding: 1.3rem 1.5rem 1.4rem; display: flex; flex-direction: column; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .82rem; color: var(--ink-3); margin-bottom: .55rem; }
.nc-meta .cat { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; color: var(--clay); }
.news-card h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); margin-bottom: .4rem; }
.news-card p { color: var(--ink-2); font-size: .97rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .read { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--forest-2); display: inline-flex; align-items: center; gap: .4rem; }
.news-card .read svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.news-card:hover .read svg { transform: translateX(4px); }
.news-card .badge-media { display: inline-flex; align-items: center; gap: .3rem; }
.news-card .badge-media svg { width: 14px; height: 14px; }

/* ---------- Story-Dialog ---------- */
dialog { border: 0; padding: 0; color: inherit; }
.story {
  width: min(860px, 100vw - 24px); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg); background: var(--paper);
  box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
}
.story::backdrop { background: rgba(14, 20, 16, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.story[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.story-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.story-close svg { width: 18px; height: 18px; }
.story-body > figure:first-child { margin: 0; aspect-ratio: 16 / 9; background: var(--paper-2); }
.story-body > figure:first-child img { width: 100%; height: 100%; object-fit: cover; }
.story-body > figure.contain img { object-fit: contain; background: #fff; }
.story-text { padding: clamp(1.5rem, 4vw, 3rem) clamp(1.3rem, 5vw, 3.6rem) clamp(2rem, 4vw, 3rem); }
.story-text h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.story-text .nc-meta { margin-bottom: 1rem; }
.story-text p { max-width: 66ch; }
.story-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 1.8rem; }
.story-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.story-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-gallery a:hover img { transform: scale(1.06); }
.video-wrap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; }
.ext-video { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ext-video:hover { border-color: var(--clay); color: var(--ink); }
.ext-video .play { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center; }
.ext-video .play svg { width: 18px; height: 18px; margin-left: 2px; }
.ext-video small { display: block; color: var(--ink-3); font-size: .82rem; }
.note { font-size: .88rem; color: var(--ink-3); }

/* ==========================================================================
   Projekte – Index-Liste
   ========================================================================== */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.project a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 1rem 1.6rem;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative;
}
.project .p-num { font: italic 400 1.05rem/1 var(--serif); color: var(--ink-3); }
.project h3 { margin: 0 0 .3rem; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 400; transition: color .3s, transform .4s var(--ease); }
.project p { margin: 0; color: var(--ink-2); font-size: .97rem; max-width: 60ch; }
.project .p-year { font: 500 .85rem/1 var(--sans); letter-spacing: .1em; color: var(--clay); white-space: nowrap; }
.project .p-thumb { display: none; }
.project a:hover h3 { color: var(--forest-2); transform: translateX(6px); }
@media (min-width: 900px) {
  .project a { grid-template-columns: 70px 1fr 200px 120px; }
  .project .p-thumb { display: block; width: 200px; height: 130px; border-radius: 12px; overflow: hidden; }
  .project .p-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s var(--ease), filter .4s; }
  .project a:hover .p-thumb img { transform: scale(1.08); filter: none; }
  .project .p-year { text-align: right; }
}
@media (max-width: 600px) { .project a { grid-template-columns: 1fr auto; } .project .p-num { display: none; } }

/* ==========================================================================
   Stiftung
   ========================================================================== */
.stiftung-grid { display: grid; gap: 3rem 5rem; }
@media (min-width: 980px) { .stiftung-grid { grid-template-columns: 1fr 1fr; } }
.stiftung-media { position: relative; }
.stiftung-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.stiftung-media .crest {
  position: absolute; right: -10px; bottom: -28px; width: 120px; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25));
}
@media (min-width: 980px) { .stiftung-media { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } .stiftung-media .crest { right: -36px; width: 150px; } }
.prose p { max-width: 64ch; }
.prose p:first-of-type::first-letter { float: left; font: 400 4.2em/.82 var(--serif); margin: .08em .1em 0 0; color: var(--forest); }
.milestones { list-style: none; padding: 0; margin: 2.4rem 0 2.2rem; display: grid; gap: 0; border-left: 1px solid var(--line); }
.milestones li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.milestones li::before { content: ""; position: absolute; left: -5px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.milestones b { display: block; font: 500 1rem/1.3 var(--serif); color: var(--forest); }
.milestones span { color: var(--ink-2); font-size: .97rem; }
.gremien { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.gremien div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.gremien b { font: 400 2.2rem/1 var(--serif); color: var(--forest); display: block; }
.gremien span { font-size: .9rem; color: var(--ink-2); }
.doc-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--forest); text-decoration: none; color: var(--forest); max-width: 460px; transition: background .25s, color .25s; }
.doc-link:hover { background: var(--forest); color: #fff; }
.doc-link svg { width: 30px; height: 30px; flex: none; }
.doc-link small { display: block; opacity: .75; }

/* ==========================================================================
   Spenden
   ========================================================================== */
.spenden { background: var(--forest); color: #fff; overflow: hidden; }
.spenden::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url("../img/luftbilder/bernterode-luftbild-6028-1280.jpg") center / cover no-repeat;
  mix-blend-mode: luminosity;
}
.spenden .wrap { position: relative; }
.spenden h2, .spenden h3 { color: #fff; }
.spenden h2 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.spenden .kicker { color: var(--gold); }
.spenden .lead { color: rgba(255, 255, 255, .85); }
.spenden-grid { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 960px) { .spenden-grid { grid-template-columns: 1fr 1fr; } }
.iban-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); position: relative; overflow: hidden;
}
.iban-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); opacity: .6; }
.iban-card dl { margin: 0 0 1.4rem; display: grid; gap: 1rem; position: relative; }
.iban-card dt { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.iban-card dd { margin: 0; font: 400 1.25rem/1.25 var(--serif); }
.iban-card .iban { font: 500 clamp(1.25rem, 1rem + 1.1vw, 1.75rem)/1.2 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; word-spacing: .12em; }
.copy-btn { position: relative; }
.copy-btn.is-done { --bg: var(--moss); }
.spenden-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.spenden-points li { display: flex; gap: .8rem; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.spenden-points svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: .1em; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.kontakt-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .kontakt-grid { grid-template-columns: repeat(3, 1fr); } }
.k-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .5rem; }
.k-card .k-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--forest); margin-bottom: .8rem; }
.k-card .k-icon svg { width: 20px; height: 20px; }
.k-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.k-card p, .k-card address { margin: 0; font-style: normal; color: var(--ink-2); }
.k-card a { font-weight: 600; }
.k-card .k-big { font: 400 1.3rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.k-card .k-big:hover { color: var(--clay); }
.k-card .k-foot { margin-top: auto; padding-top: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #17201a; color: rgba(255, 255, 255, .78); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.f-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 860px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.f-brand { display: flex; gap: 1rem; align-items: flex-start; }
.f-brand img { width: 64px; height: auto; flex: none; }
.f-brand b { display: block; font: 500 1.35rem/1.15 var(--serif); color: #fff; margin-bottom: .4rem; }
.site-footer h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.f-bottom nav { display: flex; gap: 1.2rem; }

/* ---------- To-Top ---------- */
.to-top {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--forest); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top:hover { background: var(--clay); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 14, 12, .96); color: #fff; margin: 0; }
.lightbox::backdrop { background: rgba(10, 14, 12, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lb-count { font: italic 400 1rem/1 var(--serif); opacity: .8; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-caption { text-align: center; padding: 12px 18px 20px; font-size: .92rem; opacity: .8; min-height: 3em; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox button svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; } .lb-prev { left: 18px; } .lb-next { right: 18px; } }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--forest); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 20, 15, .88), rgba(12, 20, 15, .25) 55%, rgba(12, 20, 15, .35)); }
.page-hero .wrap { padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.crumbs { font-size: .85rem; margin-bottom: 1.4rem; opacity: .85; }
.crumbs a { color: #fff; }
.crumbs span { margin: 0 .5em; opacity: .6; }
.page-hero h1 { color: #fff; font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 1rem; }
.page-hero .sub { font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.3 var(--serif); color: var(--gold-soft); margin: 0; }
.article { padding-block: clamp(3.5rem, 7vw, 6rem); }
.article-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; } }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body > * { max-width: 68ch; }
.article-body h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-top: 2.2em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.35rem; margin-top: 2em; }
.article-body .intro-p { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.45 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: .35em; }
.article-body li::marker { color: var(--clay); }
.article-body blockquote { margin: 2rem 0; padding: .3rem 0 .3rem 1.5rem; border-left: 3px solid var(--gold); font: italic 400 1.3rem/1.45 var(--serif); color: var(--forest); }
.article-body .poem { font: italic 400 1.12rem/1.6 var(--serif); color: var(--ink-2); white-space: pre-line; padding: 1.4rem 1.6rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.article-body .source { font-size: .9rem; color: var(--ink-3); font-style: italic; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius); }
.article-body figcaption { font-size: .88rem; color: var(--ink-3); margin-top: .6rem; }
.aside { display: grid; gap: 1.2rem; align-content: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.factbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.factbox h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.1rem; }
.factbox dl { margin: 0; display: grid; gap: .9rem; }
.factbox dt { font-size: .82rem; color: var(--ink-3); }
.factbox dd { margin: 0; font: 400 1.12rem/1.3 var(--serif); color: var(--ink); }
.factbox--green { background: var(--forest); color: #fff; border-color: var(--forest); }
.factbox--green h2 { color: var(--gold); }
.factbox--green p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.factbox--green .btn { --bg: var(--gold); --fg: var(--ink); }
.gallery-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.gallery-section h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.gallery-section .g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.gallery-section .g-head span { color: var(--ink-3); font: italic 400 1rem/1 var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--paper-2); position: relative; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(35, 66, 47, 0); transition: background .3s; }
.gallery a:hover::after { background: rgba(35, 66, 47, .12); }
.gallery-sub { margin-top: 2.8rem; }
.pager { border-top: 1px solid var(--line); padding-block: 2.5rem 4rem; }
.pager .wrap { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.pager a { display: block; padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--card); transition: border-color .25s, box-shadow .25s; }
.pager a:hover { border-color: var(--forest); box-shadow: var(--shadow); color: var(--ink); }
.pager small { display: block; color: var(--ink-3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.pager b { font: 400 1.25rem/1.25 var(--serif); }
.pager .next { text-align: right; }

/* Rechtstexte */
.legal { padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) clamp(3.5rem, 7vw, 6rem); }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 400; margin-bottom: 2rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.legal .wrap > * { max-width: 72ch; }
.legal address { font-style: normal; }

@media print {
  .site-header, .to-top, .slider-ui, .hero, .chronik-filter { display: none !important; }
  body { background: #fff; }
}

/* Listen ohne Marker */
.year-items, .bento { list-style: none; margin: 0; }
.year-items { margin-left: 0; }
.esel-list { columns: 2 260px; column-gap: 2rem; }
.esel-list li { break-inside: avoid; }
.legal h1 em { font-style: italic; color: var(--forest-2); }

/* Korrekturen nach Test */
.fact span.fact-label { display: block; margin-top: .45rem; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.fact b i { font-style: normal; }
.fact span:not(.fact-label) { display: inline; margin: 0; font-size: inherit; color: inherit; }
.news-card figure { position: relative; }
@media (min-width: 640px) { .news-card figure img { position: absolute; inset: 0; } }
.iban-card .iban { font-size: clamp(1.1rem, .85rem + 1vw, 1.55rem); }
@media (min-width: 480px) { .iban-card .iban { white-space: nowrap; } }
.hero h1 { max-width: 12ch; }
@media (max-width: 980px) {
  /* Header hat backdrop-filter -> fixierte Kinder beziehen sich auf den Header */
  .main-nav { inset: auto; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
@media (max-width: 600px) { .hide-sm { display: none; } }
@media (min-width: 1000px) { .aside { position: static; } }

/* Jahresfilter unter der Titelgeschichte, beim Scrollen mitlaufend */
.chronik-top { display: block; }
.chronik-top .lead { margin-bottom: 0; }
.chronik-bar {
  position: sticky; top: 63px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  margin: 0 calc(var(--gutter) * -1) clamp(1.5rem, 3vw, 2.5rem); padding: .9rem var(--gutter);
  background: rgba(245, 242, 235, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.chronik-bar.is-stuck { border-bottom-color: var(--line); }
.chronik-bar-label { font: italic 400 1.15rem/1 var(--serif); color: var(--ink-2); }
.chronik-filter, .chronik-bar .chronik-filter { justify-content: flex-start; }
.chronik { scroll-margin-top: calc(var(--header-h) + 90px); }
@media (max-width: 600px) {
  .chronik-bar { flex-wrap: nowrap; }
  .chronik-bar-label { display: none; }
  .chronik-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .chronik-filter::-webkit-scrollbar { display: none; }
  .chronik-filter button { flex: none; }
}
/* Filterleiste randlos über die volle Breite */
.chronik-bar { margin-inline: 0; padding-inline: 0; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.chronik-bar.is-stuck { border-bottom-color: transparent; box-shadow: 0 0 0 100vmax var(--paper), 0 1px 0 100vmax var(--line); }
/* To-Top: Icon bleibt beim Hover sichtbar */
.to-top, .to-top:hover, .to-top:focus-visible { color: #fff; }
.to-top svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }

/* Ken Burns ohne Hüpfer: ausgehendes Bild läuft weiter, während es ausblendet */
.slide.is-leaving { opacity: 0; z-index: 0; }
.slide.is-active.is-leaving { opacity: 1; z-index: 1; }
.slide.is-leaving img { animation: kenburns calc(var(--slide-duration, 7000ms) + 1800ms) linear forwards; }
.slide img { will-change: transform; backface-visibility: hidden; }
.hero.is-paused .slide.is-leaving img { animation-play-state: paused; }

/* Matomo-Widerspruch (Datenschutz) */
.optout { margin: 1.5rem 0 2rem; padding: 1.3rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 72ch; }
.optout-switch { display: inline-flex; align-items: center; gap: .8rem; cursor: pointer; font-weight: 600; }
.optout-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.optout-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c9c2b4; transition: background .25s; flex: none; }
.optout-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.optout-switch input:checked + .optout-track { background: var(--forest); }
.optout-switch input:checked + .optout-track::after { transform: translateX(20px); }
.optout-switch input:focus-visible + .optout-track { outline: 2px solid var(--clay); outline-offset: 3px; }
.optout-status { margin: .9rem 0 .4rem; }
.optout .note { margin: 0; }
