/* =========================================================
   Speidel Sanitär Heizung Klima GmbH – Website
   Farben aus dem Logo: Grün #8CB738, Schwarz, Weiß
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #4b4e55;          /* Grundfläche (Schiefergrau) */
  --bg-2: #3f4248;        /* dunklere Fläche, Overlays */
  --bg-3: #34363b;
  --line: rgba(255, 255, 255, .24);
  --line-soft: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .76);
  --green: #8cb738;       /* Logo-Grün */
  --green-hi: #a2d047;    /* Grün für Konturen auf dunklem Grund */
  --green-dark: #7aa12d;
  --ink: #15171a;         /* Schrift auf Grün */
  --pad: clamp(16px, 4.4vw, 72px);
  --wrap: 1200px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

.ext {
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.label {
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
  color: var(--green-hi);
  margin-bottom: 18px;
}

.h3 {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(20px, 1.95vw, 28px);
  line-height: 1.16;
  letter-spacing: .01em;
  margin-bottom: 28px;
}

.more {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  transition: color .25s, border-color .25s;
}
.more:hover { color: var(--green-hi); border-color: var(--green-hi); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  transition: height .35s var(--ease), background-color .35s, box-shadow .35s;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(52, 54, 59, .94);
  box-shadow: 0 1px 0 var(--line-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand img { height: 38px; }

.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a {
  position: relative;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green-hi);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-3);
}
.hero-slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s ease, transform 9s linear;
  filter: saturate(.55) brightness(.62) contrast(1.05);
}
.slide.is-active { opacity: 1; transform: scale(1); }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.5) contrast(1.08);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(25, 27, 30, .4), rgba(25, 27, 30, 0) 75%),
    linear-gradient(to bottom, rgba(30, 32, 36, .55) 0%, rgba(30, 32, 36, 0) 28%),
    linear-gradient(to top, rgba(30, 32, 36, .6) 0%, rgba(30, 32, 36, 0) 35%);
  pointer-events: none;
  z-index: 1;
}
.hero-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(29px, 5.1vw, 80px);
  line-height: 1.02;
  font-weight: 400;
  padding: 0 var(--pad);
  text-wrap: balance;
}
.hero-meta {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 40px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-meta strong { color: var(--text); font-weight: 500; }
.hero-call {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 40px;
  font-size: 13px;
  text-align: right;
  line-height: 1.6;
  color: var(--muted);
}
.hero-call a { color: var(--text); text-decoration: none; font-weight: 500; }
.hero-call a:hover { color: var(--green-hi); }
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .35);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 1px; height: 100%;
  background: var(--text);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Sections ---------- */

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px);
  scroll-margin-top: 70px;   /* Hoehe der Kopfzeile beim Scrollen: Abschnitt beginnt direkt darunter */
}
.section.alt { background: var(--bg-2); }

.giant {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(40px, 7.9vw, 150px);
  line-height: .9;
  letter-spacing: .005em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--green-hi);
  padding: 0 var(--pad);
  margin: 0 0 clamp(40px, 5vw, 72px);
  white-space: nowrap;
  will-change: transform;
  user-select: none;
}
.giant.center { text-align: center; }
.giant.right { text-align: right; }

/* ---------- Intro ---------- */

.intro { padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 120px); }
.lead {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.3;
  font-weight: 300;
  max-width: 1020px;
  margin-bottom: clamp(40px, 5vw, 64px);
  text-wrap: pretty;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  max-width: 1020px;
  color: var(--muted);
}

/* ---------- Projekte ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-text p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.tags li {
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  border: 1px solid var(--line);
  padding: 6px 12px 5px;
  line-height: 1.4;
}

.gallery { position: relative; overflow: hidden; background: var(--bg-3); }
.g-track { display: flex; transition: transform .7s var(--ease); touch-action: pan-y; }
.g-track > * { flex: 0 0 100%; aspect-ratio: 16 / 10; }
.g-track img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.g-ui {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.gallery.single .g-ui { display: none; }
.g-ui button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transition: background-color .25s, color .25s;
}
.g-ui button:hover { background: var(--green); color: var(--ink); }
.g-ui svg { width: 18px; height: 18px; }
.g-count {
  min-width: 64px;
  text-align: center;
  font-stretch: 125%;
  font-size: 12px;
  letter-spacing: .1em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin: clamp(70px, 9vw, 130px) 0;
}
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b {
  display: block;
  font-stretch: 125%;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  color: var(--green-hi);
  margin-bottom: 14px;
}
.stat span { color: var(--muted); font-size: 15px; line-height: 1.55; display: block; max-width: 300px; }
.stats.in-refs { margin: 0 0 clamp(56px, 7vw, 100px); }
.stats-label { margin: clamp(10px, 2vw, 24px) 0 16px; }
.feature + .refs-head { margin-top: clamp(80px, 10vw, 150px); }

.refs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.refs-head .h3 { margin-bottom: 0; }
.refs-head p:not(.label) { color: var(--muted); max-width: 420px; margin: 0; }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3.4vw, 52px);
}
.ref { display: block; text-align: left; width: 100%; }
.ref-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 24px; background: var(--bg-3); }
.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(.85);
}
.ref:hover .ref-img img { transform: scale(1.045); filter: saturate(1); }
.ref .label { margin-bottom: 10px; display: block; }
.ref-title {
  display: block;
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  margin-bottom: 8px;
}
.ref-meta { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ref:hover .more { color: var(--green-hi); border-color: var(--green-hi); }

/* ---------- Unternehmen ---------- */

.company-intro {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}
.card {
  border: 1px solid rgba(255, 255, 255, .55);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(30px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: border-color .3s, background-color .3s;
}
.card:hover { border-color: var(--green-hi); background: rgba(255, 255, 255, .03); }
.card-num {
  font-stretch: 125%;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--green-hi);
  margin-bottom: 30px;
}
.card h3 {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.2;
  margin-bottom: 22px;
}
.card p { color: var(--muted); flex: 1; }
.card .more { align-self: flex-start; }

.focus {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 150px);
}
.focus-text p { color: var(--muted); }
.focus-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.focus-imgs figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-3); }
.focus-imgs figure:nth-child(2) { transform: translateY(clamp(24px, 4vw, 64px)); }
.focus-imgs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Karriere ---------- */

.career {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.career-text p { color: var(--muted); }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; line-height: 1.55; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 7px;
  border-left: 1.5px solid var(--green-hi);
  border-bottom: 1.5px solid var(--green-hi);
  transform: rotate(-45deg) translateY(-3px);
}

.jobs { border-top: 1px solid var(--line); }
.job {
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
}
.job h3 {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.25;
  margin-bottom: 10px;
}
.job p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }
.job-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  padding: 14px 20px 13px;
  background: var(--green);
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .25s;
}
.btn:hover { background: var(--green-hi); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 13px 19px 12px; }
.btn.ghost:hover { border-color: var(--green-hi); color: var(--green-hi); }

/* ---------- Badideen ---------- */

.bath-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(20px, 2.6vw, 40px);
}
.bath { min-width: 0; display: flex; flex-direction: column; }
.bath .more { margin-top: auto; align-self: flex-start; }
.bath-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--bg-3); }
.credit { font-size: 12px; color: var(--muted); opacity: .8; margin: 8px 0 18px; }
.bath-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bath:hover .bath-img img { transform: scale(1.03); }
.bath .label { margin-bottom: 10px; }
.bath h3 {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.bath-list { display: grid; gap: 8px; margin: 0 0 16px; }
.bath-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.bath-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--green-hi); }
.job-detail .bullets { margin-bottom: 8px; }
.baeder-intro { max-width: 480px; }
.refs-head .baeder-intro p { max-width: none; }
.baeder-intro .tags { margin: 18px 0 0; }

/* ---------- Kontakt & Anfahrt ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: clamp(56px, 7vw, 100px);
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.ccard:hover { border-color: var(--green-hi); background: rgba(140, 183, 56, .08); transform: translateY(-3px); }
.ccard svg { width: 30px; height: 30px; color: var(--green-hi); margin-bottom: 18px; }
.ccard-kicker {
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--green-hi);
}
.ccard-main { font-stretch: 112%; font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; overflow-wrap: anywhere; }
.ccard-sub { color: var(--muted); font-size: 14px; line-height: 1.5; }

.anfahrt {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.map { margin: 0; border: 1px solid var(--line); background: var(--bg-3); }
.map img { width: 100%; height: auto; }
.anfahrt-text p:not(.label) { color: var(--muted); }
.route { display: grid; gap: 14px; margin: 6px 0 28px; }
.route li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.6; }
.route li b { color: var(--text); font-weight: 500; }
.route li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--green-hi); }
.route-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- AGB ---------- */

.section.docs { padding: clamp(60px, 7vw, 100px) 0; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.ccard.is-pending { opacity: .6; cursor: default; }
.ccard.is-pending:hover { border-color: rgba(255, 255, 255, .55); background: none; transform: none; }

/* ---------- CTA + Footer ---------- */

.cta {
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  background: var(--green);
  color: var(--ink);
}
.cta-panel {
  position: relative;
  min-height: clamp(200px, 22vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px var(--pad);
  border-right: 1px solid rgba(21, 23, 26, .2);
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 30px);
  letter-spacing: .01em;
  text-align: center;
  transition: background-color .35s;
}
.cta-panel svg { width: 26px; height: 26px; flex: none; transition: transform .35s var(--ease); }
.cta-panel:hover { background: var(--green-dark); }
.cta-panel:hover svg { transform: translateX(8px); }
.to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  transition: background-color .35s;
}
.to-top span { writing-mode: vertical-rl; transform: rotate(180deg); }
.to-top i { display: block; width: 1px; height: 46px; background: var(--ink); position: relative; }
.to-top i::before {
  content: "";
  position: absolute;
  top: 0; left: -4px;
  width: 9px; height: 9px;
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  transform: rotate(45deg);
}
.to-top:hover { background: var(--green-dark); }

.footer {
  background: var(--green);
  color: var(--ink);
  border-top: 1px solid rgba(21, 23, 26, .2);
  padding: 20px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  font-weight: 400;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer a, .footer button { text-decoration: none; }
.footer a:hover, .footer button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Overlays (Dialoge) ---------- */

dialog.panel {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-2);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.panel::backdrop { background: rgba(20, 21, 24, .7); }
dialog.panel[open] .panel-inner { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.panel-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color .25s, transform .35s var(--ease);
}
.panel-close:hover { background: var(--green-hi); transform: rotate(90deg); }
.panel-close svg { width: 20px; height: 20px; }

.panel-inner {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(84px, 9vw, 120px) var(--pad) clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
}
.panel-title {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.02;
  margin-bottom: 30px;
}
.panel-side p, .panel-side li { color: var(--muted); }
.panel-side a { text-decoration: none; }
.panel-side a:hover { color: var(--green-hi); }

.contact-list { display: grid; gap: 4px; margin-bottom: 30px; font-size: 17px; }
.contact-list a { color: var(--text); }
.hours { width: 100%; max-width: 340px; border-collapse: collapse; font-size: 15px; margin-bottom: 30px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.hours td:last-child { text-align: right; color: var(--text); }

.bullets { display: grid; gap: 14px; margin: 0 0 30px; }
.bullets li { position: relative; padding-left: 28px; line-height: 1.6; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 14px;
  height: 1px;
  background: var(--green-hi);
}

/* Formular */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .flabel {
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 10px;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-hi); }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.55; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.consent a { color: var(--text); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.form-note { font-size: 14px; color: var(--green-hi); margin: 0; }

/* Projekt-Overlay */
.project-panel .panel-inner { display: block; }
.project-panel .gallery { margin-bottom: clamp(36px, 5vw, 64px); }
.project-panel .panel-title { font-size: clamp(26px, 3vw, 42px); hyphens: auto; }
.project-panel .g-track img { object-fit: contain; background: #2b2d31; }
.project-panel .g-track > * { aspect-ratio: 16 / 8; }
.project-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
}
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.project-text p { color: var(--muted); font-size: 17px; }
.project-text .btn { margin-top: 12px; }

/* Bild-Overlay (Stellenanzeigen) */
.image-panel { background: rgba(30, 32, 36, .96); }
.image-panel .panel-inner { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 100%; }
.image-panel img { max-height: calc(100svh - 160px); width: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }

/* Impressum */
.legal h3 { font-stretch: 125%; text-transform: uppercase; font-weight: 500; font-size: 14px; letter-spacing: .1em; margin: 34px 0 10px; color: var(--green-hi); }
.legal p { color: var(--muted); }

/* Datenschutz-Seite */
.hero.sub.compact { height: auto; min-height: 0; padding-top: clamp(150px, 20vh, 220px); background: var(--bg-2); }
.hero.sub.compact::after { display: none; }
.legal-page .legal { max-width: 860px; }
.legal-page .legal h2 { font-stretch: 112%; font-weight: 500; font-size: clamp(21px, 2vw, 26px); line-height: 1.3; margin: 54px 0 14px; }
.legal-page .legal h2:first-child { margin-top: 0; }
.legal-page .legal p, .legal-page .legal li { font-size: 16px; line-height: 1.7; }
.legal-page .legal ul { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.legal-page .legal li { margin: 4px 0; }
.legal-page .legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-box { margin: 20px 0; padding: 18px 22px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: rgba(140, 183, 56, .1); }
.legal-box p { margin: 0; }
.legal-note { max-width: 860px; margin: 0 0 44px; padding: 16px 20px; border: 1px dashed var(--green); border-radius: 12px; background: rgba(140, 183, 56, .1); font-size: 15px; }
mark.todo { background: rgba(140, 183, 56, .32); color: var(--text); padding: 1px 5px; border-radius: 4px; }

/* AGB-Seite: Dokumente als Zeilen mit Download */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 1000px; }
.doc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 28px; border: 1px solid var(--card-line); border-radius: var(--radius); background: rgba(255, 255, 255, .45); }
.doc-icon { width: 34px; height: 34px; color: var(--green-hi); }
.doc-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; font-stretch: 125%; text-transform: uppercase; letter-spacing: .14em; color: var(--green-hi); }
.doc-info h2 { margin: 0 0 6px; font-stretch: 112%; font-weight: 500; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; }
.doc-info p:not(.doc-kicker) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.doc-hint { max-width: 1000px; margin-top: clamp(40px, 5vw, 60px); }
.doc-hint h3 { margin: 0 0 12px; font-stretch: 112%; font-weight: 500; font-size: 19px; }
.doc-hint ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.doc-hint li { margin: 6px 0; line-height: 1.6; }
.doc-hint b { color: var(--text); font-weight: 500; }
.doc-hint p { color: var(--muted); }
.doc-hint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.docs-more { margin: 26px 0 0; }
@media (max-width: 700px) {
  .doc-row { grid-template-columns: 34px minmax(0, 1fr); padding: 22px 20px; gap: 14px 16px; }
  .doc-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Leistungen (Startseite) ---------- */

.ref-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref-grid.three .ref-img { aspect-ratio: 4 / 3; }
.ref-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ref-grid.four .tile .ref-img { aspect-ratio: 3 / 4; }
.ref-grid.four .tile .ref-img::after { background: linear-gradient(to top, rgba(14, 13, 11, .94) 0%, rgba(14, 13, 11, .84) 45%, rgba(14, 13, 11, .4) 70%, rgba(14, 13, 11, 0) 88%); }
.ref-grid.four .tile .ref-meta { font-size: 13.5px; }
@media (max-width: 1180px) {
  .ref-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid.four .tile .ref-img { aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) { .ref-grid.four { grid-template-columns: 1fr; } }
.objekt-stats-label { margin-top: clamp(50px, 6vw, 80px); }
a.ref { text-decoration: none; }

/* ---------- Unterseiten ---------- */

.hero.sub {
  height: 82vh;
  height: 82svh;
  min-height: 540px;
  place-items: end stretch;
}
.hero.sub .slide { opacity: 1; transform: none; filter: saturate(.92) brightness(.74) contrast(1.02); transition: none; }
.hero.sub::after {
  background:
    linear-gradient(to bottom, rgba(30, 32, 36, .6) 0%, rgba(30, 32, 36, 0) 30%),
    linear-gradient(to top, rgba(30, 32, 36, .88) 0%, rgba(30, 32, 36, .35) 38%, rgba(30, 32, 36, 0) 62%);
}
.sub-head {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 8vh, 96px);
}
.sub-head .hero-title { text-align: left; padding: 0; margin-bottom: 22px; font-size: clamp(32px, 5.6vw, 88px); }
.sub-lead { max-width: 620px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .86); margin: 0; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--text); }
.crumbs a:hover { color: var(--green-hi); }

.steps {
  counter-reset: st;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 52px) clamp(20px, 2.6vw, 40px);
}
.steps li { counter-increment: st; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  display: block;
  font-stretch: 125%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--green-hi);
  margin-bottom: 14px;
}
.steps h4 { font-stretch: 125%; text-transform: uppercase; font-weight: 500; font-size: 16px; line-height: 1.3; margin-bottom: 10px; letter-spacing: .02em; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

.highlight {
  border: 1px solid var(--green-hi);
  background: rgba(140, 183, 56, .07);
  padding: clamp(28px, 4.4vw, 64px);
}
.highlight-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(36px, 4.4vw, 60px);
}
.highlight-head p { color: var(--muted); }
.highlight .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--green-hi); padding: 2px 0 2px 16px; margin: clamp(30px, 3.4vw, 44px) 0 0; max-width: 820px; }

.seal {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, .55);
  padding: 22px 26px;
  margin: 8px 0 30px;
  max-width: 460px;
}
.seal svg { width: 54px; height: 54px; flex: none; color: var(--green-hi); }
.seal b { display: block; font-stretch: 125%; text-transform: uppercase; font-weight: 500; font-size: 15px; letter-spacing: .04em; line-height: 1.3; margin-bottom: 4px; }
.seal span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(48px, 6vw, 90px); }
.shots figure { margin: 0; }
.shots button { display: block; width: 100%; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-3); }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shots button:hover img { transform: scale(1.03); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.shots figcaption b { color: var(--text); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split.rev .split-img { order: 2; }
.split-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--muted); }
.split + .split { margin-top: clamp(70px, 9vw, 130px); }
.split.text-only { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.split.text-only .split-text > p:first-child { margin-top: 0; }

.cards3.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card .card-link { margin-top: 18px; }

.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 18px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--green-hi);
  border-bottom: 1.5px solid var(--green-hi);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 24px; max-width: 760px; }

.sub-intro { padding: clamp(70px, 9vw, 130px) 0 clamp(20px, 3vw, 40px); }

/* =========================================================
   Gessi-Einfluss: warme Cremetöne, ruhige Typografie,
   abgerundete Bilder, Pill- und Glas-Buttons
   ========================================================= */

:root {
  --cream: #efece8;
  --cream-2: #f6f4f1;
  --ink-warm: #14120e;
  --taupe: #544f44;
  --radius: 16px;
  --card-line: rgba(255, 255, 255, .26);
  --img-bg: var(--bg-3);
}

/* helle Abschnitte */
.light {
  --text: #14120e;
  --muted: rgba(20, 18, 14, .68);
  --line: rgba(20, 18, 14, .16);
  --line-soft: rgba(20, 18, 14, .09);
  --green-hi: #4e7418;
  --card-line: rgba(20, 18, 14, .16);
  --img-bg: #e1ddd6;
  background: var(--cream);
  color: var(--text);
}
.light.alt-light { background: var(--cream-2); }
.light .card:hover { background: rgba(20, 18, 14, .03); }
.light .giant { -webkit-text-stroke-color: #6e9a24; }

/* Typografie: Zwischentitel ruhig und in normaler Schreibweise */
.h3 {
  font-stretch: 100%;
  text-transform: none;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -.012em;
}
.label { font-stretch: 100%; font-size: 12px; letter-spacing: .2em; }
.card h3, .ref-title, .bath h3, .job h3, .steps h4 {
  font-stretch: 100%;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -.01em;
}
.card h3, .bath h3, .ref-title { font-size: clamp(21px, 1.8vw, 26px); }
.job h3 { font-size: clamp(19px, 1.6vw, 23px); }
.steps h4 { font-size: 18px; }
.panel-title { font-stretch: 100%; text-transform: none; font-weight: 400; letter-spacing: -.015em; line-height: 1.06; }
.nav a { font-stretch: 100%; text-transform: none; font-size: 14px; letter-spacing: .01em; }

/* Buttons als Pills */
.btn {
  border-radius: 999px;
  font-stretch: 100%;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 13px 24px;
}
.btn.ghost { padding: 12px 23px; }
.btn.glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 12px 23px;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}
.btn.glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); padding: 12px 23px; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tags li { border-radius: 999px; padding: 6px 13px 5px; }

/* abgerundete Bilder und Karten */
.ref-img, .bath-img, .gallery, .split-img, .shots button, .map, .project-panel .gallery { border-radius: var(--radius); overflow: hidden; }
.ref-img, .bath-img { background: var(--img-bg); }
.image-panel img { border-radius: var(--radius); }
.card, .ccard, .seal, .highlight { border-radius: var(--radius); }
.card, .ccard, .seal { border-color: var(--card-line); }
.ccard.is-pending:hover { border-color: var(--card-line); }
.g-ui {
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(20, 18, 14, .45);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.g-ui button:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* Glas-Etikett auf Bildern (z. B. „Visualisierung“) */
.bath-img { position: relative; }
.pill-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(20, 18, 14, .32);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bath .label { margin-top: 22px; }

/* Leistungen als Bildkacheln mit Text im Bild */
.tile { position: relative; color: #fff; }
.ref-grid .tile .ref-img { aspect-ratio: 4 / 5; margin: 0; }
.tile .ref-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 13, 11, .92) 0%, rgba(14, 13, 11, .7) 38%, rgba(14, 13, 11, .25) 62%, rgba(14, 13, 11, 0) 80%); }
.tile-body { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.tile .ref-img { position: relative; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; }
.tile .label { color: #b9dc6f; margin-bottom: 10px; }
.tile .ref-title { color: #fff; }
.tile .ref-meta { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 18px; }
.tile:hover .btn.glass { background: rgba(255, 255, 255, .26); }

/* Startbild: Buttons und Video-Steuerung */
.hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 var(--pad); }
.hero:not(.sub) { align-content: center; }
.hero:not(.sub) .hero-title { margin-bottom: clamp(24px, 3.4vh, 38px); }
.hero-toggle {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: 34px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  display: none;
  place-items: center;
  transition: background-color .25s;
}
.hero.has-video .hero-toggle { display: grid; }
.hero-toggle:hover { background: rgba(255, 255, 255, .14); }
.hero-toggle svg { width: 16px; height: 16px; }
.hero-toggle .i-play { display: none; }
.hero-toggle.paused .i-play { display: block; }
.hero-toggle.paused .i-pause { display: none; }
.hero.has-video .hero-call { right: calc(var(--pad) + 72px); }

/* Kopfzeile beim Scrollen: dunkles Glas */
.site-header.scrolled { background: rgba(28, 27, 25, .74); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }

/* ---------- Haustechnik im Schnitt (Einfamilienhaus & Sanierung) ---------- */
.cutaway { margin: clamp(30px, 4vw, 50px) 0 0; }
.cutaway-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #1d1f22; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); }
.cutaway-pic { position: relative; }
.cutaway-stage img { display: block; width: 100%; height: auto; }
/* leuchtende Punkte, die in Flussrichtung durch die Leitungen laufen */
.cutaway-flows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cutaway-flows path { fill: none; stroke: var(--fc); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 17; animation: cut-flow 1.15s linear infinite; }
.cutaway-flows g { filter: drop-shadow(0 0 3px var(--fc)); transition: opacity .35s var(--ease); }
.cutaway-flows .f-vl { --fc: #ffb067; } .cutaway-flows .f-rl { --fc: #8bbcff; } .cutaway-flows .f-ww { --fc: #ff8590; }
.cutaway-flows .f-kw { --fc: #bde678; } .cutaway-flows .f-aw { --fc: #dfe2e5; } .cutaway-flows .f-km { --fc: #e0bdff; } .cutaway-flows .f-lu { --fc: #f1f9ff; }
.cutaway-flows .f-aw path { animation-duration: 2.2s; }
.cutaway-flows .f-lu path { stroke-dasharray: 0.1 24; animation-name: cut-flow-lu; animation-duration: 1.6s; }
@keyframes cut-flow { to { stroke-dashoffset: -17.1; } }
@keyframes cut-flow-lu { to { stroke-dashoffset: -24.1; } }
.cutaway.dim-others .cutaway-flows g:not(.is-on) { opacity: .1; }
.cutaway.paused .cutaway-flows path, .cutaway.offscreen .cutaway-flows path { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cutaway-flows path { animation: none; } }
/* Hotspots und Info-Karte */
.hot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: var(--green); color: #15171a;
  font: 600 13px/1 var(--font); font-stretch: 112%;
  display: grid; place-items: center; cursor: pointer;
  animation: cut-pulse 2.6s ease-out infinite;
  transition: background .2s, transform .2s var(--ease);
}
.hot:hover, .hot:focus-visible, .hot.is-on, .hot.is-hint { background: #fff; transform: translate(-50%, -50%) scale(1.12); }
.hot:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }
@keyframes cut-pulse { 0% { box-shadow: 0 0 0 0 rgba(140, 183, 56, .6); } 70% { box-shadow: 0 0 0 13px rgba(140, 183, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 183, 56, 0); } }
.hot-card {
  position: absolute; z-index: 3; width: min(320px, 78%);
  padding: 18px 20px 16px; border-radius: 14px; color: #fff;
  background: rgba(21, 22, 24, .86); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.hot-card h4 { margin: 0 26px 8px 0; font-stretch: 112%; font-weight: 500; font-size: 17px; line-height: 1.3; }
.hot-card p { margin: 0 0 10px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.55; }
.hot-card .vals { margin: 0; }
.hot-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.hot-close:hover { background: rgba(255, 255, 255, .2); }
/* Legende und Schalter unter der Grafik */
.cutaway-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 18px; }
.pipe-legend { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pipe-legend button, .flow-toggle {
  font: inherit; font-size: 13px; color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px 7px 11px;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, background .2s;
}
.pipe-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.pipe-legend button:hover, .flow-toggle:hover { border-color: var(--green-hi); }
.pipe-legend button[aria-pressed="true"] { border-color: var(--green-hi); background: rgba(140, 183, 56, .14); }
.flow-toggle { padding: 7px 14px; }
/* Erklaerungen mit Werten */
.vals { display: flex; flex-wrap: wrap; gap: 6px; }
.vals span { font-size: 12.5px; line-height: 1.3; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.hot-card .vals span { color: #fff; border-color: rgba(255, 255, 255, .22); }
.cut-list { list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) clamp(20px, 2.6vw, 40px); }
.cut-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); transition: border-color .3s; cursor: pointer; }
.cut-list li.is-on, .cut-list li:hover { border-top-color: var(--green-hi); }
.cut-list .n { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #15171a; display: grid; place-items: center; font-weight: 600; font-size: 13px; font-stretch: 112%; }
.cut-list h4 { margin: 4px 0 8px; font-stretch: 112%; font-weight: 500; font-size: 17px; line-height: 1.3; }
.cut-list p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.cut-list .vals { margin: 0; }
.cut-note { margin: clamp(30px, 4vw, 44px) 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .cut-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .cut-list { grid-template-columns: 1fr; }
  .hot { width: 22px; height: 22px; font-size: 11px; border-width: 1.5px; }
  .cutaway-flows path { stroke-width: 7; stroke-dasharray: 0.1 26; }
  @keyframes cut-flow { to { stroke-dashoffset: -26.1; } }
  /* auf dem Handy steht die Karte unter dem Bild statt darueber */
  .hot-card { position: relative; left: auto !important; right: auto !important; top: auto !important; width: auto; padding: 16px 16px 14px; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0; background: #232528; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .hot-card p { font-size: 14px; }
}

/* ---------- Mobile Menü ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px var(--pad) 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-stretch: 125%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(26px, 8vw, 40px);
  line-height: 1.35;
  text-decoration: none;
  color: transparent;
  -webkit-text-stroke: 1px var(--green-hi);
  transition: color .25s;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--green-hi); }
.mobile-nav .mobile-contact { margin-top: 36px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.mobile-nav .mobile-contact a { font-size: 15px; font-stretch: 100%; text-transform: none; font-weight: 400; color: var(--text); -webkit-text-stroke: 0; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: opacity 1s ease; transform: none !important; }
  .scroll-cue i::after { animation: none; top: 0; }
  .g-track { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 11.5px; letter-spacing: .06em; }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .cards3, .cards3.six { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .bath-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .highlight .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .brand img { height: 36px; }
  .site-header.scrolled { height: 62px; }
  .section { scroll-margin-top: 62px; }
  .site-header.scrolled .brand img { height: 32px; }
  .giant { white-space: normal; font-size: 10vw; -webkit-text-stroke-width: 1px; }
  .cols, .feature, .focus, .career, .project-body, .panel-inner { grid-template-columns: 1fr; }
  .feature .gallery { order: -1; }
  .stats { grid-template-columns: 1fr; gap: 28px; margin: 64px 0; }
  .refs-head { flex-direction: column; align-items: flex-start; }
  .ref-grid { grid-template-columns: 1fr; }
  .contact-cards, .anfahrt, .bath-grid, .doc-grid { grid-template-columns: 1fr; }
  .focus-imgs figure:nth-child(2) { transform: none; }
  .hero-meta, .hero-call { display: none; }
  .cta { grid-template-columns: 1fr; }
  .cta-panel { border-right: 0; border-bottom: 1px solid rgba(21, 23, 26, .2); min-height: 150px; }
  .to-top { flex-direction: row; padding: 22px; }
  .to-top span { writing-mode: horizontal-tb; transform: none; }
  .to-top i { width: 46px; height: 1px; }
  .to-top i::before { top: -4px; left: 0; transform: rotate(-45deg); }
  .footer { flex-direction: column; align-items: flex-start; }
  .form { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  .job-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .project-panel .g-track > * { aspect-ratio: 4 / 3; }
  .facts div { grid-template-columns: 100px 1fr; }
  .panel-close { top: 14px; right: 14px; width: 46px; height: 46px; }
  .ref-grid.three, .steps, .highlight .steps, .shots, .split, .split.rev, .split.text-only, .highlight-head { grid-template-columns: 1fr; }
  .split.rev .split-img { order: 0; }
  .hero.sub { min-height: 480px; }
  .seal { padding: 18px; }
}

/* ---------- Hinweis bei Anruf- und E-Mail-Links in eingebetteten Vorschauen ---------- */
.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  width: min(440px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #2b2d31;
  color: #fff;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.contact-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.contact-toast .ct-label { margin: 0 0 4px; font-size: 12px; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--green-hi); }
.contact-toast .ct-value { margin: 0 0 6px; font-size: clamp(17px, 4.6vw, 22px); font-weight: 500; overflow-wrap: anywhere; }
.contact-toast .ct-value a { color: #fff; text-decoration: none; }
.contact-toast .ct-hint { margin: 0 0 14px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.contact-toast .ct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-toast .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.contact-toast .ct-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.contact-toast .ct-close:hover { background: rgba(255, 255, 255, .1); }
/* ---------- Kundendienst ---------- */
.kd-hero-btns { margin-top: 28px; }
.kd-repair {
  margin-top: clamp(50px, 6vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kd-repair .bullets { margin-bottom: 0; }
.kd-repair-side p { color: var(--muted); margin: 0 0 20px; }
.kd-anfrage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.kd-anfrage-text > p:not(.label) { color: var(--muted); }
.kd-urgent { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.kd-urgent p { margin: 0 0 6px; color: var(--text); }
.kd-urgent .kd-phone { font-size: clamp(24px, 2.4vw, 32px); font-stretch: 112%; margin: 4px 0 18px; }
.kd-phone a { color: var(--text); text-decoration: none; }
.kd-phone a:hover { color: var(--green-hi); }
.kd-teaser {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px clamp(22px, 3vw, 36px);
  border-radius: var(--radius);
  background: #4b4e55;
  color: #fff;
  text-decoration: none;
  transition: background-color .3s;
}
.kd-teaser:hover { background: #55585f; }
.kd-teaser .label { color: #b9dc6f; margin: 0; flex: none; }
.kd-teaser-text { flex: 1 1 360px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
@media (max-width: 860px) {
  .kd-repair, .kd-anfrage { grid-template-columns: 1fr; }
}