/* =========================================================
   SWO Nahwärme Landing Page – Stylesheet
   ========================================================= */

/* --- Fonts ------------------------------------------------ */
@font-face {
  font-family: 'OpenSans';
  src: url('../webfonts/OpenSans/OpenSans-Light.eot');
  src: url('../webfonts/OpenSans/OpenSans-Light.woff') format('woff'),
       url('../webfonts/OpenSans/OpenSans-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../webfonts/OpenSans/OpenSans-Regular.eot');
  src: url('../webfonts/OpenSans/OpenSans-Regular.woff') format('woff'),
       url('../webfonts/OpenSans/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../webfonts/OpenSans/OpenSans-Medium.eot');
  src: url('../webfonts/OpenSans/OpenSans-Medium.woff') format('woff'),
       url('../webfonts/OpenSans/OpenSans-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../webfonts/OpenSans/OpenSans-SemiBold.eot');
  src: url('../webfonts/OpenSans/OpenSans-SemiBold.woff') format('woff'),
       url('../webfonts/OpenSans/OpenSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../webfonts/OpenSans/OpenSans-Bold.eot');
  src: url('../webfonts/OpenSans/OpenSans-Bold.woff') format('woff'),
       url('../webfonts/OpenSans/OpenSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}

/* --- Design Tokens ---------------------------------------- */
:root {
  --color-primary:      #007ca3;
  --color-primary-dark: #005f80;
  --color-accent:       #e25f0b;
  --color-dark:         #1c2b35;
  --color-dark-mid:     #243445;
  --color-light:        #f4f8fa;
  --color-white:        #ffffff;
  --color-text:         #333333;
  --color-text-light:   #666666;
  --color-border:       #e0e8ed;

  --font-base: 'OpenSans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card:       0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 124, 163, 0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --header-h: 170px;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section-pad    { padding-block: 80px; }
.section-pad-sm { padding-block: 56px; }

/* --- Typography ------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.section-title--light   { color: var(--color-white); }
.section-title--primary { color: var(--color-primary); }
.section-title--accent  { color: var(--color-accent); }
.section-sub {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin-top: 16px;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,124,163,0.3); }
.btn-outline  { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn-white    { background: var(--color-white); color: var(--color-primary); }
.btn-white:hover { background: var(--color-light); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-h);
  transition: box-shadow var(--transition), height 0.4s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  height: 130px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  height: 140px;
  width: auto;
  transition: height 0.4s ease;
}
.site-header.scrolled .site-logo { height: 110px; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after { display: none; }
.nav-link:visited { color: var(--color-text); }
.nav-link:hover {
  background: rgba(0, 124, 163, 0.10);
  color: var(--color-primary);
}
.nav-link.active {
  background: var(--color-primary);
  color: var(--color-white);
}
.nav-link.active:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO – SLIDER
   ========================================================= */
.hero {
  padding-top: var(--header-h);
  position: relative;
}
.hero-slider {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.hero-slide {
  grid-area: 1/1;
  min-height: calc(100vh - var(--header-h));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  position: relative;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 60px;
}

/* Hero content text animations */
.hero-slide .hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active .hero-eyebrow  { opacity: 1; transform: none; transition-delay: 0.25s; }
.hero-slide.active .hero-title    { opacity: 1; transform: none; transition-delay: 0.4s; }
.hero-slide.active .hero-subtitle { opacity: 1; transform: none; transition-delay: 0.55s; }
.hero-slide.active .hero-actions  { opacity: 1; transform: none; transition-delay: 0.7s; }

.hero-content { max-width: 700px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title span { color: var(--color-accent); }
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--color-white);
  cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}
.slider-btn:hover {
  background: rgba(0,124,163,0.75);
  transform: translateY(-50%) scale(1.08);
}
.slider-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.slider-prev { left: 28px; }
.slider-next { right: 28px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slider-dot.active {
  background: var(--color-white);
  transform: scale(1.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 10;
}
.scroll-indicator svg { width: 22px; height: 22px; stroke: currentColor; }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   STRIP
   ========================================================= */
.strip-section {
  background: var(--color-dark);
  padding-block: 48px;
  text-align: center;
}
.strip-title {
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.strip-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--color-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}
.strip-tags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.strip-tag {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 4px 16px;
  position: relative;
}
.strip-tag:not(:last-child)::after {
  content: '|';
  position: absolute; right: 0;
  color: var(--color-primary); opacity: 0.6;
}

/* =========================================================
   ICON NAV – SVG ICONS
   ========================================================= */
.icon-nav {
  background: var(--color-white);
  padding-block: 60px;
  border-bottom: 1px solid var(--color-border);
}
.icon-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.icon-card:hover {
  background: var(--color-light);
  border-color: var(--color-border);
  transform: translateY(-4px);
}
.icon-card.active {
  background: rgba(0,124,163,0.06);
  border-color: var(--color-primary);
}

/* SVG icon styles */
.icon-svg {
  width: 80px; height: 80px;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.icon-card:hover .icon-svg { transform: rotate(8deg) scale(1.08); }

.icon-circle, .icon-path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s ease, stroke 0.3s;
}

/* Draw when icon-nav enters view */
.icon-nav.in-view .icon-circle { stroke-dashoffset: 0; transition-delay: 0.05s; }
.icon-nav.in-view .icon-path   { stroke-dashoffset: 0; transition-delay: 0.2s; }
.icon-nav.in-view .icon-card:nth-child(2) .icon-circle { transition-delay: 0.15s; }
.icon-nav.in-view .icon-card:nth-child(2) .icon-path   { transition-delay: 0.3s; }
.icon-nav.in-view .icon-card:nth-child(3) .icon-circle { transition-delay: 0.25s; }
.icon-nav.in-view .icon-card:nth-child(3) .icon-path   { transition-delay: 0.4s; }
.icon-nav.in-view .icon-card:nth-child(4) .icon-circle { transition-delay: 0.35s; }
.icon-nav.in-view .icon-card:nth-child(4) .icon-path   { transition-delay: 0.5s; }

/* Also draw on hover & active */
.icon-card:hover .icon-circle,
.icon-card:hover .icon-path,
.icon-card.active .icon-circle,
.icon-card.active .icon-path  { stroke-dashoffset: 0; }

.icon-label {
  font-size: 0.95rem; font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}
.icon-card:hover .icon-label,
.icon-card.active .icon-label { color: var(--color-primary); }

/* =========================================================
   TWO-COLUMN CARDS
   ========================================================= */
.two-col-section { background: var(--color-light); padding-block: 72px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 4px solid var(--color-primary);
}
.info-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.info-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); }
.info-card p { color: var(--color-text-light); font-size: 0.95rem; flex: 1; }
.info-card .phone { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); }

/* =========================================================
   NAHWÄRME EXPLANATION
   ========================================================= */
.nahwaerme-section { background: var(--color-white); padding-block: 88px; }
.nahwaerme-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.nahwaerme-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.nahwaerme-sidebar .section-title { line-height: 1.1; margin-bottom: 24px; }
.accent-bar {
  width: 48px; height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 24px;
}
.nahwaerme-body p { color: var(--color-text); margin-bottom: 20px; line-height: 1.8; }
.nahwaerme-body p:last-child { margin-bottom: 0; }

/* Network SVG diagram */
.network-svg {
  width: 100%;
  max-width: 280px;
  margin-top: 28px;
  overflow: visible;
}
.pipe {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 7 5;
  animation: pipeFlow 2.2s linear infinite;
  fill: none;
}
.pipe:nth-child(2)  { animation-delay: -0.32s; }
.pipe:nth-child(3)  { animation-delay: -0.64s; }
.pipe:nth-child(4)  { animation-delay: -0.96s; }
.pipe:nth-child(5)  { animation-delay: -1.28s; }
.pipe:nth-child(6)  { animation-delay: -1.60s; }
.pipe:nth-child(7)  { animation-delay: -1.92s; }
@keyframes pipeFlow { to { stroke-dashoffset: -24; } }

.bld-main {
  fill: rgba(0,124,163,0.15);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}
.bld-house {
  fill: rgba(226,95,11,0.1);
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.network-label {
  font-family: var(--font-base);
  font-size: 9px;
  fill: rgba(0,124,163,0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section { background: var(--color-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(0,0,0,0.18); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
.gallery-placeholder span {
  color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.06em; text-align: center;
  padding: 8px; pointer-events: none;
  position: relative; z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Instagram reel badge overlay */
.reel-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  display: flex; align-items: center; gap: 5px;
  color: white;
  font-size: 0.72rem; font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.reel-badge svg { width: 14px; height: 14px; stroke: white; flex-shrink: 0; }
.gallery-item:hover .reel-badge { opacity: 1; }

.gallery-item[data-reel] { cursor: pointer; }
.gallery-item[data-reel]::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(225,48,108,0.25) 0%, transparent 60%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius-md);
}
.gallery-item[data-reel]:hover::before { opacity: 1; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(8px);
}
.lightbox-stage {
  position: relative; z-index: 1;
  max-width: min(90vw, 960px);
  width: 100%;
  text-align: center;
}
.lightbox-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 72vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-media img {
  max-width: 100%; max-height: 72vh;
  object-fit: contain; display: block;
}
.lightbox-placeholder {
  width: min(80vw, 800px);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.lightbox-placeholder span {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem; font-weight: 600;
}
.lightbox-caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 16px;
  letter-spacing: 0.03em;
}
.lightbox-close {
  position: fixed; top: 20px; right: 20px; z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 46px; height: 46px;
  cursor: pointer; color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 20px; height: 20px; stroke: currentColor; }
.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 54px; height: 54px;
  cursor: pointer; color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.lightbox-nav:hover {
  background: rgba(0,124,163,0.7);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-nav svg { width: 22px; height: 22px; stroke: currentColor; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =========================================================
   VORTEILE – LIGHT VERSION (default)
   To switch back to dark: replace .vorteile-section background with the
   dark version commented out below, and restore the card/text dark styles.
   ========================================================= */
.vorteile-section {
  background: var(--color-white);
  padding-block: 88px;
}
.vorteile-header { text-align: center; margin-bottom: 56px; }
.vorteile-header .accent-bar { margin-inline: auto; }
.vorteile-header .section-label { color: var(--color-accent); }
.vorteile-header .section-title { color: var(--color-dark); }
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-top-color var(--transition);
}
.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-top-color: var(--color-accent);
}
.benefit-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,124,163,0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background var(--transition);
}
.benefit-card:hover .benefit-icon {
  background: var(--color-primary);
  transform: rotate(-8deg) scale(1.12);
}
.benefit-icon svg {
  width: 28px; height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}
.benefit-card:hover .benefit-icon svg { stroke: var(--color-white); }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 12px; }
.benefit-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.75; }
.kfw-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.kfw-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--color-text);
}
.kfw-item::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/*
   VORTEILE – DARK VERSION (preserved, switch by replacing .vorteile-section above with:
.vorteile-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-mid) 100%);
  padding-block: 88px;
  position: relative;
  overflow: hidden;
}
.vorteile-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 20%, rgba(0,124,163,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.benefit-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.benefit-card:hover { background: rgba(255,255,255,0.08); }
.benefit-icon { background: rgba(0,124,163,0.18); }
.benefit-card h3 { color: var(--color-white); }
.benefit-card p { color: rgba(255,255,255,0.65); }
.kfw-item { color: rgba(255,255,255,0.65); }
*/

/* =========================================================
   WÄRME-ANSCHLUSS
   ========================================================= */
.anschluss-section { background: var(--color-white); padding-block: 88px; }
.anschluss-inner { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: center; }
.anschluss-body p { color: var(--color-text); margin-bottom: 20px; line-height: 1.8; }
.anschluss-visual { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.pipe-diagram {
  width: 100%; max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 18px rgba(0,124,163,0.08), 0 0 0 36px rgba(0,124,163,0.04);
}
.pipe-diagram-inner { text-align: center; color: var(--color-white); padding: 24px; }
.pipe-diagram-inner .pipe-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.house-svg {
  width: 54px; height: 54px; display: block;
}
.hsv-p {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease;
}
.hsv-p2 { transition-delay: 0.3s; }
.hsv-p3 { transition-delay: 0.55s; }
.anschluss-visual.visible .hsv-p { stroke-dashoffset: 0; }
.pipe-diagram-inner span { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* =========================================================
   DIE MISCHUNG
   ========================================================= */
.mischung-section { background: var(--color-light); padding-block: 88px; }
.mischung-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: center; }
.mischung-body p { color: var(--color-text); line-height: 1.8; }
.energy-pills { display: flex; flex-direction: column; gap: 16px; }
.energy-pill {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.energy-pill:hover { transform: translateX(4px); box-shadow: var(--shadow-card-hover); }
.energy-pill-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.energy-pill-icon.wood   { background: rgba(139,90,43,0.12); }
.energy-pill-icon.power  { background: rgba(0,124,163,0.12); }
.energy-pill-icon.backup { background: rgba(226,95,11,0.12); }

/* Energy pill SVG draw animation */
.ep-svg { width: 22px; height: 22px; display: block; overflow: visible; }
.ep-p {
  fill: transparent;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease, fill 0.35s ease 0.65s;
}
.ep-p2 { transition-delay: 0.3s; transition: stroke-dashoffset 0.7s ease 0.3s, fill 0.35s ease 0.95s; }
.ep-p3 { transition-delay: 0.55s; transition: stroke-dashoffset 0.7s ease 0.55s; }

.energy-pill-icon.wood   .ep-p { stroke: #8b5a2b; }
.energy-pill-icon.power  .ep-p { stroke: var(--color-primary); }
.energy-pill-icon.backup .ep-p { stroke: var(--color-accent); }

/* Trigger: parent .energy-pill gets .visible from scroll-reveal */
.energy-pill.visible .ep-p { stroke-dashoffset: 0; }

/* Fill fades in after stroke completes (only .ep-fill shapes) */
.energy-pill.visible .energy-pill-icon.power  .ep-fill { fill: rgba(0,124,163,0.12); }
.energy-pill.visible .energy-pill-icon.backup .ep-fill { fill: rgba(226,95,11,0.12); }
.energy-pill-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--color-dark); }
.energy-pill-text span   { font-size: 0.8rem; color: var(--color-text-light); }

/* =========================================================
   INFO / STATS / PROCESS
   ========================================================= */
.info-section {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding-block: 88px;
  position: relative; overflow: hidden;
}
.info-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 100%, rgba(28,43,53,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.info-header { text-align: center; margin-bottom: 64px; position: relative; }
.info-header .accent-bar { margin-inline: auto; background: rgba(255,255,255,0.5); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; position: relative; }
.stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.stat-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; position: relative; }
.process-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.08em; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 20px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px; top: 40px; bottom: 0px;
  width: 2px;
  background: rgba(255,255,255,0.15);
}
.timeline-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--color-white);
  position: relative; z-index: 1;
}
.timeline-content { padding-bottom: 28px; padding-top: 8px; }
.timeline-content p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.contact-callout {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(4px);
}
.contact-callout p { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 24px; line-height: 1.7; font-style: italic; }
.contact-detail { display: flex; align-items: center; gap: 12px; color: var(--color-white); font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-dark); padding-block: 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: none; }

.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nahwaerme-inner  { grid-template-columns: 1fr; gap: 40px; }
  .nahwaerme-sidebar { position: static; }
  .mischung-inner   { grid-template-columns: 1fr; gap: 40px; }
  .anschluss-inner  { grid-template-columns: 1fr; gap: 40px; }
  .anschluss-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 110px; }

  .site-header { overflow: visible; }
  .site-header.scrolled { height: 85px; }
  .site-logo { display: block; max-width: 180px; height: auto; max-height: 90px; }
  .site-header.scrolled .site-logo { max-height: 70px; }

  .section-pad    { padding-block: 60px; }
  .section-pad-sm { padding-block: 40px; }

  /* Mobile nav overlay */
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 999;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }
  .nav-link {
    padding: 14px 12px;
    font-size: 1.05rem;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    border-left: 3px solid transparent;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover,
  .nav-link.active {
    background: none;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
  }
  .nav-link.active:hover { background: none; }
  .nav-toggle { display: flex; }

  .icon-nav-grid    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .two-col-grid     { grid-template-columns: 1fr; }
  .vorteile-grid    { grid-template-columns: 1fr; }
  .stats-row        { grid-template-columns: 1fr; gap: 16px; }
  .process-grid     { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid     { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .slider-btn { width: 42px; height: 42px; }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .network-svg { max-width: 200px; }
}

@media (max-width: 480px) {
  :root { --header-h: 96px; }
  .site-logo { max-width: 140px; max-height: 72px; }
  .site-header.scrolled .site-logo { max-height: 58px; }
  .site-header.scrolled { height: 76px; }

  .gallery-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-title    { font-size: 2.2rem; }
  .hero-actions  { flex-direction: column; }
  .slider-dots   { bottom: 18px; }
  .strip-tag     { font-size: 0.75rem; padding-inline: 8px; }
}
