@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --green: #9BC01A;
  --green-hover: #7A9A14;
  --green-soft: #F2F8E5;
  --dark: #1A1A1A;
  --text: #555555;
  --muted: #cccccc;
  --body: #555555;
  --nav: rgba(0, 0, 0, 0.6);
  --header-h: 134px;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
ul { list-style: none; }
p {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
}

.container {
  width: 80%;
  max-width: var(--max);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--dark);
}

/* Header – Divi-ähnlich */
.site-header {
  background: #fff;
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: var(--max);
  margin: 0 auto;
  gap: 2rem;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.logo-link img {
  height: var(--header-h);
  width: auto;
  max-width: 238px;
  object-fit: contain;
}
.header-navigation {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.header-navigation > a,
.nav-dropdown > a,
.nav-dropdown > button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--nav);
  background: none;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  opacity: 0.55;
}
.header-navigation > a.active,
.header-navigation > a:hover,
.nav-dropdown > a.active,
.nav-dropdown > a:hover,
.nav-dropdown > button:hover {
  color: var(--green);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-top: 3px solid var(--green);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  color: var(--nav);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { color: var(--green); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  display: block;
}
body.nav-open { overflow: hidden; }

/* Hero 3-spaltig – größer, Farbe wie Energiedach-Logo (#231F20) */
.hero-home {
  background: #231F20;
  padding: 110px 0 100px;
  min-height: 710px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.hero-grid {
  --hero-welcome-accent: 68px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 96px;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}
.hero-welcome {
  --hw-frame-overshoot: 58px;
  --hw-frame-thickness: 2px;
  --hw-frame-color: #dcdcdc;
  /* Abstand = wie weit die grüne Box übersteht */
  --hw-accent-out: calc(var(--hero-welcome-accent) / 2);
  position: relative;
  background: #dcdcdc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  padding: 40px 36px 44px;
  margin-top: var(--hw-accent-out);
  margin-left: var(--hw-accent-out);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  align-self: stretch;
  overflow: visible;
}
.hero-welcome::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--hw-accent-out));
  left: calc(-1 * var(--hw-accent-out));
  width: var(--hero-welcome-accent);
  height: var(--hero-welcome-accent);
  background: #b7c903;
  z-index: 3;
  pointer-events: none;
}
.hw-line {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
/*
  Logo-Logik:
  - oben + links: an der Außenseite der grünen Box
  - unten + rechts: an der Kante der grauen Box
  - Enden per Gradient auslaufend
*/
.hw-line--t,
.hw-line--b {
  left: calc(-1 * var(--hw-accent-out) - var(--hw-frame-overshoot));
  right: calc(-1 * var(--hw-frame-overshoot));
  height: var(--hw-frame-thickness);
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--hw-frame-color) 7%,
    var(--hw-frame-color) 93%,
    transparent 100%
  );
}
.hw-line--t {
  top: calc(-1 * var(--hw-accent-out));
}
.hw-line--b {
  bottom: 0;
}
.hw-line--l,
.hw-line--r {
  top: calc(-1 * var(--hw-accent-out) - var(--hw-frame-overshoot));
  bottom: calc(-1 * var(--hw-frame-overshoot));
  width: var(--hw-frame-thickness);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--hw-frame-color) 7%,
    var(--hw-frame-color) 93%,
    transparent 100%
  );
}
.hw-line--l {
  left: calc(-1 * var(--hw-accent-out));
}
.hw-line--r {
  right: 0;
}
.hero-welcome h1,
.hero-welcome .lead {
  position: relative;
  z-index: 1;
}
.hero-home h1 {
  color: var(--dark);
  font-size: clamp(32px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.hero-home .lead {
  font-family: var(--font-body);
  color: var(--dark);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
  max-width: none;
}
.hero-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--hero-welcome-accent) / 2);
  min-width: 0;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  box-sizing: border-box;
}
.hero-col img {
  height: 132px;
  width: auto;
  max-width: 220px;
  margin: 0 auto 22px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.hero-col .logo-e {
  width: 132px;
  height: 132px;
  background: #fff;
  padding: 8px;
  border: 3px solid #111;
  box-sizing: border-box;
  object-fit: contain;
}
.hero-col h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  max-width: 290px;
  flex-shrink: 0;
}
.hero-col p {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 280px;
  flex-shrink: 0;
}
.hero-col .btn-pill {
  margin-top: auto;
  white-space: nowrap;
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
  text-align: center;
}
.btn-pill {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 25px 50px;
  border-radius: 100px;
  transition: background 0.2s;
}
.btn-pill:hover { background: var(--green-hover); color: #fff !important; }
.btn-pill.btn-pulse {
  will-change: transform;
  animation: eksBtnNudge 2.6s ease-out 1.4s 2;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
              border-radius 0.28s ease,
              box-shadow 0.28s ease,
              background-color 0.28s ease !important;
}
.btn-pill.btn-pulse:hover {
  transform: scale(1.08);
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(155, 192, 26, 0.35);
  background: var(--green);
  animation: none;
}
.btn-pill.btn-phone {
  color: var(--dark) !important;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 16px 40px;
}
.btn-pill.btn-phone:hover { color: var(--dark) !important; }
.btn-dark-pill {
  display: inline-block;
  background: var(--dark);
  color: #fff !important;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 100px;
  transition: background-color 0.3s ease;
}
.btn-dark-pill:hover { background: #000; color: #fff !important; }
.btn-dark-pill.btn-route:hover {
  background: var(--green);
  color: #fff !important;
}

/* About split – Text + USPs mittig */
.about-home {
  background: #f5f5f5;
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 40px;
  align-items: center;
}
.about-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: center;
}
.stat-box {
  width: 200px;
  max-width: 100%;
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
}
.stat-box .n {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-dark { background: var(--dark); }
.stat-dark .n { color: var(--green); }
.stat-green { background: var(--green); }
.stat-green .n { color: #fff; }
.about-home h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 460px;
  text-align: center;
}
.about-home p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 460px;
  text-align: center;
}
.icon-stack { text-align: center; padding-top: 8px; }
.icon-item { margin-bottom: 52px; }
.icon-item:last-child { margin-bottom: 0; }
.icon-item i,
.icon-item svg,
.icon-item .et-icon {
  font-size: 48px;
  color: var(--green);
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: block;
  line-height: 1;
}
@font-face {
  font-family: "ETmodules";
  src: url("../assets/fonts/modules.woff") format("woff"),
       url("../assets/fonts/modules.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.et-icon {
  font-family: "ETmodules", sans-serif;
  font-style: normal;
  font-weight: 400;
  speak: none;
  -webkit-font-smoothing: antialiased;
}
.et-icon::before { content: "\e083"; }
.icon-item h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.icon-item p {
  font-family: var(--font-body);
  color: var(--text);
  max-width: 380px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

/* Partner */
.partners-home {
  padding: 60px 0 70px;
  text-align: center;
  overflow: hidden;
}
.partners-home h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 48px;
}
.partner-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.partner-marquee-track {
  display: flex;
  width: max-content;
  animation: partner-marquee 45s linear infinite;
}
.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}
.partner-marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.partner-marquee-group img {
  width: 130px;
  height: 98px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes partner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA + Footer */
.cta-home {
  background: var(--dark);
  text-align: center;
  padding: 70px 20px 50px;
}
.cta-home h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 28px;
}
.site-footer {
  background: var(--dark);
  padding: 0;
  color: #fff;
}
.site-footer--e .footer-e-inner {
  width: 80%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 0 48px;
}
.footer-e-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: left;
}
.footer-e-col {
  flex: 0 1 auto;
  min-width: 0;
}
.footer-e-heading {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
}
.footer-e-heading::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.65rem;
  background: var(--green);
}
.footer-e-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-e-block p,
.footer-e-nav a {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
.footer-e-block a {
  color: rgba(255, 255, 255, 0.88);
}
.footer-e-block a:hover,
.footer-e-nav a:hover {
  color: #fff;
}
.footer-e-mail {
  font-weight: 700;
  color: #fff !important;
}
.footer-e-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.footer-e-legal {
  background: var(--green);
  color: var(--dark);
}
.footer-e-legal-inner {
  width: 80%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 0;
}
.footer-e-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-e-legal-links a {
  color: var(--dark);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.footer-e-legal-links a:hover {
  text-decoration: underline;
  color: var(--dark);
}

/* Inner pages */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 2.8vw, 96px);
}
.page-hero p {
  font-family: var(--font-body);
  color: var(--muted);
  margin-top: 10px;
  max-width: 640px;
  font-size: 18px;
  font-weight: 500;
}
.page-hero.hero-center {
  text-align: center;
  padding: 90px 0 80px;
}
.page-hero.hero-center h1 {
  font-size: clamp(28px, 2.8vw, 96px);
}
.page-hero.hero-center.hero-sm h1 {
  font-size: clamp(26px, 2.8vw, 96px);
}
.page-hero.hero-center p {
  margin: 8px auto 0;
  max-width: 740px;
  font-size: 18px;
  font-weight: 500;
  color: #ccc;
}
.kicker {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.section { padding: 56px 0; }
.section-alt { background: #f5f5f5; }
.section-wave-top {
  position: relative;
  padding-top: calc(80px + 4vw);
}
.section-wave-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4vw;
  min-height: 28px;
  max-height: 70px;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNGRkZGRkYiPjxwYXRoIGQ9Ik0xMjgwIDY5LjY1bC0zMjAgNDkuMjRMMzIwIDIwLjQgMCA2OS42NVYwaDEyODB2NjkuNjV6Ii8+PC9nPjwvc3ZnPg==");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
}
.section-pad { padding: 80px 0; }
.section-title { font-size: 32px; margin-bottom: 16px; }
.section-title.center {
  text-align: center;
  margin-bottom: 40px;
}
.section-title-lg {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}
.section-intro { color: var(--text); max-width: 640px; font-family: var(--font-body); font-weight: 500; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.two-col p { color: var(--text); margin-bottom: 14px; line-height: 1.7; font-family: var(--font-body); font-weight: 500; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 49px;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}
.team-card {
  background: #fff;
  text-align: center;
  padding: 28px 20px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}
.team-card i {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}
.team-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.team-card p { font-size: 14px; color: var(--text); font-family: var(--font-body); font-weight: 500; }

.hist-list {
  max-width: 720px;
  margin: 40px auto 0;
  position: relative;
}
.hist-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
  padding: 0;
  border-bottom: 0;
  grid-template-columns: none;
}
.hist-item:last-child { margin-bottom: 0; }
.hist-year {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  min-width: 70px;
  text-align: right;
  padding-top: 0;
  line-height: 1.2;
  flex-shrink: 0;
}
.hist-body {
  border-left: 3px solid var(--green);
  padding-left: 24px;
  flex: 1;
  min-width: 0;
}
.hist-item h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}
.hist-item p {
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 49px;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}
.ref-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}
.ref-card i {
  font-size: 42px;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}
.ref-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.25;
}
.ref-card p { font-size: 14px; color: var(--text); font-family: var(--font-body); font-weight: 500; }

.btn-pill.btn-md { font-size: 18px; padding: 16px 40px; }
.btn-dark-pill.btn-sm { font-size: 15px; padding: 12px 25px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card { border: 1px solid #eee; padding: 22px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
  position: relative;
}
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
}
.gallery a::before {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}
.gallery a:hover::after,
.gallery a:hover::before { opacity: 1; }
.gallery a:hover img { transform: scale(1.05); }

/* Dach overview */
.dach-hero {
  background: var(--dark);
  padding: 100px 0 90px;
}
.dach-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  overflow: visible;
}
.dach-kicker {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.dach-hero h1 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 100px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 520px;
  margin-bottom: 16px;
}
.dach-hero .lead {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 28px;
}
.dach-hero .btn-pill {
  font-size: 16px;
  padding: 14px 35px;
  color: var(--dark) !important;
}
.dach-hero .btn-pill:hover { color: var(--dark) !important; }
.dach-hero-media {
  --hero-accent: 76px;
  position: relative;
  justify-self: stretch;
}
.dach-hero-media::after {
  content: "";
  position: absolute;
  top: calc(var(--hero-accent) / -2);
  right: calc(var(--hero-accent) / -2);
  width: var(--hero-accent);
  height: var(--hero-accent);
  background: #b7c903;
  z-index: 1;
  pointer-events: none;
}
.dach-hero-photo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.dach-hero,
.dach-hero.hero-compact {
  overflow: visible;
}
.svc-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 59px;
  margin-bottom: 59px;
}
.svc-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 59px;
}
.svc-card {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
}
.svc-card i {
  font-size: 48px;
  color: var(--green);
  margin: 0 auto 20px;
  display: block;
}
.svc-3.svc-fill .svc-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.svc-3.svc-fill .svc-card i {
  margin-left: auto;
  margin-right: auto;
}
.svc-3.svc-fill .svc-card h3,
.svc-3.svc-fill .svc-card p {
  text-align: center;
}
.komplett-card {
  text-align: center;
}
.komplett-card i {
  margin-left: auto;
  margin-right: auto;
}
.svc-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.svc-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  font-family: var(--font-body);
  font-weight: 500;
}
.ref-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 56px 0 20px;
}
.ref-title:first-of-type { margin-top: 72px; }
.gallery-block .gallery { margin-top: 0; gap: 12px; }
.fassade-gallery {
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}
.fassade-gallery .gallery {
  gap: 49px;
  grid-template-columns: repeat(4, 1fr);
}
.fassade-gallery .gallery a {
  aspect-ratio: 400 / 284;
}
.gallery a.is-off { display: none !important; }
.gallery-pager {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
}
.gallery-pager button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 6px;
  color: #888;
  font: 500 13px var(--font);
}
.gallery-pager button.active,
.gallery-pager button:hover { color: var(--green); }

.dach-hero.hero-compact { padding: 80px 0 70px; }
.dach-hero.hero-compact .dach-kicker { font-size: 16px; font-weight: 600; }
.dach-hero.hero-compact h1 {
  font-size: clamp(26px, 2.8vw, 96px);
  max-width: 520px;
}
.dach-hero.hero-compact .lead {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
}
.dach-hero.hero-compact .btn-pill {
  font-size: 15px;
  padding: 12px 30px;
  color: #fff !important;
}
.dach-hero.hero-compact .btn-pill:hover { color: #fff !important; }

.sys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  align-items: start;
  max-width: 941px;
  margin-left: auto;
  margin-right: auto;
}
.sys-card {
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 28px 22px;
  border-radius: 10px;
}
.sys-card img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
  border-radius: 4px;
}
.sys-card-body { padding: 18px 0 0; }
.sys-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.sys-card p { font-size: 14px; color: var(--text); line-height: 1.65; font-family: var(--font-body); font-weight: 500; }

/* Logo-Motiv: graue Box + grünes Eckquadrat */
.sys-grid.sys-grid--brand,
.bad-cards.cards--brand,
.wa-cards.cards--brand {
  gap: 96px;
  padding-top: 36px;
  padding-left: 36px;
  align-items: stretch;
  max-width: none;
  width: 100%;
}
/* Einheitliche Breite: volle Content-Breite (--max), nicht 941px */
.bad-services-inner:has(.cards--brand),
.wa-services-inner:has(.cards--brand) {
  max-width: var(--max);
}
.sys-card.sys-card--brand,
.bad-card.bad-card--brand,
.wa-card.wa-card--brand {
  --sys-accent: 68px;
  position: relative;
  background: #dcdcdc;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  overflow: visible;
  border-radius: 0;
  padding: 28px 22px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sys-card.sys-card--brand::before,
.bad-card.bad-card--brand::before,
.wa-card.wa-card--brand::before {
  content: "";
  position: absolute;
  top: calc(var(--sys-accent) / -2);
  left: calc(var(--sys-accent) / -2);
  width: var(--sys-accent);
  height: var(--sys-accent);
  background: #b7c903;
  z-index: 2;
  pointer-events: none;
}
.sys-card.sys-card--brand img,
.bad-card.bad-card--brand img,
.wa-card.wa-card--brand img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-radius: 10px;
  background: transparent;
  flex-shrink: 0;
}
.sys-card.sys-card--brand .sys-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sys-card.sys-card--brand h3,
.sys-card.sys-card--brand p,
.bad-card.bad-card--brand h3,
.bad-card.bad-card--brand p,
.wa-card.wa-card--brand h3,
.wa-card.wa-card--brand p {
  position: relative;
  z-index: 1;
  color: var(--dark);
}
.bad-card.bad-card--brand p,
.wa-card.wa-card--brand p,
.sys-card.sys-card--brand p {
  flex: 1;
  margin-bottom: 0;
}

.prefa-block h2,
.werkstatt-block h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.prefa-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 860px;
}
.prefa-list li {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.werkstatt-block p {
  max-width: 860px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.cta-home.cta-compact { padding: 50px 20px; }
.cta-home.cta-compact h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 24px;
}
.cta-home.cta-compact .btn-pill {
  font-size: 17px;
  padding: 14px 36px;
}

.btn-pill.btn-on-dark { color: #fff !important; }
.btn-pill.btn-on-dark:hover { color: #fff !important; }

.svc-3.svc-fill { grid-auto-rows: 1fr; }
.svc-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.svc-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.svc-link h3 { color: var(--dark); }
.svc-highlight {
  background: var(--green-soft);
}
.txt-green { color: var(--green); font-weight: 700; }

.komplett-card {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  padding: 35px 30px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
}
.komplett-card i {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 18px;
  display: block;
}
.komplett-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.komplett-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.komplett-card .komplett-note {
  margin-bottom: 0;
  font-weight: 500;
}

/* Bad & Badsanierung – Maße 1:1 nach Live (1280px) */
.bad-hero {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}
.bad-hero-inner {
  width: 80%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}
.bad-kicker {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--green);
  margin: 0;
  padding-bottom: 10px;
}
.bad-hero h1 {
  color: #fff;
  font-size: clamp(26px, 2.8vw, 96px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
}
.bad-lead {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 38px;
}
.bad-btn {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  color: #fff !important;
}
.bad-btn:hover { color: #fff !important; }

.bad-services {
  padding: 70px 0;
}
.bad-cards.cards--brand {
  margin-bottom: 0;
}
.bad-ref {
  max-width: 860px;
  margin: 80px 0 28px;
}
.bad-ref h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.bad-ref p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 14px;
}
.bad-ref p:last-child {
  margin-bottom: 0;
}
.bad-services-inner {
  width: 80%;
  max-width: 941px;
  margin: 0 auto;
}
.bad-services-inner > h2 {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 0 10px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.bad-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  align-items: start;
  margin: 67px 0 40px;
}
.bad-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 28px 22px;
}
.bad-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 30px;
  background: #f3f3f3;
}
.bad-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
  line-height: 1.2;
}
.bad-card p {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 16px;
  font-family: var(--font-body);
}
.bad-gallery {
  padding: 22px 0;
}
.bad-gallery .gallery {
  grid-template-columns: repeat(4, 1fr);
  column-gap: 47px;
  row-gap: 47px;
  gap: 47px;
  margin-top: 0;
  margin-bottom: 47px;
}
.bad-gallery .gallery a {
  aspect-ratio: 400 / 284;
}
.bad-gallery .gallery-pager {
  margin-top: 0;
  min-height: 73px;
  align-items: flex-start;
}
.bad-page .cta-home.cta-compact {
  padding: 76px 20px;
}
.bad-cta-btn {
  font-size: 17px;
  line-height: 1.7;
  padding: 14px 36px;
  letter-spacing: 0.05em;
}

@media (max-width: 980px) {
  .bad-cards { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bad-cards.cards--brand,
  .wa-cards.cards--brand,
  .sys-grid.sys-grid--brand { gap: 64px; }
  .bad-gallery .gallery { gap: 24px; }
  .bad-hero-inner,
  .bad-services-inner { width: 92%; }
}
@media (max-width: 768px) {
  .bad-cards { grid-template-columns: 1fr; gap: 24px; }
  .bad-cards.cards--brand,
  .wa-cards.cards--brand,
  .sys-grid.sys-grid--brand {
    gap: 56px;
    padding-left: 36px;
  }
  .bad-gallery .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .bad-hero { padding: 56px 0; }
  .bad-hero-inner { padding: 12px 0; }
  .bad-ref { margin: 56px 0 20px; }
  .bad-services { padding: 48px 0; }
  .bad-services-inner > h2 { padding-top: 12px; }
  .bad-page .cta-home.cta-compact { padding: 56px 20px; }
}

/* Heizung modernisieren – Maße 1:1 nach Live (1280px) */
.hz-hero {
  background: var(--dark);
  padding: 80px 0;
}
.hz-hero-inner {
  width: 80%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}
.hz-kicker {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--green);
  margin: 0;
  padding-bottom: 10px;
}
.hz-hero h1 {
  color: #fff;
  font-size: clamp(26px, 2.8vw, 96px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
  max-width: 520px;
}
.hz-lead {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 38px;
  max-width: 420px;
}
.hz-btn {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  color: #fff !important;
}
.hz-btn:hover { color: #fff !important; }
.hz-hero-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hz-services {
  padding: 70px 0;
}
.hz-services-inner {
  width: 80%;
  max-width: 941px;
  margin: 0 auto;
}
.hz-services-title {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 0 10px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.hz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  align-items: start;
  margin: 67px 0 40px;
}
.hz-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 28px 22px;
}
.hz-card i {
  display: block;
  font-size: 96px;
  line-height: 1;
  color: #b7ca04;
  margin: 0 0 24px;
  text-align: center;
}
.hz-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
  line-height: 1.2;
}
.hz-card p {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 16px;
  font-family: var(--font-body);
}

.hz-ref {
  padding: 22px 0;
}
.hz-ref h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding-bottom: 10px;
  text-align: left;
}
.hz-gallery .gallery {
  grid-template-columns: repeat(4, 1fr);
  column-gap: 47px;
  row-gap: 47px;
  gap: 47px;
  margin-top: 0;
  margin-bottom: 47px;
}
.hz-gallery .gallery a {
  aspect-ratio: 400 / 284;
}
.hz-gallery .gallery-pager {
  margin-top: 0;
  min-height: 73px;
  align-items: flex-start;
}
.hz-page .cta-home.cta-compact {
  padding: 76px 20px;
}
.hz-cta-btn {
  font-size: 17px;
  line-height: 1.7;
  padding: 14px 36px;
  letter-spacing: 0.05em;
}

@media (max-width: 980px) {
  .hz-hero-inner,
  .hz-services-inner { width: 92%; }
  .hz-cards { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hz-gallery .gallery { gap: 24px; }
}
@media (max-width: 768px) {
  .hz-hero { padding: 56px 0; }
  .hz-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 12px 0;
  }
  .hz-hero h1 { max-width: none; }
  .hz-lead { max-width: none; }
  .hz-services { padding: 48px 0; }
  .hz-services-title { padding-top: 12px; }
  .hz-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
  .hz-card i { font-size: 64px; }
  .hz-gallery .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hz-ref h2 { font-size: 26px; }
  .hz-page .cta-home.cta-compact { padding: 56px 20px; }
}

/* Wasseraufbereitung – Maße 1:1 nach Live (1280px) */
.wa-hero {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}
.wa-hero-inner {
  width: 80%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}
.wa-kicker {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--green);
  margin: 0;
  padding-bottom: 10px;
}
.wa-hero h1 {
  color: #fff;
  font-size: clamp(26px, 2.8vw, 96px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
}
.wa-lead {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 38px;
}
.wa-btn {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  color: #fff !important;
}
.wa-btn:hover { color: #fff !important; }

.wa-services {
  padding: 70px 0;
}
.wa-services-inner {
  width: 80%;
  max-width: 941px;
  margin: 0 auto;
}
.wa-services-inner > h2 {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 0 10px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.wa-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  align-items: start;
  margin: 67px 0 64px;
}
.wa-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 28px 22px;
}
.wa-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 30px;
  background: #f3f3f3;
}
.wa-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  padding-bottom: 10px;
  line-height: 1.2;
}
.wa-card p {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 16px;
  font-family: var(--font-body);
}
.wa-page .cta-home.cta-compact {
  padding: 76px 20px;
}
.wa-cta-btn {
  font-size: 17px;
  line-height: 1.7;
  padding: 14px 36px;
  letter-spacing: 0.05em;
}

@media (max-width: 980px) {
  .wa-hero-inner,
  .wa-services-inner { width: 92%; }
  .wa-cards { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .wa-hero { padding: 56px 0; }
  .wa-hero-inner { padding: 12px 0; }
  .wa-services { padding: 48px 0; }
  .wa-services-inner > h2 { padding-top: 12px; }
  .wa-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
  .wa-page .cta-home.cta-compact { padding: 56px 20px; }
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.split img { width: 100%; object-fit: cover; max-height: 420px; }

/* Kontakt */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 48px;
  align-items: start;
  padding: 80px 0 40px;
}
.contact-lead h2 {
  color: #b7ca04;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 390px;
}
.contact-lead .sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 22px;
  color: var(--text);
}
.contact-lead p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 420px;
}
.contact-lead h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 420px;
  line-height: 1.25;
}
.cinfo {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}
.cinfo i {
  color: var(--green);
  font-size: 22px;
  width: 28px;
  text-align: center;
  margin-top: 2px;
}
.cinfo strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}
.cinfo a {
  font-family: var(--display);
  color: var(--dark);
  font-weight: 600;
}
.cinfo a:hover { color: var(--green); }
.cinfo span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.contact-lead .btn-dark-pill { margin-top: 12px; }

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-bottom: 32px;
}
.f-row.one { grid-template-columns: 1fr; }
.f-field { min-width: 0; position: relative; }
.f-field > label:not(.f-check),
.f-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.req { color: #c00; }

/* Material: Label sitzt im Feld, schwebt bei Fokus/Inhalt nach oben */
.f-field.f-material {
  padding-top: 14px;
}
.f-field.f-material > label {
  position: absolute;
  left: 0;
  top: 26px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  z-index: 1;
}
.f-field.f-material > .f-input {
  position: relative;
  z-index: 2;
  padding: 10px 0 8px;
  background: transparent;
}
.f-field.f-material > .f-input::placeholder {
  color: transparent;
}
.f-field.f-material > .f-input:focus::placeholder {
  color: #999;
}
.f-field.f-material > .f-input:focus + label,
.f-field.f-material > .f-input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  font-weight: 600;
  color: #777771;
}

.f-input,
.f-select,
.multi-select-toggle {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #777771;
  border-radius: 0;
  background: transparent;
  font: 400 16px/1.4 var(--font);
  color: #1a1a1a;
  appearance: none;
}
.f-input {
  padding: 10px 0 8px;
}
.f-select,
.multi-select-toggle {
  padding: 8px 56px 10px 0;
}
.f-input:focus,
.f-select:focus,
.multi-select-toggle:focus {
  outline: none;
  border-bottom-color: #b7ca04;
}
.multi-select { position: relative; }
.multi-select-toggle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  text-align: left;
  cursor: pointer;
  color: #777771;
  box-sizing: border-box;
}
.multi-select-toggle.has-value { color: #1a1a1a; }
.multi-select.open .multi-select-toggle,
.multi-select-toggle:focus {
  outline: 2px solid #4a90d9;
  outline-offset: 0;
  border-bottom-color: transparent;
}
.multi-select-toggle .ms-values {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 4px;
}
.multi-select-toggle.has-value .ms-values {
  display: flex;
}
.multi-select-toggle .ms-placeholder {
  flex: 1 1 auto;
  color: #777771;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  padding: 2px 0;
  text-align: left;
}
.multi-select-toggle .ms-placeholder:empty {
  display: none;
}
.ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #888;
  color: #fff;
  border-radius: 15px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
}
.ms-pill-remove,
.ms-clear {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  font: 20px/1 Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ms-pill-remove {
  color: #fff;
  font-size: 16px;
  margin-left: 2px;
}
.ms-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #777771;
  font-size: 24px;
  display: none;
  z-index: 2;
}
.multi-select-toggle.has-value .ms-clear { display: block; }
.multi-select-toggle::after,
.f-select-wrap::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border: 5px solid transparent;
  border-top-color: #777771;
  pointer-events: none;
  transition: transform 0.15s ease, border-top-color 0.15s ease;
}
.multi-select.open .multi-select-toggle::after {
  border-top-color: transparent;
  border-bottom-color: #b7ca04;
  margin-top: -8px;
}
.f-select-wrap:focus-within::after {
  border-top-color: #b7ca04;
}
.f-select-wrap { position: relative; }
.f-select-wrap .f-select { width: 100%; background: transparent; }
.multi-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  padding: 0;
}
.multi-select.open .multi-select-menu { display: block; }
.multi-select-menu label {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 400;
  color: #777771;
  cursor: pointer;
  margin: 0;
  background: #ebebeb;
  line-height: 1.3;
}
.multi-select-menu label:hover {
  background: #ddd;
  color: #000;
}
.multi-select-menu label.is-selected,
.multi-select-menu label.is-selected:hover {
  background: #b7ca04;
  color: #fff;
}
.multi-select-menu input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.f-upload {
  position: relative;
  margin-top: 4px;
}
.f-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.f-upload-ui {
  border: 1px dashed #b5b5b5;
  background: #fafafa;
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.f-upload.dragover .f-upload-ui,
.f-upload-ui:hover {
  border-color: var(--green);
  background: #f2f8e5;
}
.f-upload-msg {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}
.f-upload-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: left;
}
.f-upload-list li {
  font-size: 13px;
  color: var(--dark);
  padding: 4px 0;
  border-top: 1px solid #eee;
}
.f-upload-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}
.f-reveal { display: none; }
.f-reveal.show { display: block; }
.f-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin: 8px 0 22px;
}
.f-check input { width: auto; margin-top: 2px; accent-color: var(--green); }
.f-submit {
  background: #b7ca04;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  font: 500 14px/1.45 Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease;
}
.f-submit:hover {
  background: #9fb004;
  color: #fff;
}
.form-error {
  margin-top: 1rem;
  padding: 1rem;
  background: #fde8e8;
  color: #8a1f1f;
}
.map-bleed {
  width: 100%;
  height: 408px;
  border: 0;
  display: block;
}
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 24px 0 8px; color: var(--dark); }
.legal-content p, .legal-content li {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
}
.legal-content ul { list-style: disc; padding-left: 18px; }

.page-hero.hero-legal {
  background: #fff;
  color: var(--dark);
  padding: 56px 0 24px;
}
.page-hero.hero-legal .kicker { color: var(--green); }
.page-hero.hero-legal h1 {
  color: var(--dark);
  font-size: 46px;
}
.page-hero.hero-legal p {
  color: var(--text);
  font-size: 14px;
}
.check-list li { padding: 6px 0 6px 18px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.lightbox-panel { position: relative; z-index: 1; pointer-events: none; }
.lightbox-image {
  max-width: min(92vw, calc(100vw - 120px));
  max-height: 88vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: auto;
}
.lightbox-image.is-ready { opacity: 1; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-image { max-width: min(92vw, calc(100vw - 72px)); }
}

/* Scroll-/Einblend-Animationen (Divi fadeTop + eksBtnNudge) */
@keyframes fadeTop {
  0% { opacity: 0; transform: translateY(-10%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes eksBtnNudge {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 192, 26, 0.5); }
  35%  { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(155, 192, 26, 0); }
  70%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 192, 26, 0); }
  100% { transform: scale(1); }
}
.anim-top {
  opacity: 0;
}
.anim-top.is-in {
  opacity: 1;
  animation: fadeTop 1s cubic-bezier(0.77, 0, 0.175, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .anim-top { opacity: 1; }
  .anim-top.is-in { animation: none; }
  .btn-pill.btn-pulse { animation: none; }
  .btn-pill.btn-pulse:hover { transform: none; border-radius: 100px !important; box-shadow: none; }
  .partner-marquee-track { animation: none; }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .card-grid, .split, .contact-grid, .team-grid, .two-col, .contact-wrap, .ref-grid, .dach-hero-grid, .svc-3, .svc-2, .sys-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .fassade-gallery .gallery { gap: 24px; }
  .container, .header-inner, .site-footer--e .footer-e-inner, .footer-e-legal-inner { width: 92%; }
  .footer-e-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
  .contact-lead h2 { font-size: 32px; }
}
@media (max-width: 768px) {
  .dach-hero,
  .dach-hero.hero-compact {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 36px 0 44px;
    box-sizing: border-box;
  }
  .dach-hero > .container.dach-hero-grid {
    width: 92%;
    gap: 24px;
  }
  .dach-hero-media {
    --hero-accent: 44px;
    width: calc(100% - var(--hero-accent) / 2);
    max-width: 92%;
    justify-self: center;
    margin-inline: auto;
  }
  .dach-hero-photo {
    max-height: 240px;
    width: 100%;
  }
  .dach-hero h1,
  .dach-hero.hero-compact h1 {
    font-size: clamp(28px, 8vw, 40px);
    max-width: none;
  }
  .dach-hero .lead,
  .dach-hero.hero-compact .lead {
    font-size: 16px;
    max-width: none;
    margin-bottom: 20px;
  }

  .menu-toggle { display: flex; }
  .header-navigation {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 32px;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    overflow: auto;
  }
  .header-navigation.open { transform: none; }
  .header-navigation > a,
  .nav-dropdown > a,
  .nav-dropdown > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 22px;
    font-size: 17px;
    line-height: 1.3;
    min-height: 52px;
    box-sizing: border-box;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 0;
    transform: none;
    padding: 0 0 8px;
    min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a {
    padding: 14px 22px 14px 36px;
    font-size: 16px;
    line-height: 1.35;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .hero-grid, .about-grid, .card-grid, .card-grid-2, .split, .contact-grid, .form-row, .team-grid, .timeline-item, .two-col, .contact-wrap, .ref-grid, .f-row, .dach-hero-grid, .svc-3, .svc-2, .sys-grid {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr 1fr; }
  .fassade-gallery .gallery { gap: 16px; }
  .hero-home {
    width: 100%;
    min-height: calc(100svh - var(--header-h));
    padding: clamp(16px, 2.5vh, 28px) 0 clamp(20px, 3vh, 32px);
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
  }
  .hero-home > .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 92%;
  }
  .hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.8vh, 28px);
    align-content: start;
  }
  .hero-home h1 {
    font-size: clamp(22px, 3.4vh, 28px);
    margin-bottom: 6px;
    padding-bottom: 4px;
    text-align: center;
  }
  .hero-home .lead {
    font-size: clamp(14px, 2.1vh, 16px);
    line-height: 1.5;
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-welcome {
    --hero-welcome-accent: 52px;
    --hw-frame-overshoot: 26px;
    --hw-accent-out: calc(var(--hero-welcome-accent) / 2);
    padding: 40px 26px 44px;
    text-align: center;
    /* Abstand zum Viewport-Rand links (inkl. grüner Box) und rechts */
    margin-top: calc(var(--hw-accent-out) + 6px);
    margin-left: calc(var(--hw-accent-out) + 14px);
    margin-right: 18px;
    margin-bottom: 8px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    align-self: stretch;
  }
  .hero-col {
    min-height: 0;
    margin-top: 0;
  }
  .hero-col + .hero-col {
    margin-top: clamp(24px, 4vh, 40px);
  }
  .hero-col img {
    height: clamp(56px, 8vh, 88px);
    margin: 0 auto 10px;
  }
  .hero-col .logo-e {
    width: clamp(64px, 9vh, 96px);
    height: auto;
    padding: 4px;
    border-width: 2px;
  }
  .hero-col h2 {
    font-size: clamp(20px, 3vh, 26px);
    margin-bottom: 4px;
    padding-bottom: 4px;
    max-width: none;
  }
  .hero-col p {
    display: none;
  }
  .hero-col .btn-pill {
    margin-top: 0;
  }
  .logo-link img {
    height: 96px;
    max-width: 200px;
  }
  .site-header { height: 100px; }
  :root { --header-h: 100px; }
  .btn-pill { padding: 16px 28px; font-size: 15px; }
  .hero-col .btn-pill {
    padding: clamp(11px, 1.6vh, 14px) 24px;
    font-size: clamp(13px, 1.8vh, 15px);
  }
  .partner-marquee-group { gap: 32px; padding-right: 32px; }
  .partner-marquee-group img { width: 110px; height: 82px; }
  .footer-e-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .footer-e-legal-links { justify-content: center; }
  .site-footer--e .footer-e-inner { padding: 40px 0 36px; }
  .about-grid > div:first-child,
  .icon-stack {
    text-align: center;
  }
  .about-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-home h2,
  .about-home p {
    text-align: center;
  }
  .stat-row { justify-content: center; }
}
