/* =========================================================
   VERMEK – Website Styles (Editorial / Premium)
   Logo-Farbwelt: Blatt-Grün + Energie-Blau + Navy · eckig
   Fonts: Lexend (Display/Headings) / Source Sans 3 (Body)
   ========================================================= */

:root {
  --gruen: #2e9e5b;
  --gruen-dark: #1f8a4c;
  --gruen-soft: #eaf7ef;
  --blau: #2b7cb8;
  --navy: #0f2036;
  --navy-2: #16304b;
  --ink: #16232f;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f2f7f4;
  --border: #e0e8e3;
  --shadow: 0 20px 60px rgba(15, 32, 54, .16);
  --maxw: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.62; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Lexend", system-ui, sans-serif; color: var(--navy); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Marken-Detail: eckiger grüner Tick ---------- */
.tick { display: inline-block; width: 11px; height: 11px; background: var(--gruen); margin-right: .6rem; transform: translateY(1px); }
.tick-light { background: #8fe3b0; }
.kicker { font-family: "Lexend", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 600; color: var(--gruen-dark); margin-bottom: .9rem; display: flex; align-items: center; }
.kicker-light { color: #cfeeda; }

/* ---------- Buttons (eckig) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 0; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease); white-space: nowrap; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn-primary { background: var(--gruen); color: #fff; }
.btn-primary:hover { background: var(--gruen-dark); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand-logo { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-family: "Lexend", sans-serif; font-weight: 500; font-size: .98rem; color: #3a4b5c; transition: color .15s var(--ease); }
.main-nav a:hover { color: var(--gruen-dark); }
.nav-cta { background: var(--gruen); color: #fff !important; padding: .64rem 1.3rem; }
.nav-cta:hover { background: var(--gruen-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); }

/* ---------- Hero (Full-Bleed Foto, flach, Text unten zentriert) ---------- */
.hero { position: relative; min-height: 44vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,20,34,.85) 0%, rgba(9,20,34,.45) 55%, rgba(9,20,34,.25) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; padding: 0 0 3.4rem; }
.hero-kicker { font-family: "Lexend", sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: #8fe3b0; margin-bottom: 1.1rem; display: flex; align-items: center; justify-content: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 900; color: #fff; margin-bottom: 1.2rem; }
.hero h1 .hl { color: #8fe3b0; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #e6edf3; max-width: 620px; margin: 0 auto; }

/* ---------- Beratung vor Ort (PLZ + Trust) ---------- */
.finder { background: var(--bg-alt); padding: 3.2rem 0 3.6rem; border-bottom: 1px solid var(--border); }
.finder-title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-bottom: 1.8rem; }
.finder-form { display: flex; gap: .8rem; max-width: 640px; margin: 0 auto 1.8rem; }
.finder-form input { flex: 1; padding: 1.05rem 1.2rem; border: 1.5px solid var(--border); border-radius: 0; background: #fff; font-size: 1.05rem; font-family: inherit; color: var(--ink); }
.finder-form input:focus { outline: none; border-color: var(--gruen); }
.finder-trust { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.ft { display: flex; align-items: center; gap: .8rem; }
.ft svg { width: 32px; height: 32px; color: var(--gruen); flex-shrink: 0; }
.ft strong { display: block; font-family: "Lexend", sans-serif; color: var(--navy); font-size: 1rem; line-height: 1.2; }
.ft span { color: var(--muted); font-size: .92rem; }

/* ---------- Stats (editorial Band) ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.8rem 0; text-align: left; border-left: 1px solid rgba(255,255,255,.12); padding-left: 2rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: "Lexend", sans-serif; font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3.2rem); color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat-num small { font-size: .5em; font-weight: 700; }
.stat-label { display: block; margin-top: .7rem; color: #9db1c6; font-size: .95rem; max-width: 190px; }

/* ---------- Sektions-Kopf links + große Nummer ---------- */
.section { padding: 110px 0; }
.section-head-left { display: flex; align-items: flex-start; gap: 1.6rem; margin-bottom: 3.4rem; }
.sec-no { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gruen); border-top: 3px solid var(--gruen); padding-top: .5rem; }
.section-head-left h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 640px; }

/* ---------- Wärmepumpe (asymmetrisch) ---------- */
.wp { padding: 110px 0; background: linear-gradient(180deg, #fff 0%, var(--gruen-soft) 100%); }
.wp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.wp-media { position: relative; }
.wp-illu { width: 100%; height: auto; box-shadow: var(--shadow); display: block; }
.wp-tag { position: absolute; right: -14px; top: -14px; background: var(--navy); color: #fff; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1rem; padding: .8rem 1.1rem; }
.wp-text h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1.2rem; }
.wp-text > p { color: var(--muted); margin-bottom: 1.6rem; font-size: 1.08rem; max-width: 500px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-bottom: 2rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: var(--ink); font-size: 1.05rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .12rem; width: 20px; height: 20px; background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checklist-light li { color: #dbe7f0; }

/* ---------- Leistungen (nummerierte Liste) ---------- */
.leist-list { border-top: 1px solid var(--border); }
.leist-item { display: grid; grid-template-columns: 90px 70px 1fr; align-items: center; gap: 1.5rem; padding: 2.1rem 0; border-bottom: 1px solid var(--border); transition: background .18s var(--ease), padding .18s var(--ease); }
.leist-item:hover { background: var(--bg-alt); padding-left: 1.2rem; padding-right: 1.2rem; }
.leist-idx { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--border); letter-spacing: -.02em; }
.leist-item:hover .leist-idx { color: var(--gruen); }
.leist-ico { color: var(--gruen-dark); }
.leist-ico svg { width: 44px; height: 44px; }
.leist-body { display: flex; flex-direction: column; }
.leist-body h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.leist-body p { color: var(--muted); font-size: 1.02rem; max-width: 640px; }

/* ---------- Warum (Full-bleed Foto + dunkle Fläche) ---------- */
.warum { display: grid; grid-template-columns: 1fr 1fr; }
.warum-media { position: relative; min-height: 560px; }
.warum-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.warum-panel { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.warum-panel h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.2rem; }
.warum-panel > p { color: #c2d2e0; margin-bottom: 1.6rem; max-width: 460px; }

/* ---------- Ablauf (große Nummern) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; border-top: 1px solid var(--border); }
.step { padding: 2.4rem 1.6rem 2.4rem 0; border-right: 1px solid var(--border); }
.step:last-child { border-right: 0; }
.step-num { display: block; font-family: "Lexend", sans-serif; font-weight: 900; font-size: 2.6rem; color: var(--gruen); letter-spacing: -.04em; margin-bottom: 1rem; line-height: 1; }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Förderung (grüne Vollfläche, riesige Zahl) ---------- */
.foerderung { background: var(--gruen); color: #fff; padding: 100px 0; }
.foerderung-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.foerderung-big { border-right: 2px solid rgba(255,255,255,.28); }
.foerderung-num { display: block; font-family: "Lexend", sans-serif; font-weight: 900; font-size: clamp(5rem, 12vw, 9rem); line-height: .88; letter-spacing: -.05em; color: #fff; }
.foerderung-num-sub { display: block; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.5rem; color: #eafff2; margin-top: .4rem; }
.foerderung-text h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.foerderung-text > p { color: #e6fff0; margin-bottom: 1.4rem; max-width: 520px; }
.foerderung-list { list-style: none; margin-bottom: 1.8rem; }
.foerderung-list li { padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.25); color: #eafff2; }
.foerderung-list strong { color: #fff; }

/* ---------- Bento-Galerie ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 14px; }
.b { overflow: hidden; }
.b img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.b:hover img { transform: scale(1.06); }
.b1 { grid-column: span 2; grid-row: span 2; }
.b2 { grid-column: span 2; }
.b3 { grid-column: span 1; }
.b4 { grid-column: span 1; }
.b5 { grid-column: span 2; }

/* ---------- Kontakt (dunkle Fläche) ---------- */
.kontakt { background: var(--navy); color: #fff; padding: 100px 0; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.kontakt-text h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1.1rem; }
.kontakt-text > p { color: #c2d2e0; max-width: 440px; margin-bottom: 1.8rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; color: #dbe7f0; }
.contact-list svg { width: 22px; height: 22px; color: #8fe3b0; flex-shrink: 0; }
.contact-list a:hover { color: #8fe3b0; }
.platzhalter { color: #7f93a8; font-size: .82rem; }
.contact-form { background: #fff; padding: 2.2rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-family: "Lexend", sans-serif; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: 0; font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gruen); }
.field textarea { resize: vertical; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: .8rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { margin-top: .8rem; padding: .7rem .9rem; font-size: .92rem; text-align: center; }
.form-status.ok { background: var(--gruen-soft); color: var(--gruen-dark); border: 1px solid #bfe6cd; }
.form-status.err { background: #fdeaea; color: #b3261e; border: 1px solid #f3c2be; }

/* ---------- Erfolgs-Popup (Modal) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(9,20,34,.6); backdrop-filter: blur(3px); animation: modal-fade .18s var(--ease); }
.modal-overlay[hidden] { display: none; }
.modal-box { position: relative; background: #fff; max-width: 440px; width: 100%; padding: 2.6rem 2rem 2rem; text-align: center; box-shadow: var(--shadow); animation: modal-pop .22s var(--ease); }
.modal-close { position: absolute; top: .5rem; right: .7rem; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .5rem; }
.modal-close:hover { color: var(--navy); }
.modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 1.1rem; color: #fff; background: var(--gruen); border-radius: 50%; }
.modal-icon svg { width: 30px; height: 30px; }
.modal-box h3 { font-family: "Lexend", sans-serif; font-size: 1.55rem; color: var(--navy); margin-bottom: .7rem; }
.modal-box > p { color: var(--ink); margin-bottom: .8rem; }
.modal-hint { font-size: .9rem; color: var(--muted); }
.modal-box .btn { margin-top: 1.1rem; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Footer ---------- */
.site-footer { background: #0b1826; color: #c6d3e0; padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 44px; }
.footer-brand p { color: #93a6ba; max-width: 340px; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-nav a { display: block; color: #b0c1d1; margin-bottom: .5rem; }
.footer-nav a:hover { color: #8fe3b0; }
.footer-contact p { margin-bottom: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 20px 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #8095a9; }
.footer-bottom a:hover { color: #8fe3b0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .finder-form { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 2rem; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .wp-grid, .foerderung-grid, .kontakt-grid, .warum { grid-template-columns: 1fr; }
  .wp-media { order: -1; }
  .warum-media { min-height: 360px; }
  .foerderung-big { border-right: 0; border-bottom: 2px solid rgba(255,255,255,.28); padding-bottom: 1.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step { border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .hero { min-height: 40vh; }
  .hero-content { padding-bottom: 2.2rem; }
  .brand-logo { height: 46px; }
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s var(--ease); }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .section { padding: 66px 0; }
  .wp, .foerderung, .kontakt { padding: 66px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .leist-item { grid-template-columns: 44px 1fr; gap: 1rem; }
  .leist-ico { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .b1, .b2, .b5 { grid-column: span 2; }
  .b1 { grid-row: auto; aspect-ratio: 16/10; }
  .b, .b3, .b4 { aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-head-left { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 60px 0 44px; }
.legal-hero .kicker { justify-content: flex-start; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.legal-hero p { color: var(--muted); margin-top: .7rem; max-width: 660px; }
.legal { padding: 56px 0 90px; }
.legal-inner { max-width: 760px; }
.legal-inner > :first-child { margin-top: 0; }
.legal h2 { font-size: 1.45rem; color: var(--navy); margin: 2.6rem 0 .8rem; }
.legal h3 { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--navy); margin: 1.8rem 0 .5rem; }
.legal p { color: var(--ink); margin-bottom: 1rem; }
.legal address { font-style: normal; line-height: 1.7; margin-bottom: 1.2rem; }
.legal a { color: var(--gruen-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--gruen); }
.legal ul { list-style: disc; margin: 0 0 1rem 1.4rem; }
.legal ul li { margin-bottom: .4rem; }
.legal .dl { display: grid; grid-template-columns: 230px 1fr; gap: .5rem 1.4rem; margin-bottom: 1.2rem; }
.legal .dl dt { font-family: "Lexend", sans-serif; font-weight: 600; color: var(--navy); }
.legal .dl dd { color: var(--ink); }
.legal-note { background: #fff8e6; border: 1px solid #f0d98a; border-left: 4px solid #e0b73a; padding: 1rem 1.2rem; margin-bottom: 2rem; color: #6b5410; font-size: .95rem; }
.legal-back { display: inline-flex; margin-top: 2.6rem; }
@media (max-width: 680px) {
  .legal .dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal .dl dd { margin-bottom: .7rem; }
}
