/* ============================================================
   Trauerbegleiter – Ratgeber
   Bewusst RUHIG, NEUTRAL und vertrauenswuerdig.
   KEIN Schwarz/Gold (das ist die Kristall-Marke) – die beiden
   Auftritte sollen sich optisch NICHT aehneln (Neutralitaet).
   Schriften: System-Stack, lokal -> DSGVO-sicher, keine
   externen Font-CDNs.
   ============================================================ */

:root {
  --paper:      #faf8f4;   /* warmes Papierweiss            */
  --surface:    #ffffff;
  --ink:        #2c2d2a;   /* weiches Tintenschwarz         */
  --ink-soft:   #5b5d57;
  --line:       #e6e2d8;
  --accent:     #5f7d72;   /* gedaempftes Salbeigruen       */
  --accent-dk:  #4a6359;
  --max:        42rem;     /* angenehme Lesebreite (~66ch)  */

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* ---------- Zugaenglichkeit ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 75%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.brand-name { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; font-size: 1.05rem; }
.site-nav a { font-family: var(--sans); font-size: .95rem; text-decoration: none; }

/* ---------- Allgemeine Seitenkoepfe ---------- */
.page-head, .hero { padding: 3rem 0 1.5rem; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--accent-dk); margin: 0 0 .5rem;
}
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 600; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.25rem 0 .75rem; font-weight: 600; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: .7rem 1.4rem; border-radius: 4px; margin-top: .5rem;
}
.btn:hover { background: var(--accent-dk); color: #fff; }

/* ---------- Ratgeber-Uebersicht ---------- */
.article-list { list-style: none; margin: 1.5rem 0 4rem; padding: 0; display: grid; gap: 1rem; }
.article-card a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.5rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.article-card a:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-cat {
  display: inline-block; font-family: var(--sans); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dk); margin-bottom: .4rem;
}
.article-card h2 { margin: .1rem 0 .5rem; font-size: 1.3rem; }
.article-card p { margin: 0 0 .75rem; color: var(--ink-soft); font-size: 1rem; }
.card-more { font-family: var(--sans); font-size: .9rem; color: var(--accent-dk); }
.empty-hint { color: var(--ink-soft); }

/* Rechtliche Seiten */
.legal-page { padding-bottom: 3rem; }
.legal-page h2 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
.legal-page p { margin: 0 0 .5rem; }

/* ---------- Artikel ---------- */
.breadcrumb {
  font-family: var(--sans); font-size: .85rem; color: var(--ink-soft);
  padding: 1.5rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; }
.article-head { padding: 1rem 0 .5rem; }
.article-meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0; }
.article-lead { font-size: 1.25rem; color: var(--ink-soft); margin: 1.25rem 0 2rem; }
.article-section p { margin: 0 0 1.1rem; }
.article p { max-width: var(--max); }

/* FAQ */
.article-faq { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article-faq dt { font-weight: 600; margin-top: 1.25rem; }
.article-faq dd { margin: .35rem 0 0; color: var(--ink-soft); }

.back-link { font-family: var(--sans); font-size: .95rem; margin: 3rem 0 4rem; }
.back-link a { text-decoration: none; }

/* App-CTA (der EINE Hinweis auf die App pro Artikel) */
.app-cta {
  margin: 2.5rem 0; padding: 1.5rem 1.75rem;
  background: #eef2f0; border: 1px solid var(--line); border-radius: 8px;
}
.app-cta p { margin: 0 0 1rem; color: var(--ink-soft); }

/* Disclaimer / Krisenhinweis */
.article-disclaimer {
  margin: 2.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: .85rem; line-height: 1.6; color: var(--ink-soft);
}

/* Inhaltstabellen (Vergleiche, Kosten) */
.article table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem;
  font-family: var(--sans);
}
.article th, .article td {
  text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article thead th { background: #eef2f0; font-weight: 600; }
.article tbody tr:nth-child(even) { background: #faf8f4; }
.table-scroll { overflow-x: auto; }

/* Schmale Bildschirme: Tabelle wird zu gestapelten Karten – kein Seitwaerts-Scrollen.
   data-label kommt automatisch aus dem Render-Helfer (lib/render-helpers.js). */
@media (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  .article table, .article tbody, .article tr, .article td { display: block; width: 100%; }
  .article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article tbody tr {
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
    margin: 0 0 1rem; padding: .85rem 1rem;
  }
  .article tbody tr:nth-child(even) { background: var(--surface); }
  .article td { border: none; padding: .3rem 0; display: flex; gap: .9rem; }
  .article td::before {
    content: attr(data-label); font-weight: 600; color: var(--ink);
    flex: 0 0 42%; max-width: 42%;
  }
  /* Erste Zelle als Karten-Titel, ohne Label */
  .article td:first-child { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: .35rem; }
  .article td:first-child::before { content: ""; display: none; }
}

/* ---------- Fuss ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  padding: 2.5rem 1.25rem; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft);
}
.footer-business p { margin: 0 0 .2rem; }
.footer-name { font-weight: 600; color: var(--ink); }
.footer-nav { display: flex; gap: 1.25rem; align-items: flex-start; }
.footer-nav a { text-decoration: none; }

@media (max-width: 36rem) {
  h1 { font-size: 1.7rem; }
  body { font-size: 1.06rem; }
}
