/* ── Jakin Diensten Front-end ── */
.jk-diensten-section {
  padding: 0;
  background: #ffffff;
}

.jk-diensten-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  align-items: start;
}

/* ── Card ── */
.jk-dienst-card {
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: background .2s;
}
.jk-dienst-card:last-child { border-right: none; }
.jk-dienst-card:hover { background: #fafafa; }

/* ── Image wrapper: padding-top trick forces identical height on ALL cards ── */
.jk-dienst-card__image {
  position: relative;
  width: 100%;
  padding-top: 75%;       /* 4:3 ratio — every card IDENTICAL height */
  overflow: visible;      /* icon badge can bleed below */
  flex-shrink: 0;
}

/* The actual <img> fills the padded box absolutely */
.jk-dienst-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.jk-dienst-card:hover .jk-dienst-card__image img {
  transform: scale(1.05);
}

/* Clip overflow on the image itself (not the wrapper, so icon can still bleed) */
.jk-dienst-card__image img,
.jk-dienst-card__placeholder {
  border-radius: 0;
  overflow: hidden;
}

/* Placeholder when no image */
.jk-dienst-card__placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #1B2A4A;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jk-dienst-card__placeholder svg {
  width: 40%;
  max-width: 56px;
  height: auto;
  color: rgba(255,255,255,0.15);
}

/* ── Gold icon circle — exactly half on image, half on content ── */
.jk-dienst-card__icon-circle {
  position: absolute;
  bottom: -21px;          /* half of 42px = sits on the seam */
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  background: #D4A017;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(212,160,23,0.45);
  z-index: 3;
  border: 2px solid #ffffff;
}
.jk-dienst-card__icon-circle svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* ── Content ── */
.jk-dienst-card__content {
  padding: 30px 14px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.jk-dienst-card__title {
  font-size: 14px;
  font-weight: 800;
  color: #1B2A4A;
  margin: 0;
  letter-spacing: -0.2px;
}
.jk-dienst-card__desc {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .jk-diensten-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .jk-diensten-grid { grid-template-columns: repeat(2, 1fr); }
  .jk-dienst-card { border-bottom: 1px solid #e5e7eb; border-right: none; }
  .jk-dienst-card:nth-child(odd) { border-right: 1px solid #e5e7eb; }
}
@media (max-width: 480px) {
  .jk-diensten-grid { grid-template-columns: 1fr; }
  .jk-dienst-card:nth-child(odd) { border-right: none; }
}
