/* Familie Cella – gemeinsames Stylesheet (Design B1) */
/* Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO) – Lizenz: SIL Open Font License */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/eb-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #008080;
  --teal-dark: #006666;
  --teal-deep: #004f4f;
  --cream: #f8f3e6;
  --cream-2: #efe6d0;
  --ink: #1f2a2a;
  --ink-soft: #4a5655;
  --gold: #d8b04a;
  --gold-deep: #a9832a;
  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 92, 92, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216, 176, 74, .35);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif-display); font-size: 26px; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--gold); }
.mainnav { display: flex; gap: 28px; }
.mainnav a { color: #fff; text-decoration: none; font-size: 17px; line-height: 1.2; text-align: center; }
.mainnav a small { display: block; font-size: 12.5px; color: rgba(255,255,255,.65); font-style: italic; }
.mainnav a:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 4px; font: inherit; font-size: 16px; padding: 6px 12px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { font-family: var(--serif-display); font-style: italic; color: var(--gold); font-size: 22px; margin: 0 0 6px; }
h1 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(56px, 9vw, 112px); line-height: .95; margin: 0 0 28px; letter-spacing: -.01em; }
.hero p { margin: 0 0 16px; max-width: 60ch; color: rgba(255,255,255,.92); }
.hero .portrait { justify-self: center; text-align: center; }
.hero .portrait .oval { display: block; filter: drop-shadow(0 18px 26px rgba(0,0,0,.28)); }
.hero .portrait img { width: 100%; max-width: 330px; margin: 0 auto; clip-path: ellipse(48.6% 49.2% at 50% 50%); }
.hero .portrait figcaption { font-style: italic; font-size: 16px; color: rgba(255,255,255,.75); margin-top: 10px; }

/* ---------- Themen ---------- */
.themen { padding: 0 0 72px; }
.themen .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  display: block; background: var(--cream); color: var(--ink); text-decoration: none;
  border-radius: var(--radius); padding: 22px 22px 20px; border-top: 4px solid var(--gold);
  box-shadow: 0 10px 24px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.18); color: var(--ink); }
.tile strong { display: block; font-family: var(--serif-display); font-size: 25px; line-height: 1.15; }
.tile span { display: block; font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; }
.tile em { display: block; margin-top: 14px; font-size: 15px; color: var(--gold-deep); font-style: normal; }

/* ---------- Ahnenlinie ---------- */
.band { background: var(--teal-dark); padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(34px, 4.5vw, 48px); margin: 0; line-height: 1.1; }
.section-head p { margin: 8px auto 0; color: rgba(255,255,255,.75); font-style: italic; max-width: 60ch; }
.ornament { display: block; width: 90px; height: 1px; background: var(--gold); margin: 18px auto 0; position: relative; }
.ornament::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }

.lineage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.lineage::before { content: ""; position: absolute; left: 8%; right: 8%; top: 13px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); }
.lineage li { text-align: center; padding: 0 8px; position: relative; }
.lineage .dot { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-dark); border: 2px solid var(--gold); margin: 0 auto 16px; position: relative; }
.lineage .dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--gold); }
.lineage .name { font-family: var(--serif-display); font-size: 21px; font-weight: 600; line-height: 1.2; display: block; color: #fff; }
.lineage a.name { text-decoration: none; }
.lineage a.name:hover { color: var(--gold); }
.lineage .meta { font-size: 15.5px; color: rgba(255,255,255,.72); display: block; margin-top: 4px; }
.lineage .hl .name { color: var(--gold); font-size: 23px; }

/* ---------- Personen ---------- */
.personen { padding: 72px 0; }
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person {
  text-decoration: none; color: #fff; text-align: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 26px 12px 22px;
  transition: background .2s, border-color .2s;
}
.person:hover { background: rgba(0,0,0,.12); border-color: var(--gold); color: #fff; }
.person .initial { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--serif-display); font-size: 28px; color: var(--gold); }
.person strong { display: block; font-family: var(--serif-display); font-size: 25px; line-height: 1.1; }
.person span { display: block; font-style: italic; font-size: 16px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- Artikel ---------- */
.article-wrap { padding: 0 0 80px; }
.paper {
  background: var(--cream); color: var(--ink);
  max-width: 860px; margin: 0 auto; border-radius: var(--radius);
  padding: 64px 72px 56px; box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.paper h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 0 0 4px; }
.paper .dates { color: var(--gold-deep); font-style: italic; margin: 0 0 30px; }
.paper h3 { font-family: var(--serif-display); font-size: 31px; font-weight: 600; line-height: 1.15; margin: 48px 0 16px; }
.paper p { margin: 0 0 18px; }
.paper a { color: var(--gold-deep); }
.paper a:hover { color: var(--teal-dark); }
.paper sup a { text-decoration: none; font-size: .72em; }

blockquote.zitat {
  margin: 0 0 30px; padding: 4px 0 4px 28px; border-left: 3px solid var(--gold);
  font-style: italic; color: #33403f; font-size: 19px;
}
blockquote.zitat cite { display: block; margin-top: 10px; font-style: normal; font-size: 16px; color: var(--ink-soft); }
.pull { font-family: var(--serif-display); font-style: italic; font-size: 27px; line-height: 1.35; color: var(--teal-dark); margin: 30px 0 8px; }

figure { margin: 0; }
figure figcaption { font-size: 15px; font-style: italic; color: var(--ink-soft); margin-top: 8px; }
.fig-left { float: left; width: 46%; margin: 6px 30px 14px 0; }
.fig-right-small { float: right; width: 110px; margin: 6px 0 12px 26px; }
.drawing { background: #fff; padding: 8px; border: 1px solid var(--cream-2); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.clear { clear: both; }

.verse { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 34px 0; padding: 30px 0; border-top: 1px solid var(--cream-2); border-bottom: 1px solid var(--cream-2); }
.verse .poem { font-style: italic; font-size: 20px; line-height: 1.7; margin: 8px 0 0; color: #33403f; }

.orte { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start; background: var(--cream-2); border-radius: var(--radius); padding: 24px 26px; margin: 34px 0 10px; }
.orte p { margin: 0 0 10px; }
.orte img { border-radius: 4px; }

.notes { margin-top: 42px; padding-top: 22px; border-top: 1px solid #d8ccb0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.notes ol { margin: 0; padding-left: 26px; }
.notes li { margin-bottom: 6px; }
.notes li:target { background: #fbecc0; }
.notes .kritik { margin: 16px 0 0; font-style: italic; }

/* ---------- Links ---------- */
.weiter { padding: 72px 0; }
.linklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.linklist li { border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 18px 22px; font-size: 17.5px; line-height: 1.55; background: rgba(0,0,0,.06); }
.linklist li.feature { border-color: var(--gold); background: rgba(216,176,74,.10); }
.linklist a { font-weight: 600; }
.linklist small { display: block; color: rgba(255,255,255,.7); font-size: 15.5px; margin-top: 4px; }

/* ---------- Würdigung + Fuß ---------- */
.tribute { padding: 40px 0 46px; text-align: center; }
.tribute blockquote { margin: 22px auto 0; max-width: 640px; font-style: italic; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.78); }
footer { border-top: 1px solid rgba(216,176,74,.35); padding: 30px 0 40px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
footer .stand { color: rgba(255,255,255,.7); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .mainnav { gap: 18px; }
  .mainnav a small { display: none; }
  .themen .grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .lineage { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .lineage::before { display: none; }
  .paper { padding: 48px 44px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 32px); }
  .menu-btn { display: block; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; background: var(--teal-deep); padding: 6px 16px 14px;
    border-bottom: 1px solid rgba(216,176,74,.35);
  }
  .mainnav.open { display: flex; }
  .mainnav a { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 19px; }
  .mainnav a small { display: inline; margin-left: 8px; }

  .hero { padding: 36px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero .portrait { order: -1; }
  .hero .portrait img { max-width: 200px; margin: 0 auto; }
  h1 { margin-bottom: 18px; }

  .themen { padding-bottom: 48px; }
  .themen .grid { gap: 12px; }
  .tile { padding: 16px 14px; }
  .tile strong { font-size: 20px; }
  .tile span { font-size: 14px; }
  .tile em { display: none; }

  .band, .personen, .weiter { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }

  .lineage { grid-template-columns: 1fr; row-gap: 0; padding-left: 4px; }
  .lineage::before { display: block; left: 17px; right: auto; top: 14px; bottom: 30px; width: 2px; height: auto; background: var(--gold); }
  .lineage li { display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; text-align: left; padding: 0 0 22px; }
  .lineage .dot { margin: 2px 0 0; grid-row: span 2; }

  .people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .people .person:last-child { grid-column: 1 / -1; }
  .person { padding: 18px 8px 16px; }
  .person .initial { width: 44px; height: 44px; font-size: 22px; margin-bottom: 8px; }
  .person strong { font-size: 21px; }
  .person span { font-size: 14.5px; }

  .article-wrap { padding-bottom: 0; }
  .article-wrap .wrap { width: 100%; }
  .paper { border-radius: 0; padding: 40px 20px 36px; }
  .paper h3 { font-size: 27px; margin-top: 38px; }
  blockquote.zitat { padding-left: 16px; font-size: 17.5px; }
  .pull { font-size: 23px; }
  .fig-left { float: none; width: 100%; margin: 0 0 22px; }
  .fig-right-small { width: 84px; margin-left: 16px; }
  .verse { grid-template-columns: 1fr; gap: 18px; }
  .orte { grid-template-columns: 1fr; padding: 20px; }
  .orte img { max-width: 220px; }

  .linklist { grid-template-columns: 1fr; gap: 12px; }
  .linklist li { padding: 16px 18px; font-size: 17px; }
  footer .wrap { flex-direction: column; }
}

/* =====================================================================
   UNTERSEITEN-BAUSTEINE
   ===================================================================== */
.mainnav a[aria-current="page"] { color: var(--gold); }
.mainnav a[aria-current="page"] small { color: rgba(216,176,74,.75); }

/* Seitenkopf */
.page-head { padding: 54px 0 34px; }
.page-head .back { display: inline-block; font-size: 16px; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 18px; }
.page-head .back:hover { color: var(--gold); }
.page-head h1 { font-size: clamp(42px, 6.5vw, 76px); margin: 0 0 14px; line-height: 1.02; }
.page-head .lead { max-width: 64ch; margin: 0; color: rgba(255,255,255,.88); font-size: 20px; }
.page-head.with-portrait .head-row { display: flex; align-items: center; gap: 48px; }
.page-head .head-row > .head-text { flex: 0 1 auto; max-width: 62ch; }
.page-head .head-row > .portrait-side { flex: 0 0 250px; }
/* Kopfbild (Banner) der Personenseiten */
.page-banner { margin: 0 0 34px; }
.page-banner img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid rgba(216,176,74,.45); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.page-head .portrait-side { margin: 0; text-align: center; }
.page-head .portrait-side img { width: 100%; max-width: 250px; margin: 0 auto; border-radius: 4px; box-shadow: 0 18px 34px rgba(0,0,0,.28); border: 6px solid var(--cream); }
.page-head .portrait-side figcaption { font-style: italic; font-size: 15px; color: rgba(255,255,255,.75); margin-top: 12px; line-height: 1.45; }

.page-body { padding: 0 0 80px; }
.page-body > .wrap > * + * { margin-top: 34px; }

/* Papier-Varianten */
.paper.wide { max-width: 1120px; }
.paper h2 + .dates { margin-top: 0; }
.paper ul.plain { padding-left: 22px; margin: 0 0 18px; }
.paper ul.plain li { margin-bottom: 8px; }
.fig-right { float: right; width: 40%; max-width: 300px; margin: 6px 0 16px 30px; }
.fig-right img, .fig-left img { width: 100%; }

/* Dokumente / Scans */
.docs { display: grid; gap: 28px; align-items: start; }
.docs.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.docs.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.docs.single { max-width: 860px; margin-left: auto; margin-right: auto; }
.doc { margin: 0; }
.doc .frame { display: block; background: var(--cream); padding: 14px; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s; }
a.frame:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,.24); }
.doc .frame img { width: 100%; margin: 0 auto; }
.doc figcaption { margin-top: 10px; font-size: 16px; font-style: italic; color: rgba(255,255,255,.82); line-height: 1.45; }
.doc figcaption strong { font-style: normal; color: #fff; }
.doc-title { font-family: var(--serif-display); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0 0 14px; color: #fff; }
.hint { font-size: 15.5px; font-style: italic; color: rgba(255,255,255,.7); margin: 0; }

/* Porträtgalerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.gallery figure { margin: 0; }
.gallery .frame { display: block; background: var(--cream); padding: 10px; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.gallery .frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.gallery figcaption { margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: rgba(255,255,255,.88); }

/* Grosse Grafik (Stammbaum) zum Verschieben */
.zoom { background: var(--cream); border-radius: var(--radius); padding: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.18); overflow: auto; max-height: 85vh; -webkit-overflow-scrolling: touch; }
.zoom img { max-width: none; width: auto; }

/* Knopf und Infokasten */
.btn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; border-radius: 999px; padding: 9px 20px; font-size: 17px; }
.btn:hover { background: var(--gold); color: var(--teal-deep); }
.paper .btn { color: var(--gold-deep); border-color: var(--gold-deep); }
.paper .btn:hover { background: var(--gold-deep); color: #fff; }
.infobox { background: var(--cream-2); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.infobox > :last-child { margin-bottom: 0; }

/* Literaturliste */
.biblio { list-style: none; margin: 0; padding: 0; }
.biblio li { padding: 18px 0; border-bottom: 1px solid #e2d7bd; }
.biblio li:first-child { padding-top: 0; }
.biblio .t { font-family: var(--serif-display); font-weight: 600; font-size: 22px; line-height: 1.25; display: block; color: var(--ink); }
.biblio .m { display: block; color: var(--ink-soft); font-size: 16.5px; margin-top: 4px; }

/* Seitenfuss der Unterseiten */
.backbar { text-align: center; padding: 10px 0 0; }

@media (max-width: 1000px) {
  .docs.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-head { padding: 30px 0 24px; }
  .page-head .back { margin-bottom: 10px; }
  .page-head .lead { font-size: 18px; }
  .page-head.with-portrait .head-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .page-head .head-row > .portrait-side { flex: none; align-self: center; }
  .page-banner { margin-bottom: 22px; }
  .page-head .portrait-side { order: 0; }
  .page-head .portrait-side img { max-width: 190px; border-width: 4px; }
  .page-body { padding-bottom: 52px; }
  .page-body > .wrap.flush { width: 100%; }
  .page-body > .wrap.flush > .paper { border-radius: 0; }
  .docs.cols-2, .docs.cols-3, .docs.cols-4 { grid-template-columns: 1fr; gap: 22px; }
  .docs.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .doc .frame { padding: 8px; }
  .doc-title { font-size: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .gallery figcaption { font-size: 14px; }
  .fig-right { float: none; width: 100%; max-width: none; margin: 0 0 20px; }
  .fig-right img { max-width: 300px; margin: 0 auto; }
  .infobox { padding: 18px; }
  .biblio .t { font-size: 20px; }
  .zoom { padding: 8px; max-height: 75vh; }
}

/* Porträt im Textblock (Papier) mit Initiale */
.paper .fig-portrait { float: right; width: 250px; margin: 8px 0 24px 40px; text-align: center; }
.paper .fig-portrait img { width: 100%; background: #fff; padding: 8px; border: 1px solid #e2d7bd; border-radius: 3px; box-shadow: 0 16px 30px rgba(31,42,42,.20); }
.paper .fig-portrait.no-mat img { padding: 0; border: 0; background: none; border-radius: 2px; }
.paper .fig-portrait figcaption { margin-top: 14px; font-family: var(--serif-display); font-style: italic; font-size: 19px; color: var(--ink-soft); }
.paper .fig-portrait figcaption::before { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 0 auto 10px; }
.paper p.dropcap::first-letter { float: left; font-family: var(--serif-display); font-weight: 600; font-size: 4.4em; line-height: .78; padding: 8px 10px 0 0; color: var(--gold-deep); }
@media (max-width: 720px) {
  .paper .fig-portrait { float: none; width: 64%; max-width: 230px; margin: 0 auto 26px; }
  .paper p.dropcap::first-letter { font-size: 3.7em; }
}

/* Startseite: Familienlogo als Kopf, Anmerkungen unter „Weiterlesen“ */
.hero h1.logo { margin: 0 0 6px; line-height: 0; }
.hero h1.logo img { width: 100%; max-width: 643px; height: auto; margin-left: -14px; }
.weiter-notes { max-width: 980px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.75); }
.weiter-notes ol { margin: 0; padding-left: 26px; }
.weiter-notes li { margin-bottom: 8px; }
.weiter-notes li:target { color: #fff; }
@media (max-width: 720px) {
  .hero h1.logo img { margin-left: -6px; }
  .tribute blockquote { font-size: 15.5px; }
}

/* Personenseiten: Rubrik, Name und Lebensdaten mittig ueber dem Text */
.page-head.centered .eyebrow, .page-head.centered h1, .page-head.centered .lead { text-align: center; margin-left: auto; margin-right: auto; }
.page-head.centered .lead { max-width: 60ch; }

/* Zeilenumbrueche: keine Silbentrennung, keine einzelnen Woerter/Zeichen allein in der letzten Zeile */
body { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
p, li, figcaption, blockquote, .lead, .hint, small { text-wrap: pretty; }
h1, h2, h3, .eyebrow, .pull, .doc-title, .tile strong, .person strong, .biblio .t, .lineage .name { text-wrap: balance; }
a, .nobr { hyphens: none; }
