/* ============================================================
   Section: vsl_hero (Video-Sales-Letter-Hero).
   Full-width video/placeholder hero, light background — a reusable version of
   the legacy unsere-zukunft.php hero. Title/kicker sizing matches the other
   modern sections (value-prop.css, next-steps.css): clamp(34px,4vw,52px)/800.
   ============================================================ */

.da-vh {
  background-color: #ffffff;
  padding: 95px 0 100px;
}
.da-vh--tight {
  padding: 40px 0 60px;
}
.da-vh--loose {
  padding: 90px 0 140px;
}

.da-vh__title {
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #124658;
  margin: 0 0 78px;
}
.da-vh__title-line {
  display: block;
}
.da-vh__title-accent {
  color: #fd5b4f;
}
/* Typewriter variant: reserve one line's height so the growing/shrinking
   typed text doesn't shift the video/CTA below it (matches the legacy
   unsere-zukunft.php hero's same fix for its typewriter accent line). */
.da-vh__title-accent.da-hero-headline-end {
  display: block;
  min-height: 1.1em;
}

.da-vh__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  background: #0d2c38;
  margin: 0 0 40px;
}
.da-vh__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.da-vh__video--mobile {
  display: none;
}
@media (max-width: 455px) {
  .da-vh__video--desktop {
    display: none;
  }
  .da-vh__video--mobile {
    display: block;
  }
  .da-vh__video-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
}

.da-vh__placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  margin: 0 0 40px;
  background: radial-gradient(circle at 50% 45%, #143a49 0%, #0d2c38 65%);
}
/* PP-2010: Ohne Video-ID (Platzhalter) mobil dasselbe 1:1-Format wie der
   Player, sonst springt die Seite beim Nachtragen der IDs. */
@media (max-width: 455px) {
  .da-vh__placeholder {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
}

.da-vh__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d2c38 center/cover no-repeat;
  color: #fff;
}

.da-vh__footer {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.da-vh__cta-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 476px;
}
/* Hint row: reuses the shared .da-tip-img (icon + text, front-page.css) with
   the hand-drawn tip.svg arrow — rotated to point up at the CTA button above
   it instead of sideways, since this hint sits below the button rather than
   next to it. Scoped to .da-vh__hint-arrow so the shared class's normal
   sideways orientation elsewhere on the site is untouched. */
.da-vh__hint-row {
  align-items: center;
}
.da-vh__hint-arrow {
  transform: rotate(90deg);
}
.da-vh__hint {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #627b84;
  margin: 0;
  max-width: 15em;
}
/* Matches unsere-zukunft.php's hero lead paragraph exactly (text-2xl
   font-medium leading-[39px], color #627b84) so the two hero footers read as
   the same component family. */
.da-vh__lead {
  font-family: "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 39px;
  color: #627b84;
  margin: 0;
}

@media (max-width: 455px) {
  .da-vh__lead {
    font-size: 18px;
    line-height: 28px;
  }
}
.da-vh__trust {
  flex: 1;
  min-width: 260px;
}

@media (max-width: 455px) {
  .da-vh {
    padding: 40px 0 60px;
  }
  .da-vh__title {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .da-vh__cta-col {
    max-width: none;
  }
}

/* Followed by the eligibility check: its 100px top wave (.da-ec__wave,
   top: -100px) is drawn over the bottom of this hero. With only 100px /
   60px bottom padding the trust logos ran under the wave (IHK logo cut off).
   Padding = wave + breathing room. Only on light pages (same switch as
   eligibility-check.css: body.da-page-dark): theme-dark.css hides the wave, so
   dark pages keep the normal .da-vh / --tight / --loose padding (PP-2010). */
body:not(.da-page-dark) .wp-block-lazyblock-vsl-hero:has(+ .wp-block-lazyblock-eligibility-check) .da-vh {
  padding-bottom: 160px;
}
@media (max-width: 455px) {
  body:not(.da-page-dark) .wp-block-lazyblock-vsl-hero:has(+ .wp-block-lazyblock-eligibility-check) .da-vh {
    padding-bottom: 140px;
  }
}

/* Trust logos always in ONE row (UIUX-614 feedback: no "3 + IHK alone" wrap,
   no 2x2 grid). The seals shrink with the available width; only the
   Trustpilot rating block keeps its size. Same idea as the inline hero strip
   in hero.css, but without its wrap fallback on phones. */
.da-vh__trust .da-flex-spacing-between-columns {
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
}
.da-vh__trust .da-flex-spacing-between-columns > * {
  min-width: 0;
  flex: 0 1 auto;
}
.da-vh__trust .da-flex-spacing-between-columns > .da-tp-rating {
  flex: none;
}
.da-vh__trust .da-flex-spacing-between-columns img {
  max-width: 100%;
  height: auto;
}
/* Trustpilot wordmark has a fixed size (generic img rule above would collapse it). */
.da-vh__trust .da-tp-rating__logo {
  width: 73px;
  max-width: none;
}
@media (max-width: 600px) {
  .da-vh__trust {
    min-width: 0;
    width: 100%;
  }
  .da-vh__trust .da-flex-spacing-between-columns {
    gap: 12px;
    justify-content: space-between;
  }
}

/* Centered variant (align: center) — test for UIUX-614: title, CTA, hint,
   lead and trust row stacked and centered, on desktop and mobile. */
.da-vh--center .da-vh__title,
.da-vh--center .da-vh__intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.da-vh--center .da-vh__footer {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.da-vh--center .da-vh__cta-col {
  align-items: center;
  text-align: center;
  max-width: 640px;
}
.da-vh--center .da-vh__hint-row {
  justify-content: center;
}
.da-vh--center .da-vh__trust {
  flex: none;
  min-width: 0;
}
.da-vh--center .da-vh__trust .trustpilot-header {
  text-align: center;
}
.da-vh--center .da-vh__trust .da-flex-spacing-between-columns {
  justify-content: center;
}

/* Balanced heading lines (no lone "IT" on mobile). */
.da-vh__title {
  text-wrap: balance;
}

/* Typewriter cursor: front-page.css gives it a fixed 56px / 32px height,
   taller than this heading's line box (28-56px font, line-height 1.1) ->
   the coral accent lines got a bigger line gap than the navy ones when the
   accent wraps on mobile. Size it relative to the heading font instead. */
.da-vh__title .da-blinking-cursor {
  width: 0.08em;
  height: 0.85em;
  top: 0.08em;
}

@media (max-width: 455px) {
  .da-vh__title {
    margin-bottom: 32px;
  }
}

/* Text variant (media: text, UIUX-614 "Standard"): H1 + lead text, no video;
   CTA + trust row follow directly. Lead uses the hero lead token. */
.da-vh--text .da-vh__title {
  max-width: 900px;
  margin-bottom: 28px;
}
.da-vh__intro {
  max-width: 720px;
  margin: 0 0 56px;
  font-family: "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 39px;
  color: #627b84;
}
@media (max-width: 455px) {
  .da-vh--text .da-vh__title {
    margin-bottom: 20px;
  }
  .da-vh__intro {
    margin-bottom: 36px;
    font-size: 18px;
    line-height: 28px;
  }
}
/* front-page.css reserves 2em for the typewriter line (no jump while it
   types). On desktop the accent fits one line -> that left an empty line
   between H1 and intro in the text variant. One line on desktop, two
   (1.1 line-height) where it wraps on phones. */
.da-vh--text .da-vh__title-accent.da-hero-headline-end {
  height: auto;
  min-height: 1.1em;
}
@media (max-width: 600px) {
  .da-vh--text .da-vh__title-accent.da-hero-headline-end {
    min-height: 2.2em;
  }
}

/* Text variant with illustration: H1 + intro left, visual right (desktop);
   on phones the visual sits between H1 and intro, like the mobile copy of
   the other landing heroes. */
.da-vh__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  grid-template-rows: auto 1fr; /* visual is taller: extra height goes below the intro */
  grid-template-areas: "title visual" "intro visual";
  column-gap: 64px;
  align-items: start;
}
.da-vh__top .da-vh__title {
  grid-area: title;
}
.da-vh__top .da-vh__intro {
  grid-area: intro;
}
.da-vh__visual {
  grid-area: visual;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}
.da-vh__visual-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .da-vh__top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "title" "visual" "intro";
  }
  .da-vh__visual {
    justify-self: center;
    max-width: 343px;
    margin: 0 0 32px;
  }
}

/* Desktop placeholder inside the video wrap (mobile-only video set). */
.da-vh__video.da-vh__placeholder {
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
