/* =====================================================================
   ef-content.css  -  moderne opmaak content-injectables (.ef-page)
   Laden NA /css/app.css (zie meta_head.htm).
   Hoort bij: injectables/sectie-informatie.htm, includes/panel_hero.htm,
              includes/ks_contact_cta.htm
   Foundation 5 grid en JS (accordion, reflow) blijven ongewijzigd.
   ===================================================================== */

.ef-page {
  --ef-primary:   #007381;   /* eFarma teal */
  --ef-primary-d: #005a65;
  --ef-soft:      #f1f7f8;
  --ef-soft-2:    #e3eff1;
  --ef-text:      #26323d;
  --ef-muted:     #66727e;
  --ef-border:    #e2eaed;
  --ef-radius:    14px;
  --ef-shadow:    0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
  color: var(--ef-text);
  margin-bottom: 1.5rem;
}

/* Inladen via ajax: zachte overgang */
.ef-page > * { animation: efIn .25s ease-out both; }
.ef-page > *:nth-child(2) { animation-delay: .04s; }
.ef-page > *:nth-child(3) { animation-delay: .08s; }
@keyframes efIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ef-page > * { animation: none; } }

/* ---------- Hero -------------------------------------------------- */
.ef-hero {
  position: relative;
  border-radius: var(--ef-radius);
  overflow: hidden;
  box-shadow: var(--ef-shadow);
  margin: 0 0 1.25rem;
  background: var(--ef-soft);
}
.ef-hero__img {
  display: block; width: 100%;
  aspect-ratio: 3 / 1; object-fit: cover;
}
.ef-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,45,52,.7) 100%);
}
.ef-hero__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.25rem 1.5rem;
}
.ef-hero__title {
  display: block; color: #fff; font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.35rem, 3.2vw, 2.2rem); line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* ---------- Kaart ------------------------------------------------- */
.ef-card {
  background: #fff;
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  box-shadow: var(--ef-shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.ef-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--ef-muted); margin-bottom: .6rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.ef-crumb i { font-size: .6rem; opacity: .6; }
.ef-crumb [aria-current] { color: var(--ef-primary); }

.ef-title {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.2;
  color: var(--ef-text);
  margin: 0 0 1.25rem; padding-bottom: .9rem;
  border-bottom: 3px solid var(--ef-soft-2);
}
.ef-subtitle {
  font-size: 1.2rem; font-weight: 700; color: var(--ef-text);
  margin: 0 0 .9rem;
}
.ef-section { margin-top: 2rem; }
.ef-shoplink { text-align: center; }
.ef-shoplink .button { margin: 0; }

.ef-updated {
  margin: 2rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--ef-border);
  font-size: .8rem; color: var(--ef-muted);
}
.ef-updated i { margin-right: .3rem; }

.ef-callout {
  background: var(--ef-soft); border-left: 4px solid var(--ef-primary);
  border-radius: 8px; padding: 1rem 1.15rem; margin-bottom: 1.25rem;
}
.ef-callout__label {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ef-primary); margin-right: .4rem;
}

/* ---------- Typografie CMS-tekst (SCTXTBODY) ---------------------- */
.ef-prose { font-size: 1rem; line-height: 1.7; }
.ef-prose p, .ef-prose li { font-size: 1rem; line-height: 1.7; color: var(--ef-text); }
.ef-prose p { margin: 0 0 1rem; max-width: 72ch; }
.ef-prose > *:last-child { margin-bottom: 0; }

.ef-prose h2, .ef-prose h3, .ef-prose h4, .ef-prose h5, .ef-prose h6 {
  color: var(--ef-primary-d); font-weight: 700; letter-spacing: -.01em;
  margin: 1.75rem 0 .5rem; line-height: 1.3;
}
.ef-prose h2 { font-size: 1.35rem; }
.ef-prose h3 { font-size: 1.2rem; }
.ef-prose h4, .ef-prose h5, .ef-prose h6 { font-size: 1.08rem; }
.ef-prose > h2:first-child, .ef-prose > h3:first-child,
.ef-prose > h4:first-child, .ef-prose > h5:first-child { margin-top: 0; }

.ef-prose a:not(.button) {
  color: var(--ef-primary); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(0,115,129,.35);
  transition: color .15s, text-decoration-color .15s;
}
.ef-prose a:not(.button):hover { color: var(--ef-primary-d); text-decoration-color: currentColor; }
.ef-prose a span[style*="underline"] { text-decoration: none !important; }
.ef-prose strong, .ef-prose b { font-weight: 700; }

/* Genummerde lijst -> stappen */
.ef-prose ol { list-style: none; counter-reset: efstep; margin: 1.25rem 0; padding: 0; }
.ef-prose ol > li {
  counter-increment: efstep; position: relative;
  padding: .9rem 1rem .9rem 3.4rem; margin-bottom: .6rem;
  background: var(--ef-soft); border-radius: 10px; max-width: none;
}
.ef-prose ol > li::before {
  content: counter(efstep);
  position: absolute; left: 1rem; top: .95rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--ef-primary); color: #fff;
  font-weight: 700; font-size: .85rem; line-height: 1.7rem; text-align: center;
}

/* Ongenummerde lijst */
.ef-prose ul { list-style: none; margin: 1rem 0 1.25rem; padding: 0; }
.ef-prose ul > li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.ef-prose ul > li::before {
  content: ""; position: absolute; left: .35rem; top: .72em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--ef-primary);
}

/* Tabellen */
.ef-prose table {
  width: 100%; border: 1px solid var(--ef-border); border-radius: 10px;
  border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 1rem 0 1.5rem;
}
.ef-prose table th, .ef-prose table thead td {
  background: var(--ef-soft); color: var(--ef-primary-d);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; text-align: left;
}
.ef-prose table td, .ef-prose table th { padding: .7rem .9rem; border-top: 1px solid var(--ef-border); font-size: .95rem; }
.ef-prose table tr:first-child td, .ef-prose table tr:first-child th { border-top: 0; }
.ef-prose table tr:nth-of-type(even) { background: #fafcfd; }

.ef-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.ef-prose hr { border: 0; border-top: 1px solid var(--ef-border); margin: 1.75rem 0; }

/* ---------- FAQ-accordion (Foundation 5 accordion) ---------------- */
.ef-faq { margin: 0; border: 0; }
.ef-faq .accordion-navigation {
  border: 1px solid var(--ef-border); border-radius: 10px;
  margin: 0 0 .5rem; overflow: hidden; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ef-faq .accordion-navigation:hover { border-color: #c9dce0; }
.ef-faq .accordion-navigation > a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; color: var(--ef-text); font-weight: 600; font-size: 1rem;
  padding: 1rem 1.15rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.ef-faq .accordion-navigation > a:hover,
.ef-faq .accordion-navigation > a:focus { background: var(--ef-soft); }
.ef-faq .accordion-navigation.active { border-color: #b8d4d9; box-shadow: var(--ef-shadow); }
.ef-faq .accordion-navigation.active > a { background: var(--ef-soft); color: var(--ef-primary-d); }
.ef-faq__icon { color: var(--ef-primary); flex: none; transition: transform .2s ease; }
.ef-faq .accordion-navigation.active .ef-faq__icon { transform: rotate(180deg); }
.ef-faq .accordion-navigation > .content {
  padding: .5rem 1.15rem 1.15rem; border: 0; background: #fff;
}

/* ---------- Contactblok klantenservice ---------------------------- */
.ef-contact {
  margin-top: 1.25rem;
  background: var(--ef-soft);
  border: 1px solid var(--ef-soft-2);
  border-radius: var(--ef-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ef-contact__title { font-size: 1.2rem; font-weight: 700; color: var(--ef-text); margin: 0 0 .35rem; }
.ef-contact__intro p { margin: 0 0 1.1rem; color: var(--ef-muted); font-size: .95rem; }
.ef-contact__grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ef-contact__item {
  display: flex; flex-direction: column; gap: .2rem;
  background: #fff; border: 1px solid var(--ef-border); border-radius: 12px;
  padding: 1rem 1.1rem; color: var(--ef-text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ef-contact__item:hover, .ef-contact__item:focus {
  transform: translateY(-2px); box-shadow: var(--ef-shadow);
  border-color: #b8d4d9; color: var(--ef-text);
}
.ef-contact__item i { color: var(--ef-primary); margin-bottom: .4rem; }
.ef-contact__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ef-muted); }
.ef-contact__value { font-weight: 600; color: var(--ef-primary-d); word-break: break-word; }

/* ---------- Mobiel ------------------------------------------------ */
@media only screen and (max-width: 40em) {
  .ef-hero { border-radius: 0; margin-left: -.9375rem; margin-right: -.9375rem; box-shadow: none; }
  .ef-hero__img { aspect-ratio: 2 / 1; }
  .ef-hero__text { padding: .9rem 1rem; }
  .ef-card { border-radius: 12px; }
  .ef-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ef-prose ol > li { padding-left: 3rem; }
  .ef-prose ol > li::before { left: .8rem; }
}

/* ---------- Spinner tijdens ajax (#notch_spinner) ----------------- */
#notch_spinner .div_loader { display: none; }
#notch_spinner::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 3rem auto;
  border: 3px solid #e2eaed; border-top-color: #007381; border-radius: 50%;
  animation: efSpin .8s linear infinite;
}
@keyframes efSpin { to { transform: rotate(360deg); } }
