/* ==========================================================================
   Unterseiten (erzeugt von scripts/build.py) – ergänzt site.css, ändert es nicht.
   Ruhig, mobile-first. Farbcode = Thema über Klassen (CSP: kein style-Attribut).
   ========================================================================== */

.sub {
  --topic: var(--forest);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.sub--red    { --topic: var(--red); }
.sub--orange { --topic: var(--orange); }
.sub--green  { --topic: var(--forest); }
.sub--olive  { --topic: var(--olive); }
.sub--orange .steps li::before { color: var(--orange-ink); }

/* Kopfzeile: gleiche Optik wie die Rechtsseiten, aber mit 44-px-Tap-Zielen */
.sub-page .legal-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Seitenkopf ---------- */
.page-hero { padding-top: 1rem; padding-bottom: 1.5rem; }
.page-title {
  font-size: clamp(2.2rem, 9.5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 24ch;
}
.page-title::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: .5rem;
  margin-bottom: 1rem;
  background: var(--topic);
  transform: skewX(-32deg);
  transform-origin: left bottom;
}
.page-lead {
  margin: 1.1rem 0 .5rem;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
}
.page-meta {
  margin: .25rem 0 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.page-hero .page-meta:first-of-type:not(:last-child) { margin-bottom: .6rem; }
.page-actions { margin-top: 1.25rem; }
.page-actions .btn { width: 100%; }

/* Status-Hinweis auf nicht veröffentlichten Seiten */
.status-banner {
  margin: 0 0 1rem;
  padding: .55rem .8rem;
  background: #FFE7A3;
  color: #4A3500;
  border-radius: 3px;
  font-size: .95rem;
  line-height: 1.4;
}

/* ---------- Brotkrumen ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "";
  width: .8rem;
  height: .22rem;
  margin: 0 .6rem;
  background: var(--topic);
  transform: skewX(-32deg);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.crumbs [aria-current="page"] { display: inline-block; padding: .5rem 0; }

/* ---------- Fließtext ---------- */
.page-body { padding-bottom: 1.25rem; }
.page-body .prose { max-width: 44rem; }
.page-body h2 {
  font-size: clamp(1.7rem, 6.4vw, 2.4rem);
  line-height: 1.05;
  margin: 2.5rem 0 .9rem;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.page-body > .prose > :first-child { margin-top: 1rem; }
.page-body .facts > div { grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr); }
.page-body .facts dd { font-size: 1.15rem; }
.page-body .fit { max-width: 100%; margin: 1.5rem 0; }
.page-body .fit p { margin: 0; }
.page-body .steps { margin: 1.25rem 0 1.5rem; }
.page-body .offer-index { margin-bottom: 1.5rem; }
.page-body .offer-index__item a { min-height: 44px; }
.page-body .offer-index__item--green { --topic: var(--forest); }

/* ---------- Tabellen: mobil gestapelt, ab 600 px klassisch ---------- */
.table-wrap { margin: 1.25rem 0 1.5rem; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
}
.table th, .table td { padding: .65rem .85rem; text-align: left; vertical-align: top; }
.table thead th { font-family: var(--font-display); font-size: 1.1rem; background: var(--leaf-3); }
.table tbody th { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
.table tbody tr + tr > * { border-top: 1px solid rgba(29, 48, 24, .14); }

@media (max-width: 599.98px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table caption { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tbody tr { padding: .5rem 0; }
  .table tbody tr + tr { border-top: 1px solid rgba(29, 48, 24, .14); }
  .table tbody tr + tr > * { border-top: 0; }
  .table tbody th { padding-bottom: .1rem; }
  .table td { padding-top: .15rem; padding-bottom: .15rem; }
  .table td::before {
    content: attr(data-label);
    display: block;
    font-size: .88rem;
    color: var(--ink-soft);
  }
}

/* ---------- FAQ und Kontakt auf Unterseiten ---------- */
.sub .faq { margin-top: 1.5rem; }
.sub .card-back { margin-top: 0; }
.card-back__text { max-width: 34rem; margin: 1rem 0 0; }

/* ---------- Fußzeile: Tap-Ziele ---------- */
.sub-page .footer nav a,
.sub-page .footer__credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 960px) {
  .page-hero { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .page-actions .btn { width: auto; }
  .page-body h2 { margin-top: 3rem; }
  .page-body { padding-bottom: 2rem; }
}
