/* Bestattungsvorsorgevertrag.net — pietätvolles Stylesheet */

/* Spectral — lokal gehostet (kein externer Fontprovider). Latin + Latin-Ext.
   Lizenz: SIL Open Font License 1.1 — github.com/productiontype/spectral */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/spectral-300.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: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/spectral-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400.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: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500.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: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400i.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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400i-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  color: #2b2622;
  background: #faf8f5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid #e8e2da;
  background: #ffffff;
}
.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.25rem;
}
.site-brand {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: #1c1a17;
  text-decoration: none;
  border: none;
}
.site-brand strong { font-weight: 500; }
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-left: auto;
}
.site-nav a {
  color: #5d564e;
  text-decoration: none;
  border: none;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: #1c1a17;
}

/* MAIN */
main {
  flex: 1;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 1.75rem 4rem;
}
main.hub { max-width: 44rem; }

/* TYPOGRAPHY */
h1 {
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #1c1a17;
  margin: 0 0 1.25rem;
}
.lead {
  font-size: 1.1rem;
  color: #5d564e;
  margin: 0 0 3rem;
  line-height: 1.6;
}
h2 {
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: #1c1a17;
  margin: 3.25rem 0 1.1rem;
  scroll-margin-top: 2rem;
}
h3 {
  font-weight: 500;
  font-size: 1.1rem;
  color: #1c1a17;
  margin: 2rem 0 0.6rem;
}
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: #b5ab9d; }
strong { font-weight: 500; color: #1c1a17; }
em { font-style: italic; }

a {
  color: #5d4a3a;
  text-decoration: none;
  border-bottom: 1px solid #d8cec0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: #1c1a17; border-bottom-color: #1c1a17; }

/* HUB topic list */
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.topic-list li {
  margin: 0;
  border-top: 1px solid #e8e2da;
}
.topic-list li:last-child {
  border-bottom: 1px solid #e8e2da;
}
.topic-list a {
  display: block;
  padding: 1.4rem 0;
  border: none;
  color: #1c1a17;
}
.topic-list a:hover .topic-title { color: #5d4a3a; }
.topic-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}
.topic-desc {
  display: block;
  font-size: 0.95rem;
  color: #6b6660;
  line-height: 1.55;
}

/* Table of contents */
.toc {
  margin: 0 0 2.75rem;
  padding: 1.1rem 1.4rem;
  background: #f4f0e9;
  border-left: 3px solid #d8cec0;
  font-size: 0.95rem;
}
.toc__title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6660;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0.15rem 0;
}
.toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 1.6rem;
  color: #b5ab9d;
}
.toc a {
  color: #2b2622;
  border: none;
}
.toc a:hover { color: #5d4a3a; }

/* Note / call-out */
.note {
  margin: 3rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #d8cec0;
  background: #f4f0e9;
  font-size: 0.95rem;
  color: #4a4540;
}
.note p:last-child { margin-bottom: 0; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e8e2da;
  vertical-align: top;
}
.data-table th {
  font-weight: 500;
  color: #1c1a17;
  border-bottom: 1px solid #c9bfb1;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Related links section */
.related {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e2da;
}
.related__title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6660;
  font-weight: 500;
  margin: 0 0 1rem;
}
.related ul {
  list-style: none;
  padding: 0;
}
.related li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}
.related li::before {
  content: "\2192";
  display: inline-block;
  width: 1.4rem;
  color: #b5ab9d;
}

/* Figure / Diagram */
.page-figure {
  margin: 2rem 0 2.5rem;
  padding: 0;
  text-align: center;
}
.page-figure img, .page-figure svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.page-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b6660;
  font-style: italic;
}

/* FAQ */
.faq {
  margin: 1.5rem 0 0;
  padding: 0;
}
.faq dt {
  font-weight: 500;
  color: #1c1a17;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.faq dd {
  margin: 0 0 1.75rem;
  padding: 0;
  color: #2b2622;
}
.faq dd p { margin: 0 0 0.7rem; }
.faq dd p:last-child { margin-bottom: 0; }
.faq dd a {
  color: #5d4a3a;
}
.faq dd + dt {
  border-top: 1px solid #e8e2da;
  padding-top: 1.75rem;
}

/* Glossary */
.glossary dt {
  font-weight: 500;
  color: #1c1a17;
  margin: 1.5rem 0 0.3rem;
}
.glossary dd {
  margin: 0 0 0.5rem;
  padding: 0;
  color: #2b2622;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid #e8e2da;
  background: #f4f0e9;
  font-size: 0.92rem;
  color: #6b6660;
  padding: 3rem 1.75rem 2rem;
  margin-top: auto;
}
.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d564e;
  margin: 0 0 0.8rem;
  font-weight: 500;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a {
  color: #5d564e;
  border: none;
}
.site-footer a:hover { color: #1c1a17; }
.site-footer__bottom {
  max-width: 64rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #d8cec0;
  font-size: 0.8rem;
  color: #8a8278;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 640px) {
  .site-header__inner { gap: 0.6rem 1.25rem; }
  .site-nav { margin-left: 0; gap: 1rem; font-size: 0.9rem; }
  main { padding: 2.5rem 1.5rem 3rem; }
  h2 { margin-top: 2.5rem; }
  .site-footer { padding: 2.5rem 1.5rem 1.75rem; }
}

/* Weiterführende Quellen */
.resources {
  margin: 3rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: #f4f0e9;
  border-left: 3px solid #d8cec0;
  font-size: 0.95rem;
}
.resources h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 1rem;
  scroll-margin-top: 2rem;
}
.resources ul {
  margin: 0;
  padding-left: 1.25rem;
}
.resources li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.resources li:last-child { margin-bottom: 0; }
.resources a {
  font-weight: 500;
}
.resources .source {
  display: block;
  font-size: 0.85rem;
  color: #6b6660;
  font-style: italic;
  margin-top: 0.1rem;
  border: none;
}

/* Breadcrumb */
.breadcrumb { margin: 0 0 1.5rem; padding: 0; font-size: 0.85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li { margin: 0; display: inline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; opacity: 0.4; }
.breadcrumb a { font-weight: 400; }
.breadcrumb [aria-current] { opacity: 0.7; }
