/* SOLATHERM – Wärmepumpe & Photovoltaik
   Farben und Schrift aus der bestehenden CI. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --pink: #e80064;
  --pink-dark: #c20054;
  --green: #a6be8a;
  --green-light: #d6e2c9;
  --green-dark: #5f7a44;
  --ink: #2f2b36;
  --muted: #5b5762;
  --bg: #f7f7f7;
  --white: #ffffff;
  --line: #d9d9de;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(47, 43, 54, .08);
  --container: 1180px;
  --header-h: 101px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 32px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
ul { margin: 0; padding: 0; }
.services, .marquee__track, .contact-lines, .checks { list-style: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; }
h1, h2, h3, summary { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
ul + p { margin-top: 1em; }
.nobr { white-space: nowrap; }
.section--tight { padding: 70px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 "Poppins", sans-serif; letter-spacing: .02em; text-decoration: none; text-align: center;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--pink { background: var(--pink); color: #fff; text-transform: uppercase; }
.btn--pink:hover { background: var(--pink-dark); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #95b076; }
.btn--lg { font-size: 17px; padding: .9em 1.8em; border-radius: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
/* Weiße Pille, 84 % breit, 71 px hoch, 30 px vom Rand */
.site-header { position: fixed; top: 30px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  width: 84%; margin-inline: auto;
  min-height: 71px; padding: 8px 28px 8px 41px;
  background: var(--white); border-radius: 999px;
}
.site-header__logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-header__logo img { width: 193px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.main-nav a.nav-link {
  padding: 10px; text-decoration: none; text-transform: uppercase;
  font-size: 16px; font-weight: 400; white-space: nowrap; color: var(--ink);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--pink); }
.main-nav .btn { min-height: 40px; padding: 0 22px; white-space: nowrap; font-size: 15px; font-weight: 400; letter-spacing: 0; color: #fff; }
.main-nav .btn--pink { text-transform: none; margin-left: 16px; }
.main-nav .btn--green { text-transform: uppercase; padding: 0 26px; margin-left: 5px; }
.main-nav .btn--green:hover { background: #95b076; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--bg); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s, top .25s, opacity .2s; }
.nav-toggle span { top: 23px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1440px) {
  .site-header__bar { width: calc(100% - 64px); padding-left: 32px; }
  .site-header__logo img { width: 170px; }
  .main-nav { gap: 2px; }
  .main-nav a.nav-link { font-size: 15px; padding: 10px 8px; }
}
@media (max-width: 1180px) {
  .site-header__bar { width: calc(100% - 32px); padding: 8px 16px 8px 24px; }
  .site-header__logo img { width: 150px; }
  .main-nav a.nav-link { font-size: 14px; padding: 8px 6px; }
  .main-nav .btn { font-size: 14px; padding: 0 16px; }
  .main-nav .btn--pink { margin-left: 8px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a.nav-link { font-size: 16px; padding: 12px 14px; }
  .main-nav .btn, .main-nav .btn--pink, .main-nav .btn--green { margin: 6px 0 0; font-size: 16px; padding: .9em 1.2em; }
  .site-header { top: 12px; }
  .site-header__bar { min-height: 68px; position: relative; border-radius: 34px; }
}

/* ---------- Hero (Startseite) ---------- */
/* Foto mit 35 % Deckkraft über Grün, Text klein und eng gesetzt */
.hero {
  position: relative; min-height: max(620px, calc(100svh - 125px));
  display: grid; place-items: center; text-align: center; color: #fff;
  padding: var(--header-h) 0 50px;
  background: var(--green);
}
.hero::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/hero.webp") center / cover no-repeat; opacity: .35; }
.hero__inner { position: relative; max-width: 700px; padding: 0 24px; }
.hero h1 { font-size: 39px; line-height: 1.1; font-weight: 700; margin: 0; }
.hero__sub { font-size: 20px; line-height: 1.1; font-style: italic; margin: 0 0 23px; }
.hero__text { font-size: 18px; line-height: 1.1; font-weight: 500; max-width: 601px; margin: 0 auto 18px; }
.hero .checks { font-size: 18px; line-height: 1.1; font-weight: 500; margin: 0 0 44px; }
.hero .checks li { padding-left: 0; margin: 0; }
.hero .checks li::before { position: static; content: "✔ "; }
.hero .btn--hero {
  min-width: min(343px, 100%); min-height: 49px; padding: 0 24px; border: 1px solid #fff; border-radius: 15px;
  background: var(--green); color: #fff; font: 700 18px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0;
}
.hero .btn--hero:hover { background: #95b076; }

/* ---------- Häkchen-Listen ---------- */
.checks { list-style: none; }
.checks li { position: relative; padding-left: 1.6em; margin-bottom: .25em; }
.checks li::before { content: "✔"; position: absolute; left: 0; top: 0; color: inherit; }
.checks--green li::before { color: var(--green-dark); }
.bullets { padding-left: 1.2em; }
.bullets li { margin-bottom: .35em; }

/* ---------- Intro + Leistungen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--intro { grid-template-columns: minmax(280px, 1fr) 1.8fr; }
.split h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; }
.lead { font-weight: 600; }

.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; }
.service:nth-child(4) { grid-column: 2 / span 2; }
.service:nth-child(5) { grid-column: 4 / span 2; }
.service a {
  display: block; overflow: hidden; border-radius: var(--radius); background: var(--green);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service a:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(47, 43, 54, .14); }
.service img { width: 100%; aspect-ratio: 900 / 461; object-fit: cover; }
.service span { display: block; padding: 10px 12px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); }

/* ---------- Über uns / Bild-Text ---------- */
.media-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card--portrait img { aspect-ratio: 4 / 5; }
.media-card--square img { aspect-ratio: 1 / 1; }
.media-card--landscape img { aspect-ratio: 4 / 3; }
.section-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; margin-bottom: .6em; }
.prose p:last-child { margin-bottom: 0; }
.prose .checks { margin: 0 0 1.2em; }
.prose h3 { font-size: 18px; margin: 1.6em 0 .6em; }
.prose h3:first-child { margin-top: 0; }

/* ---------- Laufband (Projekte, Bewertungen) ---------- */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee var(--duration, 60s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; }
.marquee--projects .marquee__item { width: 400px; aspect-ratio: 16 / 9; }
.marquee--projects img { width: 100%; height: 100%; object-fit: cover; }
.marquee--reviews .marquee__item { width: 420px; border-radius: 5.8% / 10.8%; }
.marquee--reviews img { display: block; width: 100%; height: auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq h2 { font-size: 28px; font-weight: 700; margin-bottom: 1em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; font-size: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--pink); }
.faq__answer { padding: 0 4px 24px; color: var(--muted); max-width: 900px; }
.faq__answer p:last-child { margin: 0; }

/* ---------- Kontakt + Formulare ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__title { font-size: clamp(42px, 6vw, 76px); font-weight: 400; line-height: 1.05; margin-bottom: .5em; }
.contact__title--md { font-size: clamp(34px, 4.4vw, 56px); }
.contact-lines { list-style: none; margin-bottom: 1.4em; }
.contact-lines li { display: grid; grid-template-columns: 90px 1fr; }
.contact-lines strong { font-weight: 600; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--pink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 2px solid transparent; border-radius: 10px;
  background: var(--green-light); color: var(--ink); font: 400 16px/1.4 "Poppins", sans-serif;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f2b36' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-dark); background-color: #e3ebd9; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--pink); }
.req { color: var(--pink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green-dark); }
.consent a { text-decoration: underline; }
.form .btn { width: 100%; padding: .95em 1.4em; font-size: 16px; border-radius: 100px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.is-active { display: block; }
.form-status.is-ok { background: #e3ebd9; color: #33461f; }
.form-status.is-error { background: #fde4ee; color: #8a0039; }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-top { padding-top: calc(var(--header-h) + 90px); }

/* ---------- Karriere ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.tab {
  border: 2px solid var(--green); background: transparent; color: var(--ink); border-radius: 999px;
  padding: .7em 1.4em; font: 500 15px/1.2 "Poppins", sans-serif; cursor: pointer; transition: background-color .2s;
}
.tab:hover { background: var(--green-light); }
.tab[aria-selected="true"] { background: var(--green); }
.job { align-items: start; }
.job[hidden] { display: none; }
.job__meta { font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: .4em; }
.job h3.job__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; margin: 0 0 1em; }
.job .media-card { position: sticky; top: calc(var(--header-h) + 50px); }

/* ---------- Referenzen ---------- */
.story + .story { margin-top: 110px; }
.story__kicker { color: var(--pink); font-weight: 600; margin-bottom: .3em; }
.story h2 { font-size: clamp(26px, 2.8vw, 36px); }
.story blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); font-style: italic; }
.story { align-items: start; }
.story .media-card { position: sticky; top: calc(var(--header-h) + 50px); }

/* ---------- Photovoltaik ---------- */
.pv__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.pv-article { padding-top: 0; padding-bottom: 40px; }
.pv .media-card img { aspect-ratio: auto; height: auto; }
.faq:has(+ .pv-close) { padding-bottom: 50px; }
.pv-article__inner { max-width: 820px; margin-inline: auto; }
.pv-article h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 30px); }
.pv-toc { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.pv-toc h2 { font-size: 18px; margin: 0 0 .8em; }
.pv-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 40px; }
.pv-toc li { margin-bottom: .35em; break-inside: avoid; }
.pv-toc a { color: var(--ink); }
.pv-toc a:hover { color: var(--pink); }
.pv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.2em; }
.pv-facts div { background: var(--green-light); border-radius: var(--radius); padding: 20px 24px; }
.pv-facts strong { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.1; }
.pv-facts span { font-size: 15px; }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pv-steps { list-style: none; counter-reset: step; margin: 0 0 1.2em; padding: 0; }
.pv-steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.pv-steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 600; display: grid; place-items: center; }
.pv-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.pv-steps strong { display: block; }
.pv-steps span { color: var(--muted); }

.checks--cols { columns: 2; column-gap: 32px; }
.checks--cols li { break-inside: avoid; }
.pv-article h3 { font-size: 19px; font-weight: 600; margin: 1.6em 0 .5em; }
.pv-close__card { max-width: 820px; margin-inline: auto; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 40px; }
.pv-close__card h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; margin-bottom: .6em; }
.services--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services--four .service, .services--four .service:nth-child(n) { grid-column: auto; width: auto; }

/* ---------- Wärmepumpencheck (Einbindung von autarc) ---------- */
.autarc-embed { max-width: 64rem; margin: 0 auto; }
.autarc-embed iframe { display: block; }
/* Der autarc-Check ist immer so hoch wie sein Fenster, check.js würde die Höhe deshalb endlos hochsetzen.
   Daher eine feste Höhe vorgeben. Längere Schritte scrollen im Check selbst. */
.autarc-embed #check { height: 600px !important; min-height: 0 !important; }
@media (max-width: 640px) { .autarc-embed #check { height: min(720px, calc(100svh - 110px)) !important; } }
.consent-placeholder { max-width: 680px; margin: 0 auto; padding: 44px 40px; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.consent-placeholder[hidden] { display: none; }
.consent-placeholder h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; margin: 0 0 .5em; }
.consent-placeholder__note { font-size: 14px; color: var(--muted); }
.consent-placeholder__note a, .consent-placeholder__alt a { text-decoration: underline; }
.consent-placeholder__alt { margin: 18px 0 0; font-size: 15px; }
@media (max-width: 640px) { .consent-placeholder { padding: 30px 20px; } }

/* ---------- Empfehlung ---------- */
.emp-wide { width: min(1500px, calc(100% - 48px)); }
.emp-hero { padding: calc(var(--header-h) + 64px) 0 0; }
.emp-hero__grid { display: grid; grid-template-columns: 603fr 225fr 672fr; align-items: end; }
.emp-hero__img { border-radius: 24px; overflow: hidden; aspect-ratio: 603 / 635; }
.emp-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 17%; }
.emp-hero__text { grid-column: 3; margin-bottom: -22px; }
.emp-hero__text h1 { font-size: clamp(28px, 2.02vw, 39px); font-weight: 400; line-height: 1.3; margin: 0 0 25px; }
.emp-hero__text p { font-size: 16px; line-height: 1.6; margin: 0 0 25px; }
.emp-hero__text .lead { font-weight: 700; margin-bottom: 28px; }
.emp-hero__text p:last-child { margin: 32px 0 0; }
.emp-hero__btn { min-height: 36px; padding: 0 31px; font-size: 14px; font-weight: 700; }
.emp-form { padding: clamp(100px, 19vw, 364px) 0 160px; }
.emp-form__grid { display: grid; grid-template-columns: 762fr 737fr; align-items: center; }
.emp-form__intro { padding-left: 41px; }
.emp-form__intro h2 { font-size: clamp(28px, 2.02vw, 39px); font-weight: 400; line-height: .9; max-width: 370px; margin: 0 0 27px; }
.emp-form__intro .contact-lines { font-size: 16.5px; line-height: 2; margin: 0 0 17px; }
.emp-form__intro .contact-lines li { grid-template-columns: 82px 1fr; }
.emp-form__intro .contact-lines strong { font-weight: 700; }
.emp-form__intro p { margin: 0; }
.emp-form__terms { min-height: 40px; padding: 0 31px; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.emp-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 36px; }
.emp-fields__name { grid-column: span 7; }
.emp-fields__kdnr { grid-column: span 5; }
.emp-fields__half { grid-column: span 6; }
.emp-fields .field label { font-size: 14px; font-weight: 700; line-height: 17px; margin-bottom: 8px; }
.emp-fields .req { color: inherit; }
.emp-fields .field input, .emp-fields .field select, .emp-fields .field textarea { min-height: 40px; padding: 6px 12px; border-radius: 6px; background-color: var(--green); line-height: 24px; }
.emp-fields .field textarea { min-height: 76px; height: 76px; }
.emp-fields .field input:focus, .emp-fields .field select:focus, .emp-fields .field textarea:focus { background-color: #b8cc9f; }
.emp-fields .consent { font-size: 16px; line-height: 1.5; }
.emp-fields .btn { min-height: 41px; padding: 0 20px; background: var(--green); color: #f7f7f7; font-weight: 700; letter-spacing: 0; }

/* ---------- Empfehlung: Bedingungen ---------- */
.note { padding: 12px 16px; border-left: 4px solid var(--pink); background: var(--white); border-radius: 0 12px 12px 0; font-weight: 600; }
.dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 640px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.dialog::backdrop { background: rgba(20, 18, 24, .55); }
.dialog__inner { padding: 36px 36px 30px; }
.dialog h2 { font-size: 26px; padding-right: 40px; }
.dialog__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 22px; cursor: pointer; }
.dialog .bullets li { margin-bottom: .6em; }

/* ---------- Wärmepumpencheck ---------- */
.check-card { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: 44px; max-width: 860px; margin-inline: auto; }
.check-progress { height: 8px; background: var(--bg); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.check-progress span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 8px; transition: width .35s; }
.check-step-count { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.check-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-step[hidden] { display: none; }
.check-step legend { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin-bottom: 22px; padding: 0; line-height: 1.25; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 76px; padding: 14px;
  border: 2px solid var(--line); border-radius: 16px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.option span:hover { border-color: var(--green); }
.option input:checked + span { border-color: var(--green-dark); background: var(--green-light); }
.option input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.check-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.check-nav .btn { min-width: 150px; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.check-error { color: var(--pink-dark); font-weight: 500; margin: 14px 0 0; min-height: 1.4em; }
.check-done { text-align: center; padding: 20px 0; }
.check-done h2 { font-size: 30px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 860px; }
.legal { overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; margin-bottom: 1em; }
.legal h2 { font-size: 21px; margin: 2em 0 .6em; }
.legal h3 { font-size: 17px; margin: 1.5em 0 .4em; }
.legal a { word-break: break-word; }

/* ---------- Footer: vier weiße Spalten als ein Kasten ---------- */
.site-footer { padding: 58px 0 57px; }
.site-footer__card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch;
  width: 94%; margin-inline: auto; background: var(--white); border-radius: 32px 64px 62px 32px;
  padding: clamp(40px, 2.8vw, 54px) 0 32px;
}
.site-footer__brand { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.site-footer__logo { display: block; line-height: 0; }
.site-footer__logo img { width: clamp(200px, 19vw, 365px); height: auto; }
.site-footer h2 { font-size: 30px; line-height: 48px; font-weight: 500; color: var(--green); margin: 0 0 20px; }
.site-footer__contact { padding-left: clamp(24px, 5.6vw, 107px); font-size: 16px; line-height: 26px; }
.site-footer address { font-style: normal; }
.site-footer address a { white-space: nowrap; line-height: 30px; }
.site-footer__nav, .site-footer__legal { padding-left: clamp(24px, 3.6vw, 69px); padding-right: 20px; }
.site-footer__nav h2, .site-footer__legal h2 { margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer__nav a, .site-footer__legal a { display: inline-block; padding: 6px 0; font-size: 16px; line-height: 24px; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer__copy { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1440px) { .site-footer__nav a, .site-footer__legal a { font-size: 15px; } .site-footer__contact { font-size: 15px; } }
@media (max-width: 1180px) { .site-footer__nav a, .site-footer__legal a { font-size: 14px; } .site-footer__contact { font-size: 14px; } }

/* Tablet: zwei Spalten */
@media (max-width: 1100px) {
  .site-footer__card { grid-template-columns: 1fr 1fr; row-gap: 36px; border-radius: 32px; padding: 44px 0 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__logo img { width: 280px; }
  .site-footer__contact, .site-footer__nav { padding-left: 12%; }
  .site-footer__legal { grid-column: 1 / -1; text-align: center; padding: 0 24px; }
  .site-footer__legal h2 { display: none; }
  .site-footer__legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
}
/* Handy: alles untereinander */
@media (max-width: 640px) {
  .site-footer { padding: 30px 0; }
  .site-footer__card { grid-template-columns: 1fr; row-gap: 32px; width: calc(100% - 60px); border-radius: 32px; padding: 32px 0 22px; }
  .site-footer__logo img { width: min(237px, 100%); }
  .site-footer__contact, .site-footer__nav { padding-left: 49px; padding-right: 20px; }
  .site-footer__nav h2 { display: none; }
  .site-footer__contact, .site-footer__nav a, .site-footer__legal a { font-size: 16px; }
  .site-footer__legal { padding: 0 16px; }
  .site-footer__legal ul { gap: 0 20px; }
  .site-footer__copy { font-size: 11.5px; margin-top: 12px; }
}

/* ---------- Cookie-Banner (Farben SOLATHERM) ---------- */
.cookie-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.is-visible { display: flex; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 24, .6); }
.cookie-modal__card {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--ink); color: #fff; border-radius: 20px; padding: 0 28px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.cookie-tabs { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .18); margin: 0 -28px 22px; padding: 0 28px; }
.cookie-tab { flex: 1; background: none; border: 0; color: rgba(255, 255, 255, .7); font: 600 15px "Poppins", sans-serif; padding: 18px 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.cookie-tab.is-active { color: #fff; border-bottom-color: var(--pink); }
.cookie-panel { display: none; }
.cookie-panel.is-active { display: block; }
.cookie-panel h3 { font-size: 19px; margin-bottom: .6em; }
.cookie-scroll { max-height: 200px; overflow: auto; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .88); padding-right: 6px; }
.cookie-links { display: flex; gap: 20px; margin: 12px 0 4px; font-size: 14px; }
.cookie-links a { color: #fff; text-decoration: underline; }
.cookie-toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 20px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.cookie-toggle { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.cookie-toggle input { position: absolute; opacity: 0; }
.cookie-toggle i { position: relative; width: 46px; height: 26px; border-radius: 26px; background: rgba(255, 255, 255, .25); transition: background-color .2s; }
.cookie-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookie-toggle input:checked + i { background: var(--green); }
.cookie-toggle input:checked + i::after { transform: translateX(20px); }
.cookie-toggle input:disabled + i { opacity: .6; }
.cookie-toggle input:focus-visible + i { outline: 3px solid var(--pink); outline-offset: 2px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cookie-btn { background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 12px 10px; font: 600 14px "Poppins", sans-serif; cursor: pointer; transition: background-color .2s; }
.cookie-btn:hover { background: var(--green-light); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .section { padding: 80px 0; }
  /* Abstand unter dem fixierten Header (die allgemeine .section-Regel würde ihn sonst überschreiben) */
  .page-top { padding-top: calc(var(--header-h) + 48px); }
  .emp-hero { padding: calc(var(--header-h) + 40px) 0 0; }
  .pv-article { padding-top: 0; padding-bottom: 30px; }
  .split, .split--intro, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse-mobile > :first-child { order: 2; }
  .emp-hero__grid, .emp-form__grid { grid-template-columns: 1fr; gap: 40px; }
  .emp-hero__img { max-width: 603px; width: 100%; margin-inline: auto; }
  .emp-form__intro h2 { max-width: none; }
  .services--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emp-hero__text { grid-column: auto; margin: 0; }
  .emp-form { padding: 90px 0 90px; }
  .emp-form__intro { padding-left: 0; }
  .pv-toc ol { columns: 1; }
  .pv-facts, .pv-cols { grid-template-columns: 1fr; gap: 12px; }
  .checks--cols { columns: 1; }
  .pv-close__card { padding: 32px 22px; }
  .job .media-card, .story .media-card { position: static; max-width: none; }
}
@media (max-width: 640px) {
  /* Header und Hero auf dem Handy */
  .site-header { top: 19px; }
  .site-header__bar { width: calc(100% - 60px); min-height: 67px; padding: 8px 12px 8px 27px; border-radius: 24px; }
  .site-header__logo img { width: 121px; }
  .nav-toggle { background: transparent; }
  .hero { min-height: calc(100svh - 67px); place-items: start center; padding: 157px 0 60px; }
  .hero__inner { padding: 0 29px; }
  .hero h1 { font-size: 26px; margin-bottom: 16px; }
  .hero__sub { font-size: 18px; margin-bottom: 20px; }
  .hero .btn--hero { min-width: 0; width: 170px; min-height: 57px; padding: 0 8px; font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  :root { --header-h: 86px; }
  .page-top { padding-top: calc(var(--header-h) + 34px); }
  .emp-hero { padding: calc(var(--header-h) + 28px) 0 0; }
  .pv-article { padding-top: 0; padding-bottom: 24px; }
  .services { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: auto; }
  .service:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .service span { font-size: 13px; padding: 8px 6px; }
  .form { grid-template-columns: 1fr; }
  .emp-fields { grid-template-columns: 1fr; gap: 18px; }
  .emp-fields__name, .emp-fields__kdnr, .emp-fields__half { grid-column: auto; }
  .marquee--projects .marquee__item { width: 280px; }
  .marquee--reviews .marquee__item { width: 320px; }
  .check-card { padding: 28px 20px; border-radius: 22px; }
  .check-nav .btn { min-width: 0; flex: 1; }
  .cookie-modal__card { padding: 0 18px 18px; }
  .cookie-tabs { margin: 0 -18px 18px; padding: 0 18px; }
  .cookie-toggles { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .dialog__inner { padding: 30px 22px 24px; }
}
