/* Home page styles shared by the German and English start pages.
   bb-global.css and bb-components.css load before this file.
   Source rules remain in bb-pages.css until the separate cleanup step. */

/* ════════════════════════════════════════════════════════════════
   1. HOME: HERO SLOPE LAYOUT
   The angular video/image hero on the homepage.
   ════════════════════════════════════════════════════════════════ */
.bb-hero-slope {
  --bb-hero-min: clamp(380px, 70vh, 760px);
  padding: 3.5rem 0 3rem;
}
.wp-block-search__input, .search-input{
    background: var(--bb-bg);
    color: var(--bb-text);
}

.bb-hero-slope--inner {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1fr)      /* left gutter */
    auto                /* copy column */
    minmax(0, 1024px)   /* media/slope, capped at 1024 */
    minmax(0, 1fr);     /* right gutter */
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--bb-hero-min);
}

.bb-hero-slope--copy {
  grid-column: 2;
  max-width: 32rem;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.bb-hero-slope--copy h1 {
  max-width: 20ch;
  line-height: 1.05;
}

.bb-hero-slope--media {
  grid-column: 3;
  --bb-slope: 180px;
  position: relative;
  height: clamp(320px, 62vh, 760px);
  clip-path: polygon(var(--bb-slope) 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  isolation: isolate;
  background: var(--bb-surface-muted, #f3f4f6);
  width: 100%;
  max-width: 1024px;
  filter: drop-shadow(-2px 0 0 var(--bb-red));
  height: 57%;
}

.bb-hero-slope--video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) brightness(0.95) contrast(0.9);
}

.bb-hero-slope--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bb-image-overlay-angle, 90deg),
    var(--bb-image-overlay-strong, rgba(239,242,247,1))  0%,
    var(--bb-image-overlay-mid,    rgba(239,242,247,0.8)) 22%,
    var(--bb-image-overlay-soft,   rgba(239,242,247,0.2)) 45%,
    var(--bb-image-overlay-clear,  transparent)           70%
  );
  pointer-events: none;
}

/* ── Generic hero (full-width wrapper) ───────────────────── */
.bb-hero { position: initial; width: 100vw; left: 0; right: 0; }


/* ════════════════════════════════════════════════════════════════
   8. SOLUTIONS SECTION  (from cobisction.css / homepage)
   ════════════════════════════════════════════════════════════════ */
.bb-solutions {
  padding: 4rem 1.5rem 4.5rem;
}

.bb-solutions__inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.bb-solutions__headline {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--bb-text);
}

.bb-solutions__subline {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--bb-muted);
}

/* Row 1 — Audience shortcuts */
.bb-solutions__audiences {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bb-solutions__audience {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--bb-surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.bb-solutions__audience-label { display: block; font-weight: 600; font-size: 0.9rem; }
.bb-solutions__audience-desc  { display: block; font-size: 0.8rem; color: var(--bb-muted); }

/* Row 2 — Use-case tiles */
.bb-solutions__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.bb-solutions__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--bb-surface);
  text-align: left;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bb-solutions__tile:hover,
.bb-solutions__tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  background: var(--bb-surface);
}

.bb-solutions__tile-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }
.bb-solutions__tile-text  { font-size: 0.85rem; color: var(--bb-muted); }

/* Row 3 — Proof points */
.bb-solutions__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.bb-solutions__proof { min-width: 220px; }
.bb-solutions__proof-key   { display: block; font-weight: 700; font-size: 1.1rem; }
.bb-solutions__proof-label { display: block; font-size: 0.85rem; color: var(--bb-muted); margin-top: 0.1rem; }

@media (max-width: 1024px) {
  .bb-solutions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .bb-solutions { padding: 3rem 1.25rem 3.5rem; }
  .bb-solutions__audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-solutions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .bb-solutions__audiences,
  .bb-solutions__grid { grid-template-columns: 1fr; }
  .bb-solutions__headline { font-size: 1.6rem; }
}


/* ════════════════════════════════════════════════════════════════
   10. BLOG: LATEST POSTS LAYOUT (image | text grid)
   ════════════════════════════════════════════════════════════════ */
.wp-block-latest-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-latest-posts__list > li.wp-block-latest-posts__post {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  margin-bottom: 2rem;
}

.wp-block-latest-posts__featured-image {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  display: flex;
}

.wp-block-latest-posts__featured-image.alignleft { float: none !important; margin: 0 !important; }

.wp-block-latest-posts__featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.wp-block-latest-posts :where(.wp-block-latest-posts__post-title) {
  grid-column: 2;
  grid-row: 1;
}

.wp-block-latest-posts :where(.wp-block-latest-posts__post-date) {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.wp-block-latest-posts :where(.wp-block-latest-posts__post-author) {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin-left: auto;
}

.wp-block-latest-posts :where(.wp-block-latest-posts__post-excerpt) {
  grid-column: 2;
  grid-row: 3;
}

@media (max-width: 700px) {
  .wp-block-latest-posts__list > li.wp-block-latest-posts__post {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .wp-block-latest-posts__featured-image { grid-column: 1; grid-row: 1 / 2; }

  .wp-block-latest-posts :where(.wp-block-latest-posts__post-title) { grid-row: 2; }
  .wp-block-latest-posts :where(.wp-block-latest-posts__post-date,
                                .wp-block-latest-posts__post-author) { grid-row: 3; justify-self: start; }
  .wp-block-latest-posts :where(.wp-block-latest-posts__post-excerpt) { grid-row: 4; }
}


/* ════════════════════════════════════════════════════════════════
   12. FOOTER
   ════════════════════════════════════════════════════════════════ */
footer {
  box-sizing: border-box;
  width: 100%;
  background: var(--bb-surface2);
  color: var(--secondary);
  padding: 40px 20px;
  font-size: 0.9rem;
  margin: 0 !important;
  border-top: 2px solid var(--bb-border);
}

footer p,
footer li,
footer a {
  color: var(--bb-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer nav: two-column, editorial look */
footer .footer-nav .wp-block-navigation__container {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

footer .footer-nav li { break-inside: avoid; margin: 0 0 0.35rem; }
footer .footer-nav a  { text-decoration: none; color: inherit; font-weight: 400; }

footer nav[aria-label="Editorial-Menü DE"],
footer nav[aria-label="Editorial-Menü EN"] { margin: 0; }

.editorial { margin: 0; }

footer nav[aria-label="Editorial-Menü DE"] li,
footer nav[aria-label="Editorial-Menü EN"] li {
  font-size: clamp(1.02rem, 0.2vw + 1rem, 1.08rem);
  line-height: 1.65;
  color: var(--bb-muted);
  font-weight: 400;
  text-transform: none;
  margin: 0;
}

footer nav[aria-label="Editorial-Menü DE"] a,
footer nav[aria-label="Editorial-Menü EN"] a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer nav[aria-label="Editorial-Menü DE"] a:hover,
footer nav[aria-label="Editorial-Menü EN"] a:hover { color: var(--bb-text); }

footer nav[aria-label="Editorial-Menü DE"] a:focus-visible,
footer nav[aria-label="Editorial-Menü EN"] a:focus-visible {
  outline: 2px solid var(--bb-red);
  outline-offset: 2px;
  text-decoration: none;
}

@media (max-width: 640px) {
  footer .wp-block-columns.alignwide {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    flex-direction: column;
  }

  footer .wp-block-column,
  footer .footer-header,
  footer .wp-block-site-title,
  footer .wp-block-site-tagline,
  footer .wp-block-search,
  footer .wp-block-search__inside-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* Social icon row in footer */
.bb-social { display: flex; gap: 12px; margin-top: 10px; }
.bb-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s;
}

/* Homepage: custom video hero */

.bb-home-hero {
  position: relative;
  padding: clamp(4rem, 4vw, 8rem) 1.5rem;
  margin: 0;
}

.bb-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bb-surface-ghost), transparent 60%),
    repeating-linear-gradient(
      90deg,
      var(--bb-grid-line) 0,
      var(--bb-grid-line) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
}

.bb-home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.bb-home-hero__content {
  max-width: 680px;
}

.bb-home-hero__lead {
  max-width: 58ch;
}

.bb-home-hero__proof {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.bb-home-hero__proof li {
  background: var(--bb-card-overlay);
  border: 1px solid var(--bb-card-border);
  border-radius: var(--bb-radius-sm);
  padding: 0.95rem 1rem;
  box-shadow: var(--bb-shadow-soft);
  position: relative;
}

.bb-home-hero__proof li::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--bb-radius-sm);
  background: linear-gradient(135deg, var(--bb-bg-sheen), transparent 50%), radial-gradient(circle at 100% 0%, var(--bb-bg-glow), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

.bb-home-hero__proof li > strong,
.bb-home-hero__proof li > span {
  position: relative;
  z-index: 1;
}

.bb-home-hero__proof strong {
  display: block;
  color: var(--bb-text);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1;
  font-weight: 900;
}

.bb-home-hero__proof span {
  display: block;
  margin-top: 0.35rem;
  color: var(--bb-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.bb-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Portrait technical media frame */

.bb-home-hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  overflow: visible;
  background: transparent;
  border-radius: var(--bb-radius-md);
  box-shadow: none;
  isolation: isolate;
}

.bb-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border-radius: var(--bb-radius-md);
  background:
    var(--bb-media-frame-bg),
    repeating-linear-gradient(
      90deg,
      var(--bb-grid-line) 0,
      var(--bb-grid-line) 1px,
      transparent 1px,
      transparent 28px
    );
  border: 1px solid var(--bb-card-border);
}

.bb-home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--bb-radius-md);
  background:
    linear-gradient(90deg, var(--bb-grid-line), transparent 42%),
    linear-gradient(0deg, var(--bb-card-border), transparent 42%);
  pointer-events: none;
}

.bb-home-hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--bb-radius-md);
  overflow: hidden;
  box-shadow:
    var(--bb-shadow-card),
    0 0 0 1px var(--bb-card-border) inset;
  filter: grayscale(0.02) contrast(1.03) saturate(1);
}

.bb-home-hero__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.88);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.bb-home-hero__play:hover {
  background: rgba(8, 17, 28, 0.98);
}

.bb-home-hero__play:visited {
  color: #fff;
}

.bb-home-hero__play:focus-visible {
  outline: 3px solid var(--bb-red);
  outline-offset: 3px;
}

.bb-home-hero__play[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .bb-home-hero {
    padding: 4rem 1.25rem;
  }

  .bb-home-hero__inner {
    grid-template-columns: 1fr;
  }

  .bb-home-hero__content {
    max-width: none;
  }

  .bb-home-hero__media {
    justify-self: stretch;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 5 / 4;
    margin-inline: auto;
  }

  .bb-home-hero__media::before {
    inset: 10px -10px -10px 10px;
  }
}

@media (max-width: 640px) {
  .bb-home-hero__proof {
    grid-template-columns: 1fr;
  }

  .bb-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-home-hero__media {
    aspect-ratio: 4 / 5;
    border-radius: var(--bb-radius-sm);
  }

  .bb-home-hero__media::before,
  .bb-home-hero__media::after,
  .bb-home-hero__video {
    border-radius: var(--bb-radius-sm);
  }
}

/* Homepage: proof band / logo slider */

.bb-proof-band {
  padding: clamp(3.25rem, 5vw, 5.5rem) 1.5rem;
  margin: 0;
}

.bb-proof-band > .bb-proof-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 1300px;
  min-width: 0;
  margin-inline: auto;
}

.bb-proof-band__inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
}

.bb-proof-band__content {
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.bb-proof-band__content h2 {
  max-width: 17ch;
}

.bb-proof-band__text {
  max-width: 68ch;
}

/* Soft logo proof row — no card, low emphasis */

.bb-proof-band__logo-wrap {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.bb-logo-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding-block: 0.25rem;
}



.bb-logo-swiper {
  width: 100%;
  padding: 0.75rem 0;
  overflow: hidden;
}

.bb-logo-swiper .swiper-wrapper {
  align-items: center;
}

/* Keep a usable horizontal row until the carousel library is needed. */
.bb-logo-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 18px;
  overflow: hidden;
}

.bb-logo-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc((100% - 36px) / 3);
}

.bb-logo-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.bb-logo-swiper .swiper-slide img {
  display: block;
  max-width: 104px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.38;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.bb-logo-swiper .swiper-slide img:hover {
  opacity: 0.72;
  filter: grayscale(1);
  transform: translateY(-1px);
}

html.bb-dark-mode .bb-logo-swiper .swiper-slide img,
html.wp-dark-mode-active .bb-logo-swiper .swiper-slide img {
  opacity: 0.46;
  filter: grayscale(1) brightness(1.25);
}

html.bb-dark-mode .bb-logo-swiper .swiper-slide img:hover,
html.wp-dark-mode-active .bb-logo-swiper .swiper-slide img:hover {
  opacity: 0.78;
}

@media (max-width: 920px) {
  .bb-logo-swiper .swiper-slide {
    height: 48px;
  }

  .bb-logo-swiper .swiper-slide img {
    max-width: 92px;
    max-height: 28px;
  }
}

@media (min-width: 480px) {
  .bb-logo-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 20px; }
  .bb-logo-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 60px) / 4); }
}

@media (min-width: 640px) {
  .bb-logo-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 24px; }
  .bb-logo-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 96px) / 5); }
}

@media (min-width: 960px) {
  .bb-logo-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 28px; }
  .bb-logo-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 140px) / 6); }
}

@media (min-width: 1280px) {
  .bb-logo-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 30px; }
  .bb-logo-swiper:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 210px) / 8); }
}

@media (max-width: 640px) {
  .bb-logo-swiper {
    padding: 0.5rem 0;
  }

  .bb-logo-swiper .swiper-slide {
    height: 44px;
  }

  .bb-logo-swiper .swiper-slide img {
    max-width: 82px;
    max-height: 26px;
    opacity: 0.34;
  }
}

/* Homepage: benefits section */

.bb-benefits {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  margin: 0;
}

.bb-benefits__inner {
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
}

.bb-benefits__header {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.bb-benefits__header h2 {
  max-width: 15ch;
}

.bb-benefits__intro {
  max-width: 66ch;
}

.bb-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bb-benefit-card {
  position: relative;
  min-height: 260px;
  padding: 1.5rem;
  border-radius: var(--bb-radius-md);
  background:var(--bb-card-overlay);
  border: 1px solid var(--bb-card-border);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
}

.bb-benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-red), transparent);
}

.bb-benefit-card__number {
  display: inline-flex;
  margin-bottom: 3.25rem;
  color: var(--bb-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bb-benefit-card h3 {
  margin: 0;
  color: var(--bb-text);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.bb-benefit-card p {
  margin: 0.85rem 0 0;
  color: var(--bb-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .bb-benefits__grid {
    grid-template-columns: 1fr;
  }

  .bb-benefit-card {
    min-height: auto;
  }

  .bb-benefit-card__number {
    margin-bottom: 2rem;
  }
}

/* Homepage: process section */

.bb-process {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  margin: 0;
}

.bb-process__inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
}

.bb-process__header {
  max-width: 800px;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

.bb-process__header h2 {
  max-width: 16ch;
}

.bb-process__intro {
  max-width: 72ch;
}

.bb-process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bb-process__steps::after {
  content: "";
  position: absolute;
  top: 2.8rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--bb-red), transparent);
  pointer-events: none;
}

.bb-process-step {
  position: relative;
  min-height: 260px;
  padding: 1.4rem;
  border-radius: var(--bb-radius-md);
  background: var(--bb-card-overlay);
  border: 1px solid var(--bb-card-border);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
}

.bb-process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bb-bg-sheen), transparent 50%),
    radial-gradient(circle at 100% 0%, var(--bb-bg-glow), transparent 36%);
  pointer-events: none;
}

.bb-process-step__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 4rem;
  border-radius: var(--bb-radius-pill);
  background: var(--bb-text);
  color: var(--bb-surface);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(18, 25, 38, 0.18);
}

.bb-process-step:first-child .bb-process-step__number {
  background: var(--bb-red);
  color: #fff;
}

.bb-process-step h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--bb-text);
  font-size: clamp(1.15rem, 1.45vw, 1.38rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.bb-process-step p {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  color: var(--bb-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

html.bb-dark-mode .bb-process-step__number,
html.wp-dark-mode-active .bb-process-step__number {
  color: var(--bb-text);
  background: var(--bb-surface);
}

html.bb-dark-mode .bb-process-step:first-child .bb-process-step__number,
html.wp-dark-mode-active .bb-process-step:first-child .bb-process-step__number {
  color: #fff;
  background: var(--bb-red);
}

@media (max-width: 920px) {
  .bb-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-process__steps::after {
    display: none;
  }

  .bb-process-step {
    min-height: 230px;
  }

  .bb-process-step__number {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  .bb-process__steps {
    grid-template-columns: 1fr;
  }

  .bb-process-step {
    min-height: auto;
    border-radius: var(--bb-radius-sm);
  }

  .bb-process-step__number {
    margin-bottom: 2rem;
  }
}

/* Homepage: use cases section */

.bb-usecases {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  margin: 0;
}

.bb-usecases__inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
}

.bb-usecases__header {
  max-width: 820px;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

.bb-usecases__header h2 {
  max-width: 15ch;
}

.bb-usecases__intro {
  max-width: 72ch;
}

.bb-usecases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bb-usecase-card {
  position: relative;
  min-height: 220px;
  padding: 1.45rem;
  border-radius: var(--bb-radius-md);
  background: var(--bb-card-overlay);
  border: 1px solid var(--bb-card-border);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.bb-usecase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--bb-bg-glow), transparent 34%),
    linear-gradient(135deg, var(--bb-bg-sheen), transparent 48%);
  pointer-events: none;
}

.bb-usecase-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--bb-text);
  max-width: 24ch;
}

.bb-usecase-card p {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  color: var(--bb-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.bb-usecase-card:hover {
  transform: translateY(-2px);
  border-color: var(--bb-blue-soft);
  border-left: 4px solid var(--bb-red);
  box-shadow: var(--bb-shadow-hover);
}

@media (max-width: 920px) {
  .bb-usecases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-usecase-card {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .bb-usecases__grid {
    grid-template-columns: 1fr;
  }

  .bb-usecase-card {
    min-height: auto;
    border-radius: var(--bb-radius-sm);
  }

  .bb-usecase-card h3 {
    max-width: none;
  }
}

/* Homepage: video overview section */

.bb-video-section {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  margin: 0;
}

.bb-video-section__inner {
  position: relative;
  z-index: 1;
  width: min(var(--bb-content-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.bb-video-section__content {
  max-width: 460px;
}

.bb-video-section__content h2 {
  max-width: 13ch;
}

.bb-video-section__intro {
  max-width: 52ch;
}

.bb-video-section__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bb-radius-md);
  background: var(--bb-text);
  box-shadow:
    0 28px 70px rgba(18, 25, 38, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
  isolation: isolate;
}

.bb-video-section__frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border-radius: var(--bb-radius-md);
  background:
    var(--bb-media-frame-bg),
    repeating-linear-gradient(
      90deg,
      var(--bb-card-border) 0,
      var(--bb-card-border) 1px,
      transparent 1px,
      transparent 28px
    );
  border: 1px solid var(--bb-card-border);
}

.bb-video-section__frame::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  width: 88px;
  height: 3px;
  background: var(--bb-red);
  z-index: 2;
  pointer-events: none;
}

.bb-video-section__frame iframe,
.bb-video-section__frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

html.bb-dark-mode .bb-video-section__frame,
html.wp-dark-mode-active .bb-video-section__frame {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px var(--bb-card-border) inset;
}

@media (max-width: 920px) {
  .bb-video-section__inner {
    grid-template-columns: 1fr;
  }

  .bb-video-section__content {
    max-width: 720px;
  }

  .bb-video-section__content h2 {
    max-width: 16ch;
  }
}

@media (max-width: 640px) {
  .bb-video-section__frame {
    border-radius: var(--bb-radius-sm);
  }

  .bb-video-section__frame::before {
    inset: 10px -10px -10px 10px;
    border-radius: var(--bb-radius-sm);
  }
}

/* Homepage: FAQ section */

.bb-faq {
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  margin: 0;
}

.bb-faq__inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
}

.bb-faq__header {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.bb-faq__header h2 {
  max-width: 16ch;
}

.bb-faq__intro {
  max-width: 68ch;
}

.bb-faq__list {
  display: grid;
  gap: 0.75rem;
}

.bb-faq-item {
  position: relative;
  border-radius: var(--bb-radius-md);
  background: var(--bb-card-overlay);
  border: 1px solid var(--bb-card-border);
  box-shadow: var(--bb-shadow-soft);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  backdrop-filter: blur(4px);
}

.bb-faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--bb-bg-glow), transparent 34%),
    linear-gradient(135deg, var(--bb-bg-sheen), transparent 48%);
  pointer-events: none;
}

.bb-faq-item.is-open {
  border-color: var(--bb-card-border);
  border-left: 4px solid var(--bb-red);
  box-shadow: var(--bb-shadow-card);
  backdrop-filter: blur(4px);
}

.bb-faq-item__heading {
  position: relative;
  z-index: 1;
  margin: 0;
}

.bb-faq-item__button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border: 0;
  background: transparent;
  color: var(--bb-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bb-faq-item__button span:first-child {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bb-faq-item__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bb-red) 28%, transparent);
  outline-offset: -3px;
}

.bb-faq-item__icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--bb-radius-pill);
  background: var(--bb-bg);
  border: 1px solid var(--bb-card-border);
  flex: 0 0 auto;
}

.bb-faq-item__icon::before,
.bb-faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72rem;
  height: 2px;
  background: var(--bb-text);
  transform: translate(-50%, -50%);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.bb-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.bb-faq-item.is-open .bb-faq-item__icon {
  background: color-mix(in srgb, var(--bb-red) 8%, transparent);
  border-color: color-mix(in srgb, var(--bb-red) 18%, transparent);
}

.bb-faq-item.is-open .bb-faq-item__icon::before,
.bb-faq-item.is-open .bb-faq-item__icon::after {
  background: var(--bb-red);
}

.bb-faq-item.is-open .bb-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.bb-faq-item__panel {
  position: relative;
  z-index: 1;
  padding: 0 1.35rem 1.35rem;
}

.bb-faq-item__panel p {
  margin: 0;
  color: var(--bb-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 76ch;
}

@media (max-width: 640px) {
  .bb-faq-item {
    border-radius: var(--bb-radius-sm);
  }

  .bb-faq-item__button {
    padding: 1.1rem;
  }

  .bb-faq-item__panel {
    padding: 0 1.1rem 1.2rem;
  }
}

/* Homepage typography (DE / EN): use the copy column before wrapping words.
   Keep the scale local while other page layouts retain their own typography. */
:is(.page-id-2, .page-id-2402) .bb-home-hero .bb-hero-heading {
  max-width: 100%;
  min-width: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  line-height: 1.12;
  /* Only editorial soft hyphens may split hero words. In the DE page content,
     use Inspektions&shy;systeme to offer that break without forcing a new line. */
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: anywhere;
}

:is(.page-id-2, .page-id-2402) :is(
  .bb-proof-band__content,
  .bb-benefits__header,
  .bb-process__header,
  .bb-usecases__header,
  .bb-video-section__content,
  .bb-faq__header
) h2 {
  max-width: 100%;
  min-width: 0;
  font-size: clamp(1.625rem, 1.375rem + 1vw, 2.5rem);
  line-height: 1.18;
  hyphens: manual;
  overflow-wrap: anywhere;
}

:is(.page-id-2, .page-id-2402) :is(
  .bb-benefit-card,
  .bb-process-step,
  .bb-usecase-card
) h3 {
  max-width: 100%;
  font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
  line-height: 1.25;
  hyphens: manual;
  overflow-wrap: anywhere;
}

:is(.page-id-2, .page-id-2402) .bb-home-hero__inner > * {
  min-width: 0;
}

@media (max-width: 920px) {
  :is(.page-id-2, .page-id-2402) .bb-home-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
