/* =========================================================================
   SCHWÄLKENBERG-ARCHIV — schwaelkenberg.de
   Design: Karteikarten-Archiv. Cremeweiß, Siegelgrün, Stempelrot.
   Keine Webfonts (System-Serif), keine externen Assets, kein JS.
   ========================================================================= */

:root {
  --bg: #faf7ef;          /* Archivpapier */
  --card: #f3edde;        /* Karteikarte */
  --ink: #211f1a;         /* Eisengallustinte */
  --soft: #55524a;        /* Fließtext */
  --mute: #8b867b;        /* Signaturen, Meta */
  --rule: #dcd5c4;        /* Linien */
  --green: #2e5b45;       /* Siegelgrün */
  --green-deep: #1f4232;
  --red: #9c3d2e;         /* Stempelrot */
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; }
h3 { font-size: 1.2rem; line-height: 1.4; }

p + p { margin-top: 1.1em; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

::selection { background: var(--green); color: var(--bg); }

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } }

/* ---------- Signatur / Label (Karteikarten-Metadaten) ---------- */
.sig {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.sig .no { color: var(--red); }

/* ---------- Stempel ---------- */
.stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 3px;
  padding: 4px 10px;
  transform: rotate(-1.5deg);
}

/* ---------- Linien ---------- */
.rule-t { border-top: 1px solid var(--rule); }
.rule-dotted { border-top: 1px dotted var(--mute); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header .inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px 24px; padding: 22px 0;
}
.brand { text-decoration: none; }
.brand .word { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.brand .word em { font-style: normal; color: var(--green); }
.brand .tag { display: block; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-size: 13.5px; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* ---------- Karteikarten ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.three { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 26px 26px 24px;
  text-decoration: none;
  display: block;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green);
  border-radius: 4px 4px 0 0;
}
a.card:hover { border-color: var(--mute); }
.card h3, .card .h { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-top: 10px; }
.card p { font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.card .more { font-family: var(--sans); font-size: 13px; color: var(--green); margin-top: 14px; }

/* ---------- Chronik / Regesten ---------- */
.chronik { list-style: none; margin-top: 40px; }
.chronik li {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px;
  padding: 18px 0; border-top: 1px dotted var(--mute);
}
.chronik li:last-child { border-bottom: 1px dotted var(--mute); }
.chronik .jahr { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--red); white-space: nowrap; }
.chronik .text { font-size: 15.5px; line-height: 1.65; }
.chronik .text strong { font-weight: 600; color: var(--ink); }

/* ---------- Fakten-Tabelle (Karteikarte) ---------- */
.facts {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 26px; margin-top: 36px;
}
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin-top: 14px; }
.facts dt { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.facts dd { font-size: 15.5px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px dotted var(--mute); }
.faq details:last-child { border-bottom: 1px dotted var(--mute); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  gap: 20px; align-items: baseline; padding: 18px 0;
  font-family: var(--serif); font-size: 17.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; max-width: 640px; font-size: 15.5px; }

/* ---------- Quellenliste ---------- */
.quellen { list-style: none; margin-top: 32px; }
.quellen li { border-top: 1px dotted var(--mute); padding: 16px 0; }
.quellen li:last-child { border-bottom: 1px dotted var(--mute); }
.quellen .t { color: var(--ink); font-size: 16px; }
.quellen .m { font-family: var(--sans); font-size: 12.5px; color: var(--mute); margin-top: 4px; }

/* ---------- Lageplan (SVG) ---------- */
.plan {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px; margin-top: 36px;
}
.plan figcaption { font-family: var(--sans); font-size: 12px; color: var(--mute); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--card); margin-top: 72px; }
.site-footer .inner { padding: 44px 0 36px; }
.fgrid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.site-footer ul { list-style: none; margin-top: 10px; }
.site-footer li { margin-top: 6px; }
.site-footer a { font-size: 14px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { font-size: 13.5px; line-height: 1.65; margin-top: 10px; max-width: 340px; }
.fbottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 18px; border-top: 1px dotted var(--mute);
  font-family: var(--sans); font-size: 12px; color: var(--mute);
}

/* ---------- Sonstiges ---------- */
.lead { font-size: 19px; line-height: 1.65; color: var(--soft); }
.lead strong { font-weight: 600; color: var(--ink); }
.hero { padding: 64px 0 48px; }
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }
.hero .stamp { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 22px; max-width: 640px; }
.meta-line { font-family: var(--sans); font-size: 13px; color: var(--mute); margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
