/* Slimme Start — homepage: "Vijf manieren om het echt te snappen" (onder de hero) */

.hl-leren {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  color: #14213D;
}

/* Kop */
.hl-kop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.hl-boven {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #12925F;
}
.hl-kop h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  color: #0C2A4D;
}
.hl-kop-sub {
  margin: 0;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
  color: #5F6B7A;
}

/* Kaarten: 3 + 2 */
.hl-raster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.hl-kaart {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E6E9F0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hl-kaart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(12, 42, 77, .08);
}
.hl-breed { grid-column: span 3; }

.hl-vlak {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hl-geel  { background: #FFF4CC; }
.hl-blauw { background: #E8EEFF; }
.hl-paars { background: #EFE9FF; }
.hl-mint  { background: #DDF5EA; }
.hl-koraal { background: #FFE6DC; }

.hl-tekst { padding: 16px 20px 20px; }
.hl-tekst h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  color: #0C2A4D;
}
.hl-tekst p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5F6B7A;
}
.hl-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0C2A4D;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.hl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #F5B800;
  color: #0C2A4D;
  padding: 3px 7px;
  border-radius: 4px;
}

/* Wit kaartje binnen een vlak */
.hl-wit {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 0 0 1px rgba(12, 42, 77, .08), 0 6px 14px rgba(12, 42, 77, .06);
  font-size: 13px;
}
.hl-wit b { display: block; font-size: 13px; margin-bottom: 6px; }

/* 1 Samenvatting: regels worden gemarkeerd */
.hl-sam { width: 220px; }
.hl-regel { height: 8px; border-radius: 4px; background: #E3E7EC; margin: 8px 0; position: relative; overflow: hidden; }
.hl-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFD84D;
  transform-origin: left;
  animation: hl-markeer 3.4s infinite;
}
.hl-mark-2::after { animation-delay: 1s; }
@keyframes hl-markeer {
  0%, 15% { transform: scaleX(0); }
  45%, 100% { transform: scaleX(1); }
}

/* 2 Luisteren: dansende balkjes */
.hl-luister { display: flex; align-items: center; gap: 12px; width: 230px; }
.hl-speel {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2F5BFF;
  color: #fff;
}
.hl-golf { display: flex; align-items: center; gap: 4px; height: 36px; }
.hl-golf i {
  display: block;
  width: 5px;
  height: 10px;
  border-radius: 3px;
  background: #2F5BFF;
  animation: hl-golf 1s infinite ease-in-out;
}
.hl-golf i:nth-child(2n) { animation-delay: .15s; }
.hl-golf i:nth-child(3n) { animation-delay: .3s; }
.hl-golf i:nth-child(4n) { animation-delay: .45s; }
.hl-golf i:nth-child(5n) { animation-delay: .6s; }
@keyframes hl-golf {
  0%, 100% { height: 8px; }
  50% { height: 34px; }
}
.hl-tijd { margin: 2px 0 0; font-size: 11px; color: #5F6B7A; }

/* 3 Flashcards: kaart draait om */
.hl-flash { width: 210px; height: 116px; perspective: 700px; }
.hl-flash-binnen {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: hl-draai 5.5s infinite;
}
.hl-kaart:hover .hl-flash-binnen { animation-play-state: paused; }
.hl-kant {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(12, 42, 77, .1), 6px 6px 0 #C9B8FF;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hl-kant small { font-size: 11px; color: #5F6B7A; }
.hl-kant strong { font-size: 20px; color: #0C2A4D; }
.hl-achter { transform: rotateY(180deg); font-size: 14px; line-height: 1.4; }
@keyframes hl-draai {
  0%, 40% { transform: rotateY(0); }
  50%, 90% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* 4 Quiz: het goede antwoord kleurt groen */
.hl-quiz { width: 280px; }
.hl-optie { padding: 7px 11px; border-radius: 8px; background: #F4F6F9; margin-top: 5px; }
.hl-goed { animation: hl-goed 3.6s infinite; }
@keyframes hl-goed {
  0%, 40% { background: #F4F6F9; color: #14213D; }
  55%, 100% { background: #1FB57A; color: #fff; }
}

/* 5 Open vragen: antwoord wordt getypt, daarna feedback */
.hl-open { width: 310px; }
.hl-invoer { background: #F4F6F9; border-radius: 8px; padding: 9px 11px; }
.hl-typ {
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: hl-typ 5.5s steps(30) infinite;
}
@keyframes hl-typ {
  0% { clip-path: inset(0 100% 0 0); }
  50%, 100% { clip-path: inset(0 0 0 0); }
}
.hl-feedback {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #E3F7EE;
  color: #0B7A4F;
  font-size: 12px;
  opacity: 0;
  animation: hl-feedback 5.5s infinite;
}
@keyframes hl-feedback {
  0%, 58% { opacity: 0; transform: translateY(4px); }
  68%, 100% { opacity: 1; transform: none; }
}

/* Knop */
.hl-actie { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hl-actie span { font-size: 14px; color: #5F6B7A; }

/* Tablet: 2 kolommen, de laatste kaart over de hele breedte */
@media (max-width: 980px) {
  .hl-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-kaart, .hl-breed { grid-column: span 1; }
  .hl-kaart:last-child { grid-column: span 2; }
  .hl-kop { flex-direction: column; align-items: flex-start; }
  .hl-kop-sub { max-width: none; }
}

/* Mobiel: onder elkaar */
@media (max-width: 640px) {
  .hl-leren { padding: 52px 18px 44px; }
  .hl-raster { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hl-kaart, .hl-breed, .hl-kaart:last-child { grid-column: auto; }
  .hl-vlak { height: 160px; }
  .hl-open, .hl-quiz { width: 100%; max-width: 300px; }
}

/* Minder beweging gewenst: alles stil in de eindstand */
@media (prefers-reduced-motion: reduce) {
  .hl-kaart { transition: none; }
  .hl-kaart:hover { transform: none; }
  .hl-mark::after, .hl-golf i, .hl-flash-binnen, .hl-goed, .hl-typ, .hl-feedback { animation: none; }
  .hl-mark::after { transform: scaleX(1); }
  .hl-golf i:nth-child(odd) { height: 24px; }
  .hl-goed { background: #1FB57A; color: #fff; }
  .hl-typ { clip-path: none; }
  .hl-feedback { opacity: 1; }
}
