/* ============ Solarrechner (dunkles Panel wie faers.tech, in Schwarz + Sonnengelb) ============ */
.rech { --r-flaeche: #121417; --r-karte: #1a1d21; --r-linie: rgba(255,255,255,.09); --r-leise: rgba(255,255,255,.62);
  --pad: clamp(20px, 5vw, 72px);
  position: relative; z-index: 5; background: var(--dark); color: #fff; padding: 12vh var(--pad); font-family: var(--sans); }
.rech-inner { max-width: 1296px; margin: 0 auto; }
.rech-kopf { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 48px); }
.rech-kicker { margin: 0 0 10px; font-size: 14px; line-height: 28px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--sun); }
.rech h2 { font-family: var(--kopf); font-size: clamp(2rem, 3.75vw, 3.375rem); line-height: 1.11; margin: 0 0 16px; }
.rech-sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--r-leise); max-width: 60ch; }

.rech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.rech-links { display: grid; gap: 16px; }
.rech-rechts { display: grid; gap: 14px; position: sticky; top: 24px; }

/* Eingabekarten */
.rech-karte { background: var(--r-flaeche); border: 1px solid var(--r-linie); border-radius: 22px; padding: clamp(20px, 2.2vw, 28px); }
.rech-karte h3 { display: flex; align-items: center; gap: 12px; font-family: var(--kopf); font-size: 19px; margin: 0 0 18px; }
.rech-karte h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sun); color: #000; font-size: 14px; }

/* hidden muss gewinnen: .rech-feld/.rech-toggle setzen display und hebelten das Attribut sonst aus
   (Verbrauchsfeld blieb bei der Flaechen-Schaetzung stehen, Altersfrage bei Oel). */
.rech [hidden] { display: none !important; }
.rech-aufteilung b { white-space: nowrap; }                    /* Betrag nie umbrechen ("762" / "€") */
.rech-feld { display: block; margin: 0 0 14px; }
.rech-feld > span, .rech-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--r-leise); margin-bottom: 7px; }
.rech-label b { color: #fff; font-weight: 700; float: right; font-family: var(--kopf); font-size: 15px; }
.rech-feld input, .rech-preise input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 22px; color: #fff;
  background: var(--r-karte); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 15px;
  transition: border-color .15s; }
.rech-feld input:focus, .rech-preise input:focus { outline: none; border-color: var(--sun); }
.rech-adresse { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }

/* Adressvorschlaege: eigene Liste statt <datalist>, weil der Browser dort nochmal
   selbst filtert — unsere Treffer kommen aber schon gefiltert von Google und wuerden
   dadurch teils verschwinden. Ausserdem brauchen wir Pfeiltasten und Enter. */
.rech-vorschlag-feld { position: relative; }
.rech-vorschlaege {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; max-height: 252px; overflow-y: auto;
  background: #16181c; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.rech-vorschlaege[hidden] { display: none; }
.rech-vorschlaege li {
  padding: 11px 13px; border-radius: 8px; font-size: 15px; line-height: 20px;
  color: #fff; cursor: pointer; }
.rech-vorschlaege li[aria-selected="true"], .rech-vorschlaege li:hover {
  background: rgba(242,176,30,.16); }
.rech-adresse .rech-feld { margin: 0; }
.rech-knopf { font: inherit; font-size: 15px; font-weight: 700; color: #000; background: var(--sun); border: 0;
  border-radius: 12px; padding: 14px 20px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.rech-knopf:hover:not(:disabled) { background: var(--nv-signal-dunkel); }
.rech-knopf:disabled { opacity: .6; cursor: default; }
.rech-status { min-height: 20px; margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--r-leise); }
.rech-dachinfo { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(242,176,30,.1);
  border: 1px solid rgba(242,176,30,.35); font-size: 15px; line-height: 1.5; }
.rech-trenner { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; font-size: 13px; color: var(--r-leise); }
.rech-trenner::before, .rech-trenner::after { content: ""; flex: 1; height: 1px; background: var(--r-linie); }

.rech-gruppe { margin: 0 0 16px; }
.rech-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.rech-seg button, .rech-personen button { font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--r-karte); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 9px 14px;
  transition: background .15s, border-color .15s, color .15s; }
.rech-seg button:hover, .rech-personen button:hover { border-color: rgba(255,255,255,.35); }
.rech-seg button.an { background: var(--sun); border-color: var(--sun); color: #000; }
.rech-seg button:focus-visible, .rech-personen button:focus-visible, .rech-tabs button:focus-visible,
.rech-knopf:focus-visible, .rech-cta:focus-visible, .rech-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rech-personen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 18px; font-size: 13px; color: var(--r-leise); }
.rech-personen span { margin-right: 4px; }
.rech-personen button { padding: 6px 11px; font-size: 13px; }

.rech-regler { display: block; margin: 0 0 18px; }
.rech-regler small { display: block; margin-top: 6px; font-size: 13px; color: var(--r-leise); }
.rech-regler input[type="range"] { width: 100%; accent-color: var(--sun); height: 26px; cursor: pointer; }

.rech-schalter { border-top: 1px solid var(--r-linie); padding-top: 16px; margin-top: 4px; display: grid; gap: 12px; }
.rech-toggle { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; cursor: pointer; }
.rech-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rech-toggle span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #3a3f45; flex: 0 0 auto; transition: background .2s; }
.rech-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.rech-toggle input:checked + span { background: var(--sun); }
.rech-toggle input:checked + span::after { transform: translateX(20px); }
.rech-toggle input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.rech-teil { padding: 4px 0 8px 58px; }
.rech-link { display: inline-block; background: none; border: 0; padding: 0; margin: 0 0 16px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.rech-dachinfo .rech-link { margin: 6px 0 0; display: block; }
.rech-flaeche { margin-bottom: 16px; }
.rech-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--r-leise); cursor: pointer; }
.rech-check input { accent-color: var(--sun); width: 18px; height: 18px; }

/* Ergebnis */
.rech-tabs { justify-self: end; display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--r-flaeche); border: 1px solid var(--r-linie); }
.rech-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: none; border: 0; border-radius: 12px;
  padding: 10px 16px; cursor: pointer; transition: background .15s, color .15s; }
.rech-tabs button.an { background: var(--sun); color: #000; }
.rech-erg { background: var(--r-flaeche); border: 1px solid var(--r-linie); border-radius: 22px; padding: 20px 22px; }
.rech-erg-titel { display: block; font-size: 14px; color: var(--r-leise); margin-bottom: 6px; }
.rech-zahl { display: block; font-family: var(--kopf); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rech-zahl-mittel { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.rech-erg-gross { border-color: rgba(242,176,30,.45); background: linear-gradient(160deg, rgba(242,176,30,.14), rgba(242,176,30,.02) 55%), var(--r-flaeche); }
.rech-erg-gross .rech-zahl { color: var(--sun); }
.rech-erg small { display: block; margin-top: 6px; font-size: 13px; color: var(--r-leise); }
.rech-aufteilung { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--r-linie); display: grid; gap: 6px; }
.rech-aufteilung li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--r-leise); }
.rech-aufteilung b { color: #fff; font-variant-numeric: tabular-nums; }

.rech-monate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 74px; margin-top: 14px; }
.rech-monate i { position: relative; height: calc(var(--h) * .72); min-height: 3px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(var(--sun), rgba(242,176,30,.55)); }
.rech-monate em { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-style: normal; font-size: 11px; color: var(--r-leise); }
.rech-erg:has(.rech-monate) { padding-bottom: 32px; }

.rech-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rech-kachel { background: var(--r-flaeche); border: 1px solid var(--r-linie); border-radius: 22px; padding: 18px 20px; }
.rech-kachel b { display: block; font-family: var(--kopf); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.rech-kachel span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--r-leise); }

.rech-kombi-text { margin: 0 0 12px; font-size: 14px; color: var(--r-leise); }
.rech-kombi { display: grid; gap: 10px; }
.rech-balken { display: grid; grid-template-columns: 120px minmax(0, 1fr) 46px; align-items: center; gap: 12px; font-size: 14px; }
.rech-balken i { height: 12px; border-radius: 999px; background: #2a2e33; overflow: hidden; }
.rech-balken em { display: block; height: 100%; border-radius: 999px; background: var(--sun); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.rech-balken b { text-align: right; font-variant-numeric: tabular-nums; }

.rech-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 22px;
  background: var(--sun); color: #000; font-family: var(--kopf); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 40px rgba(242,176,30,.28); transition: background .2s, transform .15s; padding: 0 20px; text-align: center; }
.rech-cta::after { content: "→"; font-size: 20px; }
.rech-cta:hover { background: var(--nv-signal-dunkel); transform: translateY(-1px); }

.rech-annahmen { background: var(--r-flaeche); border: 1px solid var(--r-linie); border-radius: 22px; padding: 4px 22px; }
.rech-annahmen summary { cursor: pointer; padding: 16px 0; font-size: 14px; font-weight: 700; list-style: none; position: relative; padding-right: 26px; }
.rech-annahmen summary::-webkit-details-marker { display: none; }
.rech-annahmen summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--sun); font-size: 20px; }
.rech-annahmen[open] summary::after { content: "–"; }
.rech-preise { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rech-preise .rech-feld input { padding: 10px 12px; font-size: 15px; }
.rech-quellen { margin: 6px 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--r-leise); }
.rech-quellen b { color: #fff; }
.rech-hinweis { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #fff; }

@media (max-width: 1000px) {
  .rech-grid { grid-template-columns: minmax(0, 1fr); }
  .rech-rechts { position: static; }
  .rech-tabs { justify-self: start; }
}
@media (max-width: 560px) {
  .rech-adresse { grid-template-columns: minmax(0, 1fr); }
  .rech-teil { padding-left: 0; }
  .rech-balken { grid-template-columns: 96px minmax(0, 1fr) 40px; font-size: 13px; }
  .rech-preise { grid-template-columns: minmax(0, 1fr); }
  .rech-tabs { justify-self: stretch; }
  .rech-tabs button { flex: 1; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .rech-balken em { transition: none; } }
