/* ==========================================================================
   T2T – Zusatz-Stylesheet nur für die Startseite (index.html, früher index-v2.html).
   Bild-Hero, Parallax-Panels, Video-Band.
   Nutzt die Tokens aus style.css.
   ========================================================================== */

/* main ist hier volle Breite; Text sitzt in .v2-container */
.v2-main {
  max-width: none;
  padding: 0;
}

.v2-container {
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.v2-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Bildebene, die beim Scrollen verschoben wird: oben und unten 15 % Reserve */
.v2-layer {
  position: absolute;
  left: 0;
  top: -15%;
  z-index: -2;
  display: block;
  width: 100%;
  max-width: none;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.hero-video.v2-hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
}

.v2-hero .hero-video-text {
  will-change: transform;
}

.v2-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #ffffff;
}

.v2-scroll-hint svg {
  width: 22px;
  height: 22px;
}

.v2-scroll-hint:focus-visible {
  outline-color: #ffffff;
}

.v2-intro {
  max-width: calc(52rem + 2 * var(--gutter));
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  text-align: center;
}

.v2-intro h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
}

.v2-intro p:last-child {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-text-soft);
}

/* Vollbild-Panels mit Bild im Hintergrund */
.v2-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* niedriger auf dem Handy: schmale, hohe Felder schneiden ein Querformat-Foto sonst stark zu und wirken dadurch zu nah/zu gross */
  min-height: 60vh;
  min-height: 60svh;
  padding: var(--section-space) max(var(--gutter), calc((100% - var(--max-width)) / 2));
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

@media (min-width: 768px) {
  .v2-panel {
    min-height: 85vh;
    min-height: 85svh;
  }
}

/* Textblock zwischen den Angebots-Panels: sorgt für Abstand und erzählt mehr zum Angebot */
.v2-between {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.v2-points {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-points li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-accent);
}

.v2-points h3 {
  margin: 0 0 0.5rem;
}

.v2-points p {
  margin: 0;
  color: var(--color-text-soft);
}

.v2-between-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

@media (min-width: 768px) {
  .v2-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.v2-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 70%);
}

.v2-panel-right {
  justify-content: flex-end;
}

.v2-panel-right::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 70%);
}

.v2-panel-text {
  max-width: 32rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.v2-panel h2,
.v2-video h2 {
  color: #ffffff;
}

.v2-panel p,
.v2-panel .v2-kicker,
.v2-video .v2-kicker {
  color: rgba(255, 255, 255, 0.85);
}

.v2-panel p:last-child {
  margin-bottom: 0;
}

.v2-panel .button,
.v2-video .button {
  background: #ffffff;
  color: #0c0c0e;
}

.v2-panel :focus-visible {
  outline-color: #ffffff;
}

/* Band mit dem Video und den vier Service-Schritten */
.v2-video {
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.v2-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
}

.v2-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.v2-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.v2-steps img {
  width: 56px;
  height: 56px;
  filter: invert(1);
}

@media (min-width: 768px) {
  .v2-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Abschluss: schlichter Textblock mit zwei Knöpfen */
.v2-cta {
  max-width: calc(40rem + 2 * var(--gutter));
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  text-align: center;
}

.v2-cta p {
  color: var(--color-text-soft);
}

.v2-cta p:last-child {
  margin-bottom: 0;
}

.button-ghost {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border);
}


@media (prefers-reduced-motion: no-preference) {
  .v2-scroll-hint {
    animation: v2-bounce 2.4s ease-in-out infinite;
  }

  @supports (animation-timeline: view()) {
    .v2-panel-text,
    .v2-steps li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes v2-bounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

@media print {
  .v2-layer,
  .v2-scroll-hint {
    display: none !important;
  }

  .v2-panel,
  .v2-video {
    min-height: 0;
    color: #000000;
    background: none;
  }

  .v2-panel h2,
  .v2-video h2 {
    color: #000000;
  }
}
