/* Customer-trust section: a diagonal-cut photo banner (headline + features
   on the light left side, photo + testimonial card + author badge + fact
   row on the dark right side), followed by a plain 3-segment audience row
   (Privat / Verwaltung / Gewerbe). Back to this order per direct feedback
   after trying the reverse — DOM order is copy-then-card either way, so
   this reversion is just the desktop grid/clip-path geometry, not a
   markup change. */
.trust-hero {
  --trust-accent: #e6007e;
  --trust-accent-rgb: 230, 0, 126;
  --trust-gold: #f5b400;
  position: relative;
  background: #fff;
}

.trust-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, 58vw, 780px);
  background: #fbfbfd;
}

.trust-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.trust-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
}

.trust-hero-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 10, 24, .15), rgba(0, 10, 24, .55));
  pointer-events: none;
}

.trust-hero-media-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(200px, 20vw, 320px);
  height: clamp(200px, 20vw, 320px);
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, #000 50%, transparent 82%);
  mask-image: radial-gradient(circle at 100% 100%, #000 0%, #000 50%, transparent 82%);
  pointer-events: none;
}

.trust-hero-media-edge { display: none; }
.trust-hero-author-badge { display: none; }

/* Diagonal cut + accent edge + floating author badge: desktop only, same
   technique as the Karriere/Über-Krause sections — the clip leaves the
   left side solid light background (.trust-hero-banner's own #fbfbfd)
   and photo covers the right, widening toward the bottom (boundary
   decreases from 46% to 36% as y increases — the same absolute lean
   direction used everywhere else on the page). The edge line is a
   sibling with its own thin parallel clip-path (a child of the clipped
   media would be clipped too), and the badge is positioned as a
   percentage along that same diagonal so it stays correct at any width.
   Straddling the seam is safe here because the copy column's ragged-right
   paragraph/feature edges approach it, not a flush-left headline start —
   that's the opposite-order case that needed the badge moved fully into
   the photo instead. */
@media (min-width: 992px) {
  .trust-hero-media {
    clip-path: polygon(46% 0, 100% 0, 100% 100%, 36% 100%);
  }

  .trust-hero-media-edge {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: var(--trust-accent);
    clip-path: polygon(46% 0, calc(46% + 3px) 0, calc(36% + 3px) 100%, 36% 100%);
    pointer-events: none;
  }

  .trust-hero-author-badge {
    position: absolute;
    top: 19%;
    left: 41%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border-radius: 12px;
    background: rgba(0, 18, 51, .84);
    backdrop-filter: blur(6px);
    box-shadow: 0 16px 32px rgba(0, 10, 24, .32);
  }

  .trust-hero-author-badge-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(var(--trust-accent-rgb), .2);
    color: var(--trust-accent);
  }

  .trust-hero-author-badge-icon .lucide {
    width: .95rem;
    height: .95rem;
  }

  .trust-hero-author-badge span:last-child {
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.3;
  }
}

/* No container-xl wrapper (removed from the markup) — .trust-hero-layout
   is itself full-bleed to the viewport, the same fix used for
   .career-layout/.about-hero-layout. It used to sit inside container-xl,
   which is narrower than the banner and independently centered; that put
   the grid columns and the clip-path (a % of the full banner) in two
   coordinate systems that didn't reliably agree, and no amount of
   padding-tuning closed the gap at every width (confirmed empirically —
   the mismatch grew by over 100px between 1200 and 1920). Full-bleed
   means both are measured against the same box, so a calibrated padding
   value actually holds everywhere instead of being a guess. */
.trust-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: inherit;
  padding: clamp(48px, 6vw, 88px) var(--container-gutter);
}

/* DOM order is copy-then-card, and copy=left/card=right is also the
   natural grid auto-placement order — no explicit grid-column needed
   here (unlike the reverse-order variant, which had to override it).
   Copy's own left edge is just plain background (no diagonal nearby), so
   it only needs ordinary viewport-edge clearance, not the large
   seam-clearance buffer the flush-left headline needed in the other
   order. */
@media (min-width: 992px) {
  .trust-hero-layout {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    column-gap: clamp(32px, 5vw, 80px);
    padding-left: 0;
    padding-right: 0;
  }

  .trust-hero-copy {
    padding-left: var(--container-gutter);
  }

  .trust-hero-card {
    margin-right: var(--container-gutter);
  }
}

/* Grid items default to min-width:auto, which lets their content's
   intrinsic size (the swiper slides especially) blow the track past
   100% before Swiper has applied its own measured widths. Without this,
   the layout can runaway to a huge computed width on narrower viewports. */
.trust-hero-copy,
.trust-hero-card {
  min-width: 0;
}

.trust-hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.trust-hero-copy h2 {
  margin: 12px 0 0;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.14;
}

.trust-hero-highlight { color: var(--trust-accent); }

.trust-hero-rule {
  display: block;
  width: 40px;
  height: 3px;
  margin: 18px 0 20px;
  border-radius: 2px;
  background: var(--trust-accent);
}

.trust-hero-copy > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
}

.trust-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 30px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-hero-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 150px;
}

/* The circle lives on a wrapping span, not on the svg itself — padding
   directly on an inline <svg> doesn't inset its content, so combined with
   border-radius it was clipping the icon glyph out of view entirely. */
/* A frosted fill (not just a border) so the icon badge stays legible on
   its own, independent of exactly how much wash lands under it — the
   underlying photo content varies enough that the gradient alone can't
   guarantee contrast for every icon in every position. */
.trust-hero-feature-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  border: 1px solid rgba(var(--primary-rgb), .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trust-hero-feature-icon .lucide {
  width: 20px;
  height: 20px;
}

/* Soft text-shadow safety net: a subtle white halo keeps the label
   readable even where the gradient wash is thin, without looking like an
   obvious box around the text. */
.trust-hero-features strong {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 850;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .8), 0 1px 1px rgba(255, 255, 255, .8);
}

.trust-hero-features span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .8), 0 1px 1px rgba(255, 255, 255, .8);
}

.trust-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.trust-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  background: var(--trust-accent);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(var(--trust-accent-rgb), .24);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.trust-hero-cta:hover,
.trust-hero-cta:focus-visible {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(var(--trust-accent-rgb), .3);
}

.trust-hero-cta .lucide {
  width: .9rem;
  height: .9rem;
  transition: transform .18s ease;
}

.trust-hero-cta:is(:hover, :focus-visible) .lucide {
  transform: translateX(3px);
}

.trust-hero-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-size: .84rem;
  font-weight: 800;
}

.trust-hero-more-link .lucide {
  width: 14px;
  height: 14px;
  transition: transform .18s ease;
}

.trust-hero-more-link:is(:hover, :focus-visible) {
  color: var(--trust-accent);
}

.trust-hero-more-link:is(:hover, :focus-visible) .lucide {
  transform: translateX(3px);
}

/* Testimonial card. Margin is set responsively — 0 on mobile (own
   ≤991.98px override further down), clamp(28px,4vw,64px) on desktop (see
   the ≥992px block above) — not here, so there's exactly one place either
   value can come from instead of a base value fighting a later override. */
.trust-hero-card {
  position: relative;
  width: min(400px, 100%);
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: 18px;
  background: #081b30;
  box-shadow: 0 34px 70px rgba(0, 10, 24, .38);
}

.trust-hero-quote-mark {
  display: block;
  margin-bottom: -.6rem;
  color: var(--trust-accent);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.trust-hero-swiper {
  width: 100%;
  overflow: hidden;
}

.trust-hero-slide {
  width: 100%;
  min-height: 176px;
}

.trust-hero-swiper-dots {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.trust-hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  transition: background-color .18s ease, transform .18s ease;
}

.trust-hero-dot.is-active {
  background: var(--trust-accent);
  transform: scale(1.3);
}

.trust-hero-card blockquote {
  margin: 6px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.22;
}

.trust-hero-card-rule {
  display: block;
  width: 34px;
  height: 2px;
  margin: 20px 0 16px;
  border-radius: 2px;
  background: var(--trust-accent);
}

.trust-hero-card footer {
  display: grid;
  gap: 3px;
}

.trust-hero-card footer strong {
  color: #fff;
  font-size: .92rem;
}

.trust-hero-card footer > span {
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
}

.trust-hero-card footer > .trust-hero-stars {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  color: var(--trust-gold);
}

.trust-hero-stars .lucide {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
}

.trust-hero-google {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.trust-hero-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}

.trust-hero-avatar .lucide {
  width: 18px;
  height: 18px;
  color: #fff;
}

.trust-hero-google strong {
  display: block;
  color: #fff;
  font-size: .86rem;
}

.trust-hero-google span {
  color: rgba(255, 255, 255, .6);
  font-size: .76rem;
  line-height: 1.4;
}

.trust-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--trust-accent);
  font-size: .84rem;
  font-weight: 800;
}

.trust-hero-link .lucide {
  width: 15px;
  height: 15px;
}

.trust-hero-link:is(:hover, :focus-visible) {
  color: #fff;
}

/* Fact row — spans both columns as its own grid row below copy/card. */
.trust-hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin-top: clamp(16px, 2.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(0, 18, 51, .84);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Same left clearance as .trust-hero-copy — .trust-hero-layout's own
   horizontal padding is reset to 0 on desktop (each column carries its
   own instead), and facts is a third grid item, not nested inside copy,
   so it doesn't inherit copy's padding automatically. Facts sits under
   column 1 by default (start-aligned), which is copy's column in this
   order. */
@media (min-width: 992px) {
  .trust-hero-facts {
    margin-left: var(--container-gutter);
  }
}

.trust-hero-fact {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.trust-hero-fact:last-child { border-right: 0; }

.trust-hero-fact strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--trust-accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.trust-hero-fact span {
  display: block;
  margin-bottom: .35rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}

.trust-hero-fact p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .73rem;
  line-height: 1.4;
}

/* Segment row below the banner */
.trust-hero-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(44px, 5vw, 68px);
}

.trust-hero-segment {
  padding: 0 clamp(16px, 3vw, 40px);
  color: inherit;
}

.trust-hero-segment:not(:first-child) {
  border-left: 1px solid rgba(var(--primary-rgb), .1);
}

.trust-hero-segment-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.trust-hero-segment-number {
  color: var(--trust-accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.trust-hero-segment-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--primary-dark);
  border-radius: 50%;
  background: #eaf2f9;
  transition: transform .18s ease;
}

.trust-hero-segment-icon .lucide {
  width: 21px;
  height: 21px;
}

.trust-hero-segment-icon-pink {
  background: #fbe6f0;
}

.trust-hero-segment:is(:hover, :focus-visible) .trust-hero-segment-icon {
  transform: translateY(-2px);
}

.trust-hero-segment strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 850;
}

.trust-hero-segment p {
  max-width: 260px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.trust-hero-segment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--trust-accent);
  font-size: .82rem;
  font-weight: 800;
}

.trust-hero-segment-link .lucide {
  width: 14px;
  height: 14px;
}

@media (max-width: 991.98px) {
  .trust-hero-banner {
    min-height: auto;
  }

  .trust-hero-media-dots {
    display: none;
  }

  /* Stacked layout: the features list is the last piece of copy before
     the card, sitting below the lead paragraph — stops fade to .35 well
     above that point, which is exactly why "Persönlich" would otherwise
     read weaker than the first two features. */
  .trust-hero-media-scrim {
    background: linear-gradient(180deg, #fff 0%, #fff 46%, rgba(255, 255, 255, .82) 60%, rgba(255, 255, 255, .4) 74%, rgba(255, 255, 255, 0) 92%);
  }

  .trust-hero-bg {
    object-position: 66% 30%;
  }

  .trust-hero-layout {
    grid-template-columns: 1fr;
    padding-block: 48px 40px;
  }

  .trust-hero-card {
    width: 100%;
    margin-left: 0;
  }

  .trust-hero-facts {
    max-width: none;
  }

  .trust-hero-segments {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .trust-hero-segment:not(:first-child) {
    padding-top: 30px;
    border-top: 1px solid rgba(var(--primary-rgb), .1);
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .trust-hero-banner {
    min-height: 560px;
  }

  .trust-hero-copy h2 {
    font-size: 2.1rem;
  }

  .trust-hero-features {
    gap: 20px;
  }

  .trust-hero-cta-row {
    gap: 14px;
  }

  .trust-hero-facts {
    grid-template-columns: 1fr;
  }

  .trust-hero-fact {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .trust-hero-fact:last-child { border-bottom: 0; }
}
