/* ==========================================================
   Alster Elektro — Stylesheet
   Corporate Design: Montserrat + Blau/Türkis/Grün-Palette.
   Alle Farben und Abstände stehen hier oben und lassen sich
   an einer Stelle ändern.
   ========================================================== */

:root {
  /* Unternehmensfarben laut Corporate Design */
  --navy: #135293;
  --electric: #3e9ef2;
  --sky: #78caed;
  --teal: #2c99aa;
  --green: #18a86a;

  --white: #ffffff;
  --bg: #f6f9fc;
  --ink: #0e2439;
  --muted: #5a6b7c;
  --line: #e1e9f0;

  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--electric) 55%, var(--sky) 100%);
  --gradient-deep: linear-gradient(140deg, #0d3d70 0%, var(--navy) 55%, #1b6bb0 100%);

  --font: "Montserrat", "Poppins", "Manrope", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(14, 36, 57, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}

.lede { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.claim {
  font-weight: 600;
  color: var(--green);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.4);
  background: var(--gradient);
  color: #fff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(19, 82, 147, .8); }

.btn.outline { background: transparent; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn.outline:hover { border-color: var(--electric); color: var(--electric); }

.btn.green { background: var(--green); box-shadow: 0 12px 24px -14px rgba(24, 168, 106, .9); }
.btn.on-dark { background: #fff; color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

/* ---------- Kopfzeile ---------- */

.topbar { background: var(--gradient-deep); color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; position: relative; }

.brand img { height: 84px; width: auto; }

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--electric); }
nav.main .btn { color: #fff; padding: 11px 22px; font-size: .88rem; }
nav.main .btn:hover { color: #fff; }

.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item.has-dropdown > a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 50;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .88rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--electric); }

.menu-toggle { display: none; }

/* ---------- Abschnitte ---------- */

section { padding-top: clamp(52px, 7vw, 96px); padding-bottom: clamp(52px, 7vw, 96px); }
section.alt { background: var(--bg); }
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 14px; }

/* Schwerpunkte */

.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.focus-card {
  position: relative;
  border-radius: var(--radius);
  padding: 38px 34px 34px;
  color: #fff;
  background: var(--gradient-deep);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.focus-card:nth-child(2) { background: linear-gradient(140deg, #14776a 0%, var(--green) 60%, #4cc48c 100%); }
.focus-card .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.focus-card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.focus-card p { color: rgba(255,255,255,.9); margin-bottom: 18px; }
.focus-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.focus-card li { padding-left: 26px; position: relative; margin-bottom: 7px; font-size: .95rem; color: rgba(255,255,255,.92); }
.focus-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }

/* Leistungen */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3 > article:last-child:nth-child(3n+1) { grid-column: 2; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.card .ico { width: 40px; height: 40px; margin-bottom: 16px; }
.card .ico svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Industrie-Band */

.band { background: var(--gradient-deep); color: #fff; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.band h1, .band h2 { color: #fff; }
.band .eyebrow { color: var(--sky); }
.band p { color: rgba(255,255,255,.86); }
.band .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.band .chips span { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 500; }

/* Ablauf */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--line); }
.step.done { border-top-color: var(--electric); }
.step .num { font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--teal); display: block; margin-bottom: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Projekte / Galerie */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery > figure:last-child:nth-child(3n+1) { grid-column: 2; }
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 280px; object-fit: cover; }
.shot figcaption { padding: 16px 20px 20px; font-size: .92rem; color: var(--muted); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; margin-bottom: 3px; }

/* Referenzen */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quote p { font-size: .98rem; }
.quote cite { font-size: .82rem; color: var(--muted); font-style: normal; font-weight: 600; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 12px; }

/* Kontakt */

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; }
.field { margin-bottom: 15px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 18px 0 22px; }
.consent input { margin-top: 5px; flex: none; }

.infobox { background: var(--gradient-deep); color: #fff; border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.infobox h3 { color: #fff; margin-bottom: 20px; font-size: 1.3rem; }
.infobox a { color: #fff; }
.infobox dl { margin: 0; font-size: .96rem; }
.infobox dt { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-top: 18px; }
.infobox dd { margin: 4px 0 0; }

/* Fußzeile */

footer.site { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: .88rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; }
footer.site img { height: 42px; }
footer.site a { color: var(--navy); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--electric); }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Rechtsseiten */

.legal { max-width: 74ch; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal .note { background: #eaf5fd; border-left: 4px solid var(--electric); border-radius: 8px; padding: 16px 18px; font-size: .93rem; }

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

@media (max-width: 950px) {
  .band .wrap, .contact-grid, .focus { grid-template-columns: 1fr; }
  .grid-3, .steps, .quotes, .gallery { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 22px var(--pad) 26px;
  }
  .nav-item.has-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 4px 0 0 14px;
    margin-top: 10px;
    border-left: 2px solid var(--line);
  }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: .9rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px; cursor: pointer; color: var(--navy);
  }
}

@media (max-width: 620px) {
  .grid-3, .steps, .quotes, .gallery { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .brand img { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================
   Bewegungsebene — Scroll-Reveals, Fortschritt, Ablauf-Sequenz
   Alles rein optional: ohne JavaScript bleibt die Seite lesbar.
   ========================================================== */

/* Fortschrittsbalken am oberen Rand */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--navy), var(--electric), var(--green));
  transition: width .08s linear;
}

/* Elemente erscheinen beim Hereinscrollen */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Bilder in der Projektgalerie */
.shot img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.shot:hover img { transform: scale(1.04); }

/* Zahlen und Chips */
.chips span { transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.chips span:hover { background: rgba(255,255,255,.12); border-color: var(--sky); transform: translateY(-2px); }

/* ---------- Ablauf als Scroll-Sequenz ---------- */

#ablauf.ablauf-scroll { padding-top: 0; padding-bottom: 0; }

.ablauf-track { height: 300vh; position: relative; }

.ablauf-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.ablauf-progress {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 34px;
  overflow: hidden;
}
.ablauf-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--electric));
  transition: width .25s ease;
}

.ablauf-scroll .step {
  border-top-color: var(--line);
  opacity: .32;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease, border-color .45s ease;
}
.ablauf-scroll .step.active {
  opacity: 1;
  transform: none;
  border-top-color: var(--electric);
}
.ablauf-scroll .step.active .num { color: var(--electric); }

/* Auf schmalen Bildschirmen kein Sticky — sonst wird die Seite endlos */
@media (max-width: 950px) {
  .ablauf-track { height: auto; }
  .ablauf-sticky { position: static; min-height: 0; padding: clamp(52px, 7vw, 96px) 0; }
  .ablauf-scroll .step { opacity: 1; transform: none; }
  .ablauf-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Einblenden bleibt, nur die Bewegung entfällt. */
  .reveal { transform: none !important; transition: opacity .6s ease; }
  .ablauf-scroll .step { transform: none !important; transition: opacity .4s ease, border-color .4s ease; }
}

/* ==========================================================
   HERO — scrollgesteuerte Sequenz
   ========================================================== */

.cine {
  background: radial-gradient(120% 90% at 50% 20%, #14497F 0%, #0B2B4D 55%, #071B32 100%);
  color: #fff;
}

.cine-track { height: 620vh; position: relative; }

.cine-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Bildsequenz */
.cine-media { position: absolute; inset: 0; overflow: hidden; }

.cine-shot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #061626;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity .12s linear;
  will-change: opacity, transform;
}
.cine-shot:first-child { opacity: 1; }

/* Dunkler Verlauf, damit die Schrift auf jedem Bild lesbar bleibt */
.cine-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,16,30,.96) 0%, rgba(4,16,30,.86) 38%, rgba(4,16,30,.30) 72%, rgba(4,16,30,.08) 100%),
    linear-gradient(0deg, rgba(4,16,30,.88) 0%, rgba(4,16,30,.05) 45%);
}

.cine-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  pointer-events: none;
}

.cine-line {
  position: absolute;
  bottom: 6vh;
  left: var(--pad);
  right: var(--pad);
  max-width: 620px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s ease, transform .5s ease;
}
.cine-line.on { opacity: 1; transform: none; pointer-events: auto; }

.cine-line .eyebrow { color: var(--sky); }
.cine-line h1 { margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.cine-line h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 14px; color: #fff; }
.cine-line .slogan { font-size: 1.15rem; font-weight: 600; color: #6FD6A4; margin: 0; }
.cine-line .lede-light { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 52ch; margin: 0; }
.cine-line .cta-row { margin-top: 26px; margin-bottom: 0; }

.grad-text-light {
  background: linear-gradient(100deg, #78CAED 0%, #6FD6A4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll-Hinweis */
.cine-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity .4s ease;
}
.cine-hint span {
  width: 1px; height: 26px;
  background: linear-gradient(var(--sky), transparent);
  animation: hintPulse 1.8s ease-in-out infinite;
}
.cine-hint.gone { opacity: 0; }
@keyframes hintPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Vertrauensleiste unter dem Hero */
.trustbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.trustbar .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 42px;
  justify-content: center;
  padding-top: 18px; padding-bottom: 18px;
  font-size: .88rem; color: var(--muted);
}
.trustbar b { color: var(--navy); font-weight: 700; }

@media (max-width: 950px) {
  .cine-track { height: auto; }
  .cine-stage { position: static; height: auto; min-height: 78vh; padding: 44px 0 50px; }
  .cine-media { position: absolute; }
  .cine-shot:first-child { opacity: 1; }
  .cine-veil {
    background:
      linear-gradient(0deg, rgba(4,16,30,.96) 12%, rgba(4,16,30,.72) 55%, rgba(4,16,30,.4) 100%);
  }
  .cine-copy { position: relative; }
  .cine-line {
    position: static;
    opacity: 1;
    transform: none;
    max-width: none;
    margin-bottom: 30px;
    pointer-events: auto;
  }
  .cine-line:not(:first-child) h2 { font-size: 1.3rem; }
  .cine-line:not(:first-child) .eyebrow { margin-bottom: 8px; }
  .cine-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Der Hero bleibt eine Sequenz — nur ohne Zoomfahrt und ohne weiche Übergänge. */
  .cine-shot { transform: none !important; transition: none; }
  .cine-line { transition: none; }
  .cine-hint span { animation: none; }
}


/* ==========================================================
   Feinschliff — Kopfzeile über dem Hero, Korn, Vignette
   ========================================================== */

/* Kopfzeile schwebt transparent über der Bildsequenz und wird
   erst weiß, wenn der Hero durchgescrollt ist. */
header.site.over-hero,
.topbar.over-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
header.site.over-hero nav.main a { color: #fff; }
header.site.over-hero nav.main a:hover { color: var(--sky); }
/* Das Dropdown-Menü hat einen eigenen weißen Hintergrund und darf die
   weiße Schrift der transparenten Kopfzeile nicht übernehmen – sonst
   verschwindet der Text (weiß auf weiß) und es bleibt nur eine leere
   weiße Box sichtbar. */
header.site.over-hero nav.main .dropdown-menu a { color: var(--ink); }
header.site.over-hero nav.main .dropdown-menu a:hover { color: var(--electric); }
header.site.over-hero .menu-toggle { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
header.site.over-hero .brand img {
  filter: drop-shadow(0 1px 3px rgba(255,255,255,.55)) drop-shadow(0 0 10px rgba(255,255,255,.35));
}
.brand img { transition: filter .5s ease; }
.topbar.over-hero { color: rgba(255,255,255,.72); }

header.site, .topbar {
  transition: background .5s ease, border-color .5s ease, color .5s ease;
}

/* Der Hero beginnt hinter der Kopfzeile, damit das Bild randlos wirkt */
.cine { margin-top: -104px; }
.cine-stage { padding-top: 104px; }

/* Filmkorn und Vignette — kaum sichtbar, aber sie nehmen dem Bild
   das Digitale und lassen es wie eine Aufnahme wirken. */
.cine-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

.cine-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 85% at 55% 45%, transparent 40%, rgba(2,10,20,.55) 100%);
}

/* Ruhigere, langsamere Übergänge */
.cine-line {
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1),
              transform 1.1s cubic-bezier(.22,.61,.36,1);
  transform: translateY(34px);
}
.cine-shot { transition: opacity .18s linear; }

@media (max-width: 950px) {
  .cine { margin-top: 0; }
  .cine-stage { padding-top: 44px; }
  .cine-grain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cine-grain { animation: none; }
}


/* ==========================================================
   Die Reise wechselt die Seite
   In den ersten vier Szenen liegt das Motiv rechts, der Text links.
   Ab Szene fünf wandert das Motiv nach links — der Text folgt nach rechts,
   sonst läge er über der Wallbox.
   ========================================================== */

.cine-line.right {
  left: auto;
  right: var(--pad);
  max-width: 560px;
}

/* Der dunkle Verlauf dreht sich mit */
.cine-veil { transition: opacity .6s ease; }

.cine-veil.flip {
  background:
    linear-gradient(270deg, rgba(4,16,30,.94) 0%, rgba(4,16,30,.78) 38%, rgba(4,16,30,.12) 72%, rgba(4,16,30,0) 100%),
    linear-gradient(0deg, rgba(4,16,30,.85) 0%, rgba(4,16,30,0) 45%);
}

@media (max-width: 950px) {
  .cine-line.right { right: auto; max-width: none; }
  .cine-veil.flip {
    background:
      linear-gradient(0deg, rgba(4,16,30,.96) 12%, rgba(4,16,30,.72) 55%, rgba(4,16,30,.4) 100%);
  }
}

/* ==========================================================
   Scrollgesteuertes Hero-Video
   Es ersetzt die Bildfolge, sobald es geladen ist.
   Ohne Video (Handy, langsame Verbindung, "weniger Bewegung")
   bleibt die Bildfolge sichtbar — die Seite funktioniert immer.
   ========================================================== */

.cine-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

body.video-on .cine-video { opacity: 1; }
body.video-on .cine-shot { opacity: 0 !important; }

@media (max-width: 950px) {
  .cine-video { display: none; }
}

/* Handy-Fassung des Hero-Videos: läuft im Loop, hängt nicht am Scrollen */
.cine-video-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
  display: none;
}

@media (max-width: 950px) {
  .cine-video-mobile { display: block; }
  body.mobile-video-on .cine-video-mobile { opacity: 1; }
  body.mobile-video-on .cine-shot { opacity: 0 !important; }
}

/* ---------- WhatsApp Schwebe-Button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  z-index: 60;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 32px -8px rgba(0,0,0,.5); }

@media (max-width: 620px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* WhatsApp-Link in der Hauptnavigation */
nav.main .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1eab52;
}
nav.main .nav-whatsapp:hover { color: #17903f; }
header.site.over-hero nav.main .nav-whatsapp { color: #4be08a; }
header.site.over-hero nav.main .nav-whatsapp:hover { color: #7cf0ac; }

/* ---------- Altbausanierung: Kosten & FAQ (Accordion) ---------- */
.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--electric);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.faq-group-title {
  font-size: 1.15rem;
  margin: 40px 0 16px;
  color: var(--navy);
}
.faq-group-title:first-of-type { margin-top: 30px; }

.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
}
.accordion summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--electric);
  border-bottom: 2px solid var(--electric);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease;
}
.accordion details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}
.accordion-body {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}
.accordion-body p { margin: 0 0 12px; }
.accordion-body b { color: var(--ink); }
.accordion-body .faq-note { font-size: .85rem; font-style: italic; }
.accordion-body .btn { margin-top: 6px; }

.faq-cta {
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
}
.faq-cta p { margin: 0 0 16px; font-weight: 600; color: var(--navy); }

.lp-checklist {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.lp-checklist li {
  padding-left: 26px;
  position: relative;
  font-size: .93rem;
  color: var(--ink);
}
.lp-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--green);
}
@media (max-width: 700px) {
  .lp-checklist { grid-template-columns: 1fr; }
}
