/* VEMIO 5.3 — SEO, toegankelijkheid en stabiele inhoudsweergave. */

/* Kleine hoofdletters blijven leesbaar op witte en zeer lichte achtergronden. */
.product-frame figcaption span,
.plan-heading > p:first-child,
.seo-related-grid a > span,
.eyebrow:not(.eyebrow-light, .eyebrow--light) {
  color: #06637d;
}

.billing-toggle button[aria-pressed="true"] span {
  color: #fff;
  opacity: 1;
}

/* De browser kan de afbeeldingsruimte al reserveren voordat het bestand geladen is. */
.product-proof__image-link > img {
  aspect-ratio: 8 / 5;
}

/* VEMIO 5.4 — actuele productbeelden, rustig gegroepeerd per verkoopmoment. */
.product-frame--hero > img,
.product-proof__image-link > img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.product-detail-heading {
  max-width: 760px;
  margin: 70px 0 28px;
}

.product-detail-heading .eyebrow {
  margin-bottom: 10px;
}

.product-detail-heading h3 {
  margin: 0;
  color: #101748;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.18;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.product-detail-card {
  min-width: 0;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(13, 20, 63, .08);
}

.product-detail-card .product-proof__image-link {
  height: 380px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #f2f5fa;
}

.product-detail-card .product-proof__image-link > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-card figcaption {
  min-height: 72px;
}

.product-detail-card--wide {
  grid-column: 1;
}

.product-detail-card--portrait {
  grid-column: 2;
}

.product-frame--portrait {
  width: min(100%, 520px);
  justify-self: center;
}

.product-frame--portrait > img {
  max-height: 680px;
  aspect-ratio: auto;
  object-fit: contain;
}

.solution-links {
  background: #f5f8fc;
}

.solution-links .section-heading {
  margin-bottom: 34px;
}

.solution-links .section-heading > div {
  max-width: 830px;
}

.solution-links__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.solution-links__grid a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  background: #fff;
  color: #101748;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(13, 20, 63, .06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.solution-links__grid a:hover,
.solution-links__grid a:focus-visible {
  border-color: #2bacd8;
  box-shadow: 0 22px 48px rgba(13, 20, 63, .1);
  transform: translateY(-3px);
}

.solution-links__grid span {
  color: #06637d;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.solution-links__grid strong {
  font-size: 1rem;
  line-height: 1.35;
}

.solution-links__grid em {
  margin-top: auto;
  color: #525d73;
  font-size: .72rem;
  font-style: normal;
  line-height: 1.55;
}

/* Kennisbank: eigen leeslayout in plaats van de grote homepage-typografie. */
.knowledge-hero,
.knowledge-article__header {
  overflow: hidden;
  padding: 78px 0 72px;
  background:
    radial-gradient(circle at 88% 14%, rgba(43, 172, 216, .16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef8fd 54%, #fff 100%);
  border-bottom: 1px solid #dfe5ef;
}

.knowledge-hero--compact {
  padding-block: 58px;
}

.knowledge-hero__inner,
.knowledge-article__header-inner {
  max-width: 920px;
}

.knowledge-hero h1,
.knowledge-article__header h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 1.03;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.knowledge-hero__inner > p:last-child,
.knowledge-article__lead {
  max-width: 780px;
  margin-bottom: 0;
  color: #525d73;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.75;
}

.knowledge-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  color: #45516b;
  font-size: .88rem;
  line-height: 1.55;
}

.knowledge-article__meta span + span {
  position: relative;
}

.knowledge-article__meta span + span::before {
  content: "";
  position: absolute;
  left: -13px;
  top: .7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2bacd8;
}

.knowledge-back {
  display: inline-flex;
  margin-bottom: 32px;
  color: #18236d;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.knowledge-back:hover,
.knowledge-back:focus-visible {
  text-decoration: underline;
}

.knowledge-index {
  background: #fff;
}

.knowledge-introduction {
  max-width: 840px;
  margin-bottom: 48px;
  color: #3f495f;
  font-size: 1rem;
  line-height: 1.8;
}

.knowledge-introduction h2 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.knowledge-topics {
  margin: 0 0 54px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  background: linear-gradient(135deg, #f5f9ff, #eefbfe);
}

.knowledge-topics__heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.knowledge-topics__heading h2,
.knowledge-articles-title {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.18;
}

.knowledge-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-topics__grid a {
  display: flex;
  min-width: 0;
  min-height: 160px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.knowledge-topics__grid a:hover,
.knowledge-topics__grid a:focus-visible {
  transform: translateY(-2px);
  border-color: #2bacd8;
  box-shadow: 0 16px 34px rgba(13, 20, 63, .09);
}

.knowledge-topics__grid span {
  color: #06637d;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.knowledge-topics__grid strong {
  margin: 12px 0;
  color: #101748;
  font-size: 1.08rem;
  line-height: 1.35;
}

.knowledge-topics__grid em {
  margin-top: auto;
  color: #075f78;
  font-size: .88rem;
  font-style: normal;
  font-weight: 800;
}

.knowledge-articles-title {
  margin-bottom: 24px;
}

.knowledge-introduction a,
.knowledge-article__content a {
  color: #075f78;
  font-weight: 750;
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.knowledge-introduction a:hover,
.knowledge-article__content a:hover { color: #111f72; }

.knowledge-introduction a:focus-visible,
.knowledge-article__content a:focus-visible {
  outline: 3px solid #2bb5d5;
  outline-offset: 3px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.knowledge-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px;
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 20, 63, .07);
}

.knowledge-card__type {
  margin-bottom: 22px;
  color: #06637d;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.knowledge-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.knowledge-card h2 a {
  text-decoration: none;
}

.knowledge-card h2 a:hover,
.knowledge-card h2 a:focus-visible {
  color: #075f78;
}

.knowledge-card > p:not(.knowledge-card__type) {
  color: #5a6478;
  font-size: .9rem;
  line-height: 1.7;
}

.knowledge-card .text-link {
  margin-top: auto;
}

.knowledge-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 310px);
  gap: clamp(42px, 6vw, 82px);
  align-items: start;
  padding-block: 72px 96px;
}

.knowledge-article__content {
  min-width: 0;
  color: #343e53;
  font-size: 1rem;
  line-height: 1.82;
}

.knowledge-article__content h2 {
  margin: 48px 0 17px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.knowledge-article__content h2:first-child {
  margin-top: 0;
}

.knowledge-article__content p,
.knowledge-article__content ul,
.knowledge-article__content ol {
  margin-bottom: 22px;
}

.knowledge-article__content ul,
.knowledge-article__content ol {
  padding-left: 1.35rem;
}

.knowledge-article__content li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.knowledge-article__aside {
  position: sticky;
  top: 120px;
  padding: 26px;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  background: #f5f8fc;
  box-shadow: 0 18px 44px rgba(13, 20, 63, .06);
}

.knowledge-article__aside > strong {
  display: block;
  margin-bottom: 12px;
  color: #101748;
  font-size: 1.06rem;
  line-height: 1.4;
}

.knowledge-article__aside > p {
  color: #596378;
  font-size: .9rem;
  line-height: 1.65;
}

.knowledge-article__links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d9e1ec;
}

.knowledge-article__links > span {
  color: #596378;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.knowledge-article__links a {
  color: #18236d;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.knowledge-article__links a:hover,
.knowledge-article__links a:focus-visible {
  color: #075f78;
  text-decoration: underline;
}

/* Drie gerelateerde onderwerpen blijven bruikbaar zonder de kaarten te vernauwen. */
@media (min-width: 981px) {
  .seo-related-grid:has(> a:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-related-grid:has(> a:nth-child(3)) a {
    min-height: 260px;
  }

  .seo-related-grid:has(> a:nth-child(3)) strong {
    font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  }
}

@media (max-width: 1100px) {
  .solution-links__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .knowledge-topics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-article__layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .knowledge-article__aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .product-detail-heading {
    margin-top: 50px;
  }

  .product-detail-gallery {
    grid-template-columns: 1fr;
  }

  .product-detail-card--wide,
  .product-detail-card--portrait {
    grid-column: auto;
  }

  .product-detail-card .product-proof__image-link {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .product-detail-card .product-proof__image-link > img {
    height: auto;
  }
}

@media (max-width: 720px) {
  .knowledge-article__meta {
    display: grid;
    gap: 6px;
    font-size: .84rem;
  }

  .knowledge-article__meta span + span::before {
    display: none;
  }

  .knowledge-topics__grid {
    grid-template-columns: 1fr;
  }

  .knowledge-topics__grid a {
    min-height: 0;
  }

  .solution-links__grid {
    grid-template-columns: 1fr;
  }

  .solution-links__grid a {
    min-height: 0;
  }

  .knowledge-hero,
  .knowledge-article__header {
    padding-block: 46px 48px;
  }

  .knowledge-hero h1,
  .knowledge-article__header h1 {
    font-size: clamp(2rem, 10.6vw, 2.75rem);
    line-height: 1.08;
    text-wrap: wrap;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card {
    min-height: 0;
    padding: 24px;
  }

  .knowledge-article__layout {
    padding-block: 48px 64px;
  }

  .knowledge-article__content {
    font-size: .96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* SEO 7.8.1: lange Nederlandse en Franse paginatitels mogen op smalle
   schermen afbreken zonder horizontale overflow. */
@media (max-width: 640px) {
  .legal-page,
  .knowledge-page,
  .knowledge-article-page {
    max-width: 100%;
    overflow-x: clip;
  }

  .legal-page h1,
  .knowledge-page h1,
  .knowledge-article-page h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
}
