/* ==========================================================================
   ERZEUGT — nicht von Hand ändern.
   Quelle: website/css/history.css
   Neu erzeugen mit: node build/theme.mjs
   ========================================================================== */

/* ==========================================================================
   Geschichtsseite — redaktionelle Bausteine
   --------------------------------------------------------------------------
   Wird nur auf /verein/geschichte.html geladen. Die Seite nutzt zusätzlich
   die allgemeinen Komponenten (Buttons, Badges, Galerie-Lightbox, CTA).

   Gestaltungsidee: modernes Editorial-Layout, großzügiger Weißraum, starke
   Typografie, dezente Jahreszahlen und feine Linien. Die historischen
   Materialien bringen die Patina mit – es gibt keine künstlichen Sepia-Filter,
   Papiertexturen oder Retro-Schriften.

   Bausteine (entsprechen den im Briefing genannten Komponenten):
     .history-hero        HistoryHero
     .jump-nav            HistoryJumpNavigation
     .era                 HistoryEra
     .history-figure      HistoryImage
     .gallery-grid        HistoryGallery / HistoryGalleryItem
     .card--dokument      ArchiveDocument (Variante von .card)
     .archive-grid        ArchiveGrid
     .person-card--portraet PersonPortrait (components.css)
     .member-chart        HistoricalChart
     .context-notice      HistoricalContextNotice
     .closing             CTASection
   ========================================================================== */

/* Ankerziele nicht unter Header und Jahresleiste verschwinden lassen */
.era,
.section[id],
.jump-nav + * { scroll-margin-top: 9.5rem; }

/* ==========================================================================
   1. Hero
   ========================================================================== */

.history-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--sv-color-surface-dark);
  color: var(--sv-color-text-inverse);
  --sv-color-focus: var(--sv-color-lime);
}

.history-hero__media { position: absolute; inset: 0; z-index: -2; }

/* Wie beim Aufmacher der Sportseiten: Steht in WordPress ein Rahmen zwischen
   Kasten und Bild, braucht er eine Höhe — sonst wächst das Bild über den
   Aufmacher hinaus, statt eingepasst zu werden. */
.history-hero__media > * { height: 100%; }

.history-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.history-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Kräftig genug, damit weiße Schrift auf jedem Foto lesbar bleibt,
     aber hell genug, dass die historische Aufnahme sichtbar ist. */
  background: linear-gradient(175deg,
              rgba(13, 34, 22, 0.88) 0%,
              rgba(13, 34, 22, 0.78) 55%,
              rgba(13, 34, 22, 0.92) 100%);
}

.history-hero__inner {
  padding-block: var(--sv-space-section-large);
  max-width: 52rem;
}

.history-hero__eyebrow {
  margin: 0 0 var(--sv-space-16);
  font-size: var(--sv-text-xs);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  text-transform: uppercase;
  color: var(--sv-color-lime);
}

.history-hero__title {
  margin: 0 0 var(--sv-space-24);
  color: var(--sv-color-text-inverse);
  font-size: var(--sv-text-4xl);
  font-weight: var(--sv-weight-bold);
  letter-spacing: -0.025em;
}

.history-hero__text p {
  color: var(--sv-color-text-inverse-muted);
  font-size: var(--sv-text-lg);
  max-width: 46rem;
}

.history-hero__scroll { margin: var(--sv-space-32) 0 0; }

.history-hero__scroll .link-arrow { color: var(--sv-color-text-inverse); }

.link-arrow--down::after { transform: rotate(90deg); }
.link-arrow--down:hover::after { transform: rotate(90deg) translateX(3px); }

/* ==========================================================================
   2. Sprungnavigation
   Ohne JavaScript ganz normale Anker-Links. Mit JavaScript wird zusätzlich
   der gerade sichtbare Zeitraum markiert (aria-current="true").
   ========================================================================== */

.jump-nav {
  position: sticky;
  top: 4.75rem;
  z-index: calc(var(--sv-z-header) - 1);
  background-color: var(--sv-color-surface);
  border-bottom: 1px solid var(--sv-color-border);
}

/* Richtung ausdrücklich — siehe .section-header in components.css. Die
   Sprungmarken der Geschichtsseite standen am 12.09.2026 untereinander, weil
   Elementor aus dem Kasten einen Container macht und der auf `column` steht. */
.jump-nav__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sv-space-16);
  padding-block: var(--sv-space-8);
}

.jump-nav__label {
  flex: none;
  /* Ein Wort, das nie umbricht. `flex: none` allein schützt es nur, solange
     die Beschriftung selbst das Flex-Element ist. In WordPress steckt sie in
     einem Textbaustein, und DER schrumpft, sobald die Kapitel-Links Platz
     brauchen: Gemessen am 17.09.2026 bei 800 px Breite stand dort „KAPITE"
     und darunter „L", 44 × 43 px. Mit `nowrap` bleibt das Wort ganz
     (61 × 15 px), kein seitlicher Überstand. */
  white-space: nowrap;
  font-size: var(--sv-text-xs);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  text-transform: uppercase;
  color: var(--sv-color-text-muted);
}

@media (max-width: 40rem) {
  .jump-nav__label { display: none; }
}

.jump-nav__list {
  display: flex;
  gap: var(--sv-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.jump-nav__list li { margin: 0; scroll-snap-align: start; }

.jump-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: var(--sv-space-8) var(--sv-space-16);
  border: 1px solid transparent;
  border-radius: var(--sv-radius-pill);
  color: var(--sv-color-text-muted);
  font-size: var(--sv-text-sm);
  font-weight: var(--sv-weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.jump-nav__link:hover {
  background-color: var(--sv-color-surface-light);
  color: var(--sv-color-primary-dark);
}

/* Aktiver Zeitraum: Farbe UND Rahmen – nicht allein über Farbe erkennbar */
.jump-nav__link[aria-current="true"] {
  background-color: var(--sv-color-surface-light);
  border-color: var(--sv-color-action);
  color: var(--sv-color-primary-dark);
  font-weight: var(--sv-weight-semibold);
}

/* ==========================================================================
   3. Kapitelübersicht (HistoryChapterNav)
   ========================================================================== */

.chapter-nav {
  display: grid;
  gap: var(--sv-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) { .chapter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .chapter-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.chapter-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sv-space-4) var(--sv-space-8);
  padding: var(--sv-space-16) var(--sv-space-24);
  border: 1px solid var(--sv-color-border);
  border-radius: var(--sv-radius-lg);
  background-color: var(--sv-color-surface);
  color: var(--sv-color-primary);
  text-decoration: none;
  transition: border-color var(--sv-transition-base), transform var(--sv-transition-base);
}

.chapter-nav__link:hover {
  border-color: var(--sv-color-action);
  transform: translateY(-2px);
}

.chapter-nav__years {
  font-size: var(--sv-text-sm);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  color: var(--sv-color-action);
}

.chapter-nav__title { font-weight: var(--sv-weight-semibold); }

.chapter-nav__link::after {
  content: "";
  margin-left: auto;
  align-self: center;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  background-color: var(--sv-color-action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--sv-transition-base);
}

.chapter-nav__link:hover::after { transform: translateX(3px); }

/* ==========================================================================
   4. Kapitel und die vier Layoutmuster
   --------------------------------------------------------------------------
   A  .hist-split        Text und Bild nebeneinander (5/12 · 7/12)
   B  .hist-feature      ein großes Bild, Zitat oder Highlight über die Breite
   C  .hist-facts        maximal vier kompakte Fakten nebeneinander
   D  .hist-media-grid   gleichmäßiges Bildraster (Vorstand, Archiv, Galerie)
   Andere Layouts kommen auf dieser Seite nicht vor.
   ========================================================================== */

.hist-chapter__head { margin-bottom: var(--sv-space-48); }

.hist-chapter__eyebrow {
  margin: 0 0 var(--sv-space-8);
  font-size: var(--sv-text-sm);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  text-transform: uppercase;
  color: var(--sv-color-action);
}

.hist-chapter__title {
  margin: 0;
  font-size: var(--sv-text-4xl);
  line-height: 1.08;
  hyphens: auto;
}

/* Zwischenüberschrift innerhalb eines Kapitels: eine Stufe kleiner */
.hist-chapter__title--sub { font-size: var(--sv-text-3xl); }

/* Lesebreite für Fließtext: rund 60–70 Zeichen */
.hist-prose { max-width: 38rem; }
.hist-prose > * + * { margin-top: var(--sv-space-16); }
.hist-prose h3 { margin-top: var(--sv-space-32); font-size: var(--sv-text-2xl); }
.hist-prose h3:first-child { margin-top: 0; }
.hist-prose p { max-width: none; }

.hist-chapter__intro { font-size: var(--sv-text-lg); }

/* Abstand zwischen den Geschichten innerhalb eines Kapitels */
.hist-story + .hist-story,
.hist-story + .hist-facts,
.hist-facts + .hist-story,
.hist-story + .hist-feature,
.hist-feature + .hist-story { margin-top: var(--sv-space-64); }

/* Jahresmarke über einer Geschichte */
.hist-year {
  margin: 0 0 var(--sv-space-8);
  font-size: var(--sv-text-2xl);
  font-weight: var(--sv-weight-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sv-color-action);
}

/* --- Layout A: Editorial Split ------------------------------------------ */

.hist-split {
  display: grid;
  gap: var(--sv-space-32);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 58rem) {
  .hist-split {
    grid-template-columns: 5fr 7fr;
    gap: var(--sv-space-48);
  }

  /* Bild links, Text rechts – ohne die Lesereihenfolge zu verändern */
  .hist-split--reverse { grid-template-columns: 7fr 5fr; }
  .hist-split--reverse > .hist-split__media { order: -1; }
}

.hist-split__text { max-width: 38rem; }
.hist-split__text > * + * { margin-top: var(--sv-space-16); }
.hist-split__text h3 { font-size: var(--sv-text-2xl); }

/* --- Layout B: Full Width Feature --------------------------------------- */

.hist-feature { margin: 0; }
.hist-feature img { border-radius: var(--sv-radius-panel); }

.hist-feature__caption {
  margin-top: var(--sv-space-16);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

/* Großes Zitat */
.hist-quote {
  margin: 0;
  padding: var(--sv-space-40) 0;
  border-top: 2px solid var(--sv-color-border);
  border-bottom: 2px solid var(--sv-color-border);
}

@media (min-width: 48rem) { .hist-quote { padding: var(--sv-space-48) 0; } }

.hist-quote__text {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.25rem);
  font-weight: var(--sv-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sv-color-primary);
  hyphens: manual;
}

@media (min-width: 58rem) { .hist-quote__text { max-width: 26ch; } }

.hist-quote__source {
  display: block;
  margin-top: var(--sv-space-32);
  font-size: var(--sv-text-base);
  font-weight: var(--sv-weight-bold);
  color: var(--sv-color-action);
  font-style: normal;
}

.hist-quote__translation {
  margin: var(--sv-space-16) 0 0;
  max-width: 44ch;
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

/* --- Layout C: Fakten und Highlights ------------------------------------ */

.hist-facts {
  display: grid;
  gap: var(--sv-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) { .hist-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 58rem) { .hist-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 58rem) { .hist-facts--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 58rem) { .hist-facts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hist-fact {
  margin: 0;
  padding: var(--sv-space-32);
  background-color: var(--sv-color-surface);
  border: 1px solid var(--sv-color-border);
  border-radius: var(--sv-radius-card);
}

.section--alt .hist-fact { background-color: var(--sv-color-surface); }

.hist-fact__year {
  display: block;
  margin-bottom: var(--sv-space-8);
  font-size: var(--sv-text-sm);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  color: var(--sv-color-action);
}

.hist-fact__value {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: var(--sv-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--sv-color-primary);
  hyphens: manual;
}

.hist-fact__label {
  display: block;
  margin-top: var(--sv-space-8);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

.hist-fact__text { margin: var(--sv-space-8) 0 0; font-size: var(--sv-text-sm); color: var(--sv-color-text-muted); }

/* Dunkle Variante für den einen großen Moment je Kapitel */
.hist-highlight {
  padding: var(--sv-space-48) var(--sv-space-40);
  background-color: var(--sv-color-surface-dark);
  color: var(--sv-color-text-inverse);
  border-radius: var(--sv-radius-panel);
  --sv-color-focus: var(--sv-color-lime);
}

.hist-highlight__value {
  margin: 0;
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  font-weight: var(--sv-weight-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sv-color-lime);
}

/* Auf der dunklen Highlightfläche steht die Jahreszahl in Limette */
.hist-highlight .hist-year { color: var(--sv-color-lime); }

/* Fließtext, der auf ein großformatiges Bild folgt */
.hist-feature + .hist-prose { margin-top: var(--sv-space-40); }

.hist-highlight__title {
  margin: var(--sv-space-8) 0 var(--sv-space-16);
  color: var(--sv-color-text-inverse);
  font-size: var(--sv-text-xl);
}

.hist-highlight p { color: var(--sv-color-text-inverse-muted); max-width: 44ch; }

/* --- Layout D: Medienraster --------------------------------------------- */

.hist-media-grid {
  display: grid;
  gap: var(--sv-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) { .hist-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sv-space-24); } }
@media (min-width: 64rem) { .hist-media-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .hist-media-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Erster Vorstand: kompakte Personenplätze */
.hist-board__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sv-space-8);
  margin: 0;
  padding: var(--sv-space-16);
  background-color: var(--sv-color-surface);
  border: 1px solid var(--sv-color-border);
  border-radius: var(--sv-radius-card);
}

.hist-board__initials {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--sv-radius-pill);
  background-color: var(--sv-color-surface-light);
  color: var(--sv-color-primary);
  font-size: var(--sv-text-base);
  font-weight: var(--sv-weight-bold);
}

.hist-board__name { font-weight: var(--sv-weight-semibold); color: var(--sv-color-primary); hyphens: manual; }
.hist-board__role { font-size: var(--sv-text-sm); color: var(--sv-color-text-muted); }

/* Namensübersicht der Gründer */
.hist-names {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: var(--sv-space-40);
}

@media (min-width: 40rem) { .hist-names { columns: 2; } }
@media (min-width: 58rem) { .hist-names { columns: 3; } }

.hist-names li {
  margin: 0;
  padding: var(--sv-space-8) 0;
  border-bottom: 1px solid var(--sv-color-border);
  break-inside: avoid;
}

/* Kleine redaktionelle Notiz im Fließtext */
.hist-note {
  margin: 0;
  padding: var(--sv-space-24) var(--sv-space-32);
  background-color: var(--sv-color-surface);
  border-left: 4px solid var(--sv-color-action);
  border-radius: var(--sv-radius-md);
}

.hist-note__label {
  margin: 0 0 var(--sv-space-8);
  font-size: var(--sv-text-xs);
  font-weight: var(--sv-weight-bold);
  letter-spacing: var(--sv-tracking-wide);
  text-transform: uppercase;
  color: var(--sv-color-action);
}

.hist-note p { margin: 0; font-size: var(--sv-text-sm); color: var(--sv-color-text-muted); }

/* Quellenhinweis unter einer Aussage */
.hist-source {
  display: block;
  margin-top: var(--sv-space-16);
  font-size: var(--sv-text-xs);
  letter-spacing: var(--sv-tracking-wide);
  text-transform: uppercase;
  color: var(--sv-color-text-muted);
}

/* Einordnungshinweis (NS-Zeit, Begriffe) */
.context-notice {
  padding: var(--sv-space-32);
  background-color: var(--sv-color-surface);
  border: 1px solid var(--sv-color-border-strong);
  border-left: 4px solid var(--sv-color-primary);
  border-radius: var(--sv-radius-lg);
}

.context-notice__title { margin: 0 0 var(--sv-space-8); font-size: var(--sv-text-lg); }
.context-notice p { margin: 0; font-size: var(--sv-text-sm); }
.context-notice p + p { margin-top: var(--sv-space-16); }

/* ==========================================================================
   5. Historische Bilder und Dokumente
   ========================================================================== */

.history-figure { margin: 0; }

.history-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--sv-radius-lg);
  background-color: var(--sv-color-surface-muted);
}

.history-figure__caption {
  display: block;
  margin-top: var(--sv-space-16);
  padding-left: var(--sv-space-16);
  border-left: 2px solid var(--sv-color-border);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

/* Namen zum Bild: eigene Zeile, etwas zurückgenommen */
.history-figure__names {
  display: block;
  margin-top: var(--sv-space-8);
  font-size: var(--sv-text-xs);
  line-height: 1.5;
  hyphens: manual;
}

.history-figure__year {
  display: block;
  font-weight: var(--sv-weight-bold);
  color: var(--sv-color-primary);
  letter-spacing: 0.02em;
}

.history-figure__hint {
  display: block;
  margin-top: var(--sv-space-4);
  font-size: var(--sv-text-xs);
  color: var(--sv-color-action);
}

.history-figure--lead img { aspect-ratio: 4 / 3; object-fit: cover; }
.history-figure--banner img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--sv-radius-panel); }
.history-figure--full img { aspect-ratio: 3 / 2; object-fit: cover; }
.history-figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.history-figure--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.history-figure--inline { margin-top: var(--sv-space-32); }

/* Dokumente unterscheiden sich sichtbar von Fotos: heller Rahmen,
   leichter Schatten, dezente Neigung — ohne künstliche Papiertextur. */
.history-figure--document img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--sv-color-border);
  border-radius: var(--sv-radius-md);
  box-shadow: var(--sv-shadow-md);
  background-color: var(--sv-color-surface);
}

.history-figure__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--sv-radius-md);
  cursor: zoom-in;
}

.history-figure__button img { transition: transform var(--sv-transition-base); }
.history-figure__button:hover img { transform: scale(1.015); }

/* Einordnungshinweis (NS-Zeit) */
.context-notice {
  padding: var(--sv-space-32);
  background-color: var(--sv-color-surface);
  border: 1px solid var(--sv-color-border-strong);
  border-left: 4px solid var(--sv-color-primary);
  border-radius: var(--sv-radius-lg);
}

.context-notice__title { margin: 0 0 var(--sv-space-8); font-size: var(--sv-text-lg); }
.context-notice p { margin: 0; font-size: var(--sv-text-sm); }

/* ==========================================================================
   6. Mitgliederentwicklung
   ========================================================================== */

/* Ein Diagramm statt Einzelbalken: dokumentierte Stände 1923–2026.
   Farben und Abstände kommen aus den bestehenden Tokens. */

.member-chart { margin: 0; }

/* Auf schmalen Bildschirmen waagerecht scrollbar statt unlesbar klein */
.member-chart__canvas {
  overflow-x: auto;
  padding-bottom: var(--sv-space-8);
  border-radius: var(--sv-radius-lg);
}

.member-chart__svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
}

.member-chart__grid { stroke: var(--sv-color-border); stroke-width: 1; }
.member-chart__axis-line { stroke: var(--sv-color-border-strong); stroke-width: 1; }

.member-chart__axis {
  fill: var(--sv-color-text-muted);
  font-size: 13px;
  font-family: inherit;
}

.member-chart__gap {
  fill: var(--sv-color-text-muted);
  font-size: 11px;
  font-family: inherit;
}

.member-chart__break {
  stroke: var(--sv-color-border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.member-chart__line {
  fill: none;
  stroke: var(--sv-color-action);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Historische Einzeljahre: gestrichelt, weil dazwischen Angaben fehlen */
.member-chart__line--luecken {
  stroke: var(--sv-color-action);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  opacity: 0.75;
}

.member-chart__point {
  fill: var(--sv-color-action);
  stroke: var(--sv-color-surface);
  stroke-width: 2;
}

/* Nicht exakter Wert (1983): offener Ring statt gefülltem Punkt */
.member-chart__point--offen {
  fill: var(--sv-color-surface);
  stroke: var(--sv-color-action);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.member-chart__value {
  fill: var(--sv-color-primary);
  font-size: 14px;
  font-weight: var(--sv-weight-bold);
  font-family: inherit;
}

.member-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sv-space-16) var(--sv-space-24);
  margin-top: var(--sv-space-16);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

.member-chart__key { display: inline-flex; align-items: center; gap: var(--sv-space-8); }

.member-chart__key::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 0;
  border-top: 2px solid var(--sv-color-action);
}

.member-chart__key--dashed::before { border-top-style: dashed; opacity: 0.75; }

.member-chart__key--open::before {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px dashed var(--sv-color-action);
  border-radius: var(--sv-radius-pill);
}

.member-chart__table { margin-top: var(--sv-space-32); }
.member-chart__hint { color: var(--sv-color-text-muted); font-size: var(--sv-text-sm); }

.editorial-note {
  margin-top: var(--sv-space-32);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
  max-width: 60ch;
}

.editorial-note--above { margin-top: 0; margin-bottom: var(--sv-space-24); }

/* ==========================================================================
   7. Personen
   ========================================================================== */

/* Die Porträts nutzen das allgemeine Kartenraster .grid .grid--3
   (layout.css) — ein eigenes Raster wäre eine Dublette. */

/* Die historischen Porträts nutzen die gemeinsame Komponente
   .person-card--portraet aus components.css. */

/* ==========================================================================
   8. Archiv
   ========================================================================== */

.archive-grid {
  display: grid;
  gap: var(--sv-space-24);
  grid-template-columns: 1fr;
}

/* Vier gleichwertige Archivgruppen: 2 × 2 statt einer angebrochenen Reihe */
@media (min-width: 42rem) { .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Archivdokument — Variante der gemeinsamen Kartenkomponente (components.css).
   Eigenständig bleibt nur, was die Aufgabe verlangt: die Scan-Vorschau, die
   sich in der Lightbox öffnen lässt, und die Jahresangabe. */

.card--dokument .card__scan {
  display: block;
  width: 100%;
  padding: var(--sv-space-24) var(--sv-space-24) 0;
  border: 0;
  background-color: var(--sv-color-surface-muted);
  cursor: zoom-in;
}

.card--dokument .card__scan img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--sv-color-border);
  border-top-left-radius: var(--sv-radius-md);
  border-top-right-radius: var(--sv-radius-md);
  box-shadow: var(--sv-shadow-sm);
  background-color: var(--sv-color-surface);
  transition: transform var(--sv-transition-base);
}

.card--dokument .card__scan:hover img { transform: translateY(-3px); }

.card--dokument:hover,
.card--dokument:focus-within {
  border-color: var(--sv-color-action-light);
  box-shadow: var(--sv-shadow-md);
}

.card--dokument .card__meta { align-items: center; margin: 0; }

.card__year {
  font-size: var(--sv-text-sm);
  font-weight: var(--sv-weight-semibold);
  color: var(--sv-color-text-muted);
}

.card__list {
  margin: var(--sv-space-16) 0 0;
  padding-left: var(--sv-space-24);
  font-size: var(--sv-text-sm);
  color: var(--sv-color-text-muted);
}

.card__list li { margin: 0 0 var(--sv-space-4); }

.card__hint { font-size: var(--sv-text-sm); color: var(--sv-color-text-muted); }

/* Ohne veröffentlichten Scan: reine Textkarte statt leerer Bildfläche */
.card--dokument-text .card__body { padding-top: var(--sv-space-32); }

/* ==========================================================================
   9. Bildergalerie
   ========================================================================== */

.gallery-filter { margin-bottom: var(--sv-space-32); }
.gallery-filter[hidden] { display: none; }
.gallery-filter .filter-bar__fieldset { border: 0; margin: 0; padding: 0; }
.gallery-filter .filter-result-count { margin-top: var(--sv-space-16); }

.gallery-grid {
  display: grid;
  gap: var(--sv-space-16);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 9rem;
  grid-auto-flow: dense;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 11rem; }
}

.gallery-grid__item { margin: 0; grid-row: span 2; min-width: 0; }

.gallery-grid__item--lead { grid-column: span 2; grid-row: span 3; }
.gallery-grid__item--wide { grid-column: span 2; }
.gallery-grid__item--tall { grid-row: span 3; }

@media (max-width: 47.999rem) {
  .gallery-grid__item--lead { grid-column: span 2; grid-row: span 2; }
  .gallery-grid__item--wide { grid-column: span 2; grid-row: span 2; }
}

.gallery-grid .gallery__item {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  border-radius: var(--sv-radius-lg);
}

.gallery-grid .gallery__item img { height: 100%; width: 100%; object-fit: cover; }

.history-gallery__caption-text { display: block; }

.history-gallery__caption-meta {
  display: block;
  margin-top: var(--sv-space-4);
  font-size: var(--sv-text-xs);
  color: var(--sv-color-text-muted);
}

/* ==========================================================================
   11. Abschluss
   ========================================================================== */

.closing {
  display: grid;
  gap: var(--sv-space-40);
  grid-template-columns: 1fr;
  align-items: center;
  padding: var(--sv-space-48) 0;
  border-top: 1px solid var(--sv-color-border);
}

@media (min-width: 58rem) {
  .closing { grid-template-columns: 1.1fr 0.9fr; gap: var(--sv-space-64); }
}

.closing__title { font-size: var(--sv-text-3xl); margin-bottom: var(--sv-space-16); }
.closing__text > p + p { margin-top: var(--sv-space-16); }

.closing__actions {
  display: flex;
  /* Richtung ausdruecklich — siehe .section-header in components.css. */
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sv-space-16);
  margin-top: var(--sv-space-32);
}

.closing__media img { border-radius: var(--sv-radius-panel); aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   12. Bewegung
   Sehr zurückhaltend: nur ein dezentes Einblenden beim Scrollen, das per
   JavaScript ausgelöst wird. Ohne JavaScript sind alle Inhalte sichtbar.
   ========================================================================== */

.js-reveal { opacity: 0; transform: translateY(12px); }

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal, .js-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}
