/* Chronik des Hauses (chronik.html) – 29.10.2026
   Eigene Datei. Wegen des Seitenwechsels ohne Neuladen auf ALLEN Seiten im <head> einbinden.
   Aufbau ab 1100 px Breite: links die Jahreszahl (bleibt beim Lesen stehen), Mitte der Text in der
   gewohnten Spalte, rechts die Belege (neu gesetzte Inserate und Zitate). Darunter alles in einer Spalte. */

.chronik {
  --c-ink: #242424;
  --c-muted: #686862;
  --c-rule: #b7b7b3;
  --c-hair: #d8d8d3;
  --c-blatt: #efeee7;
  --c-blatt-rand: #c4c3bb;
  width: 100%;
  margin: 3.4rem auto 3rem;
}
.chronik p { text-wrap: pretty; hyphens: manual; }

/* ---------- Kopf ---------- */
.chronik-kopf { max-width: 34rem; margin: 0 auto; text-align: center; }
.chronik-zurueck { margin: 0 0 1.7rem; font-size: .6875rem; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; }
.chronik-zurueck a { color: var(--c-muted); text-decoration: none; padding: .4rem 0; }
.chronik-zurueck a::before { content: "← "; letter-spacing: 0; }
.chronik-zurueck a:hover { color: var(--c-ink); }
.chronik h1 { margin: 0; font-size: 1.75rem; font-weight: 400; line-height: 1.3; letter-spacing: .01em; }
.chronik-unterzeile { margin: .75rem 0 0; font-style: italic; color: var(--c-muted); font-size: .9375rem; line-height: 1.6; }
.chronik-lead { margin: 2.7rem 0 0; text-align: left; font-size: 1.125rem; line-height: 1.85; }
.chronik-lead + .chronik-lead { margin-top: 1.2rem; }
.chronik-methode { margin: 1.6rem 0 0; text-align: left; font-size: .875rem; line-height: 1.7; font-style: italic; color: var(--c-muted); }

/* ---------- Inhalt ---------- */
.chronik-inhalt { max-width: 34rem; margin: 2.9rem auto 0; }
.chronik-inhalt ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-rule); }
.chronik-inhalt li { border-bottom: 1px solid var(--c-hair); }
.chronik-inhalt a {
  display: grid; grid-template-columns: 2.4rem 7.6rem minmax(0, 1fr); align-items: baseline;
  padding: .72rem 0; text-decoration: none;
}
.chronik-inhalt .nr { font-size: .6875rem; letter-spacing: .14em; color: var(--c-muted); }
.chronik-inhalt .jahre { font-size: .8125rem; letter-spacing: .05em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.chronik-inhalt .titel { font-style: italic; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; transition: text-decoration-color .3s ease; }
.chronik-inhalt a:hover .titel, .chronik-inhalt a:focus-visible .titel { text-decoration-color: var(--c-rule); }

/* ---------- Kapitel ---------- */
.kapitel { margin: 6.5rem 0 0; scroll-margin-top: 1.5rem; }
.kapitel-kopf { max-width: 34rem; margin: 0 auto 2.2rem; text-align: center; }
.kapitel-kopf::before {
  content: ""; display: block; width: 4.5rem; height: 5px; margin: 0 auto 1.6rem;
  border-top: 1px solid var(--c-ink); border-bottom: 1px solid #858585; opacity: .68;
}
.kapitel-marke { margin: 0 0 .75rem; font-size: .6875rem; line-height: 1.4; letter-spacing: .26em; text-transform: uppercase; font-variant-numeric: lining-nums; }
.kapitel h2 { margin: 0; font-size: 1.5rem; font-weight: 400; line-height: 1.35; font-style: italic; }
.kapitel-intro { margin: 1.9rem 0 0; text-align: left; font-size: 1.0625rem; line-height: 1.85; }

/* ---------- Eintrag: Jahr | Text | Beleg ---------- */
.eintrag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem) minmax(0, 1fr);
  column-gap: 2.4rem;
  margin: 0 0 2.6rem;
}
.eintrag > .jahr {
  grid-column: 1; grid-row: 1; justify-self: end; align-self: start;
  position: sticky; top: 2rem;
  margin: 0; font-size: 1.25rem; font-weight: 400; line-height: 1.4; letter-spacing: .02em;
  font-variant-numeric: oldstyle-nums proportional-nums; white-space: nowrap;
}
.eintrag > .text { grid-column: 2; grid-row: 1; min-width: 0; }
.eintrag > .beleg { grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: 2rem; max-width: 15rem; padding-top: .3rem; }
.eintrag .text > p { margin: 0 0 1.05rem; font-size: 1rem; line-height: 1.75; }
.eintrag .text > p:last-child { margin-bottom: 0; }

/* Hervorgehobene Jahre: die Jahreszahl etwas kräftiger */
.eintrag-hervor > .jahr { font-size: 1.5rem; line-height: 1.17; }

/* ---------- Zitate ---------- */
.zitat { margin: 1.3rem 0 1.5rem; padding: .1rem 0 .1rem 1.25rem; border-left: 1px solid var(--c-rule); }
.zitat p { margin: 0; font-style: italic; font-size: 1rem; line-height: 1.75; }
.zitat footer, .randzitat footer, .inserat figcaption {
  font-size: .625rem; line-height: 1.6; letter-spacing: .15em; text-transform: uppercase; color: var(--c-muted); font-style: normal;
}
.zitat footer { margin-top: .55rem; }

.randzitat { margin: 0; }
.randzitat p { margin: 0; font-style: italic; font-size: 1.0625rem; line-height: 1.55; }
.randzitat footer { margin-top: .6rem; }
.randzitat footer::before { content: ""; display: block; width: 1.5rem; height: 1px; background: var(--c-rule); margin-bottom: .55rem; }

/* ---------- Inserate (neu gesetzt nach den Zeitungsvorlagen) ---------- */
.inserat { margin: 0; }
.inserat .blatt {
  position: relative;
  padding: .85rem .95rem .9rem;
  background: var(--c-blatt);
  border: 1px solid var(--c-blatt-rand);
  box-shadow: inset 0 0 0 3px var(--c-blatt), inset 0 0 0 4px #d6d5ce;
  color: #262624;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.32;
  text-shadow: 0 0 .35px rgb(36 36 36 / .55);
}
.inserat .z { display: block; margin: .14rem 0; }
.inserat .lauf { text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; }
.inserat .rechts { text-align: right; }
.inserat .klein { font-size: .9em; }
.inserat .gross { font-size: 1.32em; line-height: 1.2; }
.inserat .kopf { font-size: 1.24em; font-weight: 600; letter-spacing: .01em; }
.inserat .fett, .inserat b { font-weight: 600; }
.inserat .sperr { letter-spacing: .2em; }
.inserat .fr {
  font-family: "LF38 Fraktur", "UnifrakturMaguntia", serif;
  font-weight: 400; font-size: 1.5em; line-height: 1.12; letter-spacing: 0;
}
.inserat .fr.gross { font-size: 1.9em; }
.inserat .lauf .fr { font-size: 1.45em; }
.inserat .linie { display: flex; align-items: center; justify-content: center; gap: .55em; }
.inserat .linie::before, .inserat .linie::after { content: ""; flex: 0 1 2.2em; height: 1px; background: #8f8e88; }
.inserat hr { width: 100%; height: 0; margin: .5rem 0; border: 0; border-top: 1px solid #8f8e88; }
.inserat figcaption { margin-top: .6rem; text-align: center; }
/* englische Fassung: Übersetzung unter der Quellenangabe */
.inserat figcaption .uebersetzung { display: block; margin-top: .45rem; font-size: .75rem; line-height: 1.5; letter-spacing: 0; text-transform: none; font-style: italic; color: #55554f; }

/* großes Inserat mitten in der Textspalte (1889) */
.eintrag .text > .inserat-schau { width: min(100%, 19rem); margin: 2rem auto 2.1rem; }
.inserat-schau .blatt { font-size: .875rem; padding: 1.1rem 1.2rem 1.15rem; }

/* ---------- 1913: der Name ---------- */
.eintrag .text > .namenszug { margin: 1.7rem 0 1.9rem; text-align: center; }
.namenszug .name { display: block; font-size: 1.25rem; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; }
.namenszug .klammer { display: block; margin-top: .3rem; font-style: italic; font-size: .9375rem; color: #4d4d49; }
.namenszug::before, .namenszug::after { content: ""; display: block; width: 2rem; height: 1px; margin: 0 auto; background: var(--c-rule); }
.namenszug::before { margin-bottom: 1.1rem; }
.namenszug::after { margin-top: 1.1rem; }

/* ---------- Nachwort und Quellen ---------- */
.nachwort { max-width: 34rem; margin: 0 auto; }
.nachwort p { margin: 0 0 1.4rem; font-size: 1.125rem; line-height: 1.85; }
.nachwort p:last-child { font-style: italic; }

.chronik-quellen { max-width: 34rem; margin: 5.5rem auto 0; padding-top: 2.2rem; border-top: 1px solid var(--c-rule); }
.chronik-quellen h2 { margin: 0 0 1.2rem; font-size: .6875rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.chronik-quellen > p { margin: 0 0 1.3rem; font-size: .9375rem; line-height: 1.75; }
.chronik-quellen ul { list-style: none; margin: 1.6rem 0 1.4rem; padding: 0; }
.chronik-quellen li { margin: 0 0 .55rem; padding-left: 1.1rem; text-indent: -1.1rem; font-size: .8125rem; line-height: 1.6; color: #44443f; }
.chronik-quellen li::before { content: "–"; display: inline-block; width: 1.1rem; text-indent: 0; color: var(--c-muted); }
.chronik-quellen .chronik-hinweis { font-size: .8125rem; font-style: italic; color: var(--c-muted); }
.chronik-quellen > .chronik-zurueck-unten { margin: 2.8rem 0 0; text-align: center; font-size: .6875rem; line-height: 1.4; }

/* ---------- Tür auf der Ort-Seite ---------- */
.chronik-tuer { margin: 2.2rem 0 0; font-size: .875rem; }
.chronik-tuer a { display: inline-block; padding: .4rem 0; text-decoration-color: #92928c; text-underline-offset: .3em; }

/* ---------- unter 1100 px: eine Spalte ---------- */
@media (max-width: 1099px) {
  .eintrag { display: block; max-width: 34rem; margin-left: auto; margin-right: auto; margin-bottom: 2.4rem; }
  .eintrag > .jahr {
    position: static; display: flex; align-items: center; gap: .9rem; justify-self: stretch;
    margin: 0 0 .55rem; font-size: 1.125rem;
  }
  .eintrag > .jahr::after { content: ""; flex: 1; height: 1px; background: var(--c-hair); }
  .eintrag-hervor > .jahr { font-size: 1.25rem; }
  .eintrag > .beleg { position: static; max-width: 18rem; margin: 1.5rem auto .2rem; padding-top: 0; }
  .randzitat { text-align: center; }
  .randzitat footer::before { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .chronik { margin-top: 2.6rem; }
  .chronik-lead { font-size: 1.0625rem; }
  .kapitel { margin-top: 4.8rem; }
  .kapitel-intro { font-size: 1rem; }
  .chronik-inhalt a { grid-template-columns: 2rem 6.6rem minmax(0, 1fr); }
  .zitat { padding-left: 1rem; }
  .namenszug .name { font-size: 1.0625rem; letter-spacing: .16em; }
  .nachwort p { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.chronik) { scroll-behavior: smooth; }
}

/* ---------- Kapitelkarten »Wege« ----------
   Jede Karte zeichnet sich, sobald sie ins Bild kommt (chronik.js setzt .ist-sichtbar).
   Ohne Skript oder bei reduzierter Bewegung steht sie einfach fertig da. */
.karte-grund { position: absolute; width: 0; height: 0; overflow: hidden; }
.chronik .karte { width: min(100%, 50rem); margin: 0 auto 2.4rem; }
.karte-bild { display: block; width: 100%; height: auto; overflow: visible; }
.ks { fill: none; stroke: #242424; stroke-linecap: round; stroke-linejoin: round; }
.kf { fill: #242424; stroke: none; }
.kp { fill: #242424; }
.kl, .kl2, .kl3, .klb { fill: #242424; font-family: inherit; }
.kl { font-size: 17px; font-style: italic; }
.kl2 { font-size: 14px; font-style: italic; fill: #3b3b38; }
.kl3 { font-size: 12px; font-style: italic; fill: #4a4a46; }
.klb { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; }
.karte-bild .basis { opacity: .4; }
.karte-bild .strahlen { opacity: .5; }
.chronik .karte figcaption { max-width: 34rem; margin: .9rem auto 0; text-align: center; font-size: .875rem; line-height: 1.6; font-style: italic; color: #4d4d49; }
.chronik .karte figcaption .karte-zeit { display: block; margin-bottom: .2rem; font-style: normal; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: #686862; }
.kapitel > .kapitel-intro { max-width: 34rem; margin: 0 auto 3.1rem; }

html.karten-an .karte-bild .ks { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.karten-an .karte-bild .kf,
html.karten-an .karte-bild text { opacity: 0; }
html.karten-an .karte-bild .basis { opacity: 0; }
html.karten-an .karte.ist-sichtbar .karte-bild .ks { animation: k-zeichnen var(--t, 1.4s) var(--v, 0s) cubic-bezier(.45, .05, .3, 1) forwards; }
html.karten-an .karte.ist-sichtbar .karte-bild .kf,
html.karten-an .karte.ist-sichtbar .karte-bild text { animation: k-auf .9s var(--v, 0s) ease forwards; }
html.karten-an .karte.ist-sichtbar .karte-bild .basis { animation: k-basis 1.4s .1s ease forwards; }
html.karten-an .karte.ist-sichtbar .karte-bild .abgeschnitten { animation: k-weg 1.4s 6.2s ease forwards; }
@keyframes k-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes k-auf { to { opacity: 1; } }
@keyframes k-basis { to { opacity: .4; } }
@keyframes k-weg { to { opacity: .16; } }
@media (prefers-reduced-motion: reduce) {
  html.karten-an .karte-bild .ks { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  html.karten-an .karte-bild .kf, html.karten-an .karte-bild text { opacity: 1; animation: none !important; }
  html.karten-an .karte-bild .basis { opacity: .4; animation: none !important; }
  .karte-bild .punkte { display: none; }
}
@media (max-width: 600px) {
  .chronik .karte { margin-bottom: 1.8rem; }
  .kl2, .kl3 { display: none; }
  .kl { font-size: 27px; }
  .klb { font-size: 24px; }
  .kp { r: 5px; }
}

/* ---------- Neu gezeichnete Originalpläne ----------
   Figure mit .karte.plan: zeichnet sich wie die Karten. data-plan="sicht" schaltet zwischen zwei Ansichten,
   data-plan="stufen" zwischen Bauphasen (data-stufe 0/1/2). Ohne Skript: erste Ansicht bzw. letzte Bauphase. */
.chronik .karte.plan { width: 100%; margin: 1.9rem 0 2.1rem; }
.plan-bild { display: block; width: 100%; height: auto; overflow: visible; }
.plan-schalter { display: none; justify-content: center; flex-wrap: wrap; gap: .1rem 1rem; margin: 0 0 .8rem; font-size: .6875rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
html.karten-an .plan-schalter { display: flex; }
.plan-schalter button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #686862; background: none; border: 0; padding: .4rem 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .38em; transition: color .3s ease, text-decoration-color .3s ease; }
.plan-schalter button:hover { color: #242424; }
.plan-schalter button[aria-pressed="true"] { color: #242424; text-decoration-color: #a4a4a0; }
.pl { font-size: 22px; font-style: italic; fill: #242424; font-family: inherit; paint-order: stroke; stroke: #f7f7f5; stroke-width: 5px; stroke-linejoin: round; }
.ptitel { font-size: 26px; }
.ptitel2 { font-size: 28px; }
.pklein { font-size: 19px; }
.pweg { font-size: 17px; fill: #686862; }
.pstr { font-size: 21px; letter-spacing: .05em; }
/* Bauphasen */
.plan [data-weg] { transition: opacity .9s ease; }
.plan [data-weg="2"] { opacity: .22; }
.plan[data-stufe="0"] [data-ab="1"], .plan[data-stufe="0"] [data-ab="2"], .plan[data-stufe="1"] [data-ab="2"] { display: none; }
.plan[data-stufe="0"] [data-weg="2"], .plan[data-stufe="1"] [data-weg="2"] { opacity: 1; }
/* Ansichten */
.plan [data-sicht="grundriss"] { display: none; }
.plan[data-sicht-aktiv="grundriss"] svg[data-sicht="grundriss"] { display: block; }
.plan[data-sicht-aktiv="grundriss"] g[data-sicht="grundriss"] { display: inline; }
.plan[data-sicht-aktiv="grundriss"] [data-sicht="vorder"],
.plan[data-sicht-aktiv="grundriss"] [data-sicht="ansicht"] { display: none; }
@media (max-width: 600px) {
  .pl { font-size: 30px; stroke-width: 6px; }
  .ptitel { font-size: 34px; }
  .ptitel2 { font-size: 36px; }
  .pklein { font-size: 26px; }
  .pweg { font-size: 23px; }
  .pstr { font-size: 28px; }
}

/* Integration in den vorhandenen Rahmen: globale h1-Breite und Standard-Linkfarbe ausgleichen. */
.chronik h1 { width: 100%; }
.chronik-inhalt a { color: var(--c-ink); }

/* Ort: Chronik-Tuer bleibt auch als besuchter Link in der Textfarbe. */
.chronik-tuer a { color: inherit; }

/* Präzise Bildnachweise; übrige Chronikgestaltung bleibt unverändert. */
.chronik-bildnachweise { margin-top: 2rem; }
.chronik-bildnachweise h3 { margin: 0 0 1.2rem; font-size: .6875rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.chronik-bildnachweise p { margin: 0 0 1.3rem; line-height: 1.75; }
.chronik-bildnachweise a { color: inherit; text-decoration-color: #92928c; text-underline-offset: .2em; overflow-wrap: anywhere; }
.chronik-bildnachweise a:hover { text-decoration-color: currentColor; }
