/* ============================================================
   LKW-Schnellcheck (Lead-Seite) – Ergänzungen zu css/styles.css
   styles.css und js/app.js werden unverändert aus dem Hauptrechner übernommen.
   ============================================================ */

/* Alles, was nur der Hauptrechner braucht, ausblenden */
.lead-page [hidden], .lead-page .lead-hidden, .lead-page .modes, .lead-page #actMore,
.lead-page .detail-only, .lead-page .print-report, .lead-page [data-goto] { display: none !important; }
@media print { .lead-page .print-report { display: none !important; } }

.lead-page .hero-title { max-width: 860px; }

/* Ohne LNG: Hinweis „LNG wird nicht verglichen“ ausblenden */
.lead-page .cmp-note, .lead-page .lng-only, .lead-page #quick .side-l { display: none !important; }

@media (min-width: 641px) { .lead-page .fc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Greenflash-Lösung: Kachel „Depotladen mit Eigenstrom“ */
.charge-opt.gf-solution { position: relative; border-color: var(--n-accent-line, #009e4f); }
.gf-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .5rem;
  padding: .2rem .55rem .2rem .45rem; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
  background: var(--n-flash, #9ff55d); color: var(--n-flash-ink, #00211e);
}
.gf-badge::before {
  content: ""; width: .7rem; height: .7rem; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gf-note { display: flex; gap: .625rem; align-items: flex-start; margin: .875rem 0 0; font-size: 13px; line-height: 1.55; color: var(--n-text-2, #5a6a65); }
.gf-note a { color: var(--n-accent, #037045); font-weight: 500; }
.gf-dot { flex: none; width: .5rem; height: .5rem; margin-top: .4rem; border-radius: 50%; background: var(--n-dot, #67d645); box-shadow: 0 0 0 4px var(--n-accent-soft, #edf9e6); }

/* Ergebniskarte: Hinweis + Sprung zum Formular */
.lead-teaser { padding: 14px 1.5rem 1.5rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .lead-teaser { padding: 16px 2rem 2rem; } }
.lead-teaser p { margin: 0 0 14px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.lead-teaser .btn { width: 100%; }

/* ---------- Formularbereich ---------- */
.lead-sec { padding-bottom: 3.5rem; scroll-margin-top: 72px; }
.lead-card {
  display: grid; gap: 2rem; padding: 1.5rem; border-radius: 24px;
  background: var(--n-surface, #fff); border: 1px solid var(--n-border, #e3e9e7); box-shadow: var(--n-shadow-lg, none);
  color: var(--n-text, #13241f);
}
@media (min-width: 768px) { .lead-card { padding: 2.5rem; } }
@media (min-width: 960px) { .lead-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; } }

.lead-intro .tagline { margin-bottom: 1rem; }
.lead-intro h2 { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; color: var(--n-text-strong, #0a1714); }
@media (min-width: 992px) { .lead-intro h2 { font-size: 2rem; line-height: 1.15; } }
.lead-intro > p { margin: .875rem 0 1.25rem; color: var(--n-text-2, #5a6a65); font-size: 15px; line-height: 1.6; }
.lead-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; font-size: 15px; }
.lead-pts li { display: flex; gap: .625rem; align-items: flex-start; }
.lead-pts li::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%;
  background: var(--n-accent-soft, #edf9e6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009e4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Mitgeschicktes Ergebnis (Kurzfassung) */
.lead-result:empty { display: none; }
.lead-result {
  margin-top: 1.5rem; padding: 1rem 1.125rem; border-radius: 16px; font-size: 14px; line-height: 1.5;
  background: var(--n-accent-soft, #edf9e6); border: 1px solid var(--n-accent-line, #009e4f);
}
.lead-result small { display: block; color: var(--n-text-2, #5a6a65); font-size: 12.5px; margin-bottom: .25rem; }
.lead-result b { color: var(--n-text-strong, #0a1714); }

/* Felder */
.lead-form { display: flex; flex-direction: column; gap: 1rem; }
.lf-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .lf-row { grid-template-columns: 1fr 1fr; } }
.lf { display: flex; flex-direction: column; gap: .375rem; font-size: 14px; font-weight: 500; color: var(--n-text, #13241f); }
.lf small { font-weight: 400; color: var(--n-text-3, #66736f); }
.lf input, .lf textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--n-text-strong, #0a1714);
  background: var(--n-surface, #fff); border: 1px solid var(--n-border-strong, #cfd9d5); border-radius: 12px;
  padding: .75rem .875rem; min-height: 48px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.lf textarea { resize: vertical; min-height: 96px; }
.lf input::placeholder, .lf textarea::placeholder { color: var(--n-text-3, #66736f); }
.lf input:hover, .lf textarea:hover { border-color: var(--n-text-3, #66736f); }
.lf input:focus-visible, .lf textarea:focus-visible { outline: none; border-color: var(--n-focus, #5a6bd6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--n-focus, #5a6bd6) 25%, transparent); }
.lf input[aria-invalid="true"], .lf textarea[aria-invalid="true"] { border-color: var(--n-bad, #b3322c); }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-check { display: flex; gap: .75rem; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--n-text-2, #5a6a65); cursor: pointer; }
.lf-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--n-accent-line, #009e4f); }
.lf-check a { color: var(--n-accent, #037045); }
.lf-check.invalid span { color: var(--n-bad, #b3322c); }
.lf-error:empty { display: none; }
.lf-error { margin: 0; padding: .75rem 1rem; border-radius: 12px; font-size: 14px; background: var(--n-bad-bg, #fdeceb); color: var(--n-bad, #b3322c); }
.lf-submit { align-self: stretch; }
@media (min-width: 560px) { .lf-submit { align-self: flex-start; min-width: 280px; } }
.lf-submit[disabled] { opacity: .6; cursor: progress; }
.lf-note { margin: 0; font-size: 12.5px; color: var(--n-text-3, #66736f); }

/* Danke-Zustand */
.lead-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .5rem; outline: none; }
.lead-done h3 { font-size: 1.5rem; font-weight: 600; color: var(--n-text-strong, #0a1714); }
.lead-done p { margin: 0; color: var(--n-text-2, #5a6a65); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.lead-done-ic { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--n-flash, #9ff55d); color: var(--n-flash-ink, #00211e); margin-bottom: .5rem; }
.lead-done-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Eingebettet: weniger Rand */
html.embed .lead-sec { padding-bottom: 1.5rem; }
