/* =========================================================
   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:      #3d599e;
  --color-primary-dark: #31477e;
  --color-accent:       #fcdb00;
  --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(61, 89, 158, 0.18);

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

/* --- 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(61,89,158,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: 110px;
}
.site-header .container {
  height: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  height: 100px;
  width: auto;
  aspect-ratio: 540 / 126;
  flex-shrink: 0;
  transition: height 0.4s ease;
}
.nav-toggle { flex-shrink: 0; }
.site-header.scrolled .site-logo { height: 80px; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 12px; }
.nav-link {
  padding: 8px 18px;
  font-size: 0.95rem;
  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(61, 89, 158, 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);
}

/* Dropdown nav */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-left: -6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.nav-caret-btn:hover { background: rgba(61, 89, 158, 0.10); color: var(--color-primary); }
.nav-caret-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}
.nav-item.open .nav-caret-btn svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 998;
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
/* Desktop: open on hover/keyboard-focus, no click needed — the caret icon is mobile-only */
@media (min-width: 769px) {
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  }
}
.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-link:hover { background: rgba(61, 89, 158, 0.10); color: var(--color-primary); }

/* 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-actions  { opacity: 1; transform: none; transition-delay: 0.55s; }

.hero-content { max-width: 700px; }
.hero-eyebrow {
  display: 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;
  overflow-wrap: anywhere;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 28px;
}
.hero-title span { color: var(--color-accent); }
.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(61,89,158,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(61,89,158,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(61,89,158,0.15);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}
.bld-house {
  fill: rgba(252,219,0,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(61,89,158,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: 9/16;
  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],
.gallery-item[data-video] { cursor: pointer; }
.gallery-item[data-reel]::before,
.gallery-item[data-video]::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,43,53,0.45) 0%, transparent 60%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius-md);
}
.gallery-item[data-reel]:hover::before,
.gallery-item[data-video]:hover::before { opacity: 1; }

/* Play button overlay for self-hosted video items */
.gallery-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.gallery-item[data-video]:hover .gallery-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gallery-play-icon svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }

/* Title badge overlaid at the top of each reel thumbnail */
.gallery-title-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  display:block;
  text-align: center;
  z-index: 3;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* =========================================================
   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,
.lightbox-media video {
  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(61,89,158,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(61,89,158,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(61,89,158,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(61,89,158,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(61,89,158,0.08), 0 0 0 36px rgba(61,89,158,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(61,89,158,0.12); }
.energy-pill-icon.backup { background: rgba(252,219,0,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(61,89,158,0.12); }
.energy-pill.visible .energy-pill-icon.backup .ep-fill { fill: rgba(252,219,0,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(2, 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; }

/* Light-background variant — for use on white/light section-pad sections (not the dark info-section) */
.contact-callout--light {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.contact-callout--light p { color: var(--color-text-light); }
.contact-callout--light .contact-detail { color: var(--color-dark); }
.contact-callout--light .contact-detail svg { stroke: var(--color-primary); }

/* =========================================================
   MAP PAIR
   ========================================================= */
.map-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.map-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.map-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.map-figure figcaption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 8px 0 12px;
  letter-spacing: 0.04em;
}

/* =========================================================
   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: 48px; width: auto; filter: brightness(0) invert(1); opacity: 1; }
.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; }
  .site-logo { display: block; width: 350px; height: auto; }
}

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

  .site-header { overflow: visible; }
  .site-header.scrolled { height: 76px; }
  .site-logo { display: block; width: 250px; height: auto; }
  .site-header.scrolled .site-logo { width: 220px; }

  .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; }

  /* Dropdown nav becomes an inline accordion on mobile */
  .nav-item {
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-item:last-child { border-bottom: none; }
  .nav-item .nav-link { width: auto; flex: 1; border-bottom: none; }
  .nav-caret-btn { display: inline-flex; margin-left: auto; width: 44px; height: 44px; }
  .nav-caret-btn svg { width: 16px; height: 16px; }
  .nav-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-item.open .nav-dropdown { max-height: 300px; padding-bottom: 8px; }
  .nav-dropdown-link {
    padding: 12px;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
  }
  .nav-dropdown-link:hover { background: none; color: var(--color-primary); border-left-color: var(--color-primary); }

  .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; }
  .map-pair         { grid-template-columns: 1fr; }
  .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: 80px; }

  .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; }
}

/* =====================================================
   KOLLER QUOTE SECTION
   ===================================================== */
.koller-section {
  background: #f8f6f1;
}
.koller-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: center;
}
.koller-photo {
  text-align: center;
}
.person-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d599e, #31477e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.person-avatar svg {
  width: 72px;
  height: 72px;
  stroke: rgba(255,255,255,0.9);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.person-avatar--sm {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.person-avatar--sm svg {
  width: 34px;
  height: 34px;
}
.person-name {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.person-title {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.4;
}
.quote-mark {
  display: block;
  width: 44px;
  fill: var(--color-primary);
  opacity: 0.2;
  margin-bottom: 16px;
}
.koller-quote blockquote p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--color-dark);
  margin: 0;
}
.koller-quote blockquote::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 24px;
}

/* =====================================================
   WERTSCHÖPFUNG IN DER REGION
   ===================================================== */
.wertschoepfung-section {
  background: linear-gradient(135deg, #31477e 0%, #25355f 100%);
}
.wertschoepfung-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}
.wertschoepfung-left .section-title--light {
  margin-top: 8px;
}
.region-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.region-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.region-pill-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.region-pill-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bürgermeister card */
.bm-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 32px 28px;
}
.bm-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.bm-quote-mark {
  fill: var(--color-accent);
  opacity: 0.45;
  margin-bottom: 12px;
}
.bm-blockquote p {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin: 0;
}

/* =====================================================
   RESPONSIVE – new sections
   ===================================================== */
@media (max-width: 900px) {
  .koller-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .koller-photo { order: -1; }
  .quote-mark   { margin: 0 auto 16px; }

  .wertschoepfung-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .person-avatar { width: 120px; height: 120px; }
  .bm-card { padding: 24px 18px; }
}

/* =====================================================
   PAGE HERO – compact banner for subpages
   ===================================================== */
.page-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}
.page-hero--large { min-height: calc(100vh - var(--header-h)); }
@media (max-width: 768px) {
  .page-hero:not(.page-hero--large) { min-height: 200px; }
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,43,53,0.90) 0%, rgba(61,89,158,0.3) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: 48px;
}
.page-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}
.page-hero-sub {
  margin-top: 10px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}

/* =====================================================
   DOWNLOAD LIST – PDFs / Formulare
   ===================================================== */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin-top: 20px;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.download-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.download-item-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(61, 89, 158, 0.10);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.download-item-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.download-item-text { flex: 1; min-width: 0; }
.download-item-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-dark);
}
.download-item-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 2px;
}
.download-item-action {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(61, 89, 158, 0.10);
  transition: background var(--transition), color var(--transition);
}
.download-item-action svg { width: 16px; height: 16px; stroke: currentColor; }
.download-item:hover .download-item-action {
  background: var(--color-primary);
  color: var(--color-white);
}

/* =====================================================
   LEGAL SECTION – Impressum / Datenschutz
   ===================================================== */
.legal-section { background: var(--color-white); }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}
.legal-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 14px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 20px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.75;
}
.legal-content li { margin-bottom: 6px; }
.legal-content li h4 { margin-top: 16px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--color-primary-dark); }
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--color-light);
  border-radius: var(--radius-md);
}
.legal-toc a { font-size: 0.82rem; font-weight: 600; }
