:root {
    --bg: #F5F7F9;
    --surface: #FFFFFF;
    --surface-2: #EDF1F4;
    --ink: #16212C;
    --muted: #55636F;
    --line: #DFE6EB;
    --red: #C43A2F;
    --red-soft: #FBEDEB;
    --blue: #1D6FB5;
    --blue-soft: #E9F2FA;
    --yellow: #E89B23;
    --yellow-soft: #FCF3E3;
    --green: #2F7D5E;
    --green-soft: #E8F3EE;
    --hero-ink: #16212C;
    --shadow: 0 10px 30px rgba(22, 33, 44, .08);
  }
  
  

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 {
    font-family: "Archivo", "Arial Narrow", Impact, sans-serif;
    font-variation-settings: "wdth" 108;
    font-weight: 800;
    line-height: 1.06;
    text-wrap: balance;
    letter-spacing: -0.015em;
  }
  a { color: inherit; }
  img, svg { max-width: 100%; }

  .mono {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Header ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav {
    display: flex; align-items: center; gap: 28px;
    padding-block: 14px;
  }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand-name {
    font-family: "Archivo", sans-serif;
    font-weight: 800; font-size: 1.02rem; line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .brand-sub {
    font-size: .72rem; color: var(--muted); font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
  }
  nav.menu { display: flex; gap: 22px; margin-left: auto; }
  nav.menu a {
    text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted);
    transition: color .15s;
  }
  nav.menu a:hover, nav.menu a:focus-visible { color: var(--ink); }
  .call-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff !important;
    padding: 9px 18px; border-radius: 6px;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
  }
  .call-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196,58,47,.35); }
  @media (max-width: 820px) { nav.menu { display: none; } .nav { justify-content: space-between; } }

  /* ---------- Hero ---------- */
  .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
  .hero-grid {
    display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px;
    align-items: center; padding-block: 84px 72px;
  }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-block: 56px 48px; } }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--green); font-weight: 500; margin-bottom: 22px;
  }
  .eyebrow::before {
    content: ""; width: 26px; height: 2px; background: var(--green); display: inline-block;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    color: var(--hero-ink);
    margin-bottom: 24px;
  }
  .hero h1 .w-heat { color: var(--red); }
  .hero h1 .w-water { color: var(--blue); }
  .hero h1 .w-air { color: var(--yellow); }
  .hero p.lede {
    font-size: 1.16rem; color: var(--muted); max-width: 34rem; margin-bottom: 32px;
  }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: var(--bg); text-decoration: none;
    padding: 14px 26px; border-radius: 6px; font-weight: 700; font-size: 1rem;
    transition: transform .15s, box-shadow .15s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none; font-weight: 700;
    padding: 14px 10px; border-bottom: 2px solid var(--yellow);
  }
  .meister-chip {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green-soft); color: var(--green);
    border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
    padding: 8px 14px; border-radius: 999px;
    font-weight: 600; font-size: .88rem; margin-bottom: 26px;
  }
  .meister-chip svg { flex: none; }

  .hero-art { position: relative; display: flex; justify-content: center; }
  .hero-art svg.houses { width: min(380px, 80vw); height: auto; filter: drop-shadow(0 18px 30px rgba(22,33,44,.14)); }

  /* load animation */
  @media (prefers-reduced-motion: no-preference) {
    .rise { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
    .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; }
    .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .42s; }
    @keyframes rise { to { opacity: 1; transform: none; } }
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
    .reveal.in { opacity: 1; transform: none; }
  }

  /* ---------- Trust strip ---------- */
  .strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .strip-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    padding-block: 26px;
  }
  @media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; gap: 16px; } }
  .strip-item { display: flex; gap: 14px; align-items: flex-start; }
  .strip-item .dot { width: 10px; height: 10px; border-radius: 2px; margin-top: 8px; flex: none; }
  .strip-item strong { display: block; font-size: 1rem; }
  .strip-item span { color: var(--muted); font-size: .92rem; }

  /* ---------- Sections ---------- */
  section { padding: 88px 0; }
  .sec-head { max-width: 46rem; margin-bottom: 48px; }
  .sec-head .mono { color: var(--muted); display: block; margin-bottom: 12px; }
  .sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
  .sec-head p { color: var(--muted); font-size: 1.08rem; }

  /* Leistungen */
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
  .svc {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 28px 26px 26px; position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
  }
  .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .svc::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  }
  .svc.heat::before { background: var(--red); }
  .svc.water::before { background: var(--blue); }
  .svc.air::before { background: var(--yellow); }
  .svc .icon {
    width: 46px; height: 46px; border-radius: 9px;
    display: grid; place-items: center; margin-bottom: 18px;
  }
  .svc.heat .icon { background: var(--red-soft); color: var(--red); }
  .svc.water .icon { background: var(--blue-soft); color: var(--blue); }
  .svc.air .icon { background: var(--yellow-soft); color: var(--yellow); }
  .svc h3 { font-size: 1.28rem; margin-bottom: 8px; }
  .svc .tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .svc.heat .tag { color: var(--red); }
  .svc.water .tag { color: var(--blue); }
  .svc.air .tag { color: var(--yellow); }
  .svc p { color: var(--muted); font-size: .97rem; margin: 10px 0 16px; }
  .svc ul { list-style: none; }
  .svc li {
    padding: 7px 0 7px 22px; position: relative;
    border-top: 1px solid var(--line); font-size: .95rem;
  }
  .svc li::before {
    content: "→"; position: absolute; left: 0; font-weight: 700;
  }
  .svc.heat li::before { color: var(--red); }
  .svc.water li::before { color: var(--blue); }
  .svc.air li::before { color: var(--yellow); }

  /* ---------- Wärmepumpe feature ---------- */
  .feature {
    background: var(--surface); border-block: 1px solid var(--line);
  }
  .feature-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  }
  @media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }
  .feature h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 14px 0 18px; }
  .feature p { color: var(--muted); margin-bottom: 16px; }
  .foerder {
    background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
    border-radius: 10px; padding: 18px 20px; margin-top: 26px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .foerder strong { color: var(--green); }
  .foerder p { margin: 0; font-size: .95rem; }
  .stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat {
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 24px 22px;
  }
  .stat .num {
    font-family: "Archivo", sans-serif; font-weight: 800;
    font-size: 2.3rem; line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .stat.s-red .num { color: var(--red); }
  .stat.s-blue .num { color: var(--blue); }
  .stat.s-yellow .num { color: var(--yellow); }
  .stat.s-green .num { color: var(--green); }
  .stat span { display: block; color: var(--muted); font-size: .9rem; margin-top: 8px; }

  /* ---------- Über ---------- */
  .about-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 56px; align-items: center; }
  @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
  .portrait {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: 12px;
    aspect-ratio: 4/4.6; display: grid; place-items: center; position: relative; overflow: hidden;
  }
  .portrait .initials {
    font-family: "Archivo", sans-serif; font-weight: 900; font-size: 5rem;
    color: var(--line); letter-spacing: -0.03em;
  }
  .portrait .badge {
    position: absolute; bottom: 18px; left: 18px; right: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
    padding: 12px 16px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px;
  }
  .portrait .badge b { display: block; font-size: .95rem; }
  .portrait .badge span { color: var(--muted); font-size: .82rem; }
  .about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 14px 0 18px; }
  .about p { color: var(--muted); margin-bottom: 14px; max-width: 36rem; }
  .about p strong { color: var(--ink); }

  /* ---------- Ablauf ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
  .step {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 26px 24px;
  }
  .step .n {
    font-family: "IBM Plex Mono", monospace; font-weight: 500;
    color: var(--muted); font-size: .82rem; letter-spacing: .12em;
    display: block; margin-bottom: 14px;
  }
  .step h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .step p { color: var(--muted); font-size: .95rem; }

  /* ---------- Notdienst ---------- */
  .notdienst {
    background: var(--red); color: #fff;
  }
  
  
  .notdienst-inner {
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
    padding-block: 40px;
  }
  .notdienst h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
  .notdienst p { color: rgba(255,255,255,.85); margin-top: 6px; max-width: 34rem; }
  .notdienst .call-big {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; color: #A93227; text-decoration: none;
    font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.3rem;
    padding: 16px 28px; border-radius: 8px; letter-spacing: -0.01em;
    transition: transform .15s;
    font-variant-numeric: tabular-nums;
  }
  .notdienst .call-big:hover { transform: translateY(-2px); }

  /* ---------- Kontakt ---------- */
  .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 34px 32px;
  }
  .contact-card h3 { font-size: 1.35rem; margin-bottom: 22px; }
  .c-row {
    display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line);
    align-items: flex-start;
  }
  .c-row:first-of-type { border-top: 0; padding-top: 0; }
  .c-row .c-ico {
    width: 40px; height: 40px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
  }
  .c-ico.red { background: var(--red-soft); color: var(--red); }
  .c-ico.blue { background: var(--blue-soft); color: var(--blue); }
  .c-ico.yellow { background: var(--yellow-soft); color: var(--yellow); }
  .c-ico.green { background: var(--green-soft); color: var(--green); }
  .c-row b { display: block; font-size: .95rem; }
  .c-row a { font-size: 1.05rem; font-weight: 600; text-decoration: none; }
  .c-row a:hover { text-decoration: underline; }
  .c-row span { color: var(--muted); font-size: .92rem; }
  .region {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 34px 32px;
  }
  .region h3 { font-size: 1.35rem; margin-bottom: 10px; }
  .region > p { color: var(--muted); margin-bottom: 20px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip {
    background: var(--surface-2); border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  }
  .chip.home { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--green); }
  .hours { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
  .hours h4 { font-size: 1rem; margin-bottom: 12px; }
  .hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
  .hours td { padding: 6px 0; }
  .hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--line); background: var(--surface);
    padding: 40px 0 32px;
  }
  .foot-grid {
    display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
  }
  .foot-brand { display: flex; align-items: center; gap: 12px; }
  .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
  .foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
  .foot-links a:hover { color: var(--ink); }
  .foot-note {
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .85rem;
  }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px;
  }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal .lead { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal ul { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; margin: 18px 0;
}
.legal .card p { margin-bottom: 4px; }
.legal .todo {
  background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent);
  border-radius: 8px; padding: 12px 16px; font-size: .92rem; margin: 14px 0;
}
.legal .todo strong { color: var(--yellow); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 28px;
}
.back-link:hover { color: var(--ink); }

/* ---------- Meisterbrief-Urkunde ---------- */
.cert {
  position: relative;
  width: 72%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 26px 30px;
  text-align: center;
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}
.cert::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid color-mix(in srgb, var(--yellow) 55%, var(--line));
  border-radius: 4px; pointer-events: none;
}
.cert-kicker {
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.cert-title {
  display: block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1.1;
}
.cert-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.cert-lines { margin: 18px auto 0; width: 78%; }
.cert-lines i {
  display: block; height: 5px; border-radius: 3px;
  background: var(--surface-2); margin-bottom: 8px;
}
.cert-lines i:last-child { width: 62%; margin-inline: auto; }
.cert-seal {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  border: 2px solid var(--green);
  display: grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: .72rem;
  margin: 18px auto 0;
}
.cert-ribbon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: var(--yellow); color: #2E2105;
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 26px; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  white-space: nowrap;
}
.cert-ribbon small {
  display: block; font-family: "Source Sans 3", sans-serif;
  font-weight: 600; font-size: .72rem; letter-spacing: .02em; text-transform: none;
}

/* Logo-Initialen S/H/K */
.brand-sub i { font-style: normal; font-weight: 800; }
.li-s { color: var(--blue); }
.li-h { color: var(--red); }
.li-k { color: var(--yellow); }


/* Echtes Logo */
.brand-mark { display: block; height: 34px; width: auto; }
.foot-mark { display: block; height: 25px; width: auto; }
.logo-plaque {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px 22px;
  width: min(440px, 88vw);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.logo-plaque img { display: block; width: 100%; height: auto; }

.hero-houses {
  width: min(580px, 92vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(22, 33, 44, .16));
}

/* Gewerke-Illustrationen */
.svc-art {
  display: block; width: 100%; height: auto;
  border-radius: 8px; margin-bottom: 18px;
}

/* Mobile Feinschliff */
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { height: 27px; }
  .brand-name { font-size: .82rem; }
  .brand-sub { display: none; }
  .call-btn { padding: 8px 12px; font-size: .84rem; gap: 6px; }
}
