/* Icon-Text Section Component Styles */

/* Base Component */
.m-icon-text-section,
.m-icon-text-section--small {
  max-width: 70.75rem; /* Use same max-width as .e-container from main_fs.css */
  margin: 0 auto;
  padding: 3rem 1rem; /* Simplified padding, consistent with .e-container */
}

.m-icon-text-section__header {
  margin-bottom: 3rem;
}

.m-icon-text-section__headline {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: var(--bosch-black);
}

.m-icon-text-section__teaser {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: var(--bosch-black);
}

/* Content Grid */
.m-icon-text-section__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* Reduced gap for better spacing */
}

/* Column variations */
.m-icon-text-section__content--2-columns {
  grid-template-columns: repeat(2, 1fr);
}

.m-icon-text-section__content--3-columns {
  grid-template-columns: repeat(3, 1fr);
}

/* Column */
.m-icon-text-section__column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Small Icons - tighter column spacing */
.m-icon-text-section--small .m-icon-text-section__column {
  gap: 1rem; /* Smaller gap between headline and list for small icons */
}

.m-icon-text-section__column-headline {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
  color: var(--bosch-black);
}

/* Icon List */
.m-icon-text-section__list {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Consistent vertical spacing between list items */
}

/* Icon List Item */
.m-icon-text-section__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* Horizontal gap between icon and text - matches design spec */
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0px;
}

/* Small Icons - tighter spacing */
.m-icon-text-section--small .m-icon-text-section__item {
  gap: 0.75rem; /* Smaller horizontal gap for small icons */
}

.m-icon-text-section--small .m-icon-text-section__list {
  gap: 0.75rem; /* Tighter vertical spacing between small icon items */
}

/* Bullet Point Override */
ul li.m-icon-text-section__item::before {
  background-color: unset;
  height: unset;
  width: unset;
  top: unset;
}

/* Icon Container - Large Version */
.m-icon-text-section__icon {
  flex-shrink: 0;
  width: 6rem; /* 96px in rem */
  height: 6rem;
  border-radius: 0.25rem; /* 4px in rem */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 1rem 1rem;
  box-sizing: border-box;
}

.m-icon-text-section__icon img,
.m-icon-text-section__icon svg {
  width: 4rem; /* 64px in rem */
  height: 4rem;
  object-fit: contain;
}

/* Icon Container - Small Version */
.m-icon-text-section__icon--small {
  flex-shrink: 0;
  width: 1.5rem; /* 24px in rem */
  height: 1.5rem;
  border-radius: 0.25rem; /* 4px in rem */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  margin-top: 0.125rem; /* 2px in rem */
}

.m-icon-text-section__icon--small img,
.m-icon-text-section__icon--small svg {
  width: 1.5rem; /* 24px in rem */
  height: 1.5rem;
  object-fit: contain;
}

/* Small Icon Container - No Background Variant */
.m-icon-text-section__icon--small {
  background-color: transparent;
  width: 1.5rem; /* Direct icon size */
  height: 1.5rem;
}

/* Text Content */
.m-icon-text-section__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.m-icon-text-section__item-headline {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  color: var(--bosch-black);
  text-align: left;
}

.m-icon-text-section__item-text {
  font-size: 1rem;
  margin: 0;
  color: var(--bosch-black);
  line-height: 1.5;
  text-align: left;
}

i.m-icon-text-section__icon {
  font-size: 4rem;
}

/* Mobile Responsive - Consistent with Bosch breakpoints */
@media (max-width: 768px) {
  .m-icon-text-section,
  .m-icon-text-section--small {
    padding: 2rem 1rem; /* Simplified mobile padding */
  }
  
  .m-icon-text-section__headline {
    font-size: 2rem; /* Use -size-6xl from main_fs.css */
    margin-bottom: 1rem;
  }
  
  .m-icon-text-section__teaser {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .m-icon-text-section__column-headline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* Stack columns on mobile */
  .m-icon-text-section__content--2-columns,
  .m-icon-text-section__content--3-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Reduce gaps on mobile */
  .m-icon-text-section__list {
    gap: 1.25rem;
  }
  
  .m-icon-text-section__item {
    gap: 0.75rem;
  }
  
  .m-icon-text-section__item-headline,
  .m-icon-text-section__item-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .m-icon-text-section__headline {
    font-size: 1.75rem;
  }
  
  .m-icon-text-section__column-headline {
    font-size: var(--font-size, 1rem); /* Use base font size */
  }
}
