/* Die Themenseiten (/haushaltsbuch-fuer-paare, /budget-app-schweiz …) im
   Kleid der Rechtsseiten: recht.css liefert Flächen, Kopf, Fuss und Fliesstext
   (.r-prose, .r-box), hier steht nur, was die Rechtsseiten nicht brauchen.
   Keine eigenen Farben – nur die Tokens der App (--c-…) und der Landingpage
   (--lp-…). Ohne JS lesbar; der Fokusrahmen kommt global aus input.css. */

/* Die Textspalte: schmaler als die Rechtstexte, weil hier gelesen wird. */
.t-col { max-width: 720px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 1024px) { .t-col { padding-left: 24px; padding-right: 24px; } }

/* Zwei Sätze unter der H1, die die Suchfrage schon beantworten. */
.t-lead { margin-top: 20px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: rgb(var(--c-text-muted)); }

/* Abschnitt wie .r-sec, aber ohne Nummer: das hier ist kein Vertrag. */
.t-sec { padding-top: 28px; border-top: 1px solid rgb(var(--c-border)); }
.t-sec + .t-sec { margin-top: 40px; }
.t-sec > h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; color: rgb(var(--c-text)); text-wrap: balance; }

/* Beispielrechnung: Bezeichnung links, Betrag rechts, Summe fett mit Linie. */
.t-rechnung { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t-rechnung caption { text-align: left; padding-bottom: 8px; font-size: 13px; font-weight: 600; color: rgb(var(--c-text-dim)); }
.t-rechnung th, .t-rechnung td { padding: 8px 0; vertical-align: baseline; font-weight: 400; text-align: left; }
.t-rechnung td { text-align: right; white-space: nowrap; padding-left: 16px; color: rgb(var(--c-text)); }
.t-rechnung tr + tr > * { border-top: 1px solid rgb(var(--c-border)); }
.t-rechnung .t-summe > * { border-top: 1px solid rgb(var(--c-border-strong)); font-weight: 700; color: rgb(var(--c-text)); }

/* Häufige Fragen, sichtbar ausgeschrieben (kein <details>). */
.t-faq h3 { margin-top: 22px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: rgb(var(--c-text)); }
.t-faq h3 + p { margin-top: 6px; }

/* Abschlussband: kurzer Satz und ein Link auf die verwandte Themenseite (kein Knopf zurück auf die Landingpage). */
.t-cta { margin-top: 56px; border-radius: 32px; padding: 28px; background: rgb(var(--lp-band)); }
.t-cta h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; color: rgb(var(--c-text)); text-wrap: balance; }
.t-cta p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgb(var(--c-text-muted)); }
.t-cta-wege { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.t-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: rgb(var(--c-accent-ink)); text-decoration: underline; text-underline-offset: 2px; }

/* Weitere Themen: dieselben Pillen wie .r-tabs auf den Rechtsseiten. */
.t-themen { margin-top: 40px; }
.t-themen p { font-size: 13px; font-weight: 600; color: rgb(var(--c-text-dim)); }
.t-themen ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.t-themen a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 9999px; border: 1px solid rgb(var(--c-border-strong)); background: rgb(var(--lp-page)); font-size: 14px; font-weight: 600; color: rgb(var(--c-text)); }
.t-themen a:hover { border-color: rgb(var(--c-accent-ink)); }
.t-themen a[aria-current='page'] { background: rgb(var(--c-text)); border-color: rgb(var(--c-text)); color: rgb(var(--lp-page)); }

/* ── Rechner (/kosten-fair-teilen) ─────────────────────────────────────────
   Karte wie .r-box, aber grösser, direkt unter der Lead im Band. Die Balken-
   farben sind Pastell = Zuordnung (A Salbei, B Hafer), kein Zustand. */
.k-rechner { margin-top: 28px; display: grid; gap: 20px; border-radius: 28px; border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-surface)); padding: 20px; }
@media (min-width: 1024px) { .k-rechner { padding: 24px; } }
.k-rechner [hidden] { display: none; }

/* Modus: echte Radios, als Segmente gezeichnet; Pfeiltasten wie gewohnt. */
.k-modus { display: flex; gap: 4px; padding: 4px; border-radius: 9999px; background: rgb(var(--c-surface-2)); }
/* Breite nach Inhalt statt gedrittelt: «Nach Pensum» bräche bei 390 px sonst um. */
.k-modus label { position: relative; flex: 1 1 auto; }
.k-modus input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.k-modus span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; border-radius: 9999px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; white-space: nowrap; color: rgb(var(--c-text-muted)); }
.k-modus input:checked + span { background: rgb(var(--c-text)); color: rgb(var(--c-surface)); }
.k-modus input:focus-visible + span { outline: 2px solid rgb(var(--c-accent-ink)); outline-offset: 2px; }

.k-feld { display: grid; gap: 6px; }
.k-feld label { font-size: 13px; font-weight: 600; color: rgb(var(--c-text-muted)); }
.k-feld input, .k-feld select { min-height: 48px; border-radius: 14px; border: 1px solid rgb(var(--c-border-strong)); background: rgb(var(--c-bg)); padding: 10px 14px; font-size: 17px; font-variant-numeric: tabular-nums; color: rgb(var(--c-text)); }
.k-feld input { width: 100%; min-width: 0; }
.k-feld input:focus-visible, .k-feld select:focus-visible { outline: 2px solid rgb(var(--c-accent-ink)); outline-offset: 1px; }
.k-betrag { display: flex; gap: 8px; }
.k-betrag select { flex: none; padding-right: 10px; }

.k-personen { display: grid; gap: 16px; }
@media (min-width: 640px) { .k-personen { grid-template-columns: 1fr 1fr; } }
.k-person { display: grid; gap: 8px; }
.k-wer { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: rgb(var(--c-text)); }
.k-punkt { width: 10px; height: 10px; border-radius: 9999px; flex: none; }
.k-a { background: rgb(var(--p-sage)); }
.k-b { background: rgb(var(--p-oat)); }

.k-ergebnis { padding-top: 20px; border-top: 1px solid rgb(var(--c-border)); }
.k-zeilen { display: grid; gap: 16px; }
@media (min-width: 640px) { .k-zeilen { grid-template-columns: 1fr 1fr; } }
.k-summe { margin-top: 4px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: rgb(var(--c-text)); }
.k-anteil, .k-rest { margin-top: 2px; font-size: 14px; font-variant-numeric: tabular-nums; color: rgb(var(--c-text-muted)); }
.k-balken { margin-top: 16px; display: flex; height: 12px; border-radius: 9999px; overflow: hidden; background: rgb(var(--c-surface-2)); }
.k-balken span { display: block; height: 100%; }
.k-fehler { font-size: 15px; font-weight: 600; line-height: 1.5; color: rgb(var(--c-warn)); }
.k-hinweis { font-size: 15px; line-height: 1.5; color: rgb(var(--c-text-muted)); }
