/* ===== Schriften (lokal, SIL Open Font License) ===== */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --paper: #FBF8F3;
  --paper-2: #F3EEE5;
  --ink: #1E1B2E;
  --ink-2: #4A4658;
  --line: #DDD5C7;
  --oscv: #0F7F81;
  --oscv-soft: #DDF0EF;
  --scv: #A62B63;
  --scv-soft: #F6E1EA;
  --gold: #C9A227;
  --gold-deep: #8C6D0E;
  --gold-soft: #F5EBCB;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 27, 46, .06), 0 6px 20px rgba(30, 27, 46, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--oscv); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .75rem; }
.eyebrow--light { color: var(--gold); }
.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 46em; margin-bottom: 2.25rem; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.hinweis { font-size: .95rem; color: var(--ink-2); }

/* ===== Kopfleiste ===== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem;
  color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.topbar.is-solid { background: rgba(251, 248, 243, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.topbar__brand { color: inherit; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.topbar__brand span { color: var(--gold); font-weight: 800; margin-right: .35em; }
.topbar nav { display: flex; gap: 1.5rem; }
.topbar nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .3em 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover, .topbar nav a.is-active { border-bottom-color: var(--gold); }
.topbar__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.topbar__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

@media (max-width: 760px) {
  .topbar__toggle { display: block; }
  .topbar nav {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.12);
    display: none;
  }
  .topbar nav.is-open { display: flex; }
  .topbar nav a { padding: .9em 1.25rem; border-bottom: 1px solid var(--line); }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg img, .ausblick__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg img { object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,32,.7) 0%, rgba(20,17,32,.25) 55%, rgba(20,17,32,0) 80%),
    linear-gradient(180deg, rgba(20,17,32,.55) 0%, rgba(20,17,32,.1) 30%, rgba(20,17,32,.9) 100%);
}
.hero__content { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero__content { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 1.25rem clamp(4rem, 12vh, 8rem); }
.hero__kicker { letter-spacing: .3em; font-weight: 600; color: var(--gold); margin-bottom: .5rem; }
.hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin: 0 0 .75rem; }
.hero__num { font-weight: 800; font-size: clamp(6rem, 3rem + 14vw, 13rem); line-height: .85; color: var(--gold); text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero__title { font-size: clamp(1.9rem, 1rem + 3.4vw, 3.6rem); max-width: 11em; }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__sub { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 34em; opacity: .92; }
.hero__cta { display: inline-block; margin-top: 1rem; color: var(--ink); background: var(--gold); padding: .7em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; }
.hero__cta { text-shadow: none; }
.hero__cta:hover { background: #fff; color: var(--ink); }
.hero__credit { position: absolute; right: 1rem; bottom: .6rem; z-index: 1; margin: 0; font-size: .75rem; color: rgba(255,255,255,.75); }

/* ===== Widmung ===== */
.widmung { background: var(--paper); position: relative; }
.widmung h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.widmung__text p:first-child::first-letter { font-family: var(--serif); font-weight: 800; float: left; font-size: 3.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--gold-deep); }
.widmung__gruss { margin-top: 2rem; font-family: var(--serif); font-size: 1.25rem; }
.widmung__datum { color: var(--ink-2); font-size: 1rem; }

/* ===== Zahlen ===== */
.zahlen { background: var(--ink); color: #fff; padding: 3rem 0; }
.zahlen__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.zahl { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); color: var(--gold); line-height: 1; }
.zahl__label { display: block; margin-top: .4rem; font-size: 1rem; opacity: .85; }
@media (max-width: 760px) { .zahlen__list { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

/* ===== Geschichte ===== */
.geschichte__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.leiter { border-top: 4px solid var(--gold); }
.leiter h3 { font-size: 1.2rem; }
.leiter h3:not(:first-child) { margin-top: 1.5rem; }
.leiter__list { list-style: none; margin: 0 0 1rem; padding: 0; border-left: 2px solid var(--gold-soft); }
.leiter__list li { position: relative; padding: .2rem 0 .8rem 1.1rem; }
.leiter__list li::before { content: ""; position: absolute; left: -7px; top: .6rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.leiter__list strong { display: block; }
.leiter__list span { color: var(--ink-2); font-size: 1rem; }
.leiter__note { font-size: 1rem; color: var(--ink-2); }
@media (max-width: 860px) { .geschichte__grid { grid-template-columns: 1fr; } }

/* ===== Präsident:innen ===== */
.praesidenten { background: var(--ink); color: #fff; }
.praesidenten .lead { color: rgba(255,255,255,.82); }
.personen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3.5rem; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,39,.35); border-radius: var(--radius); padding: 1.75rem; }
.monogramm {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 2rem; letter-spacing: .02em;
  color: var(--ink); background: radial-gradient(circle at 30% 25%, #F1D77A, var(--gold) 60%, #A98516);
  box-shadow: 0 0 0 4px rgba(201,162,39,.25);
}
.person h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.person__amt { color: var(--gold); font-weight: 600; margin-bottom: .9rem; }
.person__fakten { margin: 0; padding-left: 1.1rem; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.person__fakten li { margin-bottom: .45rem; }
@media (max-width: 900px) { .personen { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } .monogramm { width: 72px; height: 72px; font-size: 1.6rem; } }

.balken { margin: 0; }
.balken figcaption { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1.25rem; }
.balken__chart { display: flex; height: 64px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.06); }
.balken__seg { position: relative; flex: 0 0 auto; background: rgba(255,255,255,.14); border-right: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.balken__seg--chor { background: var(--gold); color: var(--ink); }
.balken__seg--luecke { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.1) 4px 6px); }
.balken__seg span { font-size: .85rem; font-weight: 600; white-space: nowrap; padding: 0 .3rem; }
.balken__legende { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .35rem 1.5rem; font-size: 1rem; }
.balken__legende li { display: flex; gap: .6rem; align-items: baseline; color: rgba(255,255,255,.75); }
.balken__legende li.is-chor { color: #fff; font-weight: 600; }
.balken__legende i { flex: 0 0 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.25); transform: translateY(1px); }
.balken__legende li.is-chor i { background: var(--gold); }
.balken__legende small { font-size: .9rem; opacity: .8; font-weight: 400; margin-left: auto; white-space: nowrap; }
.balken__achse { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .35rem; }

/* ===== Zeitleiste ===== */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter button {
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: .45em 1.1em;
  display: inline-flex; align-items: center; gap: .5em;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--oscv { background: var(--oscv); } .dot--scv { background: var(--scv); } .dot--chor { background: var(--gold); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
/* Notenlinien */
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 26px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--line) 0 1.5px, transparent 1.5px 6px);
  opacity: .9;
}
.tl-item { position: relative; width: 50%; padding: 0 2.75rem 2.5rem 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.5rem 2.75rem; }
.tl-item::before { /* Note */
  content: ""; position: absolute; top: 1.4rem; right: -9px; width: 18px; height: 13px; border-radius: 50%;
  background: var(--c, var(--oscv)); transform: rotate(-20deg); box-shadow: 0 0 0 4px var(--paper);
}
.tl-item:nth-child(even)::before { right: auto; left: -9px; }
.tl-item.is-highlight::before { width: 24px; height: 17px; right: -12px; background: var(--paper); border: 4px solid var(--c); }
.tl-item.is-highlight:nth-child(even)::before { left: -12px; }
.tl-item[data-verband="OSCV"] { --c: var(--oscv); --c-soft: var(--oscv-soft); }
.tl-item[data-verband="SCV"] { --c: var(--scv); --c-soft: var(--scv-soft); }
.tl-item[data-verband="Chor"] { --c: var(--gold); --c-soft: var(--gold-soft); }
.tl-item[hidden] { display: none; }

.tl-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem 1.5rem; border-top: 4px solid var(--c); }
.tl-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .35rem; }
.tl-datum { font-weight: 600; color: var(--ink-2); font-size: 1rem; }
.tl-badge { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--c-soft); color: var(--ink); padding: .2em .65em; border-radius: 999px; white-space: nowrap; }
.tl-card h3 { margin-bottom: .2rem; }
.tl-ort { font-size: 1rem; color: var(--ink-2); margin-bottom: .75rem; }
.tl-card p.tl-text { margin-bottom: .75rem; }
.tl-zitat { margin: 0 0 .9rem; padding: .6rem 0 .6rem 1rem; border-left: 3px solid var(--c); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.tl-zitat footer { font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--ink-2); margin-top: .3rem; }
.tl-quellen { font-size: .9rem; color: var(--ink-2); margin: 0; }
.tl-quellen a { color: var(--ink-2); }

.tl-item.is-highlight .tl-card h3 { font-size: 1.6rem; }
.tl-galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 .9rem; }
.tl-galerie button { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--paper-2); border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 2; }
.tl-galerie button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tl-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tl-galerie button:hover img { transform: scale(1.04); }
.tl-mehr { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,27,46,.62); color: #fff; font-weight: 600; font-size: 1.15rem; }
.tl-galerie--solo { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .timeline::before { left: 13px; transform: none; }
  .tl-item, .tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 2rem 2.75rem; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 4px; right: auto; }
  .tl-item.is-highlight::before, .tl-item.is-highlight:nth-child(even)::before { left: 1px; }
}

/* ===== Ehrentafel ===== */
.ehrentafel { background: var(--paper-2); }
.ehren { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ehre { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow); }
.ehre__jahre { flex: 0 0 auto; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.35rem; background: var(--gold-soft); color: var(--gold-deep); }
.ehre--gross .ehre__jahre { background: var(--gold); color: var(--ink); }
.ehre strong { display: block; line-height: 1.25; }
.ehre div span { display: block; font-size: .95rem; color: var(--ink-2); line-height: 1.35; }
.ehre div .ehre__quelle { font-size: .82rem; opacity: .8; }

/* ===== Ausblick ===== */
.ausblick { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--ink); padding: clamp(6rem, 16vw, 11rem) 0; }
.ausblick::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,32,.68); }
.ausblick__content { position: relative; z-index: 1; }
.ausblick p { font-size: 1.25rem; }
.ausblick__termine { color: var(--gold); font-weight: 600; }

/* ===== Quellen ===== */
.quellen { padding-bottom: 4rem; }
.quellen__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; font-size: 1rem; }
.quellen h2 { font-size: 1.5rem; }
.quellen ul { padding-left: 1.1rem; margin: 0; }
.quellen li { margin-bottom: .5rem; }
@media (max-width: 860px) { .quellen__grid { grid-template-columns: 1fr; } }

/* ===== Lightbox ===== */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,10,20,.96); color: #fff; }
.lightbox::backdrop { background: rgba(12,10,20,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.lightbox img { max-width: 94vw; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; background: #222; }
.lightbox figcaption { margin-top: .75rem; font-size: 1rem; text-align: center; padding: 0 3.5rem; }
.lightbox__count { opacity: .7; margin-left: .5em; }
.lightbox__btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } .lightbox img { max-height: calc(100vh - 170px); } }

/* ===== Einblenden ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tl-galerie img { transition: none; }
}

/* ===== Druck ===== */
@media print {
  .topbar, .hero__cta, .filter, .tl-galerie, .ausblick__bg, .lightbox, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { min-height: auto; color: var(--ink); background: none; }
  .hero::after, .hero__bg, .hero__credit { display: none; }
  .hero__content { padding: 1cm 0; }
  .zahlen, .praesidenten, .ausblick { background: none; color: var(--ink); }
  .praesidenten .lead, .person__fakten, .ausblick p { color: var(--ink); }
  .ausblick::after { display: none; }
  .timeline::before, .tl-item::before { display: none; }
  .tl-item, .tl-item:nth-child(even) { width: auto; margin: 0; padding: 0 0 .5cm; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
