/* ---- Hero ---- */
.hero {
  padding-top: var(--space-24);
  display: flex;
  align-items: center;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}
.hero__brand {
  display: inline-flex;
  margin-bottom: var(--space-4);
}
.hero__logo {
  width: clamp(100px, 12vw, 123px);
  height: auto;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.1667;
  text-transform: uppercase;
}
.hero__lead {
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: var(--fw-regular);
  max-width: 77ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* ---- Workflow steps ---- */
.workflow {
  margin-top: var(--space-section-gap);
}
.workflow__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  max-width: 900px;
  margin-inline: auto;
}
.workflow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-16);
}
.workflow__step {
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
  background: var(--color-blue-300);
  border-radius: 6.725px;
  padding: 0 20px;
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}
.workflow__connector {
  flex: 1 1 auto;
  height: 2px;
  border-top: 2px dashed var(--color-gray-50);
}

/* ---- Problems ---- */
.problems {
  margin-top: var(--space-section-gap);
}
.problems__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  max-width: 1050px;
  margin-inline: auto;
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.problem-card {
  height: 350px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.problem-card__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.problem-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.problem-card__warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: auto;
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}
.problem-card__warning-icon {
  flex-shrink: 0;
  font-size: 1.125em;
  line-height: 1.5;
}

/* ---- Comparison table ---- */
.compare {
  margin-top: var(--space-section-gap);
}
.compare__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  max-width: 900px;
  margin-inline: auto;
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-12);
}
.compare__table th,
.compare__table td {
  padding: var(--space-4) var(--space-6);
  color: var(--text-on-dark);
  text-align: center;
}
.compare__table th:first-child,
.compare__table td:first-child {
  text-align: left;
  padding-left: 0;
}
.compare__table thead th {
  font-size: var(--fs-body);
  font-weight: var(--fw-xbold);
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: var(--space-6);
}
.compare__table tbody td {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  border-top: 1px solid var(--border-on-dark);
}
.compare__icon {
  margin-inline: auto;
}

/* Legend under the table */
.compare__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-12);
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.legend__brand {
  position: relative;
  display: inline-flex;
}
.legend__brand-name {
  padding: 2px 14px;
}
.legend__brand-cover {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: var(--surface-glass-soft);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.legend__sep {
  width: 7px;
  height: 7px;
}

/* ---- Positioning (Nicht BPM. Nicht Workflow-Automation.) ---- */
.positioning {
  margin-top: var(--space-section-gap);
}
.positioning__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-inline: auto;
}
.positioning__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.positioning-card {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  @media (max-width: 860px) {
    padding: 30px;
  }
}
.positioning-card__title {
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.positioning-card__text {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

/* ---- Verticals (Eine Plattform. Beliebig viele Verticals.) ---- */
.verticals {
  margin-top: var(--space-section-gap);
}
.verticals__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.verticals__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.vertical-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.vertical-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.vertical-card__img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex-shrink: 0;
}
.vertical-card__title {
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.vertical-card__text {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}
.vertical-card__text--bold {
  font-weight: var(--fw-bold);
}
/* Last card: solid white surface with blue text */
.vertical-card--solid {
  padding: 50px 40px;
  background: var(--color-white);
  justify-content: center;
}
.vertical-card--solid .vertical-card__title,
.vertical-card--solid .vertical-card__text {
  color: var(--color-blue-secret);
}

/* ---- Operating system (Das Betriebssystem für strukturierte Arbeit) ---- */
.os {
  margin-top: var(--space-section-gap);
}
.os__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.os__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(var(--space-12), 8vw, 120px);
  margin-top: var(--space-16);
  @media (max-width: 860px) {
    margin-top: var(--space-6);
  }
}
.os__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.os__label {
  color: var(--color-white);
  font-size: 37px;
  font-weight: var(--fw-xbold);
  line-height: 24px;
}
.os__logo {
  width: clamp(150px, 16vw, 200px);
  height: auto;
}
.os__sublabel {
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

/* ---- Why now (Warum jetzt?) ---- */
.why {
  margin-top: var(--space-section-gap);
  margin-bottom: var(--space-section-gap);
}
.why__title {
  color: var(--text-on-dark);
  text-align: center;
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.why__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-6);
}
.why__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  @media (max-width: 860px) {
    line-height: 0.5;
  }
}
.why__item img {
  flex-shrink: 0;
}

/* ---- Footer CTA (Hör auf, Prozesse zu dokumentieren!) ---- */
.footer-cta {
  background: var(--surface-band);
  padding-block: var(--space-24);
  @media (max-width: 860px) {
    padding-block: var(--space-16);
  }
}
.footer-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.footer-cta__title {
  color: var(--text-on-dark);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.footer-cta__lead {
  color: var(--text-on-dark);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--fw-regular);
  line-height: 1.3333;
}
.footer-cta .btn {
  margin-top: var(--space-4);
}

/* Workflow steps stack vertically once the 5-across row gets cramped */
@media (max-width: 1100px) {
  .workflow__steps {
    flex-direction: column;
    align-items: stretch;
  }
  .workflow__step {
    flex: 0 0 auto;
    height: auto;
    padding: var(--space-4) var(--space-6);
  }
  .workflow__connector {
    flex: 0 0 var(--space-6);
    width: 2px;
    height: var(--space-6);
    margin-inline: auto;
    border-top: none;
    border-left: 2px dashed var(--color-gray-50);
  }
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .problems__grid,
  .positioning__grid,
  .verticals__grid,
  .why__list {
    grid-template-columns: 1fr;
  }
  .problem-card {
    height: auto;
  }

  /* Legend stacks: one row per item, drop the separators */
  .compare__legend {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-4);
  }
  .legend__sep {
    display: none;
  }
}

/* Tighten the comparison table so all 5 columns fit on phones */
@media (max-width: 600px) {
  .compare__table th,
  .compare__table td {
    padding: var(--space-3) var(--space-1);
  }
  .compare__table thead th {
    letter-spacing: 0;
    font-size: var(--fs-small);
  }
  .compare__table tbody td {
    font-size: var(--fs-small);
  }

  /* Roomier text on narrow phones */
  .vertical-card {
    padding: var(--space-6);
  }

  /* Stack ERP / CRM / vertiks vertically */
  .os__row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
  }
}
