/* =========================================================
   Thema Tegels — aoo-thema-tegels
   assets/css/aoo/components/thema-tegels.css
   ========================================================= */

.aoo-thema-tegels {
  background: #f5f0eb;
  padding: clamp(32px, 4vw, 52px) 0;
  margin: 24px 0;
  border-radius: 16px;
}

.aoo-thema-tegels__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.aoo-thema-tegels__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* =========================================================
   Grid — 3 kolommen desktop, 2 tablet, 1 mobiel
   ========================================================= */

.aoo-thema-tegels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .aoo-thema-tegels__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .aoo-thema-tegels__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================
   Tegel
   ========================================================= */

.aoo-thema-tegel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aoo-thema-tegel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
}

/* =========================================================
   Afbeelding
   ========================================================= */

.aoo-thema-tegel__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.aoo-thema-tegel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.aoo-thema-tegel:hover .aoo-thema-tegel__img-wrap img {
  transform: scale(1.04);
}

/* =========================================================
   Body
   ========================================================= */

.aoo-thema-tegel__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.aoo-thema-tegel__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.aoo-thema-tegel__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
  margin: 0;
  flex: 1;
}

/* =========================================================
   Knop
   ========================================================= */

.aoo-thema-tegel__btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 18px;
  background: #b03a2e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
}

.aoo-thema-tegel:hover .aoo-thema-tegel__btn {
  background: #922f24;
}

/* =========================================================
   Mobiel — horizontale layout
   ========================================================= */

@media (max-width: 560px) {
  .aoo-thema-tegel {
    flex-direction: row;
    align-items: stretch;
  }

  .aoo-thema-tegel__img-wrap {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: unset;
  }

  .aoo-thema-tegel__body {
    padding: 14px 16px;
    gap: 6px;
  }

  .aoo-thema-tegel__btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .aoo-thema-tegel__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}