/* =========================================================
   VORMELO – CRM PRODUKTSEITE
   Ergänzung zu product-pos.css
========================================================= */

.crm-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(96,165,250,.18), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #e7f0ff 100%);
}

.crm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(37,99,235,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.crm-hero > .container {
  position: relative;
  z-index: 1;
}

.crm-hero .pos-breadcrumb {
  margin-bottom: 20px;
}

.crm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(520px,1.18fr);
  gap: 42px;
  min-height: 520px;
  align-items: center;
}

.crm-hero-copy {
  position: relative;
  z-index: 5;
  padding: 22px 0 38px;
}

.crm-hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -48px;
  bottom: -18px;
  left: -28px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(241,246,255,1) 0%,
    rgba(241,246,255,.97) 72%,
    rgba(241,246,255,0) 100%
  );
}

.crm-hero-copy h1 {
  max-width: 610px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem,3.65vw,4.15rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.crm-hero-copy .pos-hero-lead {
  max-width: 590px;
  font-size: clamp(1rem,1.15vw,1.12rem);
  line-height: 1.7;
}

.crm-hero-copy .pos-hero-actions {
  margin-top: 24px;
}

.crm-hero-copy .pos-hero-points {
  max-width: 610px;
  margin-top: 24px;
}

.crm-hero-visual {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: -10px;
  bottom: 20px;
  width: min(54vw,870px);
  max-width: 870px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 26px 0 0 26px;
  background: transparent;
  box-shadow: none;
}

.crm-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #f1f6ff 0%,
    rgba(241,246,255,1) 7%,
    rgba(241,246,255,.94) 14%,
    rgba(241,246,255,.68) 22%,
    rgba(241,246,255,.20) 31%,
    rgba(241,246,255,0) 40%
  );
}

.crm-hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 54% center;
  border: 0;
  border-radius: inherit;
}

/* Zentrierte Abschnittsüberschriften */
.crm-centered-section .section-heading {
  width: min(860px,100%);
  margin: 0 auto 42px;
  text-align: center;
}

.crm-centered-section .section-heading .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

.crm-centered-section .section-heading h2 {
  max-width: 980px;
  margin: 0 auto 18px;
  text-align: center;
}

.crm-centered-section .section-heading .section-description,
.crm-centered-section .section-heading > p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.crm-centered-section .pos-benefit-card,
.crm-centered-section .pos-feature-grid article {
  text-align: left;
}

.crm-centered-section .pos-industry-grid a {
  text-align: center;
}

/* Bildbereiche */
.crm-visual-block {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.crm-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.96), transparent 56%),
    linear-gradient(180deg,#f7fbff 0%,#eef5ff 100%);
  box-shadow: 0 22px 55px rgba(37,99,235,.10);
}

.crm-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
}

.crm-image-features {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.crm-image-features-four {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.crm-image-feature {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.crm-image-feature:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(37,99,235,.10);
}

.crm-image-feature strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.3;
}

.crm-image-feature span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.pos-multi .pos-split,
.pos-offline .pos-split {
  align-items: center;
}

/* Tablet */
@media (max-width: 1050px) {
  .crm-hero-grid {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 26px;
  }

  .crm-hero-copy {
    order: 1;
    width: 100%;
    padding: 14px 0 0;
  }

  .crm-hero-copy::after {
    display: none;
  }

  .crm-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.45rem,6vw,3.75rem);
  }

  .crm-hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + 48px);
    max-width: none;
    height: auto;
    margin-left: -24px;
    aspect-ratio: 16 / 10;
    border-radius: 24px 24px 0 0;
  }

  .crm-hero-visual::before {
    background: linear-gradient(
      180deg,
      #eef5ff 0%,
      rgba(238,245,255,.35) 8%,
      transparent 19%
    );
  }

  .crm-hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .pos-multi .pos-split,
  .pos-offline .pos-split,
  .pos-offline .pos-split.pos-split-reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .pos-offline .pos-split-reverse .crm-visual-block {
    order: 1;
  }

  .pos-offline .pos-split-reverse .pos-split-copy {
    order: 2;
  }

  .crm-image-features,
  .crm-image-features-four {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Smartphone */
@media (max-width: 700px) {
  .crm-hero {
    padding-top: 18px;
  }

  .crm-hero .pos-breadcrumb {
    margin-bottom: 14px;
  }

  .crm-hero-copy {
    padding-top: 4px;
  }

  .crm-hero-copy h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(2.15rem,10.2vw,3rem);
    line-height: 1.08;
  }

  .crm-hero-copy .pos-hero-lead {
    font-size: .98rem;
    line-height: 1.65;
  }

  .crm-hero-copy .pos-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 20px;
  }

  .crm-hero-copy .pos-hero-actions .button {
    justify-content: center;
    width: 100%;
  }

  .crm-hero-copy .pos-hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .crm-hero-visual {
    width: calc(100% + 32px);
    margin-left: -16px;
    aspect-ratio: 4 / 3;
    border-radius: 18px 18px 0 0;
  }

  .crm-hero-visual img {
    object-position: 56% center;
  }

  .crm-centered-section .section-heading {
    width: 100%;
    margin-bottom: 28px;
  }

  .crm-centered-section .section-heading h2 {
    font-size: clamp(1.85rem,8.5vw,2.6rem);
    line-height: 1.1;
  }

  .crm-visual {
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(37,99,235,.09);
  }

  .crm-image-features,
  .crm-image-features-four {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .crm-image-feature {
    padding: 14px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .crm-hero-copy h1 {
    font-size: clamp(2rem,10.5vw,2.6rem);
  }

  .crm-hero-visual {
    aspect-ratio: 1 / 1;
  }

  .crm-hero-visual img {
    object-position: 61% center;
  }

  .crm-visual {
    border-radius: 16px;
  }

  .crm-image-feature {
    padding: 12px;
  }
}


/* =========================================================
   CRM HERO V2
   Vollständiges Bild, kleinere Schrift und keine Überlagerung
========================================================= */

.crm-hero {
  padding: 28px 0 42px;
}

.crm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 52px;
  min-height: 0;
  align-items: center;
}

.crm-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 0;
}

.crm-hero-copy::after {
  display: none;
}

.crm-hero-copy h1 {
  max-width: 590px;
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 3.15vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.crm-hero-copy .pos-hero-lead {
  max-width: 570px;
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.crm-hero-copy .pos-hero-actions {
  margin-top: 22px;
}

.crm-hero-copy .pos-hero-points {
  max-width: 590px;
  margin-top: 22px;
}

/*
  Das Bild ist jetzt ein normales Grid-Element.
  Dadurch wird es vollständig angezeigt und kann nicht mehr
  in den Textbereich hineinragen.
*/
.crm-hero-visual {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(191, 219, 254, .85);
  border-radius: 26px;
  background: #f8fbff;
  box-shadow: 0 22px 55px rgba(37, 99, 235, .10);
}

.crm-hero-visual::before {
  display: none;
}

.crm-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: inherit;
}

/* Grosse Notebooks */
@media (max-width: 1280px) {
  .crm-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 38px;
  }

  .crm-hero-copy h1 {
    font-size: clamp(2.25rem, 3vw, 3.25rem);
  }
}

/* Tablet */
@media (max-width: 1050px) {
  .crm-hero {
    padding-bottom: 0;
  }

  .crm-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .crm-hero-copy {
    order: 1;
    padding: 14px 0 0;
  }

  .crm-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.3rem, 5.8vw, 3.4rem);
  }

  .crm-hero-copy .pos-hero-lead {
    max-width: 720px;
  }

  .crm-hero-visual {
    order: 2;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    border-radius: 24px 24px 0 0;
  }

  .crm-hero-visual img {
    object-fit: contain;
    object-position: center;
  }
}


/* Tablet */
@media (max-width: 1050px) {

  .crm-hero-visual {
    width: 100%;
    aspect-ratio: auto;
    margin: 0;

    overflow: hidden;
    border-radius: 28px;

    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .crm-hero-visual img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: inherit;

    object-fit: cover;
    object-position: center;
  }
}

/* Smartphone */
@media (max-width: 700px) {

  .crm-hero-visual {
    width: 100%;
    aspect-ratio: auto;
    margin: 0;

    overflow: hidden;
    border-radius: 22px;
  }

  .crm-hero-visual img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: inherit;

    object-fit: cover;
    object-position: center;
  }
}

/* Kleine Smartphones */
@media (max-width: 420px) {

  .crm-hero-visual {
    aspect-ratio: auto;
    border-radius: 18px;
  }

  .crm-hero-visual img {
    border-radius: inherit;
  }
}
