/* === Bauerschmidt Text-Only Sticky Cards === */
.bs-tsc {
  --bs-tsc-sticky-top: 0px;
  --bs-tsc-card-height: 500px;
  --bs-tsc-stack-gap: 600px;
  --bs-tsc-radius: 0px;
  --bs-tsc-pad-top: 48px;
  --bs-tsc-pad-right: 64px;
  --bs-tsc-pad-bottom: 48px;
  --bs-tsc-pad-left: 64px;
  --bs-tsc-bg: #0077C8;
  --bs-tsc-color: #FFFFFF;
  --bs-tsc-justify: space-between;
  --bs-tsc-align-items: flex-start;
  --bs-tsc-text-align: left;
  --bs-tsc-badge-color: rgba(255,255,255,0.80);
  --bs-tsc-badge-size: 14px;
  --bs-tsc-badge-weight: 500;
  --bs-tsc-badge-ls: 0.06em;
  --bs-tsc-badge-mb: 12px;
  --bs-tsc-title-size: 52px;
  --bs-tsc-title-lh: 1.06;
  --bs-tsc-title-weight: 700;
  --bs-tsc-title-ls: -0.02em;
  --bs-tsc-num-color: rgba(255,255,255,0.10);
  --bs-tsc-num-size: 320px;
  --bs-tsc-num-x: 75%;
  --bs-tsc-num-y: 50%;
  --bs-tsc-text-size: 17px;
  --bs-tsc-text-lh: 1.75;
  --bs-tsc-text-max: 680px;
  --bs-tsc-text-opacity: 0.92;
  --bs-tsc-gap-title-text: 0px;
  --bs-tsc-btn-bg: #FFFFFF;
  --bs-tsc-btn-color: #0077C8;
  --bs-tsc-btn-bg-hover: #F2F6FA;
  --bs-tsc-btn-color-hover: #0077C8;
  --bs-tsc-btn-radius: 30px;
  --bs-tsc-btn-pad-y: 12px;
  --bs-tsc-btn-pad-x: 24px;
  --bs-tsc-btn-mt: 28px;
}
.bs-tsc-list { display: block; }

/* ── Intro-Spalte links + Karten rechts ── */
.bs-tsc.has-intro .bs-tsc-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 4em;
  align-items: start;
}

.bs-tsc-intro {
  align-self: start;
  font-family: "Funnel Sans", sans-serif;
}

.bs-tsc.is-intro-sticky .bs-tsc-intro {
  position: sticky;
  position: -webkit-sticky;
  top: 120px;
}

.bs-tsc-intro__eyebrow {
  display: block;
  font-family: "Funnel Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0077C8;
  margin: 0 0 16px 0;
}

.bs-tsc-intro__title {
  margin: 0;
  font-family: "Funnel Sans", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: -0.01em;
  color: #0D1B2E;
}

@media (max-width: 900px) {
  /* Stack: Intro oben, Karten darunter — schlägt Elementor-Inline `40% 1fr` */
  .bs-tsc.has-intro .bs-tsc-grid {
    grid-template-columns: 1fr !important;
    gap: 2em !important;
  }
  .bs-tsc.is-intro-sticky .bs-tsc-intro {
    position: static !important;
    top: auto !important;
  }
  .bs-tsc-intro { width: 100% !important; }
  .bs-tsc-intro__title { font-size: 30px; line-height: 1.2; }
}

@media (max-width: 767px) {
  /* Auf Phones: Intro kompakter, mehr Luft zu Karten */
  .bs-tsc.has-intro .bs-tsc-grid {
    gap: 1.5em !important;
  }
  .bs-tsc-intro__title { font-size: 26px; }
}
.bs-tsc-card {
  position: relative;
  height: calc(var(--bs-tsc-card-height) + var(--bs-tsc-stack-gap));
  margin: 0;
}
.bs-tsc.is-sticky .bs-tsc-card {
  position: sticky;
  top: var(--bs-tsc-sticky-top) !important;
}
.bs-tsc-inner {
  position: relative;
  height: var(--bs-tsc-card-height);
  overflow: hidden;
  border-radius: var(--bs-tsc-radius);
  background: var(--bs-tsc-bg);
  color: var(--bs-tsc-color);
  z-index: var(--bs-tsc-z, 1);
  display: flex;
  flex-direction: column;
  justify-content: var(--bs-tsc-justify);
  align-items: var(--bs-tsc-align-items);
  text-align: var(--bs-tsc-text-align);
  padding: var(--bs-tsc-pad-top) var(--bs-tsc-pad-right) var(--bs-tsc-pad-bottom) var(--bs-tsc-pad-left);
}
.bs-tsc-num {
  position: absolute;
  left: var(--bs-tsc-num-x);
  top: var(--bs-tsc-num-y);
  transform: translate(-50%, -50%);
  font-size: var(--bs-tsc-num-size);
  font-weight: 700;
  line-height: 0.9;
  color: var(--bs-tsc-num-color);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.bs-tsc-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: inherit;
}
.bs-tsc-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: inherit;
}
.bs-tsc-badge {
  display: block;
  margin-bottom: var(--bs-tsc-badge-mb);
  color: var(--bs-tsc-badge-color);
  font-size: var(--bs-tsc-badge-size);
  font-weight: var(--bs-tsc-badge-weight);
  letter-spacing: var(--bs-tsc-badge-ls);
  line-height: 1.4;
}
.bs-tsc-title {
  margin: 0;
  font-size: var(--bs-tsc-title-size);
  font-weight: var(--bs-tsc-title-weight);
  line-height: var(--bs-tsc-title-lh);
  letter-spacing: var(--bs-tsc-title-ls);
  color: inherit;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.bs-tsc-text {
  margin: 0;
  font-size: var(--bs-tsc-text-size);
  line-height: var(--bs-tsc-text-lh);
  max-width: var(--bs-tsc-text-max);
  opacity: var(--bs-tsc-text-opacity);
}
.bs-tsc-btn {
  margin-top: var(--bs-tsc-btn-mt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bs-tsc-btn-pad-y) var(--bs-tsc-btn-pad-x);
  border-radius: var(--bs-tsc-btn-radius);
  border: 2px solid var(--bs-tsc-btn-bg);
  background: var(--bs-tsc-btn-bg);
  color: var(--bs-tsc-btn-color);
  text-decoration: none;
  font-family: "Funnel Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bs-tsc-btn:hover {
  background: var(--bs-tsc-btn-bg-hover);
  color: var(--bs-tsc-btn-color-hover);
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .bs-tsc-title { font-size: clamp(26px, 6.5vw, 32px); line-height: 1.15; }
  .bs-tsc-text  { font-size: 15px; line-height: 1.65; }
  .bs-tsc-num   { font-size: 140px; }
  .bs-tsc-inner {
    --bs-tsc-pad-left: 20px;
    --bs-tsc-pad-right: 20px;
    --bs-tsc-pad-top: 32px;
    --bs-tsc-pad-bottom: 32px;
  }
  /* Mobile: kein Sticky-Stacking → Karten dürfen content-driven sein.
     Wir entkoppeln Karten- und Stack-Höhe komplett, damit kein leerer
     Raum zwischen Top- und Bottom-Block entsteht. Inhalt stapelt
     normal mit gleichmäßigem Abstand. */
  .bs-tsc-card {
    height: auto;
    min-height: 0;
  }
  .bs-tsc-inner {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 24px;
  }
  .bs-tsc-btn { width: 100%; justify-content: center; padding: 14px 20px; min-height: 48px; }
}

@media (max-width: 480px) {
  .bs-tsc-title { font-size: 24px; }
  .bs-tsc-num   { font-size: 110px; }
  .bs-tsc-inner {
    --bs-tsc-pad-left: 16px;
    --bs-tsc-pad-right: 16px;
    --bs-tsc-pad-top: 28px;
    --bs-tsc-pad-bottom: 28px;
  }
  .bs-tsc-intro__title { font-size: 26px; line-height: 1.2; }
}
