/* Haustechnik Hardegen – Stylesheet
   Schriften: bewusst System-Schriften (keine Google Fonts → kein Consent nötig). */

:root {
  --ink: #14171c;
  --ink-2: #20252d;
  --paper: #f5f3ee;
  --card: #ffffff;
  --text: #1a2932;
  --muted: #5a6a73;
  --line: #dde2e1;
  --green: #0f9d4a;
  --green-dark: #0a7636;
  --green-soft: #e3f5ea;
  --flame: #e2231a;
  --flame-dark: #b5170f;
  --water: #1f5fbf;
  --sun: #f2b134;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(13, 27, 36, .35);
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--dark { background: var(--ink); color: #e9eff1; }
.section--white { background: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: #57e08c; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #a9bac2; }
.section-head { margin-bottom: 44px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--flame); color: #fff; }
.btn--primary:hover { background: var(--flame-dark); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Topbar + Header */
.topbar { background: #0b0d10; color: #b8c6cc; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .spacer { margin-right: auto; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(20, 23, 28, .96); backdrop-filter: blur(8px); color: #fff; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font); font-size: .68rem; letter-spacing: .08em; color: #9fb2ba; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 550; color: #d5dfe3; }
.nav a:hover { color: #fff; }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(15,157,74,.38), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(226,35,26,.22), transparent 60%),
    var(--ink);
  color: #fff; padding: clamp(56px, 8vw, 104px) 0 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: #57e08c; }
.hero .lead { color: #b9c8ce; font-size: 1.2rem; margin: 18px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .88rem; margin-bottom: 22px;
}
.hero-badge b { background: var(--green); padding: 2px 10px; border-radius: 999px; font-weight: 650; }
.hero-card {
  background: #fff; color: var(--text); border-radius: 24px; padding: 30px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .muted { color: var(--muted); font-size: .94rem; }
.foerder-bars { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.foerder-bars li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; font-size: .93rem; }
.foerder-bars b { font-size: 1.25rem; font-family: var(--font-display); }
.foerder-bars span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.foerder-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; }
.foerder-total strong { font-size: 2.2rem; font-family: var(--font-display); color: var(--green-dark); }
.trust {
  margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust div { padding: 24px 20px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.trust div:first-child { border-left: 0; padding-left: 0; }
.trust b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.trust span { color: #9fb2ba; font-size: .9rem; }

/* Karten / Grids */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card ul li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-soft); color: var(--green-dark);
}
.icon svg { width: 26px; height: 26px; }
.icon--flame { background: #fde6e4; color: var(--flame-dark); }
.icon--water { background: #e3ecfa; color: #1c5f97; }
.icon--sun { background: #fdf2d6; color: #946400; }
.card--feature { background: var(--ink); color: #fff; border-color: var(--ink); grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.card--feature p { color: #b9c8ce; }
.card--feature .icon { background: rgba(87,224,140,.16); color: #57e08c; }
.card--feature ul li { background: rgba(255,255,255,.1); color: #d5dfe3; }

/* Wärmepumpe */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(87,224,140,.5); color: #57e08c;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: #a9bac2; }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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/14px no-repeat;
}

/* Konfigurator */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: #e8e6df; gap: 4px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.wizard { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.wizard-top { padding: 22px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.wizard-top span { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.progress { flex: 1; height: 6px; border-radius: 999px; background: #e8e6df; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .3s ease; }
.wizard-body { padding: 34px 30px; min-height: 330px; }
.wizard-body h3 { font-size: 1.5rem; }
.wizard-body .hint { color: var(--muted); margin-bottom: 22px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.option {
  position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; background: #fff;
  font-weight: 600; transition: border-color .15s ease, background .15s ease;
}
.option small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option:hover { border-color: #b9c4c2; }
.option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.option:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 20px; }
.range-row output { font-family: var(--font-display); font-size: 2rem; font-weight: 700; min-width: 130px; }
input[type="range"] { flex: 1; accent-color: var(--green); height: 28px; }
.wizard-foot { padding: 20px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; background: #fbfaf7; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.result-box { background: var(--paper); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.result-box h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.result-box .big { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.result-box ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.note { font-size: .82rem; color: var(--muted); }

/* Formulare */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cdd5d4; border-radius: var(--radius-sm); font: inherit; color: inherit; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,157,74,.18); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .86rem; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .94rem; display: none; }
.form-msg.ok { display: block; background: var(--green-soft); color: var(--green-dark); }
.form-msg.err { display: block; background: #fde6e4; color: #8f2f12; }
.form-msg pre { white-space: pre-wrap; font-size: .8rem; margin: 8px 0 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.section--dark .panel { color: var(--text); }
.panel h3 { font-size: 1.45rem; }
.panel > p { color: var(--muted); }
.urgent { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fde6e4; color: #6f2610; margin-bottom: 20px; font-size: .95rem; }
.urgent a { font-weight: 700; white-space: nowrap; }

/* Bewertungen */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.stars { color: var(--sun); letter-spacing: 3px; font-size: 1.3rem; }
.review { display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review footer { margin-top: auto; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.placeholder-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #fff3cd; color: #7a5a00; padding: 3px 9px; border-radius: 6px; align-self: flex-start;
}

/* Über uns */
.portrait {
  aspect-ratio: 4/5; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2c3540, var(--ink)); color: #8fa6b0; display: grid; place-items: center; text-align: center; padding: 24px; font-size: .92rem;
}
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(255,255,255,.25); border-radius: 16px; }
.portrait-card { position: absolute; left: 22px; bottom: 22px; right: 22px; background: #fff; color: var(--text); border-radius: 14px; padding: 14px 18px; text-align: left; z-index: 1; }
.portrait-card b { display: block; font-size: 1.05rem; }
.portrait-card span { font-size: .86rem; color: var(--muted); }
.quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; font-weight: 600; margin: 0 0 24px; padding-left: 22px; border-left: 4px solid var(--green); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.facts b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--green-dark); }
.facts span { font-size: .86rem; color: var(--muted); }

/* Einblicke / Instagram */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot {
  aspect-ratio: 1; border-radius: 16px; background: linear-gradient(140deg, #dfe7e4, #cfd9d6); color: #6c7d7a;
  display: grid; place-items: center; text-align: center; font-size: .82rem; padding: 14px; border: 1.5px dashed #a9b8b4;
}
.insta {
  aspect-ratio: 1; border-radius: 16px; text-decoration: none; color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4);
}
.insta b { font-size: 1.15rem; font-family: var(--font-display); }

/* Karriere */
.career { background: linear-gradient(135deg, #0a7636, #14171c 70%); color: #fff; }
.career h2 span { color: var(--sun); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 44px; }
.benefit { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 20px; }
.benefit b { display: block; margin-bottom: 4px; }
.benefit span { color: #b9cdc6; font-size: .92rem; }
.jobs { display: grid; gap: 14px; }
.job { background: #fff; color: var(--text); border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.job p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.job-tags span { font-size: .78rem; background: var(--green-soft); color: var(--green-dark); padding: 3px 10px; border-radius: 999px; font-weight: 600; }

/* Partner */
.partners { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; justify-content: center; color: #7d8b92; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.partners-label { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Kontakt + Footer */
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.contact-list .icon { margin: 0; width: 48px; height: 48px; background: rgba(87,224,140,.16); color: #57e08c; }
.contact-list small { display: block; color: #9fb2ba; font-size: .8rem; }
.contact-list a { text-decoration: none; font-weight: 650; font-size: 1.08rem; }
.footer { background: #0b0d10; color: #9fb2ba; padding: 44px 0 30px; font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.callbar { display: none; }

/* Rechtstexte */
.legal { max-width: 780px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; }
.legal td { padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal td:first-child { color: var(--muted); width: 38%; }
.draft-banner { background: #fff3cd; color: #7a5a00; padding: 14px 18px; border-radius: 12px; margin-bottom: 26px; font-size: .94rem; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 24px; display: none; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav a.btn { margin-top: 16px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero-grid, .split, .result { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { display: none; }
  .grid--3, .grid--2, .grid--4, .form-row, .benefits, .facts { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div { border-left: 0; padding-left: 0; }
  .wizard-top, .wizard-body, .wizard-foot { padding-left: 18px; padding-right: 18px; }
  .panel { padding: 22px; }
  .job { grid-template-columns: 1fr; }
  .range-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.12);
  }
  .callbar a { padding: 16px 10px; text-align: center; color: #fff; font-weight: 650; text-decoration: none; }
  .callbar a + a { background: var(--flame); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
