/* Private Basisrente; shared form styles come from ggf-rechner.css. */
.basis-page .site-header { position: sticky; top: 0; }
.basis-page .footer-bottom > div { flex-wrap: wrap; }
.basis-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.basis-shortcuts .button { white-space: normal; }
.basis-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 8px; text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
.basis-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #f1f7fa, #fff 70%); }
.basis-section .ggf-form { background: #fff; }
.basis-assumptions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; list-style: none; }
.basis-assumptions li { background: #e1eef5; color: var(--forest-950); padding: 8px 14px; border-radius: 30px; font-size: 14px; }
.basis-section .ggf-layout > * { min-width: 0; }
.basis-payments { margin: 24px 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.basis-payments legend { font-weight: 750; font-size: 18px; padding-right: 8px; }
.basis-payment { padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.basis-payment .ggf-date-grid { gap: 12px; }
.basis-payment .ggf-field { margin-bottom: 0; }
.basis-payment .ggf-field label { font-size: 14px; min-height: 40px; }
.basis-payment .ggf-reset { display: block; font-size: 13px; min-height: 44px; padding-bottom: 0; }
.basis-add { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid #8ba7bb; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.basis-add:disabled { opacity: .5; cursor: default; }
.basis-section [data-basis-results] { scroll-margin-top: 110px; }
.basis-pension { border-top: 5px solid #117c7b; }
.basis-pension .ggf-purchasing { margin-top: 22px; }
.basis-capital { padding: 22px 24px; margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.basis-capital h4 { margin: 0 0 8px; font-size: 18px; }
.basis-capital > strong { display: block; font-size: clamp(28px, 3vw, 36px); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.basis-section .ggf-big-value, .basis-section .ggf-purchasing strong { overflow-wrap: anywhere; }
.basis-breakdown { margin: 20px 0; }
.basis-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.basis-breakdown dt { font-size: 14px; }
.basis-breakdown dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.basis-single-result { border-left: 3px solid #117c7b; padding: 12px 16px; background: #eff8f5; font-size: 14px; }
.basis-next { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.basis-next .button { font-size: 15px; white-space: normal; }
.basis-next p { font-size: 13px; color: var(--muted); }
.basis-tax-input { min-width: 0; margin: 28px 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.basis-tax-input legend { font-size: 21px; font-weight: 750; padding-right: 12px; }
.basis-tax-input .ggf-field:last-of-type { margin-bottom: 12px; }
.basis-tax-input [aria-invalid="true"] { border: 2px solid #b83f43; }
.basis-tax-results { margin-top: 24px; padding: 24px; background: #f0f7f8; border: 1px solid #bad5da; border-radius: 16px; }
.basis-tax-results > .eyebrow { font-size: 12px; margin-bottom: 8px; }
.basis-tax-results > h3 { margin-bottom: 20px; }
.basis-tax-results .ggf-field { margin-bottom: 8px; }
.basis-tax-results .ggf-field label { font-size: 14px; }
.basis-tax-results .ggf-field select { font-size: 16px; }
.basis-tax-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.basis-tax-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; min-width: 0; padding: 18px 14px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.basis-tax-card h4 { margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.basis-tax-card dl { display: contents; margin: 0; }
.basis-tax-card dl > div { padding: 10px 0; }
.basis-tax-card dt { font-size: 13px; color: var(--muted); line-height: 1.4; }
.basis-tax-card dd { margin: 5px 0 0; font-size: clamp(18px, 1.8vw, 23px); font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.basis-tax-card .basis-tax-saving dd { color: #087275; }
.basis-tax-card .basis-tax-net { border-top: 1px solid var(--line); }
.basis-tax-card .basis-tax-net dt { color: var(--ink); font-weight: 700; }
.basis-tax-equivalent { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.basis-tax-equivalent strong { white-space: nowrap; }
.basis-tax-total { margin: 20px 0; border-top: 1px solid #a6c8cf; padding-top: 12px; }
.basis-tax-total > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.basis-tax-total dt { font-size: 14px; flex: 1; }
.basis-tax-total dd { margin: 0; font-size: 22px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 55%; }
.basis-tax-total > div:first-child dd { color: #087275; }
.basis-tax-total > div:last-child { border-top: 1px solid #bad5da; }
.basis-tax-results .ggf-note, .basis-tax-results .ggf-warning { font-size: 13px; }
@media (max-width: 520px) {
  .basis-payment { padding: 12px; }
  .basis-section .ggf-form { padding: 18px; }
  .basis-payment .ggf-date-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .basis-payment .ggf-field label { min-height: 0; }
  .basis-assumptions { gap: 8px; }
  .basis-assumptions li { font-size: 13px; padding: 7px 10px; }
  .basis-breakdown > div { flex-wrap: wrap; gap: 5px 14px; }
  .basis-breakdown dd { margin-left: auto; }
  .basis-tax-results { padding: 18px; }
  .basis-tax-cards { grid-template-columns: minmax(0, 1fr); }
  .basis-tax-card { display: block; padding: 18px; }
  .basis-tax-card dl { display: block; }
  .basis-tax-card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .basis-tax-card dt { flex: 1; }
  .basis-tax-card dd { text-align: right; max-width: 60%; margin-top: 0; }
  .basis-tax-total > div { flex-wrap: wrap; }
  .basis-tax-total dd { margin-left: auto; max-width: 100%; }
}
@media print { .basis-next, .basis-add, [data-basis-remove] { display: none; } }
