/* PHYWE Cobra SMARTsense: 3-Schritte-Ablauf
   Schrift wird bewusst NICHT gesetzt - erbt die Website-Schrift.

   Breakpoints (angelehnt an Bootstrap-Container-Logik):
   - ab 1500px Bildschirmbreite: Container 1410px
   - darunter springt Container auf 1170px
   - von dort bis 992px Bildschirmbreite: Container schrumpft fluid bis 946px
   - unter 992px: mobile Ansicht (Schritte untereinander) */

.phywe-steps {
  --phywe-blue: #004172;
  --phywe-turquoise: #00A6AA;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}
.phywe-steps * {
  box-sizing: border-box;
}
.phywe-steps__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.phywe-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  text-align: center;
}
.phywe-steps__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--phywe-blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.phywe-steps__imgwrap {
  width: 200px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.phywe-steps__imgwrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.phywe-steps__text {
  font-size: 1.2em; /* 120% der Standard-/Elternschriftgröße */
  font-weight: 600;
  color: var(--phywe-blue);
  line-height: 1.4;
  max-width: 220px;
}
.phywe-steps__arrow {
  margin: 0 18px;
  margin-top: 111px; /* 46px (badge+gap) + (160px image - 31px arrow) / 2, centers arrow on image */
  flex-shrink: 0;
}
.phywe-steps__arrow svg {
  display: block;
}

/* ab 1500px: fester Container 1410px, Bilder und Pfeile etwas größer für mehr Raumausnutzung */
@media (min-width: 1500px) {
  .phywe-steps {
    max-width: 1410px;
  }
  .phywe-steps__item {
    width: 390px;
  }
  .phywe-steps__imgwrap {
    width: 240px;
    height: 190px;
  }
  .phywe-steps__arrow {
    margin-top: 122px; /* 46px (badge+gap) + (190px image - 38px arrow) / 2 */
  }
  .phywe-steps__arrow svg {
    width: 69px;
    height: 38px;
  }
}

/* 992px bis 1499.98px: fluid von 946px bis 1170px */
@media (min-width: 992px) and (max-width: 1499.98px) {
  .phywe-steps {
    width: calc(946px + (100vw - 992px) * 0.4409449);
    max-width: 1170px;
  }
}

/* unter 992px: mobile Ansicht */
@media (max-width: 991.98px) {
  .phywe-steps {
    width: 100%;
  }
  .phywe-steps__row {
    flex-direction: column;
    align-items: center;
  }
  .phywe-steps__arrow {
    width: 31px;
    height: 57px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   PHYWE Cobra SMARTsense Code: 2 Anwendungsboxen (Bild oben / Text / Bild unten)
   ========================================================================== */

.phywe-cards {
  --phywe-blue: #004172;
  --phywe-turquoise: #00A6AA;
  max-width: 1410px;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}
.phywe-cards * {
  box-sizing: border-box;
}
.phywe-cards__row {
  display: flex;
  gap: 32px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}
.phywe-cards__box {
  flex: 1 1 480px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.phywe-cards__box:hover {
  border-color: var(--phywe-turquoise);
  box-shadow: 0 8px 24px rgba(0, 65, 114, 0.14);
  transform: translateY(-3px);
}
.phywe-cards__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.phywe-cards__img-wrap {
  position: relative;
}
.phywe-cards__ai-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 65, 114, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 4px;
  line-height: 1.3;
}
.phywe-cards__content {
  padding: 24px 28px;
  flex: 1 1 auto;
}
.phywe-cards__heading {
  color: var(--phywe-blue);
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 12px;
}
.phywe-cards__text {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .phywe-cards__row {
    flex-direction: column;
    align-items: center;
  }
  .phywe-cards__box {
    flex: 0 1 auto;
    max-width: 100%;
    width: 100%;
  }
  .phywe-cards__img {
    height: 300px;
  }
}
