/* Hausmann Biowärme – statisches Stylesheet (keine externen Ressourcen) */
:root {
  --green-900: #1f3d14;
  --green-700: #2f6b1f;
  --green-600: #3d8a28;
  --green-100: #e8f3e1;
  --green-50: #f4f9f0;
  --sky-600: #1f7fc4;
  --sky-100: #e3f1fb;
  --red-600: #c8282d;
  --ink: #1d2a1a;
  --ink-soft: #4a5a45;
  --line: #dbe5d4;
  --bg: #fbfcf9;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 61, 20, .06), 0 8px 24px rgba(31, 61, 20, .08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3 { line-height: 1.25; color: var(--green-900); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.25em; }
li { margin-bottom: .45em; }
li::marker { color: var(--green-600); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-text span { font-size: .82rem; color: var(--ink-soft); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
}
.nav a:hover { background: var(--green-50); color: var(--green-700); }
.nav a[aria-current="page"] { background: var(--green-100); color: var(--green-700); }
.nav .ext::after { content: " ↗"; font-size: .8em; color: var(--ink-soft); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--green-900); position: relative; content: ""; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

/* Hero */
.hero { padding: 28px 0 0; }
.hero-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky-100); }
.hero-banner img { width: 100%; }

/* Page head */
.page-head { background: linear-gradient(180deg, var(--green-50), transparent); padding: 36px 0 8px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; }

main { display: block; padding-bottom: 56px; }
.section { padding-top: 40px; }
.prose { max-width: 760px; }
.prose img.inline { float: right; width: 220px; margin: 4px 0 16px 24px; border-radius: 12px; box-shadow: var(--shadow); }
.prose img.wide { width: 100%; border-radius: 12px; margin: 8px 0 20px; box-shadow: var(--shadow); clear: both; }
.prose h2, .prose h3 { clear: both; }
@media (max-width: 600px) {
  .prose img.inline { float: none; width: 100%; max-width: 320px; margin: 8px 0 20px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,61,20,.08), 0 14px 32px rgba(31,61,20,.12); color: inherit; }
.card img { height: 180px; width: auto; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card .more { margin-top: 14px; font-weight: 600; color: var(--green-700); }

/* Category tabs (Leistungsbereiche) */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.cat-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
}
.cat-tabs a:hover { border-color: var(--green-600); color: var(--green-700); }
.cat-tabs a[aria-current="page"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.cat-tabs .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.heizung { background: var(--red-600); }
.dot.wasser { background: var(--sky-600); }
.dot.sanitaer { background: #7a8b99; }

/* Topic list (links to detail pages) */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 8px; padding: 0; list-style: none; }
.topics li { margin: 0; }
.topics a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--green-900); font-weight: 600;
}
.topics a::after { content: "→"; color: var(--green-600); transition: transform .15s; }
.topics a:hover { border-color: var(--green-600); }
.topics a:hover::after { transform: translateX(3px); }

.split { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: start; }
.split .aside-img { width: 200px; justify-self: end; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .aside-img { justify-self: start; width: 160px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 24px; padding: 0; list-style: none; clear: both; }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--green-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 24px; }
.photo-row img { border-radius: 12px; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 600px) { .photo-row { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 8, .9);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px;
  width: 48px; height: 48px; font-size: 24px; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Video links */
.videos { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  background: var(--green-700); color: #fff; text-decoration: none; font-weight: 600; border: 0;
}
.btn:hover { background: var(--green-600); color: #fff; }
.btn.ghost { background: #fff; color: var(--green-700); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--green-600); color: var(--green-700); }

/* Callouts */
.callout {
  margin-top: 48px; padding: 28px; border-radius: var(--radius);
  background: var(--green-700); color: #fff; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.callout h2 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.callout p { margin: 0; opacity: .9; }
.callout .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.callout .btn { background: #fff; color: var(--green-900); }
.callout .btn:hover { background: var(--green-100); }
.callout .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.callout .btn.ghost:hover { background: rgba(255,255,255,.1); }

.notice {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 12px; background: var(--sky-100); border: 1px solid #c4e0f4; color: #13466b;
}
.notice strong { color: #0e3a5a; }

.quote-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { width: 84px; flex: none; color: var(--ink-soft); font-size: .92rem; padding-top: 1px; }
.contact-photo { border-radius: var(--radius); box-shadow: var(--shadow); }

.jobs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 16px; }
.job { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: 12px; padding: 20px 22px; }
.job h3 { margin: 0 0 6px; }
.job p { margin: 0; color: var(--ink-soft); }

.legal p strong:first-child { color: var(--green-900); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }

.team-photos { display: grid; grid-template-columns: 3fr 4fr; gap: 20px; align-items: start; }
.team-photos img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; cursor: zoom-in; }
@media (max-width: 700px) { .team-photos { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--green-900); color: #d8e6d0; padding: 40px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 10px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #a9bfa0; }

@media print {
  .site-header, .site-footer, .callout, .cat-tabs { display: none; }
}
