body.home {
  background: #0f141b;
  color: #f4f6f8;
}

body.home .banner,
body.home .topbar {
  background: #0b1016;
  color: rgba(244, 246, 248, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.home .topbar-certs a,
body.home .topbar a {
  color: rgba(244, 246, 248, 0.78);
}

body.home p {
  color: rgba(244, 246, 248, 0.78);
}

body.home .seals {
  background: #10161e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.home footer {
  background: #0b1016;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(244, 246, 248, 0.55);
}

body.home .footer-grid {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.home .footer-grid h3 {
  color: #fff;
}

body.home .footer-grid a,
body.home .foot a {
  color: rgba(244, 246, 248, 0.55);
}

body.home .footer-grid a:hover,
body.home .foot a:hover {
  color: #fff;
}

body.home .credit {
  color: rgba(244, 246, 248, 0.42);
}

.home-hero {
  position: relative;
  min-height: 620px;
  height: calc(100svh - 148px);
  max-height: 860px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #121820 url("../img/web/trasse.jpg") center / cover no-repeat;
}

.home-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.25s ease-in-out;
}

.home-hero-media video.is-on {
  opacity: 1;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.78) 0%, rgba(10, 14, 20, 0.38) 46%, rgba(10, 14, 20, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.18) 0%, transparent 38%, rgba(10, 14, 20, 0.72) 100%);
}

.home-hero .wrap {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 3.4rem;
}

.home-hero .kicker {
  color: #ff6b73;
}

.home-hero h1 {
  color: #fff;
  max-width: 13ch;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  letter-spacing: -0.03em;
}

.home-hero .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
}

.home-hero .chips {
  margin: 1.2rem 0 1.6rem;
}

.home-hero .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.home-hero .chip:hover {
  border-color: rgba(230, 4, 16, 0.7);
  color: #fff;
}

.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff !important;
}

.btn-ghost-light:hover {
  background: #fff;
  color: #121820 !important;
  border-color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.home-meta strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.12rem;
}

.home-section {
  padding: 4.4rem 0;
}

.home-light {
  background: #e6ebf1;
  color: var(--text);
}

.home-light p {
  color: var(--body);
}

.home-light h2,
.home-light h3 {
  color: var(--text);
}

.home-dark {
  background: #121820;
}

.home-dark h2,
.home-dark h3 {
  color: #fff;
}

.home-dark .muted {
  color: rgba(244, 246, 248, 0.62);
}

.home-section .section-head h2 {
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.home-light .muted {
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: minmax(220px, 28vh) minmax(220px, 28vh);
  gap: 0.8rem;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  background: #1a222c;
  color: #fff;
  isolation: isolate;
}

.shot:first-child {
  grid-row: span 2;
  min-height: 100%;
}

.shot:first-child video,
.shot:first-child img {
  object-position: center 82%;
}

.shot video,
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.shot:hover video,
.shot:hover img {
  transform: scale(1.07);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 14, 20, 0.82) 100%);
}

.shot-copy {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 2;
}

.shot-copy span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8a90;
  margin-bottom: 0.28rem;
}

.shot-copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-fact {
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.home-fact span {
  display: block;
  color: #ff6b73;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.home-fact strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.home-fact p {
  margin: 0;
  font-size: 0.92rem;
}

.home-work .card {
  background: #fff;
}

.home-work .card p {
  color: var(--body);
}

.home-cta {
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.28), rgba(10, 14, 20, 0.72)),
    url("../img/web/kabel.jpg") center 45% / cover no-repeat;
  color: #fff;
}

.home-cta h2,
.home-cta p {
  color: #fff;
}

.home-cta .muted {
  color: rgba(255, 255, 255, 0.78);
}

body.home .cta h2 {
  color: #fff;
}

.site-clips {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
}

.site-clip {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(18, 24, 32, 0.12);
}

.site-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #121820;
}

.site-clip figcaption {
  flex: 1;
  padding: 0.95rem 1.05rem 1.1rem;
  background: #fff;
}

.site-clip figcaption span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.site-clip figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.site-clip figcaption p {
  margin: 0;
  color: var(--body);
  font-size: 0.92rem;
}

.site-clip-wide {
  grid-column: 1 / -1;
}

body.baustellen {
  background: var(--bg);
}

.pano-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #121820;
  border: 1px solid rgba(18, 24, 32, 0.12);
}

.pano-view {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 380px;
  overflow: hidden;
}

.pano-caption {
  padding: 0.95rem 1.05rem 1.1rem;
  background: #fff;
}

.pano-caption span {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pano-caption strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.pano-caption p {
  margin: 0;
  color: var(--body);
  font-size: 0.92rem;
}

.plan-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.4rem;
  align-items: center;
}

.plan-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #121820;
  isolation: isolate;
}

.plan-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plan-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-gf {
  stroke: #3ec6ff;
  stroke-width: 3.2;
  stroke-dasharray: 16 12;
  animation: plan-flow 1.5s linear infinite;
}

.plan-strom {
  stroke: #e24b3c;
  stroke-width: 3.2;
  stroke-dasharray: 16 12;
  animation: plan-flow 1.35s linear infinite;
}

.plan-gas {
  stroke: #e8b84a;
  stroke-width: 3.6;
  stroke-dasharray: 18 11;
  animation: plan-flow 1.7s linear infinite;
}

.plan-pulse {
  filter: drop-shadow(0 0 4px currentColor);
}

@keyframes plan-flow {
  to {
    stroke-dashoffset: -56;
  }
}

.plan-ha {
  stroke: #f4f6f8;
  stroke-width: 1.8;
}

.plan-node {
  fill: #fff;
  stroke: #121820;
  stroke-width: 1.2;
}

.plan-copy {
  background: #fff;
  border: 1px solid rgba(18, 24, 32, 0.14);
  border-radius: 18px;
  padding: 1.3rem 1.35rem 1.4rem;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.1);
}

.plan-copy h3 {
  margin-top: 0.2rem;
}

.plan-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.plan-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0;
  color: var(--body);
  font-size: 0.92rem;
}

.plan-legend i {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  display: block;
}

.plan-legend .lg-gf { background: #3ec6ff; }
.plan-legend .lg-strom { background: #e24b3c; }
.plan-legend .lg-gas { background: #e8b84a; }
.plan-legend .lg-ha { background: #8a93a0; height: 2px; width: 14px; }

body.home .plan-copy p {
  color: var(--body);
}

body.home .plan-copy h3 {
  color: var(--text);
}

@media (max-width: 900px) {
  .home-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .home-hero .wrap {
    padding: 3.2rem 0 2.4rem;
  }

  .shots,
  .home-facts,
  .site-clips,
  .plan-layout {
    grid-template-columns: 1fr;
  }

  .shots {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    gap: 1.25rem;
  }

  .shot,
  .shot:first-child {
    grid-row: auto;
    min-height: 0;
    height: auto;
  }

  .shot video,
  .shot img {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .shot:first-child video,
  .shot:first-child img {
    object-position: center;
  }

  .pano-view {
    height: 52vh;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media video,
  .shot video {
    display: none;
  }

  .shot:hover video,
  .shot:hover img {
    transform: none;
  }

  .plan-gf,
  .plan-strom,
  .plan-gas {
    animation: none;
  }

  .plan-pulse {
    display: none;
  }
}
