/* Voor & na: websites die Vibe opnieuw maakte (webdesign.html, referenties.html, webdesign-referenties.html).
   Eigen bestandsnaam i.p.v. style.css: die heeft 30 dagen immutable cache. Wijzigen = nieuwe versie (-v3). */

.vn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 820px) {
  .vn-grid { grid-template-columns: 1fr; }
}

.vn-card {
  background: var(--white);
  border: 1px solid rgba(8,77,44,.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8,77,44,.06);
  display: flex;
  flex-direction: column;
}
.vn-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.vn-card-body h3 { margin: .5rem 0 .4rem; font-size: 1.15rem; }
.vn-card-body p { color: var(--text-gray); font-size: .9375rem; line-height: 1.6; margin: 0; }

.vn-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .25rem .75rem;
  color: var(--green-primary);
  background: rgba(8,77,44,.07);
  border: 1px solid rgba(8,77,44,.18);
  margin: 0 .4rem .4rem 0;
}

/* --- Schuifvergelijking --- */
.vn-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9ece8;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.vn-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.vn-slider .vn-voor { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vn-slider .vn-lijn {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  pointer-events: none;
}
.vn-slider .vn-knop {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--green-primary);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vn-slider .vn-knop svg { width: 22px; height: 22px; }
.vn-slider .vn-label {
  position: absolute;
  top: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 100px;
  pointer-events: none;
}
.vn-slider .vn-label-voor { left: .75rem; background: rgba(20,20,20,.75); color: #fff; }
.vn-slider .vn-label-na { right: .75rem; background: var(--brass-accent); color: #fff; }
.vn-slider input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.vn-slider:has(input:focus-visible) .vn-knop { outline: 3px solid var(--brass-accent); outline-offset: 3px; }

.vn-hint { font-size: .8125rem; color: var(--text-gray); text-align: center; margin: 1rem 0 0; }
.vn-more { text-align: center; margin-top: 2.5rem; }

/* --- Grote cases op webdesign-referenties.html --- */
.vn-case { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.vn-case .vn-slider { border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(8,77,44,.12); }
.vn-case-text h2 { margin: .5rem 0 1rem; }
.vn-case-text p { color: var(--text-gray); line-height: 1.7; }
.vn-punten { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.vn-punten li { position: relative; padding-left: 1.75rem; line-height: 1.55; }
.vn-punten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9l2.5 2.5L13 6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.vn-case-alt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.vn-case-alt .vn-case-media { order: 2; }
@media (max-width: 900px) {
  .vn-case, .vn-case-alt { grid-template-columns: 1fr; gap: 1.5rem; }
  .vn-case-alt .vn-case-media { order: 0; }
}
.vn-case-anchor { scroll-margin-top: calc(var(--nav-h) + 2rem); }
