/* ==========================================================================
   global.css — MediPortal
   ALLEEN CSS custom properties die door yools-layout.css en yools-*.css
   worden gerefereerd via var(--...). Geen element-overrides meer —
   de Yools CSS is de enige bron van waarheid voor stijlen.
   ========================================================================== */

:root {
  /* Kleuren — gebruikt door Yools via var() */
  --color_primary--200:   #e6f6f6;
  --color_primary--500:   #10aaad;
  --color_primary--600:   #0e9395;
  --color_secondary--200: #e7f8f2;
  --color_secondary--500: #16b683;
  --color_secondary--600: #149f73;
  --color_text:           #606871;

  /* Spacing scale (×1.2) — gebruikt door Yools via var(--ws-*) */
  --ws-down-2:  0.694rem;
  --ws-down-1:  0.833rem;
  --ws-normal:  1rem;
  --ws-up-1:    1.2rem;
  --ws-up-2:    1.44rem;
  --ws-up-3:    1.728rem;
  --ws-up-4:    2.074rem;
  --ws-up-5:    2.488rem;
  --ws-up-6:    2.986rem;
  --ws-up-7:    3.583rem;
  --ws-up-8:    4.3rem;
  --ws-up-9:    5.16rem;
  --ws-up-10:   6.192rem;
  --ws-up-11:   7.43rem;
  --ws-up-12:   8.916rem;

  /* Sectiepadding — var(--page-ws-mobile) gebruikt in Yools */
  --page-ws-mobile: 4.3rem;

  /* --border-radius--md NIET hier definiëren: yools-layout.css zet deze
     al correct op 17px (productie bevestigd in alle CSS-snapshots) — een
     eigen waarde hier (was 8px) overschrijft dat en maakt alle kaartranden
     (yls_sol__card, yls_jobscard, pricingcard, ...) verkeerd afgerond. */

  /* --comp-spacing--inner/--outer NIET hier definiëren: yools-layout.css
     zet deze al correct op 108px/144px (desktop) en 60px/72px (mobiel via
     media query). Een eigen :root-waarde hier zou die overschrijven (zelfde
     specificiteit, later in de cascade) en alle .yls_sol__/.yls_job__-
     spacing die op deze tokens steunt verkeerd maken. */
}

/* Kleine eigenstandige aanvullingen die Yools niet dekt */

/* Skip-to-content link (toegankelijkheid) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--color_primary--500);
  outline-offset: 2px;
}


/* Tegels in de doelgroepen-grid vullen hun kolom volledig.
   De tile-column is een flex-container; zonder flex:1 krimpt
   a.s-tile tot zijn inhoudsbreedtte i.p.v. de volle kolom. */
.s-comp88 .tile-list .tile-column .s-tile {
  flex: 1;
}

/* Nieuws/blog-kaartjes (s-comp90): kolom is flex-container zodat
   de a.s-tile de volledige kolomhoogte vult (gelijke kaartjes per rij). */
.s-comp90 .col-md-4 {
  display: flex;
  flex-direction: column;
}
.s-comp90 .col-md-4 .s-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.s-comp90 .col-md-4 .s-tile .s-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.s-comp90 .col-md-4 .s-tile .s-link-beh {
  margin-top: auto;
}

/* Kaartafbeeldingen (s-comp90, gebruikt op homepage/blog/evenementen-overzicht):
   Yools forceert hier <img class="s-img"> op width:100%;height:250px, maar
   toont die img zelf nooit (in productie altijd opacity:0 — de zichtbare
   afbeelding is een losse .s-img-bg div met background-size:cover erachter).
   Onze rebuild gebruikt enkel de echte, toegankelijke <img> (geen verborgen
   duplicaat), dus die moet zelf object-fit:cover krijgen — anders wordt elke
   foto uitgerekt naar de vaste 250px-hoogte i.p.v. netjes bijgesneden. */
.s-comp90 .s-tile .s-img {
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Yools JS-vervangingen — effecten die de originele lay.6.min.js toevoegde
   maar die we statisch moeten definiëren.
   ========================================================================== */

/* 1. Hover-transitie op alle tegels (Yools JS voegde dit toe via JS) */
body .s-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* clipt afbeelding aan border-radius */
}

/* 2. Hyperlink-kleur: Bootstrap stelt #0275d8 in; Yools JS overschreef
      dit naar #606871 voor body-tekst en #10aaad voor interactieve links. */
body a {
  color: #10aaad;
}
body .s-text a,
body p a {
  color: #10aaad;
  text-decoration: underline;
}
body .s-text a:hover,
body p a:hover {
  color: var(--color_primary--600);
}

/* ==========================================================================
   Page-specifieke Yools-stijlen
   Yools laadt per pagina een aparte CSS (page.2.XX.min.css).
   Omdat we een statische build draaien, consolideren we die hier.
   ========================================================================== */

/* --- Page title banner (yls_pagetitle) — alle interieurpagina's ---------- */
.yls_pagetitle { padding: 24px 0; background: var(--color_primary--200); }
.yls_pagetitle h1 { margin: 0; padding: 0 15px; font-size: 1.44rem; font-weight: 700; text-align: right; color: var(--color_primary--600); }
/* Ruimte tussen pagetitle-banner en het eerste inhoudsblok */
.yls_pagetitle + main { padding-top: 2.5rem; }

/* --- Pagetitle-banner, oud patroon (#page-title-1 .design-element) ------
   Productie gebruikt dit op blog-/evenementenoverzicht en blog-/evenement-
   detailpagina's (DetailLayout) nog steeds — niet hetzelfde component als
   .yls_pagetitle hierboven (dat is een nieuwere structuur, gebruikt op
   jobs/onze-oplossingen/arts-specialist). Waarden 1:1 overgenomen uit de
   productie-CSS (lay.4). */
#page-title-1 .content { margin: 0; padding: 24px 0; background-color: rgb(16 170 173 / .1); }
#page-title-1 .s-h1 h1 { margin: 0; padding: 0 15px; font-size: 144%; text-align: right; color: var(--color_primary--600); }

/* --- Jobs-overzicht (yls_jobsoverview / yls_jobslist / yls_jobscard) ----- */
.yls_jobsoverview { margin: var(--comp-spacing--outer) 0; }
.yls_jobsoverview h2 { margin-bottom: 1em; text-align: center; }
.yls_jobslist { --gap: 30px; display: flex; flex-direction: row; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: calc(var(--gap) / -2); }
.yls_jobsitem { width: 33.33%; padding: calc(var(--gap) / 2); }
.yls_jobscard { display: inline-block; width: 100%; overflow: hidden; border-radius: var(--border-radius--md); box-shadow: 0 0 15px 0 rgb(96 104 113 / .1); text-decoration: none !important; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.yls_jobscard:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 8px 30px 0 rgb(14 147 149 / .2); }
.yls_jobscard__visual { position: relative; width: 100%; padding-bottom: 61.8%; }
.yls_jobscard__visual img { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.yls_jobscard__content { padding: 24px; }
.yls_jobscard__content h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; font-size: 1.2rem; text-align: center; }

/* --- Job-detail (yls_job__) ----------------------------------------------- */
.yls_job__bc { padding: 24px 0; background: var(--color_primary--200); }
.yls_job__bc .s-breadcrumbs { --gap: 10px; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; }
.yls_job__bc .s-breadcrumbs a.s-crumb { color: var(--color_text); }
.yls_job__bc .s-breadcrumbs .s-crumb:last-child { font-weight: 700; }
.yls_job__container { margin: var(--comp-spacing--inner) 0; }
.yls_job__container > .container { max-width: 1600px; padding: 0 72px; }
.yls_job .yls_job__wrapper { --gap: 30px; display: flex; flex-direction: row; justify-content: space-between; align-items: stretch; margin: calc(var(--gap) / -2); }
.yls_job__content { width: 58.33%; padding: calc(var(--gap) / 2); }
.yls_job__content h1 { margin-bottom: 1em; color: var(--color_primary--600); }
.yls_job__content h2 { margin-bottom: .3em; font-size: 1.728rem; }
.yls_job__content .col-lg-12:not(:last-child) > .s-text { margin-bottom: 30px; }
.yls_job__content .s-text li { padding-left: 1em; }
.yls_job__side { position: relative; width: 33.33%; padding: calc(var(--gap) / 2); }
.yls_job__sidecard { position: sticky; top: 30px; left: 0; overflow: hidden; border-radius: var(--border-radius--md); background: linear-gradient(90deg, var(--color_primary--200) 0%, var(--color_secondary--200) 100%); }
.yls_job__sidecardimg { position: relative; width: 100%; padding-bottom: 56.25%; }
.yls_job__sidecardimg img { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.yls_job__sidecardcontent { padding: 36px; }
.yls_job__sidecard h2 { margin-bottom: .3em; font-size: 1.728rem; }
.yls_job__sidecard .s-text { margin-bottom: 30px; }

/* --- Oplossingen (yls_sol__) ---------------------------------------------- */
.yls_sol__cta { display: none !important; position: fixed; bottom: 0; right: 0; z-index: 9999999999; padding: 30px; background: linear-gradient(90deg, var(--color_primary--200) 0%, var(--color_secondary--200) 100%); border-top-left-radius: var(--border-radius--md); }
.yls_sol__bc { padding: 24px 0; background: var(--color_primary--200); }
.yls_sol__bc .s-breadcrumbs { --gap: 10px; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; }
.yls_sol__bc .s-breadcrumbs a.s-crumb { color: var(--color_text); }
.yls_sol__bc .s-breadcrumbs .s-crumb:last-child { font-weight: 700; }
.yls_sol__intro { padding: var(--comp-spacing--outer) 0; }
.yls_sol__intro .yls_sol__wrapper { text-align: center; }
.yls_sol__intro h1 { margin-bottom: .5em; color: var(--color_headings); }
.yls_sol__intro .s-text { max-width: 72ch; margin: 0 auto; font-size: 1.2rem; }
.yls_sol__intro .s-button-list { --gap: 12px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: var(--gap); margin-top: 30px; }
.yls_sol__uvp { --offset: calc(var(--comp-spacing--inner) / 2); margin-top: var(--offset); margin-bottom: var(--comp-spacing--outer); padding: 0 0 var(--comp-spacing--inner) 0; border: 8px solid var(--color_primary--300); border-left-width: 0; border-right-width: 0; background: linear-gradient(90deg, var(--color_primary--200) 0%, var(--color_secondary--200) 100%); }
.yls_sol__uvp .container { max-width: 1600px; padding: 0 72px; }
.yls_sol__uvp .yls_sol__wrapper { --gap: 30px; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--gap); }
.yls_sol__uvp .yls_sol__col { position: relative; }
.yls_sol__uvp .yls_sol__col:nth-child(1) { width: calc(5 / 12 * 100%); margin-top: calc(var(--offset) * -1); }
.yls_sol__uvp .yls_sol__col:nth-child(2) { width: calc(6 / 12 * 100%); padding-top: var(--comp-spacing--inner); }
.yls_sol__uvp .yls_sol__card { position: relative; z-index: 10; padding: 40px 36px; border-radius: var(--border-radius--md); background: #fff; box-shadow: 0 0 15px 0 rgb(14 147 149 / .1); }
.yls_sol__uvp .yls_sol__card h2 { font-size: 1.728rem; }
.yls_sol__uvp .yls_sol__card .s-text ol, .yls_sol__uvp .yls_sol__card .s-text ul { margin: 0; padding: 0 0 0 1em; }
.yls_sol__uvp .yls_sol__card .s-text ol li:not(:last-child), .yls_sol__uvp .yls_sol__card .s-text ul li:not(:last-child) { margin-bottom: .5em; }
.yls_sol__pricing { margin-bottom: var(--comp-spacing--outer); }
.yls_sol__pricing .container { max-width: 1600px; padding: 0 72px; }
.yls_sol__pricing .s-tabs { --gap: 30px; display: flex; flex-direction: row !important; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: calc(var(--gap) / -2); }
.yls_sol__pricing .s-tabs > * { padding: calc(var(--gap) / 2) !important; }
.yls_sol__pricing h2, .yls_sol__pricing h3, .yls_sol__pricing h4 { text-align: center; }
.yls_sol__pricingcardsgrid { display: flex; flex-direction: row; justify-content: space-between; align-items: stretch; gap: var(--gap); }
.yls_sol__pricingcardsgrid.cols--1 { --gap: 0px; justify-content: center; }
.yls_sol__pricingcardsgrid.cols--2, .yls_sol__pricingcardsgrid.cols--3 { --gap: 60px; }
.yls_sol__pricingcardsgrid.cols--4, .yls_sol__pricingcardsgrid.cols--5 { --gap: 30px; }
.yls_sol__pricingcardsgrid:not(.cols--1) .yls_sol__pricingcarditem { flex-grow: 1; }
.yls_sol__pricingcardsgrid.cols--2 .yls_sol__pricingcarditem { width: 50%; }
.yls_sol__pricingcardsgrid.cols--1 .yls_sol__pricingcarditem, .yls_sol__pricingcardsgrid.cols--3 .yls_sol__pricingcarditem { width: 33.33%; }
.yls_sol__pricingcardsgrid.cols--4 .yls_sol__pricingcarditem { width: 25%; }
.yls_sol__pricing[data-plan="monthly"] [data-yearly] { display: none; }
.yls_sol__pricing[data-plan="yearly"] [data-monthly] { display: none; }
.yls_sol__pricingcard { --gap: 30px; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--gap); height: 100%; padding: 48px 36px; border-radius: var(--border-radius--md); box-shadow: 0 0 15px 0 rgb(3 32 33 / .07); }
.yls_sol__pricingcard__logo { width: 100%; }
.yls_sol__pricingcard__logo img { display: block; max-width: 100%; max-height: 72px; margin: 0 auto; }
.yls_sol__pricingcard__price { display: flex; flex-direction: row; justify-content: center; align-items: stretch; padding: 1.2em 1.2em .6em 1.2em; border-radius: var(--border-radius--md); background: var(--color_primary--200); }
.yls_sol__pricingcard__price * { line-height: 100%; }
.yls_sol__pricingcard__price .euro { display: flex; flex-direction: row; align-items: flex-start; font-family: var(--font_headings); font-size: 1.2rem; font-weight: 400; }
.yls_sol__pricingcard__price .amount { padding: 0 8px 0 4px; font-family: var(--font_headings); font-size: 2.488rem; font-weight: 700; color: var(--color_headings); }
.yls_sol__pricingcard__price .details > div { display: flex; flex-direction: column; justify-content: center; font-family: var(--font_headings); font-size: 1rem; font-weight: 400; }
.yls_sol__pricingcard__price .details .secondary { margin-top: .2em; font-size: .694em; }
.yls_sol__pricingcard__features .s-text ul, .yls_sol__pricingcard__features .s-text ol { margin: 0; padding: 0; list-style: none; }
.yls_sol__pricingcard__features .s-text ul li, .yls_sol__pricingcard__features .s-text ol li { margin: 0; padding: 0; line-height: 1.44; }
.yls_sol__pricingcard__features .s-text ul li:not(:last-child), .yls_sol__pricingcard__features .s-text ol li:not(:last-child) { margin-bottom: .5em; padding-bottom: .5em; border-bottom: 1px solid var(--color_primary--300); }
.yls_sol__pricingcard .s-button-list:empty { display: none !important; }
.yls_sol__pricingcard .s-button-list:not(:empty) { width: 100%; margin-top: auto; }
.yls_sol__pricingtoggle { display: flex; flex-direction: row; justify-content: flex-end; width: 50% !important; }
.yls_sol__pricingtoggle__wrapper { display: flex; flex-direction: column; align-items: center; }
.yls_sol__pricingtoggle__inner { display: flex; overflow: hidden; border-radius: var(--border-radius--md); background: var(--color_primary--200); }
.yls_sol__pricingtoggle button { margin: 0; padding: 12px 17px; border: 0; outline: 0; line-height: 1; background: transparent; font-weight: 600; color: rgb(0 0 0 / .4); cursor: pointer; }
.yls_sol__pricingtoggle button.active { background-color: var(--color_primary--500); color: #fff; }
.yls_sol__pricingtoggle .s-text.disclaimer { text-transform: lowercase; font-size: .833rem; opacity: .8; }
.yls_sol__pricingcta .s-button-list { --gap: 12px; display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--gap); margin-top: 48px; }
.yls_sol__faq { margin-bottom: var(--comp-spacing--outer); }
.yls_sol__faq .container { max-width: 1600px; padding: 0 72px; }
.yls_sol__faqwrapper { --gap: 30px; display: flex; flex-direction: row; justify-content: space-between; align-items: stretch; gap: var(--gap); }
.yls_sol__faqcol.faq { width: 50%; }
.yls_sol__faqcol.cta { width: 41.66%; padding: 48px 36px; border-radius: var(--border-radius--md); background: linear-gradient(90deg, var(--color_primary--200) 0%, var(--color_secondary--200) 100%); }
.yls_sol__faqcol.cta h2 { margin-bottom: var(--ws-up-1); }
.yls_sol__faqcol.cta .s-text { margin-bottom: 30px; }
.yls_sol__faqlist { --gap: 12px; display: flex; flex-direction: column; gap: var(--gap); }
.yls_sol__faqitem { width: 100%; }
.yls_sol__faq details { overflow: hidden; border-radius: var(--border-radius--md); margin-bottom: 4px; }
.yls_sol__faq details summary { width: 100%; margin: 0; padding: .5rem 1rem; background-color: var(--color_primary--300); border: 0; border-radius: 0; text-align: left; font-weight: 600; cursor: pointer; list-style: none; }
.yls_sol__faq details summary::-webkit-details-marker { display: none; }
.yls_sol__faq details[open] summary { background-color: var(--color_primary--200); }
.yls_sol__faq details summary:hover { background-color: var(--color_primary--200); }
.yls_sol__faq details .s-accordion__content { width: 100%; padding: 1rem 1.2rem; background: var(--color_primary--200); }
.yls_sol__faq details .s-accordion__content p:last-child { margin-bottom: 0; }

/* Trial form — select and textarea */
.s-input.s-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.s-input.s-textarea {
  resize: vertical;
  min-height: 100px;
  height: auto;
}

/* Blog-/event-body afbeeldingen: in productie krijgen detail-afbeeldingen de
   class .s-img (max-height:60vh, gecentreerd, ronde hoeken). Onze gemigreerde
   Markdown levert een kale <img>; we stylen die hier identiek zodat de
   paginahoogte en weergave overeenkomen met productie. */
.s-detail-cont .s-text img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60vh;
  margin: 48px auto;
  border-radius: 17px;
  box-shadow: 0 0 15px rgb(0 0 0 / 0.1);
}

/* Evenementen-/blogkaarten (s-comp90): in productie zet de sG-Box-JS een vaste
   hoogte op het titelvak, waardoor de standaard <p>-marges binnen de titel geen
   ruimte innemen. Onze tegels misten die reset, waardoor elke tegel hoger werd
   en het hele raster ~500px te lang was. We resetten de marges zodat de
   natuurlijke titelhoogte (24px bij 1 regel, ~49px bij 2 regels) matcht met
   productie. De per-rij-gelijktrekking gebeurt aanvullend via een klein script. */
.s-comp90 .s-tile .s-title-h3,
.s-comp90 .s-tile .s-title-h3 h3,
.s-comp90 .s-tile .s-title-h3 p {
  margin: 0;
}

/* mp-gallery ook op FR a-propos (zelfde als NL over-mediportal, scoped op klasse) */
.mp-gallery { padding: 0 0 2.488rem; }
.mp-gallery__item { padding: 8px; }
.mp-gallery__item img { width: 100%; height: 260px; object-fit: cover; border-radius: 17px; display: block; }
@media (max-width: 768px) { .mp-gallery__item img { height: 200px; } }

/* Taalwisselaar: sub-menu standaard inklappen, uitklappen bij hover/focus.
   (De originele Yools-site gebruikt hiervoor superfish-JS; in onze statische
   herbouw doen we het CSS-only zodat het menu niet altijd uitgeklapt staat.) */
.s-lang-menu .sub-lang { display: none; }
.s-lang-menu .current-lang:hover > .sub-lang,
.s-lang-menu .current-lang:focus-within > .sub-lang { display: block; }

/* Footer Socials: SVG-icoon netjes naast het label */
.footer-social { margin-bottom: 6px; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; }
.footer-social svg { flex-shrink: 0; display: block; }

/* ── Formulier-resultaat (bevestiging / fout) ─────────────────────────── */
.s-result-beh {
  padding: 24px 28px;
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 16px 0;
}
.s-result-beh p { margin: 0; font-weight: 700; }
#contact-success, #trial-success {
  background: #e8f7f1;
  border: 1px solid #10AAAD;
  color: #0b6b5e;
}
#contact-error, #trial-error {
  background: #fdecec;
  border: 1px solid #e0b4b4;
  color: #8a1f1f;
}
.s-result-beh [data-cc-again] { margin-top: 16px; }

/* ── Fix: knoptekst zonder <div>-wrapper (o.a. formulierknoppen) verdween ──
   onder de hover-overlay. We plaatsen de overlay áchter de tekst, maar nog
   steeds boven de basis-achtergrond, zodat het label altijd zichtbaar blijft. */
.s-btn, #sw_content .s-btn-alt { isolation: isolate; }
.s-btn::before, #sw_content .s-btn-alt::before { z-index: -1; }

/* ── Focus-rand op formuliervelden (teal) — enkel binnen formulieren ────── */
.s-form .form-control { transition: border-color .15s ease, box-shadow .15s ease; }
.s-form .form-control:focus {
  outline: none;
  border-color: #10AAAD;
  box-shadow: 0 0 0 3px rgba(16, 170, 173, 0.20);
}
