/*
 * Öffentliche Rechner (NS-B2-1-speicherrechner).
 *
 * Mobil zuerst: Alles einspaltig bis 640 px, keine feste Breite über die
 * Bildschirmbreite hinaus (kein waagrechtes Scrollen auf 360 px), Knöpfe und
 * Eingaben mindestens 44 px hoch (Fingerbreite). Farben und Grundbausteine
 * (.field, .fl, .btn-accent, .scard) kommen aus shop.css; hier nur das, was
 * die Rechner zusätzlich brauchen – alle Klassen mit „rx-“, damit nichts in
 * fremde Seiten leckt. Druck: nur Ergebnis, ohne Kopf, Menü und Fuß.
 */
.rx-eng{max-width:820px}
.rx h1{color:var(--navy);font-size:1.6rem;line-height:1.25;margin:.4rem 0 .6rem;overflow-wrap:anywhere}
.rx-lead{color:var(--muted);margin:0 0 1.4rem;font-size:1rem;line-height:1.55}
.rx-zurueck{display:inline-block;margin-bottom:.6rem;color:var(--blue);text-decoration:none;font-size:.9rem}
.rx-karten{display:grid;grid-template-columns:1fr;gap:1rem}

.rx-form{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.1rem}
.rx-form .fl{display:block;margin-bottom:1rem}
.rx-form .field{width:100%;max-width:100%;min-height:44px;box-sizing:border-box;font-size:16px}
.rx-hilfe{display:block;color:var(--muted);font-size:.82rem;font-weight:400;margin-top:.3rem;line-height:1.4}
.rx-fehler{display:block;color:#b42318;font-size:.85rem;font-weight:600;margin-top:.3rem}
.rx-genauer{border-top:1px solid var(--line);padding-top:.8rem;margin:.4rem 0 1rem}
.rx-genauer summary{cursor:pointer;font-weight:600;color:var(--blue);min-height:44px;display:flex;align-items:center}
.rx-raster{display:grid;grid-template-columns:1fr;gap:0 1rem;margin-top:.6rem}
.rx-pflicht{color:var(--muted);font-size:.82rem;margin:.2rem 0 .8rem}
.rx-knopf{min-height:44px;width:100%;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

.rx-haupt{background:var(--navy);color:#fff;border-radius:14px;padding:1.3rem 1.1rem;margin-bottom:1rem}
.rx-haupt-wert{font-size:2.4rem;font-weight:800;line-height:1.1}
.rx-haupt-text{opacity:.9;margin-top:.3rem}
.rx-ac{margin:.9rem 0 0;font-weight:600}
.rx-wenig{margin:.6rem 0 0;background:rgba(255,255,255,.12);border-radius:10px;padding:.6rem .8rem}
.rx-werte{display:grid;grid-template-columns:1fr;gap:.8rem;margin-bottom:1rem}
.rx-wert{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1rem}
.rx-wert-zahl{font-size:1.5rem;font-weight:700;color:var(--navy)}
.rx-wert-text{color:var(--muted);font-size:.9rem;margin-top:.2rem}
.rx-wert-satz{font-weight:600;color:var(--navy);line-height:1.45}
.rx-eeg{border-radius:12px;padding:1rem;margin-bottom:1rem;border:1px solid var(--line);background:#f5f8fc}
.rx-eeg p{margin:.4rem 0 0;line-height:1.5}
.rx-eeg-titel{font-weight:700;color:var(--navy)}
.rx-eeg-ausgelaufen{background:#fff4e0;border-color:#f3c77a}
.rx-eeg-bald{background:#fff9e6;border-color:#f3d77a}
.rx-eeg-laufend{background:#e6f7ec;border-color:#a7dcb9}
.rx-autarkie{margin-bottom:1rem}
.rx-autarkie-titel{font-weight:600;color:var(--navy);margin-bottom:.4rem}
.rx-balken{display:flex;height:14px;border-radius:7px;background:#e8edf4;overflow:hidden}
.rx-balken-ohne{background:#94a3b8}
.rx-balken-mit{background:#16a34a}
.rx-autarkie p{margin:.4rem 0 0}
.rx-vorbehalt{background:#f8fafc;border-left:4px solid #94a3b8;padding:.8rem 1rem;border-radius:6px;font-size:.9rem;line-height:1.5;margin-bottom:1rem}
.rx-vorbehalt ul{margin:.4rem 0 0;padding-left:1.1rem}
.rx-eingaben{margin-bottom:1rem}
.rx-eingaben ul{margin:.2rem 0 0;padding-left:1.1rem;line-height:1.6}
.rx-knoepfe{display:grid;grid-template-columns:1fr;gap:.6rem;margin-bottom:1.2rem}

/* NS-B2-2: freiwillige Anfrage unter dem Ergebnis */
.rx-anfrage{border-top:1px solid var(--line);padding-top:1.2rem;margin-top:.4rem}
.rx-anfrage h2{color:var(--navy);font-size:1.3rem;margin:0 0 .4rem}
.rx-check{display:flex;gap:.6rem;align-items:flex-start;margin:.8rem 0 .2rem;font-size:.9rem;line-height:1.45;color:var(--muted);cursor:pointer}
.rx-check input{width:22px;height:22px;flex:0 0 22px;margin-top:.1rem}
.rx-bestaetigung{background:#e6f7ec;border:1px solid #a7dcb9;border-radius:12px;padding:1rem;color:var(--navy);line-height:1.5}
.rx-bestaetigung p{margin:.4rem 0 0}
.rx-anfrage-fehler{background:#fdecea;color:#b42318;margin-bottom:.8rem}

/* NS-B2-3: Ertragsrechner – drei nummerierte Schritte, Karte breiter */
.rx-breit{max-width:1040px}
.rx-schritt{border:0;border-top:1px solid var(--line);margin:0 0 1rem;padding:1rem 0 0;min-width:0}
.rx-schritt:first-of-type{border-top:0;padding-top:0}
.rx-schritt legend{font-weight:700;color:var(--navy);font-size:1.15rem;display:flex;align-items:center;gap:.5rem;padding:0}
.rx-nr{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-size:.95rem;flex:0 0 30px}
.rx-schritt-satz{color:var(--muted);margin:.4rem 0 .8rem;line-height:1.5}
.rx-wahl{display:flex;flex-wrap:wrap;gap:0 1.2rem;margin-bottom:.6rem}
.rx-wahl .rx-check{min-height:44px;align-items:center;margin:0}
.rx-hand-zeile{border:1px solid var(--line);border-radius:10px;padding:.8rem;margin-bottom:.8rem}
.rx-hand-titel{font-weight:600;color:var(--navy);margin-bottom:.4rem}
.rx-fehlerkasten{background:#fdecea;color:#b42318;border-radius:10px;padding:.7rem .9rem;margin-bottom:.8rem;font-weight:600;line-height:1.45}
.rx-hinweis{min-height:1.2em;margin:.5rem 0 0;font-size:.9rem;color:var(--muted)}
.rx-haupt-zweit{font-size:1.8rem;font-weight:800;line-height:1.15;margin-top:1rem}
.rx-wert-spanne{font-size:1.25rem}
.rx-monate{margin:0 0 1rem}
.rx-monate summary{cursor:pointer;font-weight:600;color:var(--blue);min-height:44px;display:flex;align-items:center}
.rx-monatsliste{list-style:none;margin:.4rem 0 0;padding:0}
.rx-monatsliste li{display:grid;grid-template-columns:2.6rem 1fr 7.5rem;gap:.5rem;align-items:center;padding:.15rem 0;font-size:.9rem}
.rx-monat-balken{height:10px;background:#e8edf4;border-radius:5px;overflow:hidden}
.rx-monat-balken span{display:block;height:100%;background:#f5a623}
.rx-monat-wert{text-align:right;color:var(--muted)}
.rx-vorschau{margin:.4rem 0 .6rem;border-radius:10px;overflow:hidden}
.rx [hidden]{display:none !important}

@media (min-width:641px){
    .rx-raster-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .rx h1{font-size:2rem}
    .rx-form{padding:1.5rem}
    .rx-karten{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rx-raster{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rx-werte{grid-template-columns:repeat(3,minmax(0,1fr))}
    .rx-knoepfe{grid-template-columns:repeat(2,max-content)}
    .rx-knopf{width:auto;padding-left:1.6rem;padding-right:1.6rem}
    .rx-haupt-wert{font-size:3rem}
}

@media print{
    .announce,.header,.mainnav,footer,.rx-nicht-drucken,.cookie-banner{display:none !important}
    .rx-haupt{background:#fff;color:#000;border:2px solid #000}
    .rx-wert,.rx-eeg,.rx-vorbehalt{break-inside:avoid}
}
