/* Steuerrechner (Hauptseite) — blau/orange, konsistent mit den übrigen Rechnern.
   Nutzt bewusst die bestehenden Basiskomponenten (.card, .field, .seg, .kpi,
   .note, .btn) und ergänzt nur Tabs, Ortssuche, Quelle-Badge und Ergebnisraster. */

.tx2-shell{padding:26px}
.tx2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.tx2-head .cat{font-size:11.5px;color:var(--accent)}
.tx2-head h3{font-size:20px;margin-top:6px}
.tx2-head p{color:var(--text-soft);font-size:13.5px;margin-top:6px;max-width:52ch}

.tx2-source{display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);font-size:12.5px;color:var(--text-soft);white-space:nowrap}
.tx2-source i{width:8px;height:8px;border-radius:50%;background:var(--text-mute);flex:0 0 auto}
.tx2-source[data-state="loading"] i{background:#E0A03A}
.tx2-source[data-state="ok"] i{background:var(--pos)}
.tx2-source[data-state="ok"]{color:var(--text)}
.tx2-source[data-state="error"] i{background:var(--accent)}

.tx2-tabs{display:flex;gap:6px;margin-top:20px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:0}
.tx2-tabs button{padding:11px 16px;font-size:13.5px;background:none;border:none;border-bottom:2px solid transparent;color:var(--text-soft);margin-bottom:-1px;border-radius:0}
.tx2-tabs button:hover{color:var(--text)}
.tx2-tabs button.on{color:var(--accent);border-bottom-color:var(--accent);font-weight:500}

/* Geführte Schritt-Karten (1 Steuerort · 2 Situation · 3 Einkommen) */
.tx2-step{margin-top:16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);padding:20px 20px 22px}
.tx2-step__head{display:flex;gap:13px;align-items:flex-start;margin-bottom:16px}
.tx2-step__num{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}
.tx2-step__head h4{font-size:15px;font-weight:600;margin:0;letter-spacing:-.01em}
.tx2-step__head p{font-size:12.5px;color:var(--text-soft);margin:3px 0 0;line-height:1.45;max-width:60ch}
.tx2-guided{margin-top:0}
.tx2-guided .tx2-catchup{margin-top:16px}
@media(max-width:560px){.tx2-step{padding:16px 15px 18px}}

.tx2-loc-field{position:relative;max-width:440px}
.tx2-loc-results{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 14px 30px rgba(14,30,51,.16);overflow:hidden;max-height:280px;overflow-y:auto;isolation:isolate}
html[data-theme="dark"] .tx2-loc-results{box-shadow:0 14px 30px rgba(0,0,0,.4)}
.tx2-loc-results button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;padding:11px 14px;background:var(--surface);border:none;border-bottom:1px solid var(--border);color:var(--text);font-size:13.5px}
.tx2-loc-results button:last-child{border-bottom:none}
.tx2-loc-results button:hover,.tx2-loc-results button:focus-visible{background:var(--surface-2)}
.tx2-loc-results button span{font-size:11.5px;color:var(--text-mute)}
.tx2-loc-confirm{font-size:12px;color:var(--text-mute);margin-top:8px}
.tx2-loc-confirm.confirmed{color:var(--pos)}
.tx2-shell select option{background:#fff;color:#14233a}
html[data-theme="dark"] .tx2-shell select{color-scheme:dark}
html[data-theme="dark"] .tx2-shell select option{background:#15294a;color:#f2f6fb}

.tx2-form{margin-top:20px}
.tx2-form[hidden]{display:none}
.tx2-form:not([hidden]){animation:tx2-fade .28s cubic-bezier(.2,.7,.3,1)}
@keyframes tx2-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tx2-form:not([hidden]){animation:none}}

.tx2-catchup{margin-top:16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);padding:0 16px}
.tx2-catchup summary{cursor:pointer;list-style:none;padding:13px 0;font-size:14px;font-weight:500;color:var(--text);display:flex;align-items:center;gap:10px}
.tx2-catchup summary::-webkit-details-marker{display:none}
.tx2-catchup summary::before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid var(--border);border-radius:6px;color:var(--accent);font-size:15px;line-height:1}
.tx2-catchup[open] summary::before{content:"–"}
.tx2-catchup summary span{font-weight:400;font-size:12px;color:var(--text-mute)}
.tx2-catchup__hint{font-size:12.5px;color:var(--text-soft);margin:0 0 14px;line-height:1.5}
.tx2-catchup .grid{padding-bottom:16px}

.tx2-catchup-result{margin-top:18px;border:1px solid var(--accent);border-radius:var(--radius-sm);padding:16px;background:var(--accent-soft)}
.tx2-catchup-result__head{font-size:12.5px;font-weight:500;color:var(--accent);margin-bottom:12px;text-transform:none}
.tx2-catchup-result .tx2-break{margin-top:0;background:var(--surface)}
.tx2-catchup-result .tx2-note-inline{margin-bottom:0}
.tx2-form-action{display:flex;align-items:center;gap:14px;margin-top:20px;flex-wrap:wrap}
.tx2-loading{font-size:12.5px;color:var(--text-mute)}

.tx2-error{margin-top:16px;padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--accent);background:var(--accent-soft);color:var(--accent);font-size:13px}
.tx2-error[hidden]{display:none}

.tx2-result{margin-top:22px}
.tx2-result[hidden]{display:none}
.tx2-result:not([hidden]){animation:tx2-fade .3s cubic-bezier(.2,.7,.3,1)}
@media (prefers-reduced-motion:reduce){.tx2-result:not([hidden]){animation:none}}
.tx2-hero{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:640px){.tx2-hero{grid-template-columns:1fr}}
.tx2-hero .kpi small{display:block;font-size:11px;color:var(--text-mute);margin-top:6px}

.tx2-break{margin-top:18px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.tx2-break__row{display:flex;justify-content:space-between;gap:12px;padding:11px 16px;font-size:13.5px;border-bottom:1px solid var(--border)}
.tx2-break__row:last-child{border-bottom:none}
.tx2-break__row dt{color:var(--text-soft)}
.tx2-break__row dt small{display:block;color:var(--text-mute);font-size:11px}
.tx2-break__row dd{font-variant-numeric:tabular-nums;font-weight:500;white-space:nowrap}
.tx2-break__row.is-total{background:var(--surface-2)}
.tx2-break__row.is-total dd{color:var(--accent)}

.tx2-meta{font-size:11.5px;color:var(--text-mute);margin-top:12px}
.tx2-note-inline{font-size:12px;color:var(--text-soft);margin-top:12px;line-height:1.5;padding:12px 14px;border-left:2px solid var(--border);background:var(--surface-2);border-radius:0 var(--radius-sm) var(--radius-sm) 0}
