/* Energieweg-Deutschland.de – Website
   Farben aus dem Logo: Blattgrün, Dunkelgrün-Schwarz und Weiß */
:root {
  --ink: #06140f; --text: #34443d; --muted: #66766f; --line: #e3ebe5; --bg: #ffffff;
  --soft: #f4f9f2; --mint: #eaf7e1; --sand: #faf5ec;
  --primary: #2b7f19; --primary-700: #1f6012; --primary-300: #8edc3b;
  --accent: #8edc3b; --accent-700: #5fae1f;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(6, 20, 15, .04), 0 14px 36px rgba(6, 20, 15, .08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); font-size: 17px; line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* versteckte Elemente (Danke-Box, Buttons) nie durch andere Regeln einblenden */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: inherit; font-size: 15.5px;
  font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(43, 127, 25, .25); }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(142, 220, 59, .35); }
.btn-accent:hover { background: #a6e862; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow i { width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.light { color: #fff; }

/* Kopf */
.header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .25s, box-shadow .25s; }
.header.scrolled, .header.solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 6px 24px rgba(6, 20, 15, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.03em; transition: color .25s; }
.brand b { color: var(--accent); font-weight: 800; } .brand i { font-style: normal; font-weight: 600; opacity: .7; }
.scrolled .brand, .solid .brand { color: var(--ink); } .scrolled .brand b, .solid .brand b { color: var(--primary); }
.brand.light { color: #fff; } .brand.light b { color: var(--primary-300); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: #fff; text-decoration: none; font-weight: 550; font-size: 15.5px; position: relative; transition: color .25s; }
.scrolled .menu a:not(.btn), .solid .menu a:not(.btn) { color: var(--ink); }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .2s; }
.menu a:not(.btn):hover::after { right: 0; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }
.scrolled .burger span, .solid .burger span { background: var(--ink); }

/* Hero mit Foto */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.02); animation: zoom 18s ease-out forwards; }
@keyframes zoom { to { transform: scale(1.08); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 16, .82) 0%, rgba(4, 18, 16, .55) 45%, rgba(4, 18, 16, .05) 80%), linear-gradient(0deg, rgba(4, 18, 16, .35), transparent 40%); }
.hero-inner { position: relative; padding: 130px 0 80px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.035em; max-width: 760px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); margin: 20px 0 32px; max-width: 520px; color: #e6eef0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: #eaf3f1; }

/* Sektionen */
.section { padding: 104px 0; } .section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.sub { font-size: 18px; margin-top: 16px; }

/* Leistungen – Fotokarten */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s; }
.service:hover img { transform: scale(1.05); }
.service > div { padding: 20px 22px 22px; display: grid; gap: 4px; background: #fff; position: relative; }
.service p { font-size: 15.5px; color: var(--muted); }
.service .link { font-weight: 700; color: var(--primary); font-size: 15px; margin-top: 8px; }
.service.featured { border: 2px solid var(--primary); }
.tag { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--accent); color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 20px; }

/* Split-Bereiche mit Foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > img { order: 2; }
.split-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.split.reverse .split-img { aspect-ratio: 4 / 3; }
.split h2 { margin-bottom: 30px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.steps h3 { font-size: 18px; } .steps p { font-size: 15.5px; color: var(--muted); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; font-size: 17px; }
.ticks li { position: relative; padding-left: 40px; line-height: 1.5; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ticks b { color: var(--ink); }

/* Heizlast-Rechner */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.calc label { font-weight: 650; color: var(--ink); font-size: 15px; display: flex; justify-content: space-between; }
.calc output { color: var(--primary); font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--primary); margin-bottom: 8px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 6px; }
.calc-result div { background: var(--mint); border-radius: 14px; padding: 16px; }
.calc-result small { display: block; font-size: 13px; color: var(--primary-700); font-weight: 600; }
.calc-result b { font-size: clamp(22px, 6vw, 30px); color: var(--primary-700); letter-spacing: -.03em; white-space: nowrap; }
.calc .fine { margin-top: 2px; }

/* Förderung */
.funding { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.funding > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.funding b { display: block; font-size: 40px; font-weight: 800; color: var(--primary); letter-spacing: -.03em; margin-bottom: 6px; }
.funding h3 { font-size: 18px; } .funding p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 30px 19px 0; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; }

/* Anfrage */
.request-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.request-intro { position: sticky; top: 100px; }
.request-intro h2 { margin-bottom: 26px; }
.intro-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.progress-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 20%; background: var(--primary); border-radius: 6px; transition: width .3s; }
.step { border: 0; padding: 0; margin: 0; display: none; } .step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
legend { font-size: 23px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; margin-bottom: 20px; padding: 0; }
legend small { font-size: 15px; font-weight: 500; color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; transition: .15s; height: 100%; }
.choice img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.choice b { color: var(--ink); font-size: 16.5px; padding: 12px 14px; }
.choice:hover span { border-color: var(--primary-300); }
.choice input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 127, 25, .14); }
.choice input:checked + span b { background: var(--mint); color: var(--primary-700); }
.choice input:focus-visible + span { outline: 3px solid var(--primary-300); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .span2 { grid-column: span 2; }
.form-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-card input:not([type=radio]):not([type=checkbox]), .form-card select, .form-card textarea, .calc select {
  font: inherit; font-size: 16px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus, .calc select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 127, 25, .12); }
.form-card .invalid { border-color: #c75a4a !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0 0 22px; background: var(--soft); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; color: var(--ink); font-weight: 600; }
.consent { display: flex !important; gap: 12px !important; align-items: flex-start; font-weight: 500 !important; font-size: 14.5px !important; color: var(--text) !important; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.form-error { margin-top: 18px; background: #fbefec; color: #8f3b2f; border: 1px solid #f2d3cc; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-nav .btn-primary { margin-left: auto; min-width: 150px; }
.success { text-align: center; padding: 40px 10px; display: grid; gap: 10px; justify-items: center; }
.success-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--mint); color: var(--primary); display: grid; place-items: center; margin-bottom: 8px; }
.success-ico svg { width: 36px; height: 36px; stroke-width: 2.4; }
.success h3 { font-size: 26px; }

/* CTA mit Foto */
.cta-band { position: relative; overflow: hidden; padding: 110px 0; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 18, 16, .92), rgba(31, 96, 18, .65)); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 620px; }

/* Footer */
.footer { background: var(--ink); color: #a9b6c5; font-size: 15px; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer p { margin-top: 14px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.footer-grid a:not(.brand) { display: block; color: #a9b6c5; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; } .footer-bottom a { color: #a9b6c5; text-decoration: none; }

/* Rechtstexte */
.legal { padding: 140px 0 100px; } .legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; } .legal p, .legal li { font-size: 16.5px; } .legal p + p { margin-top: 10px; }
.legal .placeholder { background: #fff6dd; padding: 1px 6px; border-radius: 5px; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 20px 24px;
    box-shadow: 0 20px 40px rgba(6, 20, 15, .1); transform: translateY(-130%); transition: transform .25s; z-index: -1; }
  .menu.open { transform: none; }
  .menu a:not(.btn) { color: var(--ink) !important; padding: 14px 4px; border-bottom: 1px solid var(--line); } .menu .btn { margin-top: 16px; }
  .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .calc-grid, .request-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split > *, .calc-grid > *, .request-grid > * { min-width: 0; }
  .split.reverse > img { order: 0; }
  .split-img { aspect-ratio: 16 / 10; }
  .request-intro { position: static; } .intro-img { display: none; }
  .funding { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .hero-shade { background: linear-gradient(0deg, rgba(4, 18, 16, .88) 0%, rgba(4, 18, 16, .55) 60%, rgba(4, 18, 16, .35) 100%); }
  .hero { align-items: flex-end; }
}
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .services, .choices, .grid2 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; }
  .choices { grid-template-columns: 1fr 1fr; } .choice img { aspect-ratio: 4 / 3; } .choice b { font-size: 14.5px; padding: 10px; }
  .form-card label, .grid2 > * { min-width: 0; }
  .form-card { padding: 22px; border-radius: 18px; } .calc { padding: 22px; }
  .hero-inner { padding: 120px 0 56px; } .hero-cta .btn { width: 100%; } .trust { gap: 8px 18px; font-size: 14px; }
  .form-nav .btn-primary { min-width: 0; flex: 1; }
  .summary { grid-template-columns: minmax(0, auto) minmax(0, 1fr); word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; }
  .brand { font-size: 17px; }
}
