/* Boxen Startseite – komplett gekapseltes Frontend-CSS, damit Elementor/Theme-Layout nicht beeinflusst wird */
.zex-bs-shortcode,
.zex-bs-shortcode * {
  box-sizing: border-box;
}

.zex-bs-shortcode {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  overflow: visible;
}

.zex-bs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  padding: 0;
}

.zex-bs-card,
.zex-bs-card-link {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  padding: 22px 20px 24px;
  color: #111111;
  min-height: 240px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.zex-bs-card-link:hover,
.zex-bs-card-link:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  border-color: rgba(46,70,150,.35);
  color: #111111;
  text-decoration: none;
}

.zex-bs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.zex-bs-icon {
  font-size: 24px;
  line-height: 1;
  color: #000000;
  margin: 0 0 12px;
}

.zex-bs-image {
  max-width: 160px;
  width: auto;
  height: auto;
  margin: 0 auto 14px;
  display: block;
}

.zex-bs-title {
  color: #354c9b;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 18px;
  padding: 0;
}

.zex-bs-content {
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
  color: #111111;
  min-width: 0;
}

.zex-bs-content p:first-child { margin-top: 0; }
.zex-bs-content p:last-child { margin-bottom: 0; }
.zex-bs-content strong,
.zex-bs-content b { font-weight: 700; }
.zex-bs-content a { color: #354c9b; }
.zex-bs-content .price,
.zex-bs-content .rot { color: #e00000; font-weight: 700; }

@media (max-width: 1024px) {
  .zex-bs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .zex-bs-card,
  .zex-bs-card-link {
    padding: 20px 16px;
    min-height: 220px;
  }
  .zex-bs-title { font-size: 22px; }
  .zex-bs-content { font-size: 15px; }
}

@media (max-width: 767px) {
  .zex-bs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .zex-bs-card,
  .zex-bs-card-link {
    min-height: 0;
  }
  .zex-bs-card-link:hover,
  .zex-bs-card-link:focus {
    transform: none;
  }
}
