/* Vereinsarchiv
   Schrift: Source Serif 4 (lokal, OFL) für Text, Überschriften und Zahlen. */

@font-face { font-family: "Source Serif 4"; src: url(assets/source-serif-4.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(assets/source-serif-4-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1d1c1a;
  --text: #2b2a27;
  --muted: #4d4b46;
  --line: #d8d6d0;
  --line-soft: #e8e6e1;
  --bg: #ffffff;
  --alt: #f5f5f3;
  --link: #1f4d7a;
  --red: #8f2a1d;
  --per: #fbe38a;
  --ort: #c6ddf4;
  --dat: #cfe8c6;
  --the: #f6d2c6;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 19px/1.6 var(--serif); font-variant-numeric: lining-nums; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.15; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0 0 14px; }
mark { color: inherit; padding: 0 2px; border-radius: 2px; }
mark.e-per { background: var(--per); } mark.e-ort { background: var(--ort); } mark.e-dat { background: var(--dat); } mark.e-the { background: var(--the); }
.sig { font-variant-numeric: tabular-nums; white-space: nowrap; }
.foot p a { padding-block: 12px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 12px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow > * { max-width: 760px; }
.section { padding: 72px 0; }
.section--alt { background: var(--alt); border-block: 1px solid var(--line-soft); }
.intro { max-width: 720px; color: var(--muted); margin-bottom: 28px; }

/* Hinweisband und Kopf */
.band { background: #fff3c4; border-bottom: 1px solid #e8d690; color: #3d3620; font-size: 16px; line-height: 1.45; text-align: center; padding: 9px 16px; }
.head { border-bottom: 1px solid var(--line); background: #fff; }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; color: var(--text); }

/* Kopfbereich mit Stapel */
.hero { position: relative; }
.hero::after { content: ""; display: block; height: 22vh; }
.hero__sticky { position: sticky; top: 0; padding: 48px 0 32px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 20px; }

.stage { --p: 0; position: relative; width: 100%; container-type: inline-size; }
.stage::before { content: ""; display: block; padding-top: 96%; }
.stage__line { position: absolute; left: 6%; right: 6%; top: 82cqw; height: 1px; background: var(--line); }
.stage__line span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--ink); }
.stage__cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--muted); }
.doc { --q: 0; position: absolute; left: 50%; top: 44cqw; width: 25cqw; aspect-ratio: 3 / 4; z-index: var(--z); border-radius: 2px;
  transform: translate(-50%, -50%) translate(calc((var(--x0) + (var(--x1) - var(--x0)) * var(--q)) * 1cqw), calc((var(--y0) + (var(--y1) - var(--y0)) * var(--q)) * 1cqw)) rotate(calc(var(--r0) * (1 - var(--q)) * 1deg)) scale(calc(1 - .2 * var(--q)));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .12); will-change: transform; }
.doc__label { position: absolute; left: 0; top: calc(100% + 1.4cqw); font-size: 15px; line-height: 1.2; color: var(--ink); white-space: nowrap; opacity: clamp(0, calc((var(--p) - .92) * 12.5), 1); }
.doc__label b { font-weight: 700; }
.doc--photo { background: #fbfaf7; padding: 1.3cqw 1.3cqw 3.2cqw; }
.doc--photo img { width: 100%; height: 100%; object-fit: cover; }
.doc--pk { aspect-ratio: 240 / 152; background: #e9e1cf; }
.doc--pk img { width: 100%; height: 100%; object-fit: cover; }
.env { height: 100%; position: relative; padding: 9cqw 3cqw 0 5cqw; background: #efe6d2; display: flex; flex-direction: column; gap: 1.6cqw; }
.env i { position: absolute; top: 2cqw; right: 2cqw; width: 5cqw; height: 6cqw; border: 1px dashed rgba(143, 42, 29, .6); background: #d9c7a8; }
.env span { height: .5cqw; background: rgba(40, 36, 30, .45); }
.env span.s { width: 55%; }
.paper { height: 100%; padding: 2.6cqw 2.4cqw; background: #f4efe3; color: #3a332a; display: flex; flex-direction: column; gap: 1.2cqw; }
.paper b { font: 600 3.2cqw/1 var(--serif); }
.paper i { font: italic 1.9cqw/1.2 var(--serif); margin-bottom: .8cqw; }
.paper span { height: .5cqw; background: rgba(58, 51, 42, .35); }
.paper span.s { width: 62%; }
.ledger { height: 100%; padding: 2.4cqw 2cqw; background: #eef0e8; color: #2f3a2c; display: flex; flex-direction: column; gap: 1.5cqw; background-image: linear-gradient(90deg, transparent 62%, rgba(143, 42, 29, .35) 62%, rgba(143, 42, 29, .35) calc(62% + 1px), transparent calc(62% + 1px)); }
.ledger b { font: 600 3cqw/1 var(--serif); margin-bottom: 1cqw; }
.ledger span { height: 1px; background: rgba(47, 58, 44, .35); }
.news { height: 100%; padding: 2cqw; background: #eeebe3; color: #2c2924; display: flex; flex-direction: column; gap: 1.2cqw; }
.news b { font: 600 2.2cqw/1 var(--serif); text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .5); padding-bottom: 1cqw; }
.news strong { font: 600 3.1cqw/1.05 var(--serif); }
.news__cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; }
.news__cols span { background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 .45cqw, transparent .45cqw 1.25cqw); }
.book { height: 100%; padding: 3cqw 2cqw; background: #2f4a3c; color: #e0c98f; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6cqw; }
.book small { font: 700 1.6cqw/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; margin-top: 2cqw; }
.book b { font: 600 2.6cqw/1.15 var(--serif); hyphens: manual; }
.book i { margin-top: auto; width: 6cqw; height: 6cqw; border-radius: 50%; border: 1px solid rgba(224, 201, 143, .7); }
.invite { height: 100%; padding: 2.6cqw 2.2cqw; background: #f7f3ea; color: #6b1f1f; border: .5cqw double rgba(107, 31, 31, .6); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2cqw; }
.invite small { font: 700 1.5cqw/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.invite b { font: 600 3.4cqw/1 var(--serif); }
.invite i { font: 1.7cqw/1.2 var(--serif); font-style: normal; color: #5a4a3a; }
.invite span { width: 80%; height: .5cqw; background: rgba(107, 31, 31, .25); }

/* Beispiel-Suche */
.demo { max-width: 920px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 22px 22px 24px; }
.demo__search { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid #b9b6ae; border-radius: 4px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.demo__search svg { color: var(--muted); flex: none; }
.demo__search small { font-size: 15px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.chip { font: 17px/1.25 var(--serif); color: var(--ink); background: #fff; border: 1px solid #b9b6ae; border-radius: 4px; padding: 9px 14px; min-height: 48px; cursor: pointer; text-align: left; }
.chip small { display: block; font-size: 15px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on small { color: #e3e1db; }
.panel[hidden] { display: none; }
.answer { padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--alt); margin-bottom: 16px; }
.answer p:last-child { margin-bottom: 0; }
.answer__src { font-size: 16px; color: var(--muted); }
.hits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.hit { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.hit h3 { font-size: 18px; margin-bottom: 4px; }
.hit p { font-size: 17px; margin: 0; }
.hit .hit__meta { font-size: 15px; color: var(--muted); margin-bottom: 2px; }
.hit__thumb { width: 56px; height: 74px; background: #f1ede3; border: 1px solid var(--line); }
.hit__thumb--paper { padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.hit__thumb--paper span { height: 2px; background: rgba(58, 51, 42, .4); }
.hit__thumb--paper span:nth-child(2n) { width: 70%; }
.hit__thumb--news { padding: 8px 7px; display: flex; flex-direction: column; gap: 5px; background: #eceae4; }
.hit__thumb--news b { height: 7px; background: rgba(0, 0, 0, .55); margin-bottom: 3px; }
.hit__thumb--news span { height: 2px; background: rgba(0, 0, 0, .3); }
.hit__thumb--book { background: #2f4a3c; padding: 16px 10px; }
.hit__thumb--book b { display: block; height: 4px; background: #e0c98f; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shots figcaption { font-size: 16px; line-height: 1.4; color: var(--text); margin-top: 6px; }

/* Ablauf im Archiv */
.steps { margin: 0 0 18px; padding-left: 26px; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps--wide { max-width: 760px; margin-bottom: 44px; }
.sheet-fig { margin: 0; }
figure > figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 12px; max-width: 760px; }
.scan { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.scan__lbl { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.typed { padding: 20px 18px; background: #f3ecd9; color: #2e2922; font: 16px/1.6 "Courier New", Courier, monospace; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.typed p { margin-bottom: 9px; }
.typed__h { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.typed__sig { font: italic 18px/1 var(--serif); text-align: right; margin: 12px 8px 0 0; }
.scan__after { font-size: 17px; line-height: 1.6; }
.scan__after p { margin-bottom: 10px; }
.scan__h { font-weight: 600; color: var(--ink); }
.legend { font-size: 16px; line-height: 2; }
.legend mark { margin-right: 6px; padding: 2px 6px; }

/* Skizzen */
.sketches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sketch { margin: 0; }
.sketch__area { position: relative; background: #efefed; border: 1px dashed #b5b3ad; border-radius: 4px; padding: 44px 16px 12px; }
.sketch__area svg { display: block; width: 100%; height: auto; }
.sketch__tag { position: absolute; left: 14px; top: 12px; font-size: 15px; font-style: italic; color: #6b6964; }
.s-line { fill: none; stroke: #9d9b95; stroke-width: 2; }
.s-thin { fill: none; stroke: #c9c7c1; stroke-width: 1.5; }
.s-fill { fill: #d6d4ce; stroke: none; }
.sketch figcaption { margin-top: 12px; color: var(--text); font-size: 17px; }
.sketch h3 { margin-bottom: 4px; }
.sketch figcaption p { margin: 0; }
.ideas { max-width: 760px; margin: 32px 0 0; color: var(--muted); }

/* Umfang und Ablauf */
.tiers { display: grid; gap: 14px; margin-bottom: 18px; }
.tier h3 { font-size: 22px; margin-bottom: 6px; }
.tier { border: 1px solid var(--line); background: #fff; padding: 18px 22px 6px; }
.sub { margin: 34px 0 10px; font-size: 23px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 200px minmax(0, 640px); gap: 40px; align-items: start; }
.contact__img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; }
.contact__name { margin: 0; }
.contact__mail { margin: 0; }
.contact__mail a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* Fußbereich */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.foot p { max-width: 860px; margin-bottom: 8px; }
.foot a { color: var(--link); }
.credits { margin: 0 0 12px; padding-left: 18px; max-width: 860px; }
.credits li { padding: 4px 0; }
.credits a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.foot__credit { margin-top: 18px; }
.foot__credit a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; }

/* Breiten */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero::after { display: none; }
  .hero__sticky { position: relative; padding: 32px 0 40px; }
  .stage { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { width: min(1120px, 100% - 32px); }
  .section { padding: 44px 0; }
  .head__in { min-height: 0; padding: 4px 0; }
  .nav { gap: 0 12px; }
  .nav a { min-height: 44px; font-size: 17px; }
  .lead { font-size: 19px; }
  .hero__grid { gap: 12px; }
  .stage::before { padding-top: 106%; }
  .doc { top: 38cqw; }
  .stage__line { top: 83cqw; }
  .doc__label { font-size: 14px; }
  .doc__label b, .doc__label span { display: block; }
  .demo { padding: 14px 12px 16px; border-radius: 4px; }
  .demo__search { flex-wrap: wrap; font-size: 18px; }
  .chips { flex-direction: column; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot--more, .hit--more { display: none; }
  .steps--wide { margin-bottom: 32px; }
  .scan { grid-template-columns: 1fr; padding: 14px; }
  .sketches { grid-template-columns: 1fr; gap: 24px; }
  .sketch__area { padding-top: 40px; }
  .contact { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .contact__img { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .hero__sticky { position: relative; }
}
