/* ============================================================
   THETA Holding — SEO-Seiten (Nachfolge-Cluster, Ratgeber,
   Regionen, Rechner). Ergaenzt tokens/base/sections, ersetzt
   nichts. Alle Farben kommen aus tokens.css — hier steht kein
   einziger Hex-Wert.
   ============================================================ */

.shell.narrow {
  max-width: 74ch;
}
.card-grid,
.factgrid,
.ccols,
.table-wrap {
  max-width: none;
}

/* ---- Brotkrume ---- */
.crumbs {
  background: var(--ivory-50);
  color: var(--text-on-light-faint);
  font-size: var(--text-sm);
  /* Die Kopfzeile ist fixiert (76px mobil, 88px Desktop) — ohne diesen
     Vorlauf liegt die Brotkrume unsichtbar darunter. */
  padding-block: clamp(5.5rem, 5rem + 1.2vw, 6.4rem) 0;
}
/* Der Seiten-Hero bringt seinen eigenen Vorlauf mit; steht die Brotkrume davor,
   waere der Abstand doppelt. */
.crumbs + .page-hero {
  padding-block-start: clamp(1.2rem, 1rem + 0.6vw, 2rem);
}
.crumbs a {
  color: var(--text-on-light-muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.crumb-sep {
  margin-inline: 0.45rem;
  opacity: 0.5;
}

/* ---- Hero-Ergaenzungen ---- */
.herochips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  padding: 0;
  margin: 1.4rem 0 0;
}
.herochips li {
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
  border: 1px solid var(--divider-on-light);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  background: var(--paper);
}
.hero-actions {
  margin-top: 1.8rem;
}
.hero-sub {
  font-size: var(--text-sm);
  color: var(--text-on-light-faint);
  margin: 0.7rem 0 0;
}

/* ---- Fliesstext ---- */
.section .body + .body {
  margin-top: 0.9rem;
}
.section h2 + .body,
.section h2 + .ticks {
  margin-top: 1rem;
}
.section h3.h4 {
  margin: 1.8rem 0 0.6rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-on-light-muted);
}
.section:not(.section--light) .ticks li {
  color: var(--text-on-dark-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 2px;
  background: var(--accent);
}
.src {
  font-size: var(--text-xs, 0.8rem);
  color: var(--text-on-light-faint);
  margin-top: 0.8rem;
}
.section:not(.section--light) .src {
  color: var(--text-on-dark-faint);
}

/* ---- Schritte ---- */
.psteps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 1.1rem;
}
.psteps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--divider-on-light);
}
.psteps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pstep-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--tint-deep);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.95rem;
}
.psteps p {
  color: var(--text-on-light-muted);
  margin: 0.3rem 0 0;
}

/* ---- Tabelle ---- */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.3rem;
  border: 1px solid var(--divider-on-light);
  border-radius: var(--radius-md, 12px);
}
.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 34rem;
}
.datatable caption {
  text-align: left;
  padding: 0.9rem 1rem 0;
  color: var(--text-on-light-faint);
  font-size: var(--text-sm);
}
.datatable th,
.datatable td {
  text-align: left;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--divider-on-light);
  vertical-align: top;
}
.datatable thead th {
  background: var(--ivory-100);
  color: var(--text-on-light);
  font-weight: 700;
  white-space: nowrap;
}
.datatable tbody tr:last-child td {
  border-bottom: 0;
}
.datatable td {
  color: var(--text-on-light-muted);
}

/* ---- Karten-Raster ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.scard {
  display: block;
  padding: 1.35rem 1.4rem 1.2rem;
  border: 1px solid var(--divider-on-light);
  border-radius: var(--radius-md, 12px);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.scard:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.scard p {
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
  margin: 0.5rem 0 0.9rem;
}
.scard-go {
  color: var(--accent-deep);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---- Zahlen mit Quelle ---- */
.factgrid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.factgrid li {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1rem;
}
.fact-num {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fact-txt {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
}
.section:not(.section--light) .fact-txt {
  color: var(--text-on-dark-muted);
}
.fact-src {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  /* Gemessen: mit --text-on-light-faint lag der Kontrast bei 4.49:1 und damit
     knapp unter der WCAG-Schwelle von 4.5. Eine Stufe dunkler loest das. */
  color: var(--text-on-light-muted);
}
.section:not(.section--light) .fact-src {
  color: var(--text-on-dark-faint);
}

/* ---- Zwei-Spalten-Vergleich ---- */
.ccols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ccol {
  border: 1px solid var(--divider-on-light);
  border-radius: var(--radius-md, 12px);
  padding: 1.3rem 1.4rem;
  background: var(--paper);
}
.ccol--new {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.ccol-tag {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-on-light-faint);
  margin: 0 0 0.4rem;
}
.ccol--new .ccol-tag {
  color: var(--accent-deep);
}
.ccol ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
}
.ccol li {
  padding-left: 1.2rem;
  position: relative;
}
.ccol li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-on-light-faint);
}
.ccol--new li::before {
  content: "✓";
  color: var(--accent-deep);
}

/* ---- Hinweis-Kasten ---- */
.note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: var(--ivory-100);
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
}
.section:not(.section--light) .note {
  background: var(--ink-850);
}
.note-label {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.section:not(.section--light) .note-label {
  color: var(--accent);
}
.note p:last-child {
  margin: 0;
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
}
.section:not(.section--light) .note p:last-child {
  color: var(--text-on-dark-muted);
}

/* ---- Weiterfuehrende Links ---- */
.related {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.related a {
  color: var(--accent-deep);
  font-weight: 600;
}
.section:not(.section--light) .related a {
  color: var(--accent);
}

/* ---- Lange deutsche Komposita brechen lassen ----
   «Kapitalisierungszinssatz» ist in H2-Groesse breiter als ein 390px-Display.
   Silbentrennung statt horizontalem Scrollen. */
/* Silbentrennung nur dort, wo lange Komposita sonst ueberlaufen — in der
   Schlagzeile zerlegt sie Woerter wie «Betrie-be» und liest sich billig. */
.section .h2,
.section h3,
.scard h3,
.datatable th,
.datatable td {
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-hero-h1 {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* ============================================================
   FIRMENWERT-RECHNER
   ============================================================ */
.calc {
  margin-top: 1.6rem;
  border: 1px solid var(--divider-on-light);
  border-radius: var(--radius-md, 12px);
  background: var(--paper);
  padding: clamp(1.2rem, 1rem + 1vw, 2rem);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem 1.2rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.calc-field--wide {
  grid-column: 1 / -1;
}
.calc-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-on-light);
  padding: 0;
}
.calc-hint {
  font-size: 0.78rem;
  color: var(--text-on-light-faint);
  line-height: 1.45;
}
.calc input[type="text"],
.calc select {
  font: inherit;
  font-size: 1rem;
  color: var(--text-on-light);
  background: var(--ivory-50);
  border: 1px solid var(--divider-on-light-strong);
  border-radius: 8px;
  padding: 0.68rem 0.8rem;
  width: 100%;
  min-width: 0;
}
.calc input[type="text"]:focus-visible,
.calc select:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 1px;
}
.calc-choices {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.calc-choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
  cursor: pointer;
}
.calc-choices input[type="radio"] {
  margin-top: 0.22rem;
  accent-color: var(--accent-deep);
  flex: none;
}
.calc-submit {
  margin-top: 1.5rem;
}
.calc-note {
  font-size: 0.78rem;
  color: var(--text-on-light-faint);
  margin: 0.8rem 0 0;
}

.calc-out {
  display: block;
  margin-top: 1.6rem;
}
.calc-result {
  border: 1px solid var(--accent);
  border-radius: var(--radius-md, 12px);
  background: var(--ivory-100);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
}
.calc-result--warn {
  border-color: var(--divider-on-light-strong);
  background: var(--paper);
}
.calc-result-label {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin: 0;
}
.calc-range {
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.5rem 0 0.6rem;
  overflow-wrap: break-word;
}
.calc-range span {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--text-on-light-faint);
  margin-inline: 0.25em;
}
.calc-result-sub {
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.calc-detail {
  margin-top: 1.6rem;
  border-top: 1px solid var(--divider-on-light);
  padding-top: 1.2rem;
}
.calc-detail p {
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
}
.calc-steps,
.calc-adjust {
  margin: 0.7rem 0 1.4rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
}
.calc-cta {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--divider-on-light);
}
.calc-cta p {
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
  margin: 0.9rem 0 0;
}
.calc-disclaimer {
  margin: 1.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-on-light-faint);
}
