/* === SANIERUNGSPAKETE LAYOUT FIX ===
 * Scoped to section data-id="19e5ebe" (Homepage)
 * and section data-id for loesungen page
 * Uses .elementor-element-19e5ebe as parent scope
 */

/* 1. The 4-column container: flex with equal height */
.elementor-element-bc6790b > .elementor-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 10px !important;
}

/* 2. Each col-25 column: flex column to push button to bottom */
.elementor-element-bc6790b > .elementor-container > .elementor-col-25 {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 calc(25% - 8px) !important;
}

.elementor-element-bc6790b > .elementor-container > .elementor-col-25 > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

/* 3. Buttons pushed to bottom */
.elementor-element-bc6790b .elementor-widget-button {
  margin-top: auto !important;
}

.elementor-element-bc6790b .elementor-widget-button > .elementor-widget-container {
  margin: 1em 0.25em !important;
}

/* 4. CHECK-ITEM ROWS inside col-25 columns
 * Structure: inner-section > container > col-50(icon) + col-50(text)
 * Goal: small checkmark icon + text flows as single block */

.elementor-element-bc6790b .elementor-inner-section > .elementor-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

/* Icon column: shrink to just the checkmark */
.elementor-element-bc6790b .elementor-inner-section > .elementor-container > .elementor-column:first-child {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
}

/* Text column: take remaining space */
.elementor-element-bc6790b .elementor-inner-section > .elementor-container > .elementor-column:last-child {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
}

/* Remove widget-wrap padding inside check-items */
.elementor-element-bc6790b .elementor-inner-section .elementor-widget-wrap {
  padding: 0 !important;
}

/* Checkmark SVG size */
.elementor-element-bc6790b .elementor-inner-section .elementor-icon svg {
  width: 18px !important;
  height: 18px !important;
}

/* Spacing between check-items */
.elementor-element-bc6790b .elementor-inner-section {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* 5. Mobile responsive - scoped to this section */
@media (max-width: 1024px) {
  .elementor-element-bc6790b > .elementor-container {
    flex-wrap: wrap !important;
  }
  .elementor-element-bc6790b > .elementor-container > .elementor-col-25 {
    flex: 0 0 48% !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-bc6790b > .elementor-container > .elementor-col-25 {
    flex: 0 0 100% !important;
  }
}
