/* HFG+ Energiesysteme, Anfrageseite Heizungstausch. Statisch, ohne Build.
   Schrift: Montserrat (variable, self-hosted). Farben aus hubert-freihart.de (Energiesysteme-Bereich):
   Anthrazit, Weiß, Akzent Limette #d1d529. Limette nur auf Dunkel oder als Fläche mit dunkler Schrift (Kontrast). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1b1b1a;
  --ink-2: #2a2a28;
  --graphit: #4d4d49;
  --mittel: #8a8a84;
  --linie: #e2e1db;
  --sand: #f4f3ee;
  --papier: #ffffff;
  --lime: #d1d529;
  --lime-dunkel: #b9bd1d;
  --lime-hell: #f3f4cf;
  --fehler: #b3261e;
  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --breite: 1180px;
  --rand: 20px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.2vw, 3.7rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.text-max { max-width: 62ch; }
.innen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: clamp(56px, 8vw, 104px) 0; }
.abschnitt--sand { background: var(--sand); }
.abschnitt--dunkel { background: var(--ink); color: #fff; }
.abschnitt--dunkel .lead, .abschnitt--dunkel p { color: #e6e6e1; }
.zwei { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) { .zwei { grid-template-columns: 1fr 1fr; } .zwei--bildlinks > figure, .zwei--bildlinks > .bild { order: -1; } }

/* ---------- Wortmarke (wie auf hubert-freihart.de als Text gesetzt) ---------- */
.marke { display: inline-block; text-decoration: none; line-height: 1; color: inherit; }
.marke-oben { display: block; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.01em; }
.marke-oben .plus { font-weight: 300; font-size: 1.22em; line-height: 0; position: relative; top: .04em; margin-left: .02em; }
.marke-unten { display: block; font-weight: 600; font-size: .66rem; letter-spacing: .06em; margin-top: .22em; text-transform: none; }
.marke--gross .marke-oben { font-size: 2.2rem; }
.marke--gross .marke-unten { font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid var(--lime);
  text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--lime-dunkel); border-color: var(--lime-dunkel); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.abschnitt--dunkel .btn:focus-visible, .hero .btn:focus-visible { outline-color: #fff; }
.btn--klein { padding: 11px 18px; font-size: .85rem; }
.btn--voll { width: 100%; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.kopf--gescrollt { border-bottom-color: var(--linie); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.kopf-rechts { display: flex; align-items: center; gap: 22px; }
.kopf-orte { margin: 0; font-size: .86rem; color: var(--graphit); display: none; }
.kopf-orte a { text-decoration: none; font-weight: 600; color: var(--ink); }
.kopf-orte a:hover { text-decoration: underline; }
@media (min-width: 760px) { .kopf-orte { display: block; } }
@media (max-width: 480px) { .kopf .btn--klein { padding: 10px 14px; font-size: .78rem; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; }
.hero-innen { display: grid; gap: 32px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero-innen { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero-region { margin: 0 0 18px; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.hero h1 { margin-bottom: .45em; }
.hero-lead { font-size: 1.2rem; line-height: 1.5; color: #e6e6e1; max-width: 56ch; margin-bottom: 1.4em; }
.hero-aktion { margin-bottom: 1.6em; }
.hero-hinweis { margin: 12px 0 0; font-size: .95rem; color: #cfcfc8; }
.hero-vertrauen { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; color: #cfcfc8; max-width: 56ch; }
.hero-medien { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.hero-medien img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-medien iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-medien--video { aspect-ratio: 16 / 9; }
@media (max-width: 899px) { .hero-medien { aspect-ratio: 16 / 10; } }

/* ---------- Garantie-Leiste ---------- */
.garantie { background: var(--lime); color: var(--ink); }
.garantie-grid { display: grid; gap: 18px; padding: clamp(26px, 4vw, 40px) var(--rand); }
@media (min-width: 720px) { .garantie-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.garantie-item { display: flex; gap: 14px; align-items: baseline; }
@media (max-width: 719px) { .garantie-item { flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid rgba(27,27,26,.15); } .garantie-item:last-child { border-bottom: 0; } }
.garantie-zahl { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.garantie-text { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.garantie-text small { display: block; font-weight: 500; font-size: .82rem; opacity: .8; margin-top: 3px; }

/* ---------- Listen mit Plus-Marke ---------- */
.plusliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.plusliste li { position: relative; padding-left: 34px; font-size: 1.08rem; line-height: 1.5; }
.plusliste li::before { content: "+"; position: absolute; left: 0; top: -.12em; font-weight: 300; font-size: 1.9em; line-height: 1; color: var(--lime-dunkel); }
.abschnitt--dunkel .plusliste li::before { color: var(--lime); }
.plusliste--eng li { font-size: 1rem; }
.schluss { margin-top: 28px; font-size: 1.08rem; font-weight: 600; max-width: 56ch; }

/* ---------- Leistungszeilen ---------- */
.liste { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.liste-zeile { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 700px) { .liste-zeile { grid-template-columns: 300px 1fr; } }
.liste-zeile h3 { margin: 0; }
.liste-zeile p { margin: 0; color: var(--graphit); }
.liste--gestapelt .liste-zeile { grid-template-columns: 1fr; gap: 6px; }
.zwei--oben { align-items: start; }
.zwei--textbreit { align-items: start; margin-top: 24px; }
@media (min-width: 880px) { .zwei--textbreit { grid-template-columns: 1.35fr 1fr; } }
.bilder-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bilder-zwei img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 26px; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.ablauf li::before { content: counter(schritt); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -0.04em; color: var(--lime-dunkel); padding-top: 2px; }
.ablauf h3 { margin: 0 0 4px; }
.ablauf p { margin: 0; color: var(--graphit); }
.bild img { border-radius: var(--radius); width: 100%; }
.bildzeile { font-size: .88rem; color: var(--mittel); margin: 10px 0 0; }

/* ---------- Team-Band ---------- */
.team-bild { border-radius: var(--radius); overflow: hidden; }
.team-bild img { width: 100%; }
.team-text { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 880px) { .team-text { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.team-text h2 { margin: 0; }
.team-text p { margin: 0; }

/* ---------- Zitat ---------- */
.zitat { max-width: 820px; }
.zitat blockquote { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.45; font-weight: 500; }
.zitat blockquote p { color: #fff; }
.zitat blockquote p:last-child { margin-bottom: 0; }
.zitat figcaption { margin-top: 22px; font-size: .95rem; color: #cfcfc8; }
.zitat figcaption strong { color: var(--lime); font-weight: 700; }
.zitat-marke { font-size: 4rem; line-height: .6; color: var(--lime); font-weight: 300; margin-bottom: 18px; }

/* ---------- Fragen ---------- */
.fragen { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.frage { padding: 24px 0; border-bottom: 1px solid var(--linie); display: grid; gap: 8px 32px; }
@media (min-width: 760px) { .frage { grid-template-columns: 1fr 1.5fr; } }
.frage h3 { margin: 0; }
.frage p { margin: 0 0 .6em; color: var(--graphit); }
.frage p:last-child { margin-bottom: 0; }

/* ---------- Anfrage ---------- */
.anfrage-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .anfrage-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; } }
.anfrage-seite .bild { margin-top: 28px; }
.anfrage-kontakt { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: .98rem; color: var(--graphit); }
.anfrage-kontakt a { font-weight: 600; color: var(--ink); text-decoration: none; }
.anfrage-kontakt a:hover { text-decoration: underline; }
.formular { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.formular fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.formular legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 4px; }
.feld { display: grid; gap: 6px; }
.feld label, .feld .label { font-weight: 600; font-size: .95rem; }
.feld-optional { font-weight: 400; color: var(--mittel); }
.feld input[type="text"], .feld input[type="tel"], .feld input[type="email"], .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #c9c8c1; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.feld textarea { min-height: 96px; resize: vertical; }
.feld select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231b1b1a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-hell); }
.feld--zwei { display: grid; gap: 18px; }
@media (min-width: 560px) { .feld--zwei { grid-template-columns: 1fr 1fr; } }
.feld--zwei > div { display: grid; gap: 6px; }
.feld-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.feld-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--graphit); }
.feld-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.feld-check a { color: var(--ink); }
.form-hinweis { margin: 0; font-size: .85rem; color: var(--mittel); }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status--fehler { color: var(--fehler); font-weight: 600; }
.form-platzhalter { margin: 0; padding: 12px 14px; background: var(--lime-hell); border-radius: 4px; font-size: .9rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--ink); color: #d7d7d1; padding: 56px 0 28px; font-size: .95rem; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .fuss-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; } }
.fuss p { margin: 0 0 .6em; }
.fuss .marke { color: #fff; margin-bottom: 14px; }
.fuss-links a { margin-right: 18px; }
.fuss-unten { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #a9a9a2; }

/* ---------- Mobile Leiste ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px var(--rand); padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--linie); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.leiste .btn { padding: 13px 10px; font-size: .82rem; }
@media (min-width: 760px) { .leiste { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 76px; } }

/* ---------- Consent (nur mit Pixel-ID aktiv) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: #fff; padding: 16px var(--rand); box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
.consent-innen { max-width: var(--breite); margin: 0 auto; display: grid; gap: 14px; align-items: center; }
@media (min-width: 880px) { .consent-innen { grid-template-columns: 1fr auto; } }
.consent p { margin: 0; font-size: .92rem; }
.consent-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn--outline { color: #fff; border-color: #fff; }
.consent .btn--outline:hover { background: #fff; color: var(--ink); }

/* ---------- Rechtstexte, Danke, 404 ---------- */
.rechts { padding: clamp(40px, 6vw, 72px) 0; }
.rechts .innen { max-width: 820px; }
.rechts h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-transform: none; letter-spacing: -0.02em; margin-bottom: .8em; }
.rechts h2 { font-size: 1.35rem; margin-top: 2em; }
.rechts h3 { font-size: 1.08rem; margin-top: 1.6em; }
.rechts p, .rechts li { font-size: 1rem; color: var(--ink-2); }
.rechts ul { padding-left: 1.2em; }
.rechts .delta { margin-top: 48px; padding: 20px 22px; background: var(--sand); border-radius: var(--radius); font-size: .95rem; }
.rechts .delta h2 { margin-top: 0; font-size: 1.15rem; }
.rechts .gross { text-transform: uppercase; }
.danke { padding: clamp(56px, 8vw, 104px) 0; }
.danke .innen { max-width: 760px; }
.danke h1 { text-transform: none; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4vw, 3rem); }
.danke .ablauf { margin-top: 32px; }
.danke-aktion { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.zurueck { display: inline-block; margin-top: 28px; font-weight: 600; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
