/* =========================================================
   KLINGLER – Stylesheet
   Farben aus dem Logo · mobile-first · keine externen Ressourcen
   ========================================================= */

/* Schriften: Dateien in /assets/fonts/ ablegen (siehe README).
   Bis dahin greifen die Ersatzschriften (Georgia / Systemschrift). */
@font-face {
  font-family: "Fraunces";
  src: local("Fraunces"), url("../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: local("Inter"), url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}

:root {
  --blau: #1f4e8c;
  --blau-dunkel: #173b6a;
  --blau-hell: #e8eef7;
  --anthrazit: #3a3a3a;
  --text-leise: #5e5e5e;
  --offwhite: #f7f5f1;
  --stein: #e9e5de;
  --weiss: #ffffff;
  --messing: #8a6a35;
  --messing-hover: #6f5429;
  --warn: #9a3d12;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --schatten: 0 10px 30px rgba(31, 40, 58, .12);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--anthrazit);
  background: var(--offwhite);
  padding-bottom: 64px; /* Platz für mobile CTA-Leiste */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
body.ohne-cta-leiste { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid var(--messing); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--anthrazit); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--weiss { background: var(--weiss); }
.section--stein { background: var(--stein); }
.section__kopf { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__kopf--mitte { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--messing); margin-bottom: .75em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-leise); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--blau); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Platzhalter – sichtbar markiert, damit nichts vergessen wird */
.ph { background: #fff3c4; color: #6b4f00; border-radius: 3px; padding: 0 .25em; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.ph-block { display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #efe9dc, #efe9dc 12px, #e6dfcf 12px, #e6dfcf 24px); color: #6b5a33; font-size: .9rem; padding: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.6em;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; letter-spacing: .01em;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primaer { background: var(--messing); color: #fff; }
.btn--primaer:hover { background: var(--messing-hover); color: #fff; }
.btn--blau { background: var(--blau); color: #fff; }
.btn--blau:hover { background: var(--blau-dunkel); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--anthrazit); }
.btn--outline { background: transparent; color: var(--blau); border-color: var(--blau); }
.btn--outline:hover { background: var(--blau); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.topbar { background: var(--anthrazit); color: #fff; font-size: .85rem; display: none; }
.topbar .container { display: flex; justify-content: flex-end; gap: 1.75rem; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
@media (min-width: 900px) { .topbar { display: block; } }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .2s; }
.header.ist-gescrollt { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.header__logo img { height: 46px; width: auto; }
@media (min-width: 900px) { .header__logo img { height: 52px; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.8rem); }
.nav a { color: var(--anthrazit); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4em 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--blau); color: var(--blau); }
.nav .btn { min-height: 44px; padding: .55em 1.2em; border-bottom: 0; color: #fff; }
.nav .btn:hover { color: #fff; }
@media (min-width: 1000px) { .nav { display: block; } }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--anthrazit); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (min-width: 1000px) { .menu-toggle { display: none; } }

.mobilmenu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--weiss); z-index: 99; padding: 1.5rem var(--gutter) 6rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
.mobilmenu.ist-offen { transform: none; visibility: visible; }
@media (min-width: 1000px) { .mobilmenu { display: none; } }
.person > *, .gebiet > * { min-width: 0; }
.mobilmenu ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobilmenu li a { display: block; padding: 1rem 0; font-size: 1.25rem; font-family: var(--font-head); color: var(--anthrazit); text-decoration: none; border-bottom: 1px solid var(--stein); }
.mobilmenu .btn { width: 100%; margin-bottom: .75rem; }
.mobilmenu__kontakt { font-size: .95rem; color: var(--text-leise); }

/* ---------- Mobile CTA-Leiste ---------- */
.cta-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.cta-leiste a { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 60px; font-weight: 600; text-decoration: none; color: #fff; }
.cta-leiste svg { width: 20px; height: 20px; }
.cta-leiste__anruf { background: var(--blau); }
.cta-leiste__anfrage { background: var(--messing); }
@media (min-width: 900px) { .cta-leiste { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,40,.15) 0%, rgba(20,28,40,.35) 45%, rgba(20,28,40,.82) 100%); }
.hero__inhalt { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 15em; text-wrap: balance; }
.hero .lead { color: rgba(255,255,255,.92); max-width: 36em; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 480px) { .hero__buttons .btn { width: 100%; } }
.hero__ort { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.hero__ort::before { content: ""; width: 28px; height: 2px; background: var(--messing); }

/* ---------- Einstiege (drei Kacheln) ---------- */
.einstiege { margin-top: clamp(-72px, -6vw, -40px); position: relative; z-index: 2; }
.einstiege__grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .einstiege__grid { grid-template-columns: repeat(3, 1fr); } }
.kachel { background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.kachel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,40,58,.18); color: inherit; }
.kachel__bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stein); }
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kachel:hover .kachel__bild img { transform: scale(1.04); }
.kachel__bild--heizung { background: linear-gradient(135deg, var(--blau) 0%, #2f6bb3 100%); display: grid; place-items: center; color: rgba(255,255,255,.9); position: relative; }
.kachel__bild--heizung svg { width: 34%; height: auto; }
.kachel__bild--heizung .ph { position: absolute; bottom: 10px; right: 10px; font-size: .75rem; }
.kachel__text { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.kachel__text h3 { margin-bottom: .4em; }
.kachel__text p { color: var(--text-leise); flex: 1; }
.kachel__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blau); }
.kachel__link svg { width: 18px; height: 18px; transition: transform .2s; }
.kachel:hover .kachel__link svg { transform: translateX(4px); }

.stoerung { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; background: var(--weiss); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 1rem 1.25rem; text-align: center; }
.stoerung strong { color: var(--warn); }
.stoerung a { font-weight: 700; white-space: nowrap; }

/* ---------- Vertrauensleiste ---------- */
.vertrauen { padding: clamp(40px, 6vw, 64px) 0; }
.vertrauen__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; text-align: center; }
@media (min-width: 900px) { .vertrauen__grid { grid-template-columns: repeat(4, 1fr); } }
.vertrauen__zahl { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--blau); line-height: 1.1; display: block; }
.vertrauen__label { font-size: .92rem; color: var(--text-leise); }

/* ---------- Referenzen ---------- */
.referenzen__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .referenzen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .referenzen__grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; } .ref-karte--gross { grid-row: span 2; } }
.ref-karte { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--anthrazit); }
.ref-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ref-karte:hover img { transform: scale(1.04); }
.ref-karte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,20,30,.85) 100%); }
.ref-karte__text { position: relative; z-index: 1; padding: 1.25rem 1.4rem; }
.ref-karte__text h3 { color: #fff; margin: 0 0 .15em; font-size: 1.35rem; }
.ref-karte__text span { font-size: .9rem; opacity: .9; }
.ref-karte:hover { color: #fff; }
.referenzen__fuss { margin-top: 2rem; text-align: center; }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: schritt; }
@media (min-width: 900px) { .ablauf { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.ablauf li { counter-increment: schritt; background: var(--weiss); border-radius: var(--radius); padding: 1.5rem 1.25rem; position: relative; border-top: 3px solid var(--blau); }
.ablauf li::before { content: counter(schritt, decimal-leading-zero); font-family: var(--font-head); font-size: 2rem; color: var(--messing); display: block; line-height: 1; margin-bottom: .6rem; }
.ablauf h3 { font-size: 1.15rem; margin-bottom: .3em; }
.ablauf p { font-size: .95rem; color: var(--text-leise); margin: 0; }

/* ---------- Ansprechpartner ---------- */
.person { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 800px) { .person { grid-template-columns: 0.8fr 1.2fr; } }
.person__foto { aspect-ratio: 4 / 5; border-radius: var(--radius); max-width: 420px; width: 100%; }
.person blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--anthrazit); }
.person blockquote::before { content: "„"; color: var(--messing); }
.person blockquote::after { content: "“"; color: var(--messing); }
.person__name { margin-top: 1.25rem; font-weight: 600; }
.person__name span { display: block; font-weight: 400; color: var(--text-leise); font-size: .95rem; }

/* ---------- Einzugsgebiet ---------- */
.gebiet { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .gebiet { grid-template-columns: 1fr 1fr; } }
.orte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.orte li { background: var(--weiss); border: 1px solid #d8d2c6; border-radius: 999px; padding: .35em .9em; font-size: .92rem; }
.orte li.orte--zentrum { background: var(--blau); color: #fff; border-color: var(--blau); font-weight: 600; }
.gebiet__hinweis { background: var(--weiss); border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--blau); }
.gebiet__hinweis p:last-child { margin: 0; }

/* ---------- Abschluss-CTA ---------- */
.cta-band { background: var(--blau); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.88); max-width: 34em; margin: 0 auto 2rem; }
.cta-band__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.75); }
.cta-band .btn--outline:hover { background: #fff; color: var(--blau); }

/* ---------- Footer ---------- */
.footer { background: var(--anthrazit); color: rgba(255,255,255,.82); font-size: .95rem; padding: clamp(48px, 7vw, 80px) 0 2rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer__logo { width: 180px; margin-bottom: 1rem; }
.footer h4 { font-family: var(--font-text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer__unten { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer .ph { background: rgba(255,243,196,.9); }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.ist-sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   UNTERSEITEN
   ========================================================= */
.seitenhero { position: relative; min-height: min(70vh, 620px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.seitenhero .hero__bild img { object-position: 50% 55%; }
.seitenhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,40,.1) 0%, rgba(20,28,40,.45) 50%, rgba(20,28,40,.85) 100%); }
.seitenhero .hero__inhalt { padding-bottom: clamp(40px, 6vw, 72px); }
.seitenhero h1 { color: #fff; max-width: 16em; font-size: clamp(2rem, 5vw, 3.4rem); text-wrap: balance; }
.seitenhero .lead { color: rgba(255,255,255,.92); max-width: 34em; }
.brotkrumen { font-size: .85rem; margin-bottom: 1rem; color: rgba(255,255,255,.8); }
.brotkrumen a { color: #fff; }

/* Probleme / Lösungen */
.loesungen { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .loesungen { grid-template-columns: repeat(3, 1fr); } }
.loesung { background: var(--weiss); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: 0 4px 18px rgba(31,40,58,.06); }
.loesung__problem { font-size: .9rem; color: var(--text-leise); text-decoration: line-through; text-decoration-color: rgba(154,61,18,.55); margin-bottom: .5rem; }
.loesung h3 { color: var(--blau); margin-bottom: .4em; }
.loesung p:last-child { margin: 0; color: var(--text-leise); }

/* Breite Bild-Text-Karten (abwechselnd) */
.breitkarten { display: grid; gap: clamp(32px, 5vw, 64px); }
.breitkarte { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 860px) {
  .breitkarte { grid-template-columns: 1fr 1fr; }
  .breitkarte:nth-child(even) .breitkarte__bild { order: 2; }
}
.breitkarte__bild { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--stein); }
.breitkarte__bild img { width: 100%; height: 100%; object-fit: cover; }
.breitkarte__bild.ph-block { aspect-ratio: 3 / 2; }
.haken { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.haken li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.haken li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--messing); border-bottom: 2.5px solid var(--messing); transform: rotate(-45deg); }

/* Preisbox */
.preisbox { background: var(--weiss); border-radius: var(--radius); border-top: 4px solid var(--messing); padding: clamp(24px, 4vw, 48px); display: grid; gap: 1.5rem; align-items: center; box-shadow: var(--schatten); }
@media (min-width: 860px) { .preisbox { grid-template-columns: 1.4fr 1fr; } }
.preisbox__betrag { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); color: var(--blau); line-height: 1.1; margin: .25rem 0 .75rem; }
.preisbox__betrag small { display: block; font-family: var(--font-text); font-size: .95rem; color: var(--text-leise); margin-bottom: .2rem; }
.preisbox__faktoren { background: var(--offwhite); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.preisbox__faktoren h3 { font-size: 1.05rem; font-family: var(--font-text); font-weight: 600; }
.preisbox__faktoren .haken { margin: 0; }

/* Galerie + Lightbox */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 800px) { .galerie { grid-template-columns: repeat(4, 1fr); } .galerie__item--gross { grid-column: span 2; grid-row: span 2; } }
.galerie__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--stein); cursor: zoom-in; border: 0; padding: 0; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie__item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; margin: 0; background: rgba(12,16,24,.94); display: grid; place-items: center; align-content: center; padding: 1rem; }
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; margin-top: .75rem; font-size: .95rem; }
.lightbox__zu { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox__pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lightbox__pfeil:hover, .lightbox__zu:hover { background: rgba(255,255,255,.3); }
.lightbox__pfeil[hidden] { display: none; }
.lightbox__pfeil--zurueck { left: 10px; }
.lightbox__pfeil--weiter { right: 10px; }
.lightbox__zaehler { white-space: nowrap; opacity: .7; }
@media (max-width: 699px) { .lightbox { padding-bottom: 84px; } .lightbox img { max-height: 70vh; } .lightbox__pfeil { top: auto; bottom: 16px; transform: none; } .lightbox__pfeil--zurueck { left: calc(50% - 64px); } .lightbox__pfeil--weiter { right: calc(50% - 64px); } }

/* Showroom */
.showroom { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .showroom { grid-template-columns: 1fr 1fr; } }
.showroom__bild { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.infozeile { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .5rem; }
.infozeile strong { min-width: 7.5em; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--weiss); border-radius: var(--radius); margin-bottom: .75rem; box-shadow: 0 2px 10px rgba(31,40,58,.05); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.4rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--messing); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.4rem 1.25rem; color: var(--text-leise); }
.faq details > div p:last-child { margin: 0; }

/* =========================================================
   ANFRAGE-ASSISTENT
   ========================================================= */
.assistent-seite { background: var(--offwhite); min-height: calc(100vh - var(--header-h)); padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); }
.assistent { max-width: 760px; margin: 0 auto; }
.assistent__kopf { text-align: center; margin-bottom: 1.5rem; }
.assistent__kopf h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3em; }
.assistent__kopf p { color: var(--text-leise); margin: 0; }
.fortschritt { height: 6px; background: var(--stein); border-radius: 999px; overflow: hidden; margin: 0 0 .5rem; }
.fortschritt__balken { height: 100%; width: 0; background: var(--blau); border-radius: 999px; transition: width .35s ease; }
.fortschritt__text { font-size: .85rem; color: var(--text-leise); text-align: right; margin-bottom: 1rem; }
.assistent__karte { background: var(--weiss); border-radius: 10px; box-shadow: var(--schatten); padding: clamp(22px, 4vw, 44px); }
.schritt[hidden] { display: none; }
.schritt__frage { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .35em; outline: none; }
.schritt__hilfe { color: var(--text-leise); margin-bottom: 1.5rem; }

.optionen { display: grid; gap: .75rem; border: 0; padding: 0; margin: 0 0 1.5rem; }
@media (min-width: 600px) { .optionen--2 { grid-template-columns: 1fr 1fr; } }
.optionen legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option label { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .85rem 1.1rem; border: 2px solid #d9d3c7; border-radius: 8px; background: var(--weiss); cursor: pointer; transition: border-color .15s, background .15s; }
.option label .option__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blau-hell); color: var(--blau); display: grid; place-items: center; }
.option label .option__icon svg { width: 22px; height: 22px; }
.option label strong { display: block; font-weight: 600; }
.option label small { display: block; color: var(--text-leise); font-size: .88rem; line-height: 1.35; }
.option input:hover + label { border-color: var(--blau); }
.option input:focus-visible + label { outline: 3px solid var(--messing); outline-offset: 2px; }
.option input:checked + label { border-color: var(--blau); background: var(--blau-hell); }
.option input:checked + label .option__icon { background: var(--blau); color: #fff; }

.feld { margin-bottom: 1.15rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .35rem; }
.feld label .optional { font-weight: 400; color: var(--text-leise); font-size: .9rem; }
.feld input[type="text"], .feld input[type="tel"], .feld input[type="email"], .feld input[type="number"], .feld textarea, .feld select {
  width: 100%; min-height: 52px; padding: .75rem .9rem; font: inherit; color: inherit;
  border: 2px solid #d9d3c7; border-radius: 8px; background: #fff;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px rgba(31,78,140,.15); }
.feld--reihe { display: grid; gap: 1rem; }
@media (min-width: 600px) { .feld--reihe { grid-template-columns: 140px 1fr; } }
.feld__fehler { color: var(--warn); font-size: .9rem; margin-top: .35rem; }
.feld--fehler input, .feld--fehler textarea { border-color: var(--warn); }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.checkbox input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--blau); }

.hinweis { border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1.25rem; font-size: .97rem; }
.hinweis--info { background: var(--blau-hell); border-left: 4px solid var(--blau); }
.hinweis--warn { background: #fbefe6; border-left: 4px solid var(--warn); }
.hinweis[hidden] { display: none; }

.upload { border: 2px dashed #cfc7b8; border-radius: 8px; padding: 1.25rem; text-align: center; background: var(--offwhite); }
.upload input { max-width: 100%; }
.upload__liste { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9rem; color: var(--text-leise); }

.assistent__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--stein); }
.assistent__nav .btn[hidden] { display: none !important; }
.btn--text { background: none; border: 0; color: var(--blau); font-weight: 600; padding-left: 0; padding-right: 0; min-height: 44px; cursor: pointer; font: 600 1rem var(--font-text); }
.btn--text:hover { text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

.assistent__vertrauen { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .9rem; color: var(--text-leise); }
.assistent__vertrauen span::before { content: "✓ "; color: var(--blau); font-weight: 700; }
.hp-feld { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Danke-Seite */
.danke { max-width: 720px; margin: 0 auto; text-align: center; }
.danke__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; margin: 0 auto 1.5rem; }
.danke__icon svg { width: 38px; height: 38px; }
.danke__schritte { text-align: left; margin: 2rem 0; }
@media (min-width: 900px) { .danke__schritte { grid-template-columns: repeat(3, 1fr); } }

/* Assistent: kompakte Auswahl-Chips (mehrere Fragen auf einem Bildschirm) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.optionen--chips { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .5rem; margin-bottom: 1.4rem; }
.optionen--chips legend { grid-column: 1 / -1; }
.optionen--chips .option label { min-height: 52px; padding: .6rem .9rem; justify-content: center; text-align: center; }
.optionen--chips .option label strong { font-weight: 500; font-size: .97rem; }
.optionen--chips .option input:checked + label strong { font-weight: 600; color: var(--blau); }
@media (min-width: 600px) { .feld--zwei { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   HEIZUNG & KUNDENDIENST
   ========================================================= */
.weiche { display: grid; gap: 1rem; }
@media (min-width: 760px) { .weiche { grid-template-columns: 1fr 1fr; } }
.weiche a { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); text-decoration: none; background: var(--weiss); color: var(--anthrazit); box-shadow: var(--schatten); border-left: 5px solid var(--blau); transition: transform .2s; }
.weiche a:hover { transform: translateY(-2px); color: var(--anthrazit); }
.weiche a.weiche--stoerung { border-left-color: var(--warn); }
.weiche svg { width: 36px; height: 36px; flex: none; color: var(--blau); }
.weiche a.weiche--stoerung svg { color: var(--warn); }
.weiche strong { display: block; font-size: 1.1rem; }
.weiche span span { color: var(--text-leise); font-size: .93rem; }

.hero--blau { background: linear-gradient(135deg, #173b6a 0%, var(--blau) 55%, #2f6bb3 100%); min-height: auto; }
.hero--blau::after { display: none; }
.hero--blau .container { display: grid; gap: 2rem; align-items: center; padding-top: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) { .hero--blau .container { grid-template-columns: 1.3fr .7fr; } }
.hero__grafik { color: rgba(255,255,255,.85); max-width: 340px; justify-self: center; position: relative; display: none; }
@media (min-width: 900px) { .hero__grafik { display: block; } }
.hero__grafik svg { width: 100%; height: auto; }
.hero__grafik .ph { position: absolute; bottom: -4px; right: 0; font-size: .75rem; }

.systeme { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .systeme { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .systeme { grid-template-columns: repeat(3, 1fr); } }
.system { background: var(--weiss); border-radius: var(--radius); padding: 1.75rem 1.5rem; border-top: 3px solid var(--blau); }
.system__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blau-hell); color: var(--blau); display: grid; place-items: center; margin-bottom: 1rem; }
.system__icon svg { width: 26px; height: 26px; }
.system p { color: var(--text-leise); margin-bottom: .75rem; }
.system .haken { margin: 0; font-size: .95rem; }
.system__tag { font-size: .75rem; margin-left: .35rem; vertical-align: middle; }

/* Wärmepumpen-Check */
.wpcheck { background: var(--weiss); border-radius: 10px; box-shadow: var(--schatten); padding: clamp(22px, 4vw, 44px); max-width: 860px; margin: 0 auto; }
.wpcheck__ergebnis { margin-top: 1.25rem; border-radius: 8px; padding: 1.25rem 1.4rem; }
.wpcheck__ergebnis h3 { margin-bottom: .35em; }
.wpcheck__ergebnis--gut { background: #e8f3ea; border-left: 4px solid #2e7d4f; }
.wpcheck__ergebnis--mittel { background: var(--blau-hell); border-left: 4px solid var(--blau); }
.wpcheck__ergebnis--pruefen { background: #fbefe6; border-left: 4px solid var(--warn); }
.wpcheck__ergebnis p:last-child { margin-bottom: 0; }

.foerderung { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .foerderung { grid-template-columns: 1.1fr .9fr; } }
.linkliste { list-style: none; margin: 0; padding: 0; }
.linkliste li { background: var(--weiss); border-radius: var(--radius); margin-bottom: .75rem; }
.linkliste a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; text-decoration: none; font-weight: 600; }
.linkliste a span { font-weight: 400; color: var(--text-leise); font-size: .9rem; display: block; }

/* Kundendienst */
.notruf { background: var(--warn); color: #fff; }
.notruf .container { display: grid; gap: 1.5rem; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .notruf .container { grid-template-columns: 1.2fr 1fr; } }
.notruf h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.notruf p { color: rgba(255,255,255,.92); }
.notruf__tel { display: flex; align-items: center; justify-content: center; gap: .75rem; background: #fff; color: var(--warn); border-radius: 10px; padding: 1.25rem 1.5rem; text-decoration: none; font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.3rem); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.notruf__tel:hover { color: var(--warn); transform: translateY(-2px); }
.notruf__tel svg { width: 34px; height: 34px; flex: none; }
.notruf__tel .ph { font-size: 1.1rem; font-family: var(--font-text); }
.notruf__zeiten { margin-top: 1rem; font-size: .95rem; text-align: center; }
.notruf__zeiten .ph { background: rgba(255,243,196,.95); }
.kd-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .kd-grid { grid-template-columns: 1fr 1.1fr; } }
.kd-grid .assistent { max-width: none; }

/* =========================================================
   PROJEKTBAU (B2B)
   ========================================================= */
.b2b-hero { background: var(--anthrazit); color: #fff; }
.b2b-hero__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
@media (min-width: 900px) { .b2b-hero__grid { grid-template-columns: 1.15fr .85fr; } }
.b2b-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); text-wrap: balance; }
.b2b-hero .lead { color: rgba(255,255,255,.88); }
.b2b-hero__bild { margin: 0; }
.b2b-hero__bild img { border-radius: var(--radius); width: 100%; max-width: 560px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.b2b-hero__bild figcaption { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .6rem; }

.matrix { display: grid; gap: 1px; background: #d9d3c7; border: 1px solid #d9d3c7; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .matrix { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .matrix { grid-template-columns: repeat(4, 1fr); } }
.matrix__item { background: var(--weiss); padding: 1.5rem 1.4rem; }
.matrix__item h3 { font-size: 1.15rem; color: var(--blau); margin-bottom: .35em; }
.matrix__item p { margin: 0; color: var(--text-leise); font-size: .95rem; }

.steckbriefe { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .steckbriefe { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .steckbriefe { grid-template-columns: repeat(3, 1fr); } }
.steckbrief { background: var(--offwhite); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.steckbrief__bild { aspect-ratio: 16 / 10; background: var(--stein); position: relative; overflow: hidden; }
.steckbrief__bild img, .steckbrief__bild .ph-block { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.matrix__item--cta { background: var(--blau); display: flex; flex-direction: column; justify-content: center; }
.matrix__item--cta h3, .matrix__item--cta p { color: #fff; }
.matrix__item--cta .btn { margin-top: 1rem; align-self: flex-start; }
button.steckbrief__bild { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; }
button.steckbrief__bild img { transition: transform .5s; }
button.steckbrief__bild:hover img { transform: scale(1.04); }
.steckbrief__fotos { position: absolute; right: 10px; bottom: 10px; background: rgba(20,28,40,.78); color: #fff; font-size: .8rem; font-weight: 600; padding: .3em .7em; border-radius: 3px; }
.steckbrief__fotos::before { content: ""; display: inline-block; width: .9em; height: .7em; margin-right: .4em; border: 2px solid currentColor; border-radius: 2px; vertical-align: -.05em; }
.steckbrief__tag { position: absolute; top: 10px; left: 10px; background: rgba(20,28,40,.78); color: #fff; font-size: .75rem; letter-spacing: .05em; padding: .25em .6em; border-radius: 3px; }
.steckbrief__text { padding: 1.25rem 1.4rem 1.5rem; }
.steckbrief__text h3 { margin-bottom: .6rem; }
.steckbrief dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: .93rem; }
.steckbrief dt { color: var(--text-leise); }
.steckbrief dd { margin: 0; }

.kontaktkarte { display: flex; gap: 1.25rem; align-items: center; background: var(--weiss); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; box-shadow: 0 4px 18px rgba(31,40,58,.06); }
.kontaktkarte__foto { width: 96px; height: 96px; border-radius: 50%; flex: none; font-size: .75rem; }

/* =========================================================
   REFERENZEN, ÜBER UNS, KONTAKT, KARRIERE, RECHTLICHES
   ========================================================= */
.seitenkopf { background: var(--stein); padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.seitenkopf .brotkrumen { color: var(--text-leise); }
.seitenkopf .brotkrumen a { color: var(--blau); }
.seitenkopf h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18em; text-wrap: balance; }
.seitenkopf .lead { max-width: 38em; }
.seitenkopf--blau { background: linear-gradient(135deg, #173b6a 0%, var(--blau) 60%, #2f6bb3 100%); color: #fff; }
.seitenkopf--blau h1, .seitenkopf--blau .brotkrumen a { color: #fff; }
.seitenkopf--blau .lead, .seitenkopf--blau .brotkrumen { color: rgba(255,255,255,.88); }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter__btn { font: 500 .95rem var(--font-text); min-height: 44px; padding: .5em 1.1em; border-radius: 999px; border: 2px solid #d9d3c7; background: var(--weiss); color: var(--anthrazit); cursor: pointer; }
.filter__btn:hover { border-color: var(--blau); }
.filter__btn.ist-aktiv { background: var(--blau); border-color: var(--blau); color: #fff; }
.filter__leer { color: var(--text-leise); text-align: center; padding: 2rem 0; }
[data-filter-ziel] > [hidden] { display: none !important; }

.wege { display: grid; gap: 1rem; }
@media (min-width: 600px) { .wege { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wege { grid-template-columns: repeat(4, 1fr); } }
.weg { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.4rem; background: var(--weiss); border-radius: var(--radius); border-top: 4px solid var(--blau); text-decoration: none; color: var(--anthrazit); box-shadow: 0 4px 18px rgba(31,40,58,.06); transition: transform .2s; }
.weg:hover { transform: translateY(-3px); color: var(--anthrazit); }
.weg strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; }
.weg span { color: var(--blau); font-weight: 600; font-size: .95rem; }
.weg--stoerung { border-top-color: var(--warn); }
.weg--stoerung span { color: var(--warn); }

.karte-platzhalter { background: var(--blau-hell); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center; }
.karte-platzhalter svg { width: 48px; height: 48px; color: var(--blau); margin: 0 auto .75rem; }
.karte-platzhalter__hinweis { font-size: .85rem; color: var(--text-leise); margin: 1rem 0 0; }

.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__person { display: flex; flex-direction: column; gap: .2rem; }
.team__foto { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: .6rem; }
.team__person span { color: var(--text-leise); font-size: .93rem; }

.stellen { display: grid; gap: 1rem; }
.stelle { background: var(--offwhite); border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--messing); }
.stelle h3 { margin-bottom: .3em; }
.stelle__meta { color: var(--text-leise); font-size: .93rem; }
.stelle p:last-child { margin-bottom: 0; }

.rechtstext { max-width: 820px; }
.rechtstext h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.2rem; }
.rechtsliste { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: .4rem 1.25rem; margin: 0 0 1rem; }
.rechtsliste dt { color: var(--text-leise); }
.rechtsliste dd { margin: 0; }
@media (max-width: 560px) { .rechtsliste { grid-template-columns: 1fr; } .rechtsliste dd { margin-bottom: .6rem; } }

/* Karriere: Vorteile */
.benefits { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { background: var(--weiss); border-radius: var(--radius); padding: 1.6rem 1.5rem; border-top: 3px solid var(--messing); }
.benefit h3 { color: var(--blau); margin-bottom: .6em; }
.benefit .haken { margin: 0; font-size: .97rem; }
.benefit--projekte { background: var(--blau); border-top-color: var(--blau); }
.benefit--projekte h3, .benefit--projekte p { color: #fff; }
.benefit--projekte p { margin: 0; }

/* Bilder mit Bildunterschrift */
.bildbox { margin: 0; }
.bildbox img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.bildbox figcaption { font-size: .88rem; color: var(--text-leise); margin-top: .5rem; }
.kd-grid .bildbox { margin-top: 1.5rem; }
.bildreihe { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .bildreihe { grid-template-columns: repeat(3, 1fr); } }
