/* ============================================================
   Service-Unterseiten – Scroll-Effekt & Layout-Ergänzungen
   (wird zusätzlich zu style.css geladen)
   ============================================================ */

/* Breadcrumb unter der Nav */
.crumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem clamp(1.2rem, 5vw, 4rem) 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.crumb a { color: var(--gruen); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--gruen-hell); }
.crumb span { opacity: 0.6; }

/* ---------- SCROLL-SCRUB HERO ---------- */
.scrub {
  position: relative;
  height: 300vh;            /* Scroll-Strecke; per JS bei reduced-motion auf 100svh */
  background: var(--gruen-dunkel);
}
.scrub--static { height: auto; }
.scrub__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--gruen-dunkel);
}
.scrub--static .scrub__sticky { position: relative; height: 92svh; }
.scrub__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scrub__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,28,17,.65) 0%, rgba(10,28,17,.10) 32%, rgba(10,28,17,.55) 72%, rgba(14,36,23,.92) 100%);
  pointer-events: none;
}
.scrub__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(5.5rem, 9vw, 7rem) clamp(1.4rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  color: var(--weiss);
}
.scrub__top { max-width: 720px; }
.scrub__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 0.8rem;
}
.scrub__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
  text-shadow: 0 6px 40px rgba(0,0,0,.4);
}
.scrub__title em { font-style: normal; color: var(--lime); }
.scrub__bottom { max-width: 640px; }
.scrub__beats {
  position: relative;
  min-height: 4.2em;
  margin-bottom: 1.4rem;
}
.scrub__beat {
  position: absolute;
  left: 0; bottom: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.scrub__beat.is-active { opacity: 1; transform: translateY(0); }
.scrub__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.scrub__hint {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.scrub__hint::before {
  content: ""; width: 30px; height: 1px; background: var(--lime);
  animation: hintpulse 1.8s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100%{opacity:.3;} 50%{opacity:1;} }

/* ---------- VIDEO-HINTERGRUND-HERO (läuft im Hintergrund) ---------- */
.vhero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--gruen-dunkel);
}
.vhero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.vhero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,28,17,.50) 0%, rgba(10,28,17,.12) 32%, rgba(10,28,17,.55) 72%, rgba(14,36,23,.92) 100%);
  pointer-events: none;
}
.vhero__content {
  position: relative;
  z-index: 2;
  color: var(--weiss);
  max-width: 800px;
  padding: clamp(5.5rem, 9vw, 7rem) clamp(1.4rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.vhero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 0.9rem;
}
.vhero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  line-height: 1.07;
  margin-bottom: 1.1rem;
  text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.vhero__title em { font-style: normal; color: var(--lime); }
.vhero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 1.8rem;
  max-width: 620px;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.vhero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.vhero__hint {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.vhero__hint::before {
  content: ""; width: 28px; height: 1px; background: var(--lime);
  animation: hintpulse 1.8s ease-in-out infinite;
}
/* Scroll-Pfeil statt Wort "Scrollen" */
.vhero__scrolldown {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); font-size: 1.15rem; font-weight: 700;
  animation: scrolldip 1.9s ease-in-out infinite;
  user-select: none;
}
@keyframes scrolldip { 0%,100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes hintpulse { 0%,100%{opacity:.3;} 50%{opacity:1;} }

/* ---------- DURCHLAUFENDER VIDEO-HINTERGRUND (Inhalt scrollt normal darüber) ---------- */
.scrollvid { position: relative; background: var(--gruen-dunkel); }
.scrollvid__bg {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
}
.scrollvid__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scrollvid__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,20,12,.45) 0%, rgba(8,20,12,.30) 45%, rgba(8,20,12,.60) 100%);
  pointer-events: none;
}
.scrollvid__content {
  position: relative;
  z-index: 1;
  margin-top: -100svh;          /* Inhalt über den klebenden Hintergrund ziehen */
}
.scrollvid__panel {
  min-height: 62svh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.4rem, 6vw, 6rem);
}
.scrollvid__panel--right { justify-content: flex-end; text-align: right; }
.scrollvid__card {
  max-width: 480px;
  color: var(--weiss);
}
.scrollvid__card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.scrollvid__card h2 em { font-style: normal; color: var(--lime); }
.scrollvid__card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.scrollvid__card p {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.scrollvid__panel--right .scrollvid__card { margin-left: auto; }
@media (max-width: 640px) {
  .scrollvid__panel--right { justify-content: flex-start; text-align: left; }
  .scrollvid__panel--right .scrollvid__card { margin-left: 0; }
}

/* ---------- BILD-HERO (Ken-Burns-Zoom, für Seiten ohne Video) ---------- */
.vhero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
@media (prefers-reduced-motion: reduce) { .vhero__img { animation: none; } }

/* ---------- BAUPHASEN (Story in 3 Schritten, echte Fotos) ---------- */
.phasen { background: linear-gradient(160deg, var(--gruen-dunkel), #15331f 70%); }
.phasen .section__title { color: var(--weiss); }
.phasen__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.phase {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.phase__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.phase__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.phase:hover .phase__img img { transform: scale(1.05); }
.phase__nr {
  position: absolute; top: .9rem; left: .9rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gruen-hell); color: var(--weiss);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.phase__body { padding: 1.3rem 1.4rem 1.5rem; color: var(--weiss); }
.phase__body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.phase__body p { opacity: .85; font-size: .95rem; }

/* ---------- INLINE-VIDEO-SEKTION (eigenes Video + Text) ---------- */
.svc-video { background: var(--gruen-dunkel); color: var(--weiss); }
.svc-video--flip { background: #16402a; }
.svc-video--flip .svc-video__media { order: 2; }
@media (max-width: 820px) { .svc-video--flip .svc-video__media { order: 0; } }

/* ---------- SEITENKOPF (Referenzen / Galerie) ---------- */
.page-head {
  background: linear-gradient(150deg, var(--gruen-dunkel) 0%, #16402a 100%);
  color: var(--weiss);
  padding: clamp(7rem, 14vw, 9.5rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.page-head h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.8rem; }
.page-head h1 em { font-style: normal; color: var(--lime); }
.page-head p { max-width: 640px; margin: 0 auto; opacity: .88; font-size: 1.08rem; }
.gal-kat { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; }
.gal-kat .section__head { margin-bottom: 1.6rem; }
.gal-kat:last-of-type { padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.svc-video__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.svc-video__media video,
.svc-video__media img {
  width: 100%; max-height: 560px; object-fit: cover; display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(168,224,99,.25);
}
.svc-video__text h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0.4rem 0 0.9rem;
}
.svc-video__text p { opacity: 0.9; font-size: 1.05rem; line-height: 1.6; }
@media (max-width: 820px) {
  .svc-video__grid { grid-template-columns: 1fr; }
  .svc-video__media video { max-height: 420px; }
}

/* ---------- Service-Intro ---------- */
.svc-intro { background: var(--weiss); }
.svc-intro__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,5vw,4rem);
  align-items: center;
}
.svc-intro__text h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); color: var(--gruen-dunkel); margin-bottom: 1rem; }
.svc-intro__text p { color: var(--text-soft); font-size: 1.06rem; margin-bottom: 1rem; }
.svc-intro__text strong { color: var(--gruen-dunkel); }
.svc-intro__card {
  background: var(--creme); border-radius: var(--radius); padding: 1.8rem;
  border-left: 5px solid var(--gruen-hell);
}
.svc-intro__card h3 { color: var(--gruen-dunkel); margin-bottom: .8rem; font-size: 1.15rem; }
.svc-intro__card li { list-style: none; padding: .4rem 0 .4rem 1.7rem; position: relative; color: var(--text); }
.svc-intro__card li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen-hell); font-weight: 800; }

/* Leistungs-Details als Checkliste */
.svc-points { background: var(--creme); }
.svc-points__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.4rem;
}
.svc-point {
  background: var(--weiss); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: 0 6px 22px rgba(14,36,23,.07);
}
.svc-point__ic { font-size: 1.7rem; margin-bottom: .6rem; }
.svc-point h3 { color: var(--gruen-dunkel); font-size: 1.1rem; margin-bottom: .4rem; }
.svc-point p { color: var(--text-soft); font-size: .95rem; }

/* Galerie auf Service-Seite (kompaktes Raster) */
.svc-gallery { background: var(--weiss); }
.svc-gallery__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem;
}
.svc-gallery__grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(14,36,23,.1); aspect-ratio: 4/3;
}
.svc-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-gallery__grid figure:hover img { transform: scale(1.07); }

@media (max-width: 820px) {
  .svc-intro__grid { grid-template-columns: 1fr; }
  .scrub__overlay { justify-content: flex-end; gap: 2rem; }
  .scrub__top { position: absolute; top: clamp(5rem,16vw,7rem); left: clamp(1.4rem,5vw,4.5rem); right: 1.4rem; }
}
