/* ─────────────────────────────────────────────────────────
   AXO REAL — Komponenten der generierten Seiten
   Leistungs-Unterseiten (Wissenswertes, Passende Leistungen, CTA-Band)
   und Ratgeber (Artikel-Layout, Inhaltsverzeichnis, Prosa, Tabellen).
   Markup aus tools/build_pages.py; Tokens aus subsidiary.css.
   ───────────────────────────────────────────────────────── */

/* ── Wissenswertes: zweispaltiger Fließtext ── */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px);
}
.knowledge-block h3 {
  margin: 0 0 14px;
  font-family: "Fraunces", serif !important;
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 400 !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.knowledge-block p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.72;
}
.knowledge-block a,
.sub-accordion a,
.prose a {
  color: var(--ink-1);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #D4B883;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.knowledge-block a:hover,
.sub-accordion a:hover,
.prose a:hover { text-decoration-color: var(--ink-1); }

/* ── Passende Leistungen / Ratgeber-Karten ── */
.related-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.related-panel__head h2 {
  margin: 0;
  font-family: "Fraunces", serif !important;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400 !important;
  line-height: 1.05;
}
.related-panel__head h2 em,
.prose h2 em { font-style: italic; color: #4A5A8C; }
.related-panel .btn-pill-light {
  background: var(--panel-soft);
}
.article-card .svc-card__title { font-size: clamp(19px, 1.5vw, 22px); }
.svc-card--hub {
  justify-content: flex-end;
  min-height: 280px;
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, #0D1726 0%, #172942 100%);
}
.svc-card--hub .svc-card__num { color: #D4B883; }
.svc-card--hub .svc-card__title,
.svc-card--hub .svc-card__more { color: #fff; }
.svc-card--hub p { color: rgba(255, 255, 255, 0.72); }
a.svc-card--hub:hover { background: linear-gradient(145deg, #13213A 0%, #1E3556 100%); }

/* ── CTA-Band am Seitenende ── */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(140deg, #0D1726 0%, #172942 100%);
  border-radius: var(--radius-xl);
}
.cta-band__eyebrow {
  margin: 0 0 18px;
  color: #D4B883;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cta-band__title {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.cta-band__title em { font-style: italic; color: #D4B883; }
.cta-band__text {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.6;
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-band .btn-pill-light { color: var(--ink-1); background: #fff; border: 0; }
.cta-band .btn-pill-light:hover { background: #D4B883; }
.cta-band__tel {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cta-band__tel:hover { color: #D4B883; }

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink-1);
  border-radius: 999px;
  transition: background 200ms ease, transform 200ms ease;
}
.btn-pill-dark:hover { background: #1B2540; transform: translateY(-1px); }

/* ── Ratgeber: Hero ── */
body[data-sub] .sub-hero__title--article {
  max-width: 22ch;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
}
.article-meta {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── Ratgeber: Artikel-Layout mit Inhaltsverzeichnis ── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 760px);
  gap: clamp(32px, 5vw, 88px);
  justify-content: center;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: var(--panel-soft);
  border-radius: var(--radius-lg);
}
.article-toc__label {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.article-toc li { counter-increment: toc; }
.article-toc ol a {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 9px 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}
.article-toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.9;
}
.article-toc ol a:hover { color: var(--ink-1); }
.article-toc__cta { margin-top: 22px; }
.article-toc__cta p {
  margin: 0 0 12px;
  color: var(--ink-1);
  font-family: "Fraunces", serif;
  font-size: 18px;
  line-height: 1.25;
}

/* ── Ratgeber: Fließtext ── */
.prose { min-width: 0; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 {
  margin: 52px 0 18px;
  font-family: "Fraunces", serif !important;
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 400 !important;
  line-height: 1.12;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose ul,
.prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose ul li::marker { color: #B8965B; }
.prose ol li::marker { color: var(--ink-3); font-weight: 600; }
.prose strong { color: var(--ink-1); font-weight: 600; }
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--panel-soft);
  border-left: 3px solid #D4B883;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.65; }
.prose__table {
  margin: 8px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th,
.prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.prose th { color: var(--ink-1); font-weight: 600; background: var(--panel-soft); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose__note {
  margin-top: 40px !important;
  padding-top: 20px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.6;
  border-top: 1px solid var(--hair);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { position: static; }
}
@media (max-width: 860px) {
  .knowledge-grid,
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 40px; }
}
