/* ============================================================
   Section: eligibility_check (Anspruchs-Check).
   Light-grey band: self-check statements + "was der Gutschein deckt" price list.
   New section type (UIUX-614) — title/kicker sizing matches the other modern
   sections (value-prop.css, next-steps.css).
   ============================================================ */

.da-ec {
  background-color: #f5f7f7;
  padding: 100px 0;
  position: relative;
}

/* Light-grey wave bleeding 100px up/down into the sections above/below — same
   technique and asset as unsere-zukunft.php's .vsl-prognose__wave /
   .first-step__wave-bg, so dark section transitions look consistent
   sitewide rather than a hard rectangular edge. */
.da-ec__wave {
  width: 100%;
  height: 100px;
  position: absolute;
  object-fit: cover;
  left: 0;
  right: 0;
}
/* Blends into vsl-hero (white) above. No bottom wave: value-prop below is
   the same light grey, and an absolutely positioned bottom wave sat on top of
   value-prop's first point (hid its icon + title). */
.da-ec__wave {
  object-position: top;
  top: -100px;
  background: #ffffff;
}
.da-ec--tight {
  padding: 60px 0;
}
.da-ec--loose {
  padding: 140px 0;
}

.da-ec__row {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.da-ec__col {
  flex: 1;
  min-width: 0;
}

.da-ec__kicker {
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fd5b4f;
  margin: 0 0 20px;
}
.da-ec__title {
  font-family: "Figtree", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #124658;
  margin: 0 0 16px;
}
.da-ec__intro {
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  line-height: 30px;
  color: #4a6b77;
  margin: 0 0 24px;
}

.da-ec__checks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.da-ec__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #124658;
}
.da-ec__check-icon {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ------------------------------------------------------------------------
   Gift-card illustration (design handoff: bildungsgutschein-vsl gift-card
   illustration, GSAP 3.12). All inner sizes use cqw (1cqw = 1% of .da-ec__gc's
   own width) via container queries, so the voucher scales with its column
   independent of viewport. .da-ec__gc-notch is filled with THIS section's
   background (#f5f7f7, see .da-ec above) so the perforation notches read as
   true cut-outs — update it if .da-ec's background ever changes.
   ------------------------------------------------------------------------ */
.da-ec__gc {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  overflow: visible;
  isolation: isolate;
  container-type: inline-size;
}
.da-ec__gc-shadow {
  /* Ground shadow removed — read as an odd dark smudge under the voucher on
     the former dark background instead of a soft drop shadow. */
  display: none;
}
.da-ec__gc-voucher {
  position: absolute;
  left: 14%;
  top: 17%;
  width: 72%;
}
.da-ec__gc-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  /* Second voucher behind the front one: light blue, so the two flat cards
     separate by colour (no border, no shadow). Tilted to the LEFT (see
     BACK_END in eligibility-check.js) so it peeks out on the free side,
     away from ribbon and seal. */
  background: #d3e9f0;
  opacity: 0; /* animated in by GSAP */
}
.da-ec__gc-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  /* Weiss statt hp.bg (#F5F7F7), damit sich die Karte vom jetzt hellgrauen
     Section-Hintergrund abhebt; flach, ohne Schatten und ohne Rahmen. */
  background: #ffffff;
  padding: 7cqw 21cqw 8cqw 6.5cqw;
  display: flex;
  flex-direction: column;
  gap: 3cqw;
}
.da-ec__gc-perf {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18cqw;
  border-left: 2px dashed rgba(18, 70, 88, .18);
}
.da-ec__gc-notch {
  position: absolute;
  right: calc(18cqw - 2.2cqw);
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 50%;
  background: #f5f7f7;
}
.da-ec__gc-notch--top { top: -2.2cqw; }
.da-ec__gc-notch--bottom { bottom: -2.2cqw; }
.da-ec__gc-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 6cqw;
  width: 6cqw;
  background: #FD5B4F;
}
.da-ec__gc-head {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}
.da-ec__gc-photo {
  width: 9cqw;
  height: 9cqw;
  flex: none;
  border-radius: 1.8cqw;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
}
.da-ec__gc-title {
  margin: 0;
  color: #124658;
  font-family: "Figtree", sans-serif;
  font-size: clamp(11px, 2.3cqw, 14px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.da-ec__gc-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.da-ec__gc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 2.3cqw 0;
  border-top: 1px solid rgba(18, 70, 88, .12);
}
.da-ec__gc-row dt {
  margin: 0;
  color: #124658;
  font-family: "Figtree", sans-serif;
  font-size: clamp(13px, 2.9cqw, 17px);
  line-height: 1.35;
  font-weight: 400;
}
.da-ec__gc-row dd {
  margin: 0;
  color: #FD5B4F;
  font-family: "Figtree", sans-serif;
  font-size: clamp(13px, 2.9cqw, 17px);
  font-weight: 800;
  white-space: nowrap;
}
.da-ec__gc-bow {
  position: absolute;
  top: -7.5cqw;
  right: calc(9cqw - 11cqw);
  width: 22cqw;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(18, 70, 88, .18));
  transform-origin: 50% 38%;
}
.da-ec__gc-seal {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 22%;
  aspect-ratio: 1;
  transform: rotate(-8deg);
}
.da-ec__gc-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(18, 70, 88, .22));
}

@media (max-width: 900px) {
  .da-ec__row {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 455px) {
  .da-ec {
    padding: 60px 0;
  }
}

/* BG landing pages (body:has(.da-ec)), Standard variant with the generic
   hero block: its body is a centred flex item and grew to the widest child
   (typewriter line / trust row) -> overflowed the phone viewport. */
@media (max-width: 1000px) {
  body:has(.da-ec) .da-hero__body {
    width: 100%;
    min-width: 0;
  }
}
/* Generic hero (Standard variant): white like the VSL hero, so the
   eligibility check's white->grey top wave connects (light hero is #F5F7F7
   once bg-hero.svg is dropped, which drew a second wave). Light pages only:
   on dark pages (body.da-page-dark) theme-dark.css hides the wave, the hero
   keeps its navy surface and normal spacing (PP-2010). */
body:not(.da-page-dark):has(.da-ec) .da-hero,
body:not(.da-page-dark):has(.da-ec) .wp-block-lazyblock-hero {
  background-color: #ffffff; /* wrapper too: the hero's bottom margin showed the grey body */
}
body:has(.da-ec) .wp-block-lazyblock-hero {
  display: flow-root; /* keep that margin inside the white wrapper */
}
/* Phones: CTA + hint side by side clipped the button label -> stack. */
@media (max-width: 600px) {
  body:has(.da-ec) .da-hero .da-flex-spacing-between-columns-altered {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
/* Standard variant (generic hero before the check), desktop: 180px from the
   trust logos to the grey wave right below them (hero mb 120 -> 70). */
@media (min-width: 1101px) {
  body:not(.da-page-dark):has(.da-ec) .da-hero {
    margin-bottom: 84px;
  }
}
/* 1101-1400: narrower text column wraps more, logos sit lower. */
@media (min-width: 1101px) and (max-width: 1400px) {
  body:not(.da-page-dark):has(.da-ec) .da-hero {
    margin-bottom: 134px;
  }
}
/* 801-1100: stacked layout, logos are the last element. */
@media (min-width: 801px) and (max-width: 1100px) {
  body:not(.da-page-dark):has(.da-ec) .da-hero {
    margin-bottom: 147px;
  }
}
