/* assets/dp-home-cat.css — categorieblok op de homepage (snippets/dp-home-cat.rain, plannen/homepage-categorieen-plan.md)
   Alle regels hangen onder #dphc. Kleuren en maten uit de huisstijl, gelijk aan de categoriepagina's (#dpo). */

#dphc { background: #FAFAFA; border-top: 1px solid #ECECEC; border-bottom: 1px solid #ECECEC; padding: 32px 0 40px; color: #666666; }
#dphc *, #dphc *::before, #dphc *::after { box-sizing: border-box; }
#dphc a { text-decoration: none; }
#dphc .dphc-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
#dphc .dphc-h2 { margin: 0; color: #29384B; font-size: 28px; font-weight: 800; line-height: 1.2; }
#dphc .dphc-alle { color: #0077b3; font-weight: 700; font-size: 14px; white-space: nowrap; }
#dphc .dphc-alle:hover { color: #29384B; text-decoration: underline; }

#dphc .dphc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#dphc .dphc-kaart { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); height: 168px; background: #fff; border: 1px solid #ECECEC; border-radius: 12px; overflow: hidden; transition: border-color .15s; }
#dphc .dphc-kaart:hover { border-color: #cfe8cb; }
#dphc .dphc-foto { display: block; height: 100%; background: #ECECEC; overflow: hidden; }
#dphc .dphc-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
#dphc .dphc-body { display: flex; flex-direction: column; padding: 14px 16px 12px; min-width: 0; }
#dphc .dphc-t { margin: 0 0 8px; color: #29384B; font-size: 17px; font-weight: 800; line-height: 1.2; }
#dphc .dphc-t a { color: #29384B; }
#dphc .dphc-t a:hover { text-decoration: underline; }
#dphc .dphc-lijst { list-style: none; margin: 0; padding: 0; }
#dphc .dphc-lijst li { margin: 0; padding: 0; }
#dphc .dphc-lijst li::before { display: none; }
#dphc .dphc-lijst a { display: flex; align-items: center; gap: 6px; min-height: 26px; color: #29384B; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dphc .dphc-lijst a::before { content: '›'; color: #3d8a35; font-weight: 700; font-size: 17px; line-height: 1; }
#dphc .dphc-lijst a:hover { text-decoration: underline; }
#dphc .dphc-alles { margin-top: auto; color: #0077b3; font-weight: 700; font-size: 14px; }
#dphc .dphc-alles:hover { color: #29384B; text-decoration: underline; }
#dphc .dphc-grijs, #dphc .dphc-go { display: none; }

@media (max-width: 1199px) {
  #dphc .dphc-kaart { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 991px) {
  #dphc .dphc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dphc .dphc-h2 { font-size: 24px; }
}

/* mobiel: één lijst, de hele regel gaat naar de categorie */
@media (max-width: 767px) {
  #dphc { padding: 20px 0 24px; }
  #dphc .dphc-kop { align-items: baseline; margin-bottom: 12px; }
  #dphc .dphc-h2 { font-size: 20px; }
  #dphc .dphc-alle { font-size: 13px; }
  #dphc .dphc-grid { grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid #ECECEC; border-radius: 14px; overflow: hidden; }
  #dphc .dphc-kaart { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; height: auto; min-height: 72px; padding: 8px 14px; border: 0; border-radius: 0; overflow: visible; }
  #dphc .dphc-kaart + .dphc-kaart { border-top: 1px solid #ECECEC; }
  #dphc .dphc-foto { width: 56px; height: 56px; border-radius: 10px; }
  #dphc .dphc-body { padding: 0; }
  #dphc .dphc-t { margin: 0; font-size: 16px; }
  #dphc .dphc-t a::after { content: ''; position: absolute; inset: 0; }
  #dphc .dphc-lijst, #dphc .dphc-alles { display: none; }
  #dphc .dphc-grijs { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: #666666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #dphc .dphc-go { display: block; color: #3d8a35; font-size: 22px; font-weight: 700; line-height: 1; }
}