/* Shared quality layer for the six CEx consulting hubs. */
body.cex-migrated-page {
  --hub-radius-sm: 10px;
  --hub-radius-md: 14px;
  --hub-card-pad: clamp(22px, 2.4vw, 32px);
}

/* Hero deckt nur die oberen zwei Drittel des ersten Viewports ab, damit der
   folgende Abschnitt oberhalb der Falz sichtbar bleibt und zum Scrollen einlaedt.
   min-height statt height: der Hero-Inhalt (H1, Formular, CTAs, Kennzahlenzeile)
   misst natuerlich 685-689px und wuerde bei harten 66svh abgeschnitten. So belegt
   der Hero zwei Drittel, wo der Inhalt es zulaesst, und nie mehr als noetig. */




body.cex-migrated-page .section__head {
  max-width: 1040px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

body.cex-migrated-page .h-section {
  max-width: 24ch;
}

body.cex-migrated-page .h-lead {
  max-width: 68ch;
  line-height: 1.65;
}

body.cex-migrated-page .problem-grid,
body.cex-migrated-page .services-grid,
body.cex-migrated-page .uses-grid,
body.cex-migrated-page .industries {
  align-items: stretch;
}

/* align-self, not height:100%. These grids are wrapping flex now (see section 2
   of cx-components.css), and a flex item only stretches to its line when its
   cross size is `auto`. height:100% is not auto, so it opted every card out of
   the stretch and each one fell back to its own content height — that is why
   the BPMN card sat 26px shorter than the Lean card beside it. align-self does
   the same job in a grid and is the one flex actually honours. */
body.cex-migrated-page .problem-card,
body.cex-migrated-page .service-card,
body.cex-migrated-page .use-card,
body.cex-migrated-page .industry-card {
  height: auto;
  align-self: stretch;
  border-radius:0;
}

body.cex-migrated-page .problem-card,
body.cex-migrated-page .service-card {
  padding: var(--hub-card-pad);
}

body.cex-migrated-page .service-card {
  display: flex;
  flex-direction: column;
}

body.cex-migrated-page .problem-card__num,
body.cex-migrated-page .service-card__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cx-charcoal);
  background: var(--cx-yellow);
  border: 0;
  box-shadow: none;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  /* Der Sperrabstand hinter der letzten Ziffer zählt zur Textbreite und schiebt
     die Ziffern um seine Hälfte nach links. Innenabstand links in derselben
     Höhe hebt das auf; bei fester Größe wächst der Kasten dadurch nicht.
     padding:0 davor, damit ein Rest von rechts nicht dagegenhält. */
  padding: 0;
  padding-left: .08em;
}

body.cex-migrated-page .problem-card__num {
  width: 32px;
  height: 32px;
  border-radius:0;
  margin-bottom: 18px;
}

body.cex-migrated-page .service-card__num {
  width: 46px;
  height: 46px;
  border-radius:0;
  margin-bottom: 22px;
}

body.cex-migrated-page .method {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 14px !important;
  border: 0 !important;
}

body.cex-migrated-page .method-step {
  grid-column: auto !important;
  padding: 26px 22px !important;
  border: 1px solid var(--line-on-dark) !important;
  border-radius:0 !important;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 3px 0 var(--cx-yellow);
}

body.cex-migrated-page .method-step::before {
  display: none !important;
}

/* Schmaler Abschnittskopf neben einem Kartenraster. Bei voller Breite ist die
   Ueberschrift 52px gross; in einer Spalte von rund 440px passt ein langes
   deutsches Kompositum ("Standortbestimmung" = 518px bei 52px) dann nicht mehr
   in eine Zeile, und die globale Regel overflow-wrap:anywhere trennt es mitten
   im Wort ("Standortbestimm / ung"). Solche Koepfe bekommen diese Klasse und
   damit eine Stufe kleinere Schrift — dieselbe Stufe, die die schmalen Koepfe
   auf Prozessoptimierung schon verwenden. */
body.cex-migrated-page .section__head--narrow .h-section {
  font-size: clamp(2rem, 3vw, 2.4rem) !important;
}

/* Die orange 3px-Kante oben gehoert zur Karten-Darstellung der Phasen. In der
   Zeitstrahl-Darstellung (.process-timeline auf Digitalisierung und KI) sind
   die Schritte keine Karten, sondern Zeilen an einem durchgehenden orangen
   Faden. Dort liefen zwei orange Striche gegeneinander — der senkrechte Faden
   und ueber jedem Schritt noch eine waagerechte Kante. Der Zeitstrahl behaelt
   nur den Faden. */
body.cex-migrated-page .process-timeline .method-step {
  box-shadow: none !important;
}

body.cex-migrated-page .method-step__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  margin-bottom: 16px;
}

body.cex-migrated-page .method-step__num {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  min-width: 28px;
  height: 28px;
  flex: 0 0 28px;
  aspect-ratio: 1;
  margin: 0;
  border-radius:0 !important;
  background: var(--cx-yellow);
  color: var(--cx-charcoal) !important;
  letter-spacing: 0 !important;
}

body.cex-migrated-page .method-step__when {
  margin: 0;
  padding-left: 0 !important;
  border-left: 0 !important;
  color: rgba(255,255,255,.66) !important;
}

body.cex-migrated-page .method-step__title {
  min-height: 2.5em;
}







body.cex-migrated-page .cex-page-visual {
  overflow: hidden;
  border-radius:0;
  border: 1px solid var(--line);
  background: var(--cx-warm-3);
}

body.cex-migrated-page .cex-page-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

body.cex-migrated-page .hub-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}

body.cex-migrated-page .hub-result {
  min-height: 74px;
  padding: 14px 15px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius:0;
  background: var(--cx-warm-2);
  color: var(--cx-charcoal);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
}

.ea-architecture-map {
  margin: 36px 0 10px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius:0;
  background: rgba(255,255,255,.04);
  color: #fff;
}

.ea-architecture-map__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.ea-architecture-map__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--cx-yellow);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ea-architecture-map h3 {
  max-width: 24ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.ea-architecture-map__model {
  display: grid;
  grid-template-columns: minmax(180px,.72fr) 36px minmax(0,2fr);
  gap: 18px;
  align-items: stretch;
}

.ea-architecture-map__entry,
.ea-architecture-map__step {
  border: 1px solid rgba(255,255,255,.14);
  border-radius:0;
  background: rgba(255,255,255,.055);
}

.ea-architecture-map__entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  box-shadow: inset 0 3px 0 var(--cx-yellow);
}

.ea-architecture-map__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius:0;
  background: var(--cx-yellow);
  color: var(--cx-charcoal);
  font-size: .7rem;
  font-weight: 800;
}

.ea-architecture-map__entry strong,
.ea-architecture-map__step strong {
  display: block;
  color: #fff;
  font-size: .98rem;
  line-height: 1.3;
}

.ea-architecture-map__entry span:last-child,
.ea-architecture-map__step span:last-child {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  line-height: 1.45;
}

.ea-architecture-map__arrow {
  display: grid;
  place-items: center;
  color: var(--cx-yellow);
  font-size: 1.6rem;
}

.ea-architecture-map__cycle {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,122,0,.55);
  border-radius:0;
  background: rgba(255,122,0,.055);
}

.ea-architecture-map__step {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  column-gap: 11px;
  align-content: start;
  min-height: 88px;
  padding: 17px;
}

.ea-architecture-map__step .ea-architecture-map__num {
  width: 26px;
  height: 26px;
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

.ea-architecture-map__step strong,
.ea-architecture-map__step span:last-child {
  grid-column: 2;
}

.ea-architecture-map figcaption {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-on-band);
  color: rgba(255,255,255,.7);
  font-size: .84rem;
  line-height: 1.55;
}

@media (min-width: 821px) {
  body.cex-migrated-page .method:has(> .method-step:nth-child(5):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.cex-migrated-page .method:has(> .method-step:nth-child(5):last-child) > .method-step {
    grid-column: span 2 !important;
  }

  /* Five steps, three on top and two below. The two used to sit centred at their
     original width, leaving a column of air at each end. They now take half the
     row each, so the second row ends flush with the first — same rule as every
     other card grid on the site. */
  body.cex-migrated-page .method:has(> .method-step:nth-child(5):last-child) > .method-step:nth-child(4) {
    grid-column: 1 / span 3 !important;
  }

  body.cex-migrated-page .method:has(> .method-step:nth-child(5):last-child) > .method-step:nth-child(5) {
    grid-column: 4 / span 3 !important;
  }
}

@media (max-width: 820px) {
  /* Auch mobil nur zwei Drittel — sonst setzt diese Regel den Hero wieder auf
     volle Viewporthoehe und der naechste Abschnitt verschwindet unter der Falz. */
  

  body.cex-migrated-page .section__head,
  body.cex-migrated-page .section__head .eyebrow,
  body.cex-migrated-page .section__head .h-section,
  body.cex-migrated-page .section__head .h-lead {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  /* width:100% ist hier Pflicht, nicht Kosmetik. Steht ein .section__head als
     Grid- oder Flex-Kind (z. B. in .process-services-intro), dann schalten die
     beiden auto-Margins oben das Stretchen ab. Die Box faellt dann auf ihre
     min-content-Breite zurueck — und weil mobil zusaetzlich
     overflow-wrap:anywhere gilt, ist min-content die Breite EINES Buchstabens.
     Ergebnis war eine Ueberschrift, die senkrecht Zeichen fuer Zeichen
     untereinander stand. Mit width:100% bleibt die Box breit, die auto-Margins
     laufen auf 0 und die Zentrierung macht ohnehin text-align. */
  body.cex-migrated-page .section__head {
    width: 100%;
  }

  body.cex-migrated-page .section__head .eyebrow {
    justify-content: center;
  }

  body.cex-migrated-page h1,
  body.cex-migrated-page h2,
  body.cex-migrated-page h3,
  body.cex-migrated-page .h-section,
  body.cex-migrated-page .hero__title,
  body.cex-migrated-page .cx-proof__h {
    /* break-word, not normal. `normal` was added to stop mid-syllable splits, but
       it also forbids the one break a long German compound genuinely needs, so
       headings ran past their column at 390px. break-word breaks only when the
       word cannot fit at all; word-break and hyphens stay off, so nothing else
       about the wrapping changes. */
    overflow-wrap: break-word !important;
    word-break: normal !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
  }

  body.cex-migrated-page .hub-result-grid {
    grid-template-columns: 1fr;
  }

  body.cex-migrated-page .method {
    grid-template-columns: 1fr !important;
  }

  /* Step cards read flush left on a narrow screen — see section 4 of
     cx-components.css. Centring a four-line paragraph in a 347px column makes
     the reader hunt for the start of every line. */
  body.cex-migrated-page .method-step__meta,
  body.cex-migrated-page .use-card__tag {
    justify-content: flex-start;
  }

  body.cex-migrated-page .problem-card__num,
  body.cex-migrated-page .service-card__num {
    margin-left: 0;
    margin-right: 0;
  }

  .ea-architecture-map__head {
    display: block;
    text-align: center;
  }

  .ea-architecture-map__model {
    grid-template-columns: 1fr;
  }

  .ea-architecture-map__entry {
    min-height: 0;
  }

  .ea-architecture-map__entry .ea-architecture-map__num {
    margin-left: 0;
    margin-right: 0;
  }

  .ea-architecture-map__arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .ea-architecture-map {
    padding: 22px 16px;
  }

  .ea-architecture-map__cycle {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cex-migrated-page .service-card {
    transition: none;
  }
}
