/* lixe — Partnerkalkulatoren. Zuerst fürs Telefon gebaut; die Seite ist
   höchstens 460 breit (--col), deshalb überall eine Spalte. */

.rk { margin-top: 8px; }
.rk-form { display: grid; gap: 14px; }
.rk-gruppe { margin: 0; padding: 18px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); min-width: 0; }
.rk-gruppe legend, .rk-gruppe > summary { font-weight: 700; font-size: 16px; padding: 0 4px; color: var(--text); }
.rk-mehr > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0; }
.rk-mehr > summary::-webkit-details-marker { display: none; }
.rk-mehr > summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.rk-mehr[open] > summary::after { content: "\2013"; }
.rk-mehr[open] > summary { margin-bottom: 12px; }

.rk-feld { margin-top: 12px; min-width: 0; }
.rk-feld:first-of-type { margin-top: 6px; }
.rk-feld > label { display: block; font-size: 14.5px; color: #C2CBD6; margin-bottom: 6px; font-weight: 500; }
.rk-inp { display: flex; align-items: stretch; background: rgba(13, 21, 34, 0.42); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; }
.rk-inp input, .rk-inp select { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font: inherit; font-size: 16px; padding: 13px 14px; }
.rk-inp select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.rk-inp select option { color: #0D1522; }
.rk-einheit { display: flex; align-items: center; padding: 0 13px; color: var(--muted); font-size: 14px; border-left: 1px solid var(--border); }
.rk-inp:focus-within { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.rk-falsch .rk-inp { border-color: #E06464; }
.rk-err { color: #F0A0A0; font-size: 13px; margin-top: 6px; }
.rk-err:empty { display: none; }

.rk-haken { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 15.5px; line-height: 1.4; }
.rk-gruppe .rk-haken:first-of-type { border-top: none; }
.rk-haken input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ice); }
.rk-haken small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rk-hinweis { color: var(--muted); font-size: 14px; margin: 6px 0 4px; }
.rk-quote { margin: 10px 0 0; font-weight: 700; color: var(--text); }

.rk-ergebnis { margin-top: 18px; }
.rk-karten { display: grid; gap: 12px; }
.rk-karte { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: 16px; }
.rk-karte h3 { margin: 0; font-size: 17px; }
.rk-karte .rk-q { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.rk-eigene { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.10); }
.rk-karte dl { margin: 0; }
.rk-karte dl > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border); }
.rk-karte dt { color: #C2CBD6; font-size: 14.5px; }
.rk-karte dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-karte .rk-gross dd { font-size: 19px; color: var(--ice); }
.rk-minus dd { color: #F0A0A0; }

.rk-erklaer { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.rk-stand { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.rk-leer { color: #F0A0A0; }

.rk-weg { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 4px; }
.rk-weg > summary { cursor: pointer; list-style: none; padding: 12px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.rk-weg > summary::-webkit-details-marker { display: none; }
.rk-weg > summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.rk-weg[open] > summary::after { content: "\2013"; }
.rk-weg h4 { margin: 18px 0 6px; font-size: 15px; }
.rk-weg table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-weg th, .rk-weg td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; font-weight: 400; }
.rk-weg td { text-align: right; font-variant-numeric: tabular-nums; padding-left: 10px; }
.rk-weg th { color: #C2CBD6; }
.rk-weg .rk-summe th, .rk-weg .rk-summe td { font-weight: 700; color: var(--text); }
.rk-weg .rk-herkunft { color: var(--muted); font-size: 12.5px; }
.rk-jahre th:first-child { width: 30%; }
.rk-jahre tr:first-child th { color: var(--muted); text-align: right; font-size: 13px; }
.rk-jahre tr:first-child th:first-child { text-align: left; }
.rk-annahmen td:nth-child(2) { white-space: nowrap; }

.rk-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.rk-pille { background: transparent; border: 1px solid var(--border-strong); color: #C2CBD6; border-radius: 12px; padding: 11px 15px; font: inherit; font-size: 14.5px; cursor: pointer; }
@media (hover: hover) { .rk-pille:hover { border-color: var(--ice); color: var(--text); } }
.rk-kopiert { color: #7FE0A0; font-size: 13.5px; display: none; }
.rk-kopiert.an { display: inline; }

/* Rechenweg, öffentlich lesbar (auch ohne JavaScript) */
.rk-methode ol { padding-left: 20px; margin: 10px 0; }
.rk-methode li { margin: 6px 0; color: #C2CBD6; }
.rk-methode code { font-size: 13.5px; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 6px; }

/* Schmale Telefone: Annahmen zweizeilig, Jahrestabelle rollt in sich. */
.rk-annahmen tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; border-bottom: 1px solid var(--border); }
.rk-annahmen th, .rk-annahmen td { border-bottom: none; }
.rk-annahmen .rk-herkunft { grid-column: 1 / -1; text-align: left; padding: 0 0 8px; }
.rk-jahre { display: block; overflow-x: auto; }
.rk-jahre td { white-space: nowrap; }
@media (max-width: 400px) { .rk-jahre { font-size: 12.5px; } .rk-jahre td { padding-left: 4px; } .rk-jahre th:first-child { width: auto; padding-right: 4px; } }

@media (max-width: 380px) {
  .rk-gruppe { padding: 16px 14px; }
  .rk-karte dl > div { flex-direction: column; gap: 2px; }
  .rk-karte dd { white-space: normal; }
}
