/* Unverändert aus EXT:kp_productpage/Resources/Public/Css/b2b-teaser.css (uebergang-export.cjs). */
/* b2b-teaser.css – Einstieg auf die Produktseite: groß für die Startseite, als Leiste für Unterseiten.
   Wirkt nur am Modul selbst (.theme-dark am <section>/<aside>), die übrige Seite bleibt unberührt. */

.b2b-teaser,
.b2b-strip {
  --gut: clamp(16px, 3.6vw, 52px);
  position: relative;
  overflow: hidden;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
.b2b-teaser .frame,
.b2b-strip .frame {
  width: min(100% - 2 * var(--gut), 1334px);
  margin-inline: auto;
}

/* Startseite: volle Breite, auch wenn das Modul in einem schmaleren Container steht. Kompakt (Entscheidung
   des Nutzers 2026-10-17): niedriger als der Hero davor, Abstand zum Folgemodul wie bei den übrigen
   Startseitenmodulen der Website (.eventsRow, .careerTeaser: 100 px ab 992 px, darunter 40 px). */
.b2b-teaser {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 40px;
  padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.25rem);
  background: linear-gradient(var(--bg-deep), var(--bg) 78%);
}
@media only screen and (min-width: 992px) { .b2b-teaser { margin-bottom: 100px; } }
.b2b-teaser .tgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.b2b-teaser .tgrid--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 960px) { .b2b-teaser .tgrid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
/* Bühne kleiner und ohne Score-Chips; die Chips gehören zur Produktseite. Die Kopfzeile bricht als Ganzes um. */
.theme-dark.b2b-teaser .scene-wrap { width: 100%; max-width: 480px; justify-self: end; }
@media (max-width: 960px) { .theme-dark.b2b-teaser .scene-wrap { max-width: 440px; justify-self: start; } }
.theme-dark.b2b-teaser .scene-chips { display: none; }
.theme-dark.b2b-teaser .scene-head { flex-wrap: wrap; gap: .3rem 1rem; }
.theme-dark.b2b-teaser .scene-head > * { white-space: nowrap; }
.theme-dark.b2b-teaser .eyebrow { margin-bottom: 1rem; }
/* body davor: schlägt „.homepage *:not(.eventsRow) h2“ (Versalien) der Website */
body .b2b-teaser.theme-dark h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); text-transform: none; line-height: 1.06; max-width: 22ch; }
.b2b-teaser .b-lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); max-width: 52ch; margin-top: 1rem; }
.b2b-teaser .triad { margin-top: 1.1rem; font-size: 1.02rem; }
.b2b-teaser .cta-row { margin-top: 1.2rem; }

/* Einstiege: springen direkt in Reiter oder Sektion der Produktseite */
.b2b-teaser .paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-strong);
}
.b2b-teaser .paths a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .2rem .8rem;
  align-items: baseline;
  padding: .95rem 1.1rem 1.05rem;
  text-decoration: none;
  color: var(--fg);
  border-right: 1px solid var(--line);
  transition: background .18s;
}
.b2b-teaser .paths a:last-child { border-right: 0; }
.b2b-teaser .paths a:hover { background: rgba(242, 238, 227, .04); }
.b2b-teaser .paths a:hover .arr { transform: translateX(4px); color: var(--accent-text); }
.b2b-teaser .paths .k { font: 500 .86rem/1.2 var(--body); color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.b2b-teaser .paths b { font: 600 1.02rem/1.25 var(--display); }
.b2b-teaser .paths .arr { grid-row: 1 / 3; grid-column: 3; align-self: center; font: 500 1.1rem/1 var(--body); color: var(--fg-dim); transition: transform .18s, color .18s; }
.b2b-teaser .paths small { grid-column: 2; font-size: .86rem; color: var(--fg-muted); }
.b2b-teaser .paths a.ai b { color: var(--ai-text); }
.b2b-teaser .paths a.ai .k::after { content: " · KI"; color: var(--ai-text); }
.b2b-teaser:lang(en) .paths a.ai .k::after { content: " · AI"; }
@media (max-width: 860px) {
  .b2b-teaser .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-teaser .paths a:nth-child(2n) { border-right: 0; }
  .b2b-teaser .paths a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .b2b-teaser .paths { grid-template-columns: minmax(0, 1fr); }
  .b2b-teaser .paths a { border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem .9rem .9rem; }
}

/* Leiste für Unterseiten */
.b2b-strip {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 3px;
}
.b2b-strip .strip-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.2rem 2rem;
  align-items: center;
  padding-block: 1.4rem;
  margin: 0 auto;
}
.b2b-strip .eyebrow { margin: 0 0 .45rem; }
.b2b-strip .strip-text { font-size: 1.06rem; color: var(--fg-muted); max-width: 70ch; }
.b2b-strip .strip-text b { color: var(--fg); font-weight: 600; font-size: 1.22rem; display: block; margin-bottom: .1rem; }
.b2b-strip .chips { display: flex; gap: .45rem; }
.b2b-strip .chips span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 500 .86rem/1.2 var(--body);
  color: var(--fg-muted);
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  padding: .35rem .55rem;
  border-radius: 3px;
  white-space: nowrap;
}
.b2b-strip .chips i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.b2b-strip .chips i.status-warn { background: var(--warn); }
.b2b-strip .chips i.status-bad { background: var(--bad); }
@media (max-width: 1060px) {
  .b2b-strip .chips { display: none; }
  .b2b-strip .strip-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 620px) { .b2b-strip .strip-row { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .b2b-teaser *, .b2b-teaser *::before, .b2b-teaser *::after { animation: none !important; transition: none !important; }
}
