/* =========================================================
   Verein UKN – Umwelt, Kultur und Nachhaltigkeit
   Layout: Wiesenfoto als Bühne, darunter ruhige Lesespalten
   auf hellem Salbeipapier; Waldgrün trägt, Hahnenfuß-Gelb
   setzt sparsame Akzente.
   ========================================================= */

@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Farbe */
  --forest: #1f3a26;      /* tiefes Waldgrün – Flächen, Footer */
  --moss: #3e6341;        /* Vereinsgrün aus dem bisherigen Auftritt */
  --moss-soft: #6f8f69;
  --sage: #e7ece0;        /* helle Salbeifläche */
  --paper: #f8faf4;       /* Seitenhintergrund */
  --white: #ffffff;
  --ink: #1d2920;         /* Text */
  --muted: #55625a;       /* Nebentext */
  --line: #d3dbc9;
  --buttercup: #e6bf3a;   /* Hahnenfuß-Gelb aus dem Wiesenfoto */
  --on-dark: #f1f4ec;
  --on-dark-muted: #b9c7b5;

  /* Schrift */
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Typo-Skala (≈ 1.25) */
  --fs-sm: 0.95rem;
  --fs-base: 1.15rem;
  --fs-lg: 1.35rem;
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 5vw, 6rem);

  /* Raster */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --measure: 68ch;
  --nav-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.7,.2,1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color .2s; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--buttercup); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--buttercup); color: var(--forest); padding: .6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--sage { background: var(--sage); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Listen ---------- */
.list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .55em; }
.list li { position: relative; padding-left: 1.6em; }
.list li::before {
  content: ""; position: absolute; left: .2em; top: .62em;
  width: .55em; height: .55em; border-radius: 0 60% 0 60%;
  background: var(--moss-soft); transform: rotate(-8deg);
}
.list--check li { padding-left: 2em; }
.list--check li::before {
  width: 1.25em; height: 1.25em; top: .2em; left: 0; border-radius: 50%; transform: none;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e6341' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--moss); color: var(--white); }
.btn--primary:hover { background: var(--forest); color: var(--white); }
.btn--sun { background: var(--buttercup); color: var(--forest); }
.btn--sun:hover { background: #f0cf58; color: var(--forest); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--forest); }
.btn--outline { border-color: var(--moss); color: var(--moss); }
.btn--outline:hover { background: var(--moss); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s;
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }
.site-header.is-solid {
  background: rgba(248, 250, 244, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--forest);
}
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark {
  width: 50px; height: 50px; border-radius: 50%; background: var(--moss);
  display: grid; place-items: center; flex: none;
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark img { width: 64%; height: auto; }
.brand__text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; font-weight: 700; }
.brand__text small { display: block; font-family: var(--sans); font-weight: 400; font-size: .82rem; opacity: .85; letter-spacing: .01em; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: .5rem .8rem;
  color: inherit; text-decoration: none; font-weight: 500; font-size: 1.05rem; border-radius: 999px;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--buttercup); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: inherit; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 700; }
.nav__link--cta { background: var(--buttercup); color: var(--forest); margin-left: .5rem; padding-inline: 1.1rem; font-weight: 700; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #f0cf58; color: var(--forest); }
.nav__link--cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--forest); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: inherit; position: relative; z-index: 120;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 13px; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), background-color .2s, top .35s var(--ease);
}
.menu-toggle span { top: 23px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle { color: var(--on-dark); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--forest);
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column; align-items: stretch; justify-content: space-between;
    clip-path: circle(0 at calc(100% - 2.5rem) 2.5rem);
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s linear .6s;
    overflow-y: auto;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .menu-open .nav__list li { opacity: 1; transform: none; }
  .menu-open .nav__list li:nth-child(1) { transition-delay: .12s; }
  .menu-open .nav__list li:nth-child(2) { transition-delay: .17s; }
  .menu-open .nav__list li:nth-child(3) { transition-delay: .22s; }
  .menu-open .nav__list li:nth-child(4) { transition-delay: .27s; }
  .menu-open .nav__list li:nth-child(5) { transition-delay: .32s; }
  .nav__link {
    font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 500; color: var(--on-dark);
    padding: .45rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav__link::after { left: 0; right: auto; width: 2.5rem; bottom: .35rem; }
  .nav__link:hover { color: var(--white); }
  .nav__link[aria-current="page"] { color: var(--buttercup); font-weight: 500; }
  .nav__link--cta { background: none; color: var(--on-dark); margin: 0; padding-inline: 0; }
  .nav__link--cta:hover { background: none; color: var(--white); }
  .nav__link--cta[aria-current="page"] { box-shadow: none; color: var(--buttercup); }
  .nav__foot { display: grid; gap: .3rem; color: var(--on-dark-muted); font-size: 1rem; margin-top: 2rem; }
  .nav__foot a { color: var(--on-dark); }
  .menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .site-header .brand { color: var(--on-dark); position: relative; z-index: 120; }
}
@media (min-width: 1021px) { .nav__foot { display: none; } }
@media (max-width: 420px) { .brand__text small { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white);
  background: var(--forest);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../../images/web/blatt.webp") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,38,25,.82) 0%, rgba(20,38,25,.55) 45%, rgba(20,38,25,.15) 100%),
    linear-gradient(0deg, rgba(20,38,25,.55) 0%, rgba(20,38,25,0) 40%);
}
.hero--home { min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero--home .wrap { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero__logo { width: clamp(84px, 11vw, 132px); margin-bottom: 1.6rem; filter: drop-shadow(0 4px 20px rgba(0,0,0,.25)); }
.hero__title {
  font-size: var(--fs-h1); color: var(--white); font-weight: 500; line-height: .98;
  letter-spacing: -0.015em; margin-bottom: .5em;
}
.hero__title .word { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word > span { display: inline-block; }
.hero__title .initial { color: var(--buttercup); }
.hero__intro { max-width: 46ch; font-size: var(--fs-lg); color: var(--on-dark); margin-bottom: 2rem; }
.hero__meta { color: var(--on-dark-muted); font-size: var(--fs-sm); margin-top: 2.2rem; }

/* Ladesequenz: Wörter steigen aus der Wiese auf */
.js .hero--home .word > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero--home .word:nth-child(1) > span { animation-delay: .15s; }
.js .hero--home .word:nth-child(2) > span { animation-delay: .32s; }
.js .hero--home .word:nth-child(3) > span { animation-delay: .49s; }
.js .hero--home .hero__logo,
.js .hero--home .hero__intro,
.js .hero--home .btn-row,
.js .hero--home .hero__meta { opacity: 0; animation: fade .9s var(--ease) forwards; }
.js .hero--home .hero__logo { animation-delay: 0s; }
.js .hero--home .hero__intro { animation-delay: .75s; }
.js .hero--home .btn-row { animation-delay: .9s; }
.js .hero--home .hero__meta { animation-delay: 1.05s; }
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2rem; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px; display: none;
}
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) and (min-height: 700px) { .scroll-cue { display: block; } }

/* Unterseiten-Kopf */
.hero--page .wrap { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero--page .hero__bg { background-position: center 55%; }
.hero--page h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); color: var(--white); margin: 0; line-height: 1.02; }
.hero--page .hero__sub { color: var(--on-dark); font-size: var(--fs-lg); margin-top: .9rem; max-width: 52ch; }
.js .hero--page h1, .js .hero--page .hero__sub { animation: fade .8s var(--ease) both; }
.js .hero--page .hero__sub { animation-delay: .15s; }

/* ---------- Startseite ---------- */
.intro { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro__portrait {
  margin: 0; background: var(--white); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.intro__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; }
.intro__portrait figcaption { padding: .9rem 1.1rem 1rem; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); }
.intro__text { min-width: 0; }
@media (min-width: 860px) {
  .intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .intro__portrait { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.motto { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.motto .wrap { position: relative; }
.motto__label { color: var(--buttercup); font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: 1.4rem; }
.motto blockquote { margin: 0; max-width: 46rem; }
.motto blockquote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem);
  line-height: 1.25; color: var(--white); text-wrap: pretty;
}
.motto blockquote::before { content: none; }
.motto cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: var(--fs-lg); color: var(--on-dark-muted); }
@media (min-width: 900px) { .motto blockquote { max-width: 52rem; } }

.values { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.values__img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.values__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .values { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.note {
  display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.6rem;
  padding: 1rem 1.2rem; border-left: 3px solid var(--buttercup); background: var(--white); border-radius: 0 10px 10px 0;
}

.pillars-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.pillars { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { position: relative; padding-top: clamp(5.6rem, 11vw, 8rem); min-width: 0; }
.pillar__letter {
  position: absolute; top: 0; left: -.04em;
  font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 12vw, 9rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--moss-soft);
  transition: color .5s var(--ease);
  user-select: none;
}
.pillar:hover .pillar__letter { color: rgba(111,143,105,.18); }
.pillar h3 { position: relative; padding-top: .6rem; }
.pillar h3::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 3px; background: var(--buttercup); }

/* ---------- Projekte ---------- */
.overview { display: grid; gap: 1.5rem; }
.figure { margin: 0; }
.figure--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.75rem, 2vw, 1.5rem); }
.figure img { width: 100%; border-radius: 8px; }
.figure figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: .7rem; }
.zoomable { cursor: zoom-in; position: relative; display: block; border: 0; padding: 0; background: none; width: 100%; text-align: left; font: inherit; color: inherit; }
.zoomable::after {
  content: ""; position: absolute; right: .7rem; top: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgba(31,58,38,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center/55% no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.zoomable:hover::after, .zoomable:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoomable::after { opacity: .9; transform: none; } }

.download-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.download-card h2, .download-card h3 { color: var(--white); margin: 0; font-size: var(--fs-h3); font-style: italic; font-weight: 400; }

.projects { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 1000px) { .projects { grid-template-columns: 260px minmax(0, 1fr); } }
.toc { min-width: 0; }
.toc__title { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.toc a {
  display: block; white-space: nowrap; text-decoration: none; color: var(--forest);
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.toc a:hover { border-color: var(--moss); }
.toc a.is-active { background: var(--moss); border-color: var(--moss); color: var(--white); }
@media (min-width: 1000px) {
  .toc { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
  .toc ol { flex-direction: column; overflow: visible; gap: 0; border-left: 2px solid var(--line); }
  .toc a { white-space: normal; border: 0; border-radius: 0; background: none; padding: .55rem 0 .55rem 1.1rem; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
  .toc a.is-active { background: none; color: var(--forest); border-left-color: var(--buttercup); font-weight: 700; }
}
@media (max-width: 999px) {
  .toc { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 50; background: var(--paper); margin-inline: calc(var(--gutter) * -1); padding: .7rem var(--gutter) .3rem; border-bottom: 1px solid var(--line); }
  .toc__title { display: none; }
}

.article { min-width: 0; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.article:last-child { border-bottom: 0; padding-bottom: 0; }
.article + .article { padding-top: clamp(2.5rem, 5vw, 4rem); }
.article__tag {
  display: inline-block; font-size: var(--fs-sm); font-weight: 700; color: var(--moss);
  background: var(--sage); border-radius: 999px; padding: .2rem .8rem; margin-bottom: 1rem;
}
.article h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem); }
.article__body { max-width: var(--measure); }
.article .figure { margin-block: 1.8rem; }
.signature {
  margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.45;
}
.signature span { display: block; font-family: var(--sans); font-size: var(--fs-sm); color: var(--muted); }
.signature .closing { font-style: italic; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; margin-bottom: .5rem; }
.callout {
  background: var(--sage); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); margin-block: 1.6rem;
}
.callout h4 { margin-bottom: .5em; }
.appeal { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--forest); font-style: italic; }

/* ---------- Referenten ---------- */
.people-lead { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 760px) { .people-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.person__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo--top img { object-position: center 20%; }
.person__body { padding: clamp(1.2rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.person__role { font-size: var(--fs-sm); font-weight: 700; color: var(--moss); margin: 0; }
.person h2, .person h3 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.person .list { margin: 0; font-size: 1.05rem; }
.monogram {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sage); color: var(--moss); font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
}
.person--compact .person__body { gap: .8rem; }

/* ---------- Mitglied werden ---------- */
.join { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .join { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .join__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }
.steps { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.8rem 4.2rem; min-height: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--moss); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
}
.steps li::after { content: ""; position: absolute; left: 1.4rem; top: 2.9rem; bottom: .3rem; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 .25rem; font-size: 1.35rem; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.8rem); }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card--dark { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.aside-card--dark h2, .aside-card--dark h3 { color: var(--white); }
.aside-card h2 { font-size: var(--fs-h3); }
.file {
  display: flex; gap: 1rem; align-items: center; margin-bottom: 1.3rem;
}
.file__icon { width: 52px; height: 62px; flex: none; }
.file__name { font-weight: 700; line-height: 1.3; }
.file__meta { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.mail-link { word-break: break-word; font-weight: 700; }

/* ---------- Nachrichten ---------- */
.offers { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 680px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer {
  display: flex; gap: 1rem; align-items: flex-start; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.offer__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--moss); display: grid; place-items: center; flex: none; }
.offer__icon svg { width: 24px; height: 24px; }

.event { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; margin-top: 2.2rem; background: var(--forest); color: var(--on-dark); }
@media (min-width: 760px) { .event { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.event__date { background: var(--moss); padding: clamp(1.5rem, 4vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.event__label { font-weight: 700; color: var(--buttercup); font-size: 1rem; }
.event__day { font-family: var(--serif); font-size: clamp(3.4rem, 2.5rem + 3vw, 5rem); line-height: .9; color: var(--white); font-weight: 700; font-variant-numeric: lining-nums; }
.event__month { font-family: var(--serif); font-size: 1.5rem; color: var(--white); }
.event__rel { font-size: var(--fs-sm); color: var(--on-dark); opacity: .9; }
.event__info { padding: clamp(1.5rem, 4vw, 2.4rem); min-width: 0; }
.event__info h3 { color: var(--white); }
.event dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.2rem; }
.event dt { color: var(--on-dark-muted); }
.event dd { margin: 0; color: var(--white); }
.event a { color: var(--buttercup); }
.event a:hover { color: var(--white); }

.news-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.honours { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.honours li { padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--buttercup); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); } .footer-brand { grid-column: auto; } }
.footer-brand img { width: 92px; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--on-dark-muted); max-width: 34ch; font-family: var(--serif); font-size: 1.15rem; }
.site-footer h2 { color: var(--white); font-size: 1.6rem; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact li { display: flex; gap: .7rem; align-items: flex-start; min-width: 0; }
.contact svg { width: 1.15em; height: 1.15em; margin-top: .3em; flex: none; color: var(--buttercup); }
.contact span { min-width: 0; overflow-wrap: break-word; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-nav a { text-decoration: none; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; font-size: var(--fs-sm); color: var(--on-dark-muted);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; }

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--moss); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(31,58,38,.3);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--forest); }

/* ---------- Lesefortschritt ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 130; background: var(--buttercup); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(16, 28, 19, .94); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 82vh; width: auto; border-radius: 6px; background: var(--white); }
.lightbox__inner { display: grid; gap: .8rem; justify-items: center; padding: 1rem; }
.lightbox__cap { color: var(--on-dark-muted); font-size: var(--fs-sm); text-align: center; max-width: 60ch; }
.lightbox__close {
  position: fixed; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; }
.js .reveal-d2 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .to-top, .progress, .scroll-cue, .toc, .lightbox { display: none !important; }
  .hero { color: var(--ink); background: none; }
  .hero::after, .hero__bg { display: none; }
  .hero h1, .hero__title { color: var(--forest) !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Ergänzungen */
.callout h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: .5em; }
.event__when { display: flex; flex-direction: column; gap: .2rem; }
@media (max-width: 859px) { .intro__portrait { max-width: 420px; } }
@media (max-width: 900px) { .hero__bg { background-image: url("../../images/web/blatt-1000.webp"); } }
@media (max-width: 640px) { .footer-bottom { padding-right: 3.5rem; } }

/* Datenschutz & Impressum */
.legal-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 auto 2.5rem; max-width: var(--measure); }
.legal-toc a { text-decoration: none; font-weight: 700; color: var(--forest); padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.legal-toc a:hover { border-color: var(--moss); }
.legal { margin-inline: auto; }
.legal h3 { font-size: 1.45rem; margin: 2rem 0 .5rem; }
.legal-sub { font-family: var(--serif); font-style: italic; color: var(--moss); font-size: 1.15rem; margin-top: -.3rem; }
.legal-facts { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .7rem 1.5rem; margin: 1.5rem 0 2.5rem; padding: 1.4rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-facts dt { font-weight: 700; color: var(--muted); }
.legal-facts dd { margin: 0; overflow-wrap: break-word; }
.legal-rule { border: 0; height: 3px; width: 3rem; background: var(--buttercup); margin: 3rem 0 2rem; }
@media (max-width: 600px) { .legal-facts { grid-template-columns: 1fr; gap: .15rem; } .legal-facts dd { margin-bottom: .7rem; } }
