/* HELUBA – Heizungs- und Lüftungsbau GmbH
   Farben übernommen von der bisherigen Webseite:
   Markenrot #e53f24 (Logo), Anthrazit #444446 (Navigation), Hellgrau #e6e7e8 (Hintergrund) */

:root {
  --red: #e53f24;
  --red-dark: #c4301a;
  --ink: #2b2b2d;
  --graphite: #444446;
  --muted: #6b6c70;
  --line: #d9dadc;
  --bg: #f4f4f5;
  --bg-alt: #e6e7e8;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--graphite); color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--white); }
.btn:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--graphite); color: #e6e7e8; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 1.75rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand-mark {
  background: var(--red); color: var(--white);
  font-weight: 900; font-style: italic; font-size: 1.45rem; letter-spacing: .01em;
  padding: .12rem .8rem .18rem; border-radius: 6px; line-height: 1.2;
  box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px rgba(255,255,255,.9);
}
.brand-text { font-size: .72rem; line-height: 1.25; color: var(--graphite); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; color: var(--graphite); padding: .5rem .8rem; border-radius: 8px; font-size: .97rem; }
.nav a:hover { background: var(--bg); color: var(--red); }
.nav .btn { margin-left: .5rem; padding: .6rem 1.1rem; color: var(--white); }
.nav .btn:hover { background: var(--red-dark); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--graphite); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--red); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 60%;
  background: var(--red); border-radius: var(--radius); z-index: -1;
}
.hero-badge {
  position: absolute; left: -1rem; bottom: 1.25rem;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: .8rem 1.1rem; display: flex; gap: .75rem; align-items: center; font-size: .9rem; line-height: 1.3;
}
.hero-badge strong { display: block; color: var(--ink); }
.hero-badge span { color: var(--muted); }
.hero-badge svg { width: 34px; height: 34px; color: var(--red); flex: none; }

/* ---------- Strengths ---------- */
.strengths { background: var(--graphite); color: #f0f0f1; }
.strengths .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strength { padding: 1.75rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.strength + .strength { border-left: 1px solid rgba(255,255,255,.12); }
.strength svg { width: 30px; height: 30px; color: var(--red); flex: none; margin-top: .15rem; }
.strength h3 { color: var(--white); margin: 0 0 .2rem; font-size: 1.05rem; }
.strength p { margin: 0; font-size: .93rem; color: #c9cacc; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #fdece9; color: var(--red); margin-bottom: 1.1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .8rem; font-weight: 600; color: var(--graphite); background: var(--bg); border-radius: 999px; padding: .28rem .7rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-media img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }
.about-media img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.about-media img:not(:first-child) { aspect-ratio: 4 / 3; }
.values { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.values li { display: flex; gap: .7rem; align-items: flex-start; }
.values svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: .2rem; }
.signature { margin-top: 1.5rem; font-weight: 700; color: var(--graphite); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: .9rem 1.1rem; font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; }
.gallery figcaption span { color: var(--muted); font-weight: 500; }

/* ---------- Partner & folder ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.partner-logos { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; }
.partner-logos div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.5rem; display: grid; place-items: center; min-width: 160px; height: 90px; }
.partner-logos img { max-height: 60px; width: auto; }
.card-red { background: var(--red); border-color: var(--red); color: var(--white); position: relative; overflow: hidden; }
.card-red h2, .card-red h3 { color: var(--white); }
.card-red p { color: rgba(255,255,255,.88); }
.card-red .btn { background: var(--white); color: var(--red); }
.card-red .btn:hover { background: var(--ink); color: var(--white); }
.card-red::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border: 28px solid rgba(255,255,255,.12); border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 10px; background: #fdece9; color: var(--red); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a, .contact-list strong { font-weight: 700; text-decoration: none; font-size: 1.08rem; }
.contact-list a:hover { color: var(--red); }
.contact-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-media figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.contact-media figcaption strong { display: block; }
.contact-media figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b7b8bb; font-size: .93rem; }
.footer-trades { background: var(--red); color: var(--white); text-align: center; font-weight: 700; font-size: .88rem; letter-spacing: .04em; padding: .8rem 1rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer nav { display: flex; gap: 1.5rem; }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0 0 2rem; }
.legal dt { font-weight: 700; color: var(--graphite); }
.legal dd { margin: 0; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal li { margin-bottom: .3rem; }
.legal a { color: var(--red); }
.footer nav { flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .about, .contact { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .hero-badge { left: 1rem; }
  .about-media { order: -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .nav a { display: block; padding: .8rem .75rem; font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  .strengths .wrap { grid-template-columns: 1fr; }
  .strength + .strength { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; gap: 1.25rem; }
  .brand-text { display: none; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery figure:last-child img { aspect-ratio: 4 / 3; }
  .hero-badge { position: static; margin-top: 1rem; box-shadow: none; border: 1px solid var(--line); }
  .hero-media::before { display: none; }
  .legal dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal dd { margin-bottom: .6rem; }
  .footer .wrap { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
