/* ==========================================================================
   Branchen
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.br-hero { position: relative; background: transparent; clip-path: inset(0); }
.br-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.br-hero__title { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.br-hero__title .h1 { white-space: nowrap; }
@media (max-width: 1180px) { .br-hero__title .h1 { white-space: normal; } }

/* --- Branchen-Tabs ------------------------------------------------------- */
.br-tabs { background: var(--blue-dark-2); color: var(--white); }
.br-tabs__inner { padding-block: 80px; display: flex; gap: 17px; align-items: flex-start; }
.br-tabs__list { width: 309px; flex: none; display: flex; flex-direction: column; gap: 48px; }
.br-tab {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 10px;
  border-radius: 10000px;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: normal;
  color: var(--white);
  text-align: center;
  transition: color .15s ease;
}
/* the active pill bleeds off the left page edge, as drawn in Figma —
   including the full-bleed strip left of the 1440px frame */
.br-tab.is-active::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--gutter) + var(--bleed)));
  right: 7px;
  top: 0;
  bottom: 0;
  background: var(--blue-main);
  border-radius: 0 100px 100px 0;
  z-index: -1;
}
.br-tab:not(.is-active):hover { color: var(--blue-medium); }

.br-panel {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}
.br-panel__head { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.br-panel__head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: normal;
  color: var(--blue-main);
  text-transform: uppercase;
}
.br-panel p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }
.br-block { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.br-block h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
}
.br-block--start h3 { color: var(--plum-main); }
.br-list { display: flex; flex-direction: column; gap: 16px; padding: 10px; width: 100%; }
.br-list li { display: flex; align-items: center; gap: 16px; }
.br-list .dot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 1000px;
  background: rgba(217, 136, 222, .2);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.br-list .dot img { width: 16px; height: 16px; }
.br-result {
  width: 100%;
  background: var(--blue-very-light);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
  border-radius: 24px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.br-result h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--blue-main);
}

@media (max-width: 1100px) {
  .br-tabs__inner { flex-direction: column; padding-block: 48px; gap: 32px; }
  .br-tabs__list { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .br-tab { height: auto; padding: 10px 20px; font-size: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
  .br-tab.is-active { box-shadow: none; }
  .br-tab.is-active::before { left: 0; right: 0; border-radius: 10000px; }
  .br-panel { width: 100%; padding: 24px; }
}
@media (max-width: 560px) {
  .br-panel { padding: 20px; }
  .br-list { padding: 0; }
}

/* --- Referenzen / Testimonial-Karussell ---------------------------------- */
.br-ref { position: relative; background: transparent; height: 700px; clip-path: inset(0); }
.br-ref__head { position: absolute; left: var(--gutter); top: 82px; width: 738px; max-width: calc(100% - 2 * var(--gutter)); display: flex; flex-direction: column; gap: 16px; }
.br-ref__title { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.br-ref__title .h2 { white-space: nowrap; }
/* Beide Teile der Überschrift in einer Zeile — der Slide beginnt fest bei 200px. */
.br-ref__title .shead__line { display: inline-block; margin-left: .28em; }

/* One slide at a time; the inactive ones stay in the DOM but out of flow. */
.br-ref__slide { display: none; }
.br-ref__slide.is-active { display: block; }

.br-ref__body {
  position: absolute;
  left: var(--gutter);
  top: 200px;
  width: 628px;
  max-width: calc(100% - 2 * var(--gutter));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.br-ref__headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.br-ref__who {
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 30px;
  color: var(--blue-main);
}
.br-ref__who strong { font-weight: 700; }
.br-ref__who span { font-weight: 400; display: block; }
.br-ref__quote {
  position: relative;
  margin: 0;
  padding-left: 44px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
}
.br-ref__mark {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 104px;
  line-height: .7;
  letter-spacing: .369px;
  color: var(--plum-medium);
  opacity: .4;
  user-select: none;
}
.br-ref__mark--a { left: -6px; top: -20px; }
.br-ref__mark--b { right: 0; bottom: -48px; transform: rotate(180deg); }

.br-ref__media {
  position: absolute;
  left: calc(50% + 12px);
  top: 200px;
  width: 628px;
  height: 399px;
  border-radius: 16px;
  overflow: hidden;
}
.br-ref__media > img.photo {
  position: absolute;
  left: -80px;
  top: -15px;
  width: 788px;
  height: 429px;
  max-width: none;
  object-fit: cover;
}
.br-ref__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 123, 255, .4);
}
.br-ref__media > .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.br-ref__media > img.brand { width: auto; height: 84px; max-width: 70%; object-fit: contain; }

/* Fade the swapped-in slide, unless the visitor asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .br-ref__slide.is-active .br-ref__body,
  .br-ref__slide.is-active .br-ref__media { animation: brRefIn .45s ease both; }
}
@keyframes brRefIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.br-ref__nav {
  position: absolute;
  top: 380px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.br-ref__nav img { width: 100%; height: 100%; }
.br-ref__nav:hover { opacity: .7; }
.br-ref__nav:focus-visible { outline: 2px solid var(--blue-main); outline-offset: 4px; border-radius: 50%; }
.br-ref__nav--prev { left: 24px; }
.br-ref__nav--prev:hover { transform: translateX(-3px); }
.br-ref__nav--next { right: 24px; transform: rotate(180deg); }
.br-ref__nav--next:hover { transform: rotate(180deg) translateX(-3px); }

.br-ref__dots {
  position: absolute;
  left: var(--gutter);
  bottom: 44px;
  display: flex;
  gap: 10px;
}
.br-ref__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-medium);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.br-ref__dot.is-active { width: 28px; border-radius: 5px; background: var(--blue-main); }
.br-ref__dot:focus-visible { outline: 2px solid var(--blue-main); outline-offset: 3px; }

@media (max-width: 1240px) {
  .br-ref { height: auto; padding: 48px var(--gutter); }
  .br-ref__head, .br-ref__body { position: static; width: 100%; max-width: 100%; white-space: normal; }
  .br-ref__title .h2 { white-space: normal; }
  .br-ref__title .shead__line { display: block; margin-left: 0; }
  .br-ref__head { margin-bottom: 24px; }
  .br-ref__body { margin-bottom: 24px; }
  .br-ref__media { position: static; width: 100%; height: auto; aspect-ratio: 628 / 399; }
  .br-ref__media > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; left: 0; top: 0; }
  .br-ref__media > img.brand { height: 60px; }
  .br-ref__quote { padding-left: 0; }
  .br-ref__mark, .br-ref__nav { display: none; }
  .br-ref__dots { position: static; margin-top: 24px; }
}
@media (max-width: 700px) {
  .br-ref__headline { font-size: 20px; line-height: 26px; }
  .br-ref__who { font-size: 19px; line-height: 26px; }
}

/* --- Evaluation-Center --------------------------------------------------- */
.br-eval { position: relative; background: transparent; height: 964px; }
.br-eval .shead { position: absolute; left: var(--gutter); top: 48px; width: 628px; max-width: calc(100% - 2 * var(--gutter)); }
.br-eval .shead__title { width: 612px; max-width: 100%; }
.br-eval__glow {
  position: absolute;
  left: 82.29%;
  top: 390.96px;
  width: 715.5px;
  height: 658.2px;
  --glow-rot: 150deg;
  --glow-dur: 29s;
  --glow-delay: -7s;
}
.br-steps { position: absolute; left: var(--gutter); top: 315px; display: flex; flex-direction: column; gap: 26px; z-index: 1; }
/* positioned so the steps paint above .br-eval__line, which they follow in the DOM */
.br-step { position: relative; display: flex; gap: 24px; align-items: flex-start; padding: 24px; border-radius: 16px; }
.br-step__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 1000px;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
}
.br-step__body { display: flex; flex-direction: column; gap: 8px; }
.br-step__body h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: normal; text-transform: uppercase; }
.br-step__body p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }
.br-step__body p.w450 { width: 100%; max-width: 450px; }
.br-eval__line { position: absolute; left: 43px; top: 45px; width: 4px; height: 286px; background: var(--blue-main); border-radius: 4px; }
.br-eval__cta { position: absolute; left: var(--gutter); top: 806px; z-index: 1; }

.br-eval__cards {
  position: absolute;
  left: calc(50% + 67px + 80px);
  top: 79px;
  width: 363px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1;
}
.br-ecard {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
  border-radius: 16px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.br-ecard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 1000px;
  background: #fddfff;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
}
.br-ecard__icon img { width: 24px; height: 24px; }
.br-ecard__body { display: flex; flex-direction: column; gap: 8px; }
.br-ecard__body h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: normal; text-transform: uppercase; }
.br-ecard__body p { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: normal; }

@media (max-width: 1240px) {
  .br-eval { height: auto; padding: 48px var(--gutter); }
  .br-eval .shead, .br-steps, .br-eval__cta, .br-eval__cards { position: static; width: 100%; max-width: 100%; }
  .br-steps { margin-top: 40px; }
  .br-step { padding: 0 0 0 0; }
  .br-eval__line { display: none; }
  .br-eval__cta { margin-top: 32px; }
  .br-eval__cards { margin-top: 40px; }
  .br-eval__glow { display: none; }
}
@media (min-width: 1241px) {
  .br-steps { padding-left: 0; }
}

/* --- Branchen-Teaser ----------------------------------------------------- */
.br-teaser { background: var(--blue-dark-2); color: var(--white); }
.br-teaser__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-block: 64px;
  text-align: center;
}
.br-teaser__head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.br-teaser__head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1.074;
  letter-spacing: .369px;
}
.br-teaser__head p { font-family: var(--font-head); font-size: 16px; line-height: 20px; width: 100%; max-width: 766px; }
.br-teaser__logo { width: 356px; height: 88.72px; max-width: 80%; object-fit: contain; }
.br-teaser .btn--dark {
  background: var(--white);
  color: var(--blue-dark-2);
  border: 1px solid var(--blue-dark-2);
  width: 286px;
}

/* Evaluation-Center: Detailzeile unter Schritt 3 */
.br-step__body .br-step__detail { font-size: 14px; line-height: 1.5; color: #6b6b6b; }

/* Pilot-Ergebnis (Agentic AI Hub des BMDS) */
.br-pilot { width: 100%; background: var(--blue-dark-2); color: var(--white); border-radius: 24px; padding: 28px; display: flex; gap: 28px; align-items: center; }
.br-pilot__kpi { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 150px; }
.br-pilot__num { font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1; color: var(--plum-medium); white-space: nowrap; }
.br-pilot__numLabel { margin-top: 8px; font-family: var(--font-head); font-size: 15px; line-height: 1.3; color: var(--white); }
.br-pilot__body { display: flex; flex-direction: column; gap: 8px; }
.br-pilot__label { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-medium); }
.br-pilot__body p { font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--white); }
.br-pilot__link { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .br-pilot { flex-direction: column; align-items: flex-start; } }
