/* =========================================================================
   Gibbon Conservation Alliance — components.css
   Navigation, Buttons, Hero, Karten, Akkordeon, Footer
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Navigation
   ---------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 237, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.site-nav.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px rgba(13, 61, 5, 0.06);
}

/* Über dem Hero liegt die Navigation transparent auf dem Bild */
.site-nav--over {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-nav--over .nav__name,
.site-nav--over .nav__links > li > a { color: var(--paper); }
.site-nav--over .nav__name small { color: rgba(247, 245, 237, 0.7); }
.site-nav--over .nav__burger span { background: var(--paper); }
.site-nav--over.is-stuck {
  position: fixed;
  background: rgba(6, 33, 10, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(247, 245, 237, 0.12);
}

.nav__inner {
  width: min(100% - 2.5rem, var(--wrap-wide));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.nav__brand img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.nav__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color var(--ease);
}
.nav__name small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links li { margin: 0; }
.nav__links > li > a {
  display: block;
  padding: 0.55em 0.8em;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--ease), background var(--ease);
}
.nav__links > li > a::after {
  content: '';
  position: absolute;
  left: 0.8em; right: 0.8em; bottom: 0.32em;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav__links > li > a:hover::after,
.nav__links > li > a[aria-current='page']::after { transform: scaleX(1); }
.nav__links > li > a[aria-current='page'] { font-weight: 600; }

.nav__cta {
  margin-left: 0.4rem;
  padding: 0.6em 1.25em !important;
  background: var(--forest);
  color: var(--paper) !important;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--ease), transform var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--forest-mid); transform: translateY(-1px); }
.site-nav--over .nav__cta { background: var(--paper); color: var(--forest-deep) !important; }
.site-nav--over .nav__cta:hover { background: var(--white); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav__burger { display: flex; }

  /* Bei offenem Menue faerbt sich auch die Kopfzeile dunkel. */
  .site-nav.is-menu-open,
  .site-nav--over.is-menu-open {
    background: var(--forest-deep);
    backdrop-filter: none;
  }
  .site-nav.is-menu-open .nav__name { color: var(--paper); }
  .site-nav.is-menu-open .nav__burger span { background: var(--paper); }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-deep);
    padding: var(--sp-sm) var(--sp-sm) var(--sp-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--ease), padding var(--ease), visibility var(--ease);
  }
  .nav__links.is-open {
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    visibility: visible;
  }
  .nav__links > li > a,
  .site-nav--over .nav__links > li > a {
    color: var(--paper);
    padding: 0.9em 0.4em;
    font-size: var(--fs-md);
    border-bottom: 1px solid rgba(247, 245, 237, 0.1);
  }
  .nav__links > li > a::after { display: none; }
  .nav__cta, .site-nav--over .nav__cta {
    margin: var(--sp-sm) 0 0;
    text-align: center;
    background: var(--paper);
    color: var(--forest-deep) !important;
    border-bottom: 0 !important;
  }
}

/* -------------------------------------------------------------------------
   2. Buttons
   ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.82em 1.6em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 2px 10px rgba(13, 61, 5, 0.22);
}
.btn--primary:hover { background: var(--forest-mid); color: var(--paper); box-shadow: 0 8px 22px rgba(13, 61, 5, 0.26); }

.btn--lime,
.btn--paper {
  background: var(--paper);
  color: var(--forest-deep);
  box-shadow: 0 2px 10px rgba(6, 33, 10, 0.25);
}
.btn--lime:hover,
.btn--paper:hover { background: var(--white); color: var(--forest-deep); }

.btn--ghost {
  border-color: var(--forest);
  color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--paper); }

.btn--light {
  border-color: rgba(247, 245, 237, 0.5);
  color: var(--paper);
}
.btn--light:hover { background: var(--paper); color: var(--forest-deep); border-color: var(--paper); }

.btn--sm { padding: 0.62em 1.15em; font-size: var(--fs-xs); }

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1.5px solid var(--lime);
  padding-bottom: 0.12em;
}
.arrow-link::after { content: '→'; transition: transform var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link--light { color: var(--paper); }
.arrow-link--light:hover { color: var(--lime); }

/* -------------------------------------------------------------------------
   3. Songline — das wiederkehrende Motiv
   Die Gesänge sind das Unverwechselbare an Gibbons. Die Balkenreihe greift
   das auf und dient als Trenner zwischen den Abschnitten.
   ---------------------------------------------------------------------- */

.songline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  overflow: hidden;
}
.songline span {
  flex: 1 1 auto;
  min-width: 2px;
  background: var(--forest);
  opacity: 0.28;
  border-radius: 2px 2px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* Der Gesang baut sich einmal auf, wenn er in den Blick kommt. */
.songline.is-in span { transform: scaleY(1); }
/* Beim Darüberfahren atmet er kurz. */
.songline:hover span { animation: songpulse 3.4s ease-in-out infinite; }
.songline--light span { background: var(--lime); opacity: 0.5; }
.songline--divider { height: 24px; margin-block: var(--sp-lg); opacity: 0.85; }
.songline--hero {
  height: 52px;
  gap: 4px;
}

@keyframes songpulse {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .songline span,
  .songline:hover span { animation: none; transform: scaleY(1); transition: none; }
}

/* -------------------------------------------------------------------------
   4. Hero
   ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + var(--sp-lg));
  padding-bottom: var(--sp-lg);
  background: var(--forest-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 33, 10, 0.94) 0%, rgba(6, 33, 10, 0.72) 34%, rgba(6, 33, 10, 0.28) 62%, rgba(6, 33, 10, 0.5) 100%),
    linear-gradient(to right, rgba(6, 33, 10, 0.6) 0%, rgba(6, 33, 10, 0) 62%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wrap-wide));
  margin-inline: auto;
}
.hero__text { max-width: 16ch; }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.7rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.028em;
  line-height: 0.98;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: rgba(247, 245, 237, 0.66);
}
.hero__sub {
  margin-top: var(--sp-sm);
  max-width: 46ch;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: rgba(247, 245, 237, 0.86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}
.hero__foot {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wrap-wide));
  margin: var(--sp-lg) auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-md);
}
.hero__foot .songline { flex: 1 1 320px; max-width: 460px; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 237, 0.62);
  text-decoration: none;
  white-space: nowrap;
}
.hero__scroll span {
  display: inline-block;
  animation: nudge 2.4s ease-in-out 4;
}
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 720px) {
  .hero { min-height: 88vh; }
  .hero__text { max-width: none; }
  .hero__foot .songline { display: none; }
}

/* Seitenkopf der Unterseiten */
.pagehead {
  position: relative;
  background: var(--forest-deep);
  color: var(--paper);
  padding-top: calc(var(--nav-h) + var(--sp-lg));
  padding-bottom: var(--sp-lg);
  overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; z-index: 0; opacity: 0.42; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 33, 10, 0.95) 12%, rgba(6, 33, 10, 0.45) 100%);
}
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 { color: var(--paper); max-width: 16ch; }
.pagehead .lead { color: rgba(247, 245, 237, 0.8); max-width: 52ch; margin-top: var(--sp-sm); }
.pagehead .eyebrow { color: var(--lime); }
.pagehead .eyebrow::before { background: var(--lime); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-xs);
  color: rgba(247, 245, 237, 0.6);
}
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 0.5em; opacity: 0.5; }
.crumbs a { color: rgba(247, 245, 237, 0.82); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }

/* -------------------------------------------------------------------------
   5. Zahlenband
   ---------------------------------------------------------------------- */

.factband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fact {
  padding: var(--sp-md) var(--sp-sm);
  border-right: 1px solid var(--rule);
}
.fact:last-child { border-right: 0; }
.fact__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 120;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--forest);
}
.fact__num sup { font-size: 0.44em; vertical-align: super; letter-spacing: 0; }
.fact__txt {
  display: block;
  margin-top: 0.7em;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 24ch;
}
@media (max-width: 900px) {
  .factband { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .factband { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------------------------
   6. Split-Layout (Text neben Bild, abwechselnd)
   ---------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--text-narrow { grid-template-columns: 5fr 6fr; }
.split--media-first > *:first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split--text-narrow { grid-template-columns: 1fr; }
  .split--media-first > *:first-child { order: 0; }
}

/* -------------------------------------------------------------------------
   7. Karten
   ---------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--forest-tint);
}
.card__body { padding: var(--sp-sm); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__body h3 { font-size: var(--fs-md); }
.card__body p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--sp-2xs); }
.card .ratio-43 img { transition: transform var(--ease-slow); }
.card--link:hover .ratio-43 img { transform: scale(1.04); }

/* Ortsmarke */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  align-self: flex-start;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
  background: var(--forest-tint);
  padding: 0.34em 0.8em;
  border-radius: 100px;
}
.pill--year { background: var(--paper-alt); color: var(--ink-soft); }
.pill--dark { background: rgba(247, 245, 237, 0.1); color: var(--lime); }

/* Nummerierte Handlungskarte */
.step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--sp-md) var(--sp-sm) var(--sp-sm);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.step__num {
  position: absolute;
  top: -0.18em;
  right: 0.3em;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--forest);
  opacity: 0.07;
  pointer-events: none;
}
.step h3 { font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.step .btn, .step .arrow-link { margin-top: auto; align-self: flex-start; }
.step--dark {
  background: rgba(247, 245, 237, 0.055);
  border-color: rgba(247, 245, 237, 0.14);
}
.step--dark h3 { color: var(--paper); }
.step--dark p { color: rgba(247, 245, 237, 0.72); }
.step--dark .step__num { color: var(--lime); opacity: 0.16; }

/* Dunkler Abschnitt */
.section--dark {
  background: var(--forest-deep);
  color: var(--paper);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark p { color: rgba(247, 245, 237, 0.76); }
.section--dark hr { background: var(--rule-dark); }
.section--dark a { color: var(--lime); text-decoration-color: rgba(200, 212, 0, 0.4); }

/* -------------------------------------------------------------------------
   8. Projektzeile
   ---------------------------------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: var(--sp-lg);
  border-top: 1px solid var(--rule);
}
.project:nth-child(even) > .project__media { order: 2; }
.project__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-xs);
}
.project h3 { margin-bottom: 0.35em; }
.project__species {
  font-style: italic;
  color: var(--ink-faint);
  font-size: var(--fs-sm);
}
.project__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--sp-sm);
  padding: 0;
  list-style: none;
}
.project__docs li { margin: 0; }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--forest);
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  transition: background var(--ease), border-color var(--ease);
}
.doc-link:hover { background: var(--forest-tint); border-color: var(--forest-mid); }
.doc-link::before {
  content: 'PDF';
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  background: var(--forest);
  color: var(--paper);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) > .project__media { order: 0; }
}

/* -------------------------------------------------------------------------
   9. Verlustbalken
   Zeigt, wie wenig vom ursprünglichen Lebensraum übrig ist. Die schraffierte
   Fläche steht für das Verlorene, der helle Rest für das, was bleibt.
   ---------------------------------------------------------------------- */

.lossbar { margin-top: var(--sp-md); max-width: 34rem; }
.lossbar__track {
  display: flex;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(176, 80, 31, 0.14);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(176, 80, 31, 0.42) 0 2px,
    transparent 2px 7px
  );
}
.lossbar__track span {
  width: 1%;
  min-width: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(21, 25, 15, 0.2);
}
.lossbar figcaption {
  margin-top: 0.75em;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  max-width: 40ch;
}
.section--dark .lossbar__track {
  background-color: rgba(226, 183, 154, 0.1);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(226, 183, 154, 0.5) 0 2px,
    transparent 2px 7px
  );
}
.section--dark .lossbar figcaption { color: rgba(247, 245, 237, 0.62); }

/* -------------------------------------------------------------------------
   10. Akkordeon
   ---------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--rule); }
.accordion details {
  border-bottom: 1px solid var(--rule);
}
.accordion summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--forest-mid); }
.accordion summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--forest-mid);
  flex: none;
  transition: transform var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body {
  padding-bottom: var(--sp-md);
  max-width: 74ch;
  animation: fadeDown 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.accordion__body > * + * { margin-top: 0.85em; }
.accordion summary small {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   11. Seiteninhalt mit Sprungnavigation
   ---------------------------------------------------------------------- */

.with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-sm));
  font-size: var(--fs-sm);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-xs);
}
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 0.42em 0 0.42em 1em;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--ease), border-color var(--ease);
}
.toc a:hover { color: var(--forest); }
.toc a.is-active {
  color: var(--forest);
  font-weight: 600;
  border-left-color: var(--lime);
}
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc {
    position: static;
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid var(--rule);
  }
  .toc ul { display: flex; flex-wrap: wrap; gap: 0.35rem; border-left: 0; }
  .toc a {
    padding: 0.4em 0.8em;
    border: 1px solid var(--rule);
    border-radius: 100px;
    margin-left: 0;
  }
  .toc a.is-active { border-color: var(--forest-mid); background: var(--forest-tint); }
}

/* -------------------------------------------------------------------------
   12. Infoblöcke
   ---------------------------------------------------------------------- */

.note {
  border-left: 3px solid var(--lime);
  background: var(--paper-alt);
  padding: var(--sp-sm) var(--sp-sm) var(--sp-sm) var(--sp-md);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note p { margin: 0; }
.note > * + * { margin-top: 0.7em; }
.note--dark { background: rgba(247, 245, 237, 0.06); border-left-color: var(--lime); }

.databox {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
}
.databox h4 {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-xs);
}
.datarow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--rule);
}
.datarow:last-child { border-bottom: 0; }
.datarow dt {
  flex: 0 0 clamp(7rem, 30%, 11rem);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.datarow dd {
  flex: 1 1 12rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.copy-btn {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-mid);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.28em 0.7em;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.copy-btn:hover { background: var(--forest-tint); border-color: var(--forest-mid); }
.copy-btn.is-done { background: var(--lime); border-color: var(--lime); color: var(--forest-deep); }

/* -------------------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(247, 245, 237, 0.72);
  padding-top: var(--sp-xl);
  margin-top: 0;
}
.site-footer a { color: rgba(247, 245, 237, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--sp-md);
  padding-bottom: var(--sp-lg);
}
.footer__brand { max-width: 34ch; }
.footer__brand img { width: 44px; height: 44px; border-radius: 50%; margin-bottom: var(--sp-xs); }
.footer__brand p { font-size: var(--fs-sm); color: rgba(247, 245, 237, 0.62); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 237, 0.55);
  margin-bottom: var(--sp-xs);
}
.footer__links { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.footer__links li { margin: 0 0 0.5em; }
.socials { display: flex; gap: 0.6rem; margin-top: var(--sp-sm); }
.socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(247, 245, 237, 0.2);
  border-radius: 50%;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.socials a:hover { background: var(--paper); border-color: var(--paper); color: var(--forest-deep); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bottom {
  border-top: 1px solid var(--rule-dark);
  padding-block: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem var(--sp-md);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(247, 245, 237, 0.5);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Nach-oben-Knopf */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
}
.to-top.is-in { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest-mid); }

/* -------------------------------------------------------------------------
   14. Logo
   Das Vereinslogo bringt den Schriftzug bereits mit. In der Navigation
   läuft deshalb nur die runde Bildmarke mit, der volle Schriftzug erscheint
   dort, wo er Platz hat — auf hellem Grund oder auf einem hellen Feld.
   ---------------------------------------------------------------------- */

.nav__brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 25, 15, 0.12);
  transition: box-shadow var(--ease), transform var(--ease);
}
.nav__brand:hover img { transform: rotate(-4deg); }
.site-nav--over .nav__brand img { box-shadow: 0 0 0 1px rgba(247, 245, 237, 0.35); }

.logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  line-height: 0;
}
.logo-chip img { width: clamp(140px, 18vw, 190px); height: auto; }

.footer__brand .logo-chip { margin-bottom: var(--sp-sm); }

/* -------------------------------------------------------------------------
   15. Feinschliff für kleine Bildschirme
   ---------------------------------------------------------------------- */

@media (max-width: 620px) {
  :root { --nav-h: 60px; }

  .nav__inner { width: min(100% - 1.75rem, var(--wrap-wide)); }
  .nav__brand { gap: 0.55rem; }
  .nav__brand img { width: 34px; height: 34px; }
  .nav__name { font-size: 0.9375rem; letter-spacing: -0.02em; }
  .nav__name small { display: none; }

  .wrap, .wrap--wide, .wrap--narrow { width: min(100% - 1.75rem, var(--wrap)); }

  .hero { padding-bottom: var(--sp-md); }
  .hero__sub { font-size: var(--fs-base); max-width: none; }
  .hero h1 { font-size: clamp(2.35rem, 1.2rem + 5.6vw, 3.4rem); }
  .hero__foot { margin-top: var(--sp-md); }

  .pagehead { padding-bottom: var(--sp-md); }

  .section { padding-block: var(--sp-lg); }
  .fact__num { font-size: 3rem; }
  .step__num { font-size: 4.5rem; }
  .databox { padding: var(--sp-sm); }
  .book__cover { max-width: 180px; }
  .pullquote { font-size: var(--fs-lg); max-width: none; }
}
