/* Moderne layout: eigen, redactioneel ontwerp bovenop de structuur van site.css. Niets van de vroegere sites.
   Kleuren, lettertype, logo en foto komen uit de backoffice (partials/modern/branding). Lettertypes zelf gehost,
   SIL Open Font License: Tenor Sans (Denis Masharov), Marcellus (Astigmatic), Cormorant Garamond (Christian Thalmann), Jost (Owen Earl). */
@font-face { font-family: "Tenor Sans"; src: url("/fonts/tenor-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.layout-modern {
  --paper: #ffffff;
  --paper-2: #f3f4f1;
  --ink: #1c2a37;
  --muted: #5d6870;
  --line: #e3e7e5;
  --rule: #cbd2cf;
  /* site.css-variabelen omzetten naar deze layout */
  --gold: var(--m-accent);
  --gold-dark: var(--m-accent-dark);
  --gold-light: var(--paper-2);
  --black: var(--m-dark);
  --serif: var(--m-sans);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
}

.layout-modern h1, .layout-modern h2, .layout-modern h3 { font-family: var(--m-serif); font-weight: 400; color: var(--ink); letter-spacing: 0; }
.layout-modern h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.12; }
.layout-modern h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.2; }
.layout-modern h3 { font-size: 1.25rem; line-height: 1.25; }
.layout-modern a { color: var(--m-accent-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.layout-modern a:hover { color: var(--ink); }
.layout-modern .btn { background: var(--m-accent); color: var(--m-on-accent, #fff); border-radius: 0; padding: 15px 26px; font: 500 .78rem var(--m-sans); letter-spacing: .14em; text-transform: uppercase; }
.layout-modern .btn:hover { background: var(--m-accent-dark); color: #fff; }
.layout-modern .btn-outline { background: transparent; color: var(--m-accent-dark); border: 1px solid var(--m-accent); }
.layout-modern .btn-outline:hover { background: var(--m-accent); color: var(--m-on-accent, #fff); }

/* Kopbalk */
.m-header { background: var(--paper); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.m-header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; position: relative; }
.m-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.m-brand { flex-shrink: 0; }
.m-brand img { height: 58px; width: auto; }
@media (max-width: 1150px) { .m-brand img { height: 44px; } }
.m-brand-name { font-family: var(--m-serif); color: var(--ink); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; }
.m-brand-sub { font-family: var(--m-sans); color: var(--m-accent-2-dark); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.layout-modern .main-nav { gap: 0; }
.layout-modern .main-nav > a, .layout-modern .main-nav .dropdown > button, .layout-modern .main-nav .dropdown > a { font: 400 .95rem var(--m-sans); color: var(--ink); padding: 30px 11px; }
.layout-modern .main-nav > a:hover, .layout-modern .main-nav .dropdown > button:hover, .layout-modern .main-nav .dropdown > a:hover { color: var(--m-accent-2-dark); }
.layout-modern .main-nav > a[aria-current="page"], .layout-modern .dropdown > a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--m-accent-2); text-underline-offset: 8px; }
.layout-modern .dropdown-menu { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--m-accent-2); box-shadow: 0 18px 40px rgba(23, 44, 61, .08); }
.layout-modern .dropdown-menu strong, .layout-modern .dropdown-menu strong a { font-family: var(--m-serif); font-size: 1rem; color: var(--ink); font-weight: 400; }
.layout-modern .dropdown-menu a { color: var(--muted); }
.layout-modern .dropdown-menu a:hover { color: var(--m-accent-2-dark); }
.m-header-end { display: flex; align-items: center; gap: 18px; }
.layout-modern .lang-switch a, .layout-modern .lang-switch span { font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.layout-modern .lang-switch [aria-current="true"] { color: var(--ink); }
.layout-modern .m-header-end .btn { padding: 12px 18px; }
.layout-modern .nav-toggle { position: static; color: var(--ink); }

/* Banner */
.m-hero { padding: 88px 0 80px; background: var(--paper-2); }
.m-hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: end; }
.m-eyebrow { font: 500 .8rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--m-accent-2-dark); margin: 0 0 20px; }
.m-hero h1 { margin: 0 0 26px; max-width: 13em; }
.m-lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin: 0 0 34px; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.m-hero-card { border-top: 1px solid var(--rule); padding-top: 14px; }
.m-hero-card h2 { font: 500 .74rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.m-hero-card ul { list-style: none; margin: 0; padding: 0; }
.m-hero-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.m-hero-card li a { font-family: var(--m-serif); font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.m-hero-card li a:hover { color: var(--m-accent-2-dark); }
.m-hero-card small { color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* Brede banner (dermatologie): foto over de volle breedte, tekst links in de lichte ruimte */
.m-hero.m-hero-wide { position: relative; overflow: hidden; padding: 0; background: var(--paper-2); }
.m-hero-wide .m-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.m-hero-wide .m-hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(440px, 37vw, 640px); }
.m-hero-wide .m-hero-inner > div { max-width: 44%; padding: 64px 0; }
/* Wisselende bannerfoto's: elke foto blijft 5 seconden staan en vloeit dan in 2 seconden zacht over in de volgende.
   De eerste foto vloeit mee weg, anders schijnt ze door (de donkere banner mengt de foto's). Wie minder beweging wil
   (instelling van het toestel), ziet enkel de eerste. */
.m-hero-wide .m-hero-bg-alt { opacity: 0; animation: m-hero-wissel 14s ease-in-out infinite; }
.m-hero-wide .m-hero-bg-eerste { animation: m-hero-eerste 14s ease-in-out infinite; }
@keyframes m-hero-wissel { 0%, 36% { opacity: 0; } 50%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes m-hero-eerste { 0%, 36% { opacity: 1; } 50%, 86% { opacity: 0; } 100% { opacity: 1; } }
/* Drie foto's (21 s): de tweede komt op 5-7 s, de derde (7 s later gestart) op 12-14 s, de eerste weer op 19-21 s. */
.m-hero-wide .m-hero-bg-alt.m-hero-drie { animation: m-hero-wissel-3 21s ease-in-out infinite; }
.m-hero-wide .m-hero-bg-alt-2.m-hero-drie { animation-delay: 7s; }
.m-hero-wide .m-hero-bg-eerste.m-hero-drie { animation: m-hero-eerste-3 21s ease-in-out infinite; }
@keyframes m-hero-eerste-3 { 0%, 23.8% { opacity: 1; } 33.3%, 90.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes m-hero-wissel-3 { 0%, 23.8% { opacity: 0; } 33.3%, 57.1% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
/* Vier foto's (28 s): elke volgende foto komt 7 seconden later. */
.m-hero-wide .m-hero-bg-alt.m-hero-vier { animation: m-hero-wissel-4 28s ease-in-out infinite; }
.m-hero-wide .m-hero-bg-alt-2.m-hero-vier { animation-delay: 7s; }
.m-hero-wide .m-hero-bg-alt-3.m-hero-vier { animation-delay: 14s; }
.m-hero-wide .m-hero-bg-eerste.m-hero-vier { animation: m-hero-eerste-4 28s ease-in-out infinite; }
@keyframes m-hero-eerste-4 { 0%, 17.9% { opacity: 1; } 25%, 92.9% { opacity: 0; } 100% { opacity: 1; } }
@keyframes m-hero-wissel-4 { 0%, 17.9% { opacity: 0; } 25%, 42.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-hero-wide .m-hero-bg-alt, .m-hero-wide .m-hero-bg-eerste { animation: none; } }
/* Staand logo in plaats van de titel (homepage plastische chirurgie). */
.m-hero-logo { margin: 0 0 30px; }
.m-hero-logo img { display: block; width: min(440px, 100%); height: auto; }
/* Op de grijze foto: omlijnde knop in de tekstkleur, anders te bleek. */
.layout-modern .m-hero-wide:not(.m-hero-dark) .btn-outline { color: var(--ink); border-color: var(--ink); }

/* Donkere variant (homepage plastische chirurgie), zoals de klassieke site: foto rechts, links overlopend in de donkere kleur,
   witte tekst. 'screen' kleurt het zwart van de foto mee in de donkere kleur van de huisstijl. */
.m-hero.m-hero-dark { background: var(--m-dark); }
.m-hero-dark .m-hero-bg { left: auto; right: 0; width: 72%; object-position: center; -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); mix-blend-mode: screen; }
.layout-modern .m-hero-dark h1 { color: #fff; }
.m-hero-dark .m-lead { color: rgba(255, 255, 255, .78); }
.m-hero-dark .m-eyebrow { color: var(--m-accent-2); }
.layout-modern .m-hero-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .85); }
.layout-modern .m-hero-dark .btn-outline:hover { background: #fff; color: var(--m-accent-dark); }

/* Secties: titel links */
.layout-modern .section { padding: 88px 0; }
.layout-modern .section-gold { background: var(--paper-2); }
.layout-modern .section-title { text-align: left; margin: 0 0 40px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.layout-modern .section-title a { color: inherit; }
.layout-modern .m-team-title { margin-top: 88px; }

/* Artsen: portret, naam, geen kader */
/* Artsenkaarten altijd op een derde van de breedte: met twee artsen worden ze niet groter, maar staan ze gecentreerd. */
.layout-modern .doctors { margin: 0; grid-template-columns: repeat(auto-fit, calc((100% - 80px) / 3)); justify-content: center; gap: 48px 40px; }
@media (max-width: 860px) { .layout-modern .doctors { grid-template-columns: repeat(auto-fit, calc((100% - 40px) / 2)); } }
@media (max-width: 600px) { .layout-modern .doctors { grid-template-columns: 100%; } }
.layout-modern .doctor-card { background: none; color: var(--ink); text-align: left; text-decoration: none; }
.layout-modern .doctor-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: none; margin-bottom: 20px; transition: opacity .2s; }
.layout-modern a.doctor-card:hover img { opacity: .88; }
.layout-modern .doctor-card .body { padding: 0; }
.layout-modern .doctor-card h3 { font-size: 1.4rem; margin: 0 0 2px; }
.layout-modern .doctor-card .specialty { font: 500 .78rem var(--m-sans); color: var(--m-accent-2-dark); text-transform: uppercase; letter-spacing: .14em; margin: 4px 0 12px; }
.layout-modern .doctor-card ul { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 10px; }
.layout-modern .doctor-card .more { color: var(--ink); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.layout-modern .doctor-card .btn { background: var(--m-accent) !important; align-self: flex-start; }

/* Aanbod als inhoudstafel: categorie links, behandelingen rechts */
.layout-modern .categories, .layout-modern .categories.two { grid-template-columns: 1fr; gap: 0; text-align: left; border-top: 1px solid var(--rule); }
.layout-modern .categories > div { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; grid-template-areas: "titel lijst" "meer lijst"; column-gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.layout-modern .categories h3 { grid-area: titel; font-size: 1.6rem; margin: 0; }
.layout-modern .categories h3 a { color: var(--ink); text-decoration: none; }
.layout-modern .categories ul { grid-area: lijst; columns: 2; column-gap: 40px; margin: 6px 0 0; }
.layout-modern .categories li { break-inside: avoid; padding: 3px 0; }
.layout-modern .categories li a { color: var(--ink); text-decoration: none; }
.layout-modern .categories li a:hover { color: var(--m-accent-2-dark); text-decoration: underline; }
.layout-modern .categories > div > a { grid-area: meer; align-self: end; margin-top: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.layout-modern .categories > div > a:hover { color: var(--m-accent-2-dark); }

/* Nieuws als lijst */
.layout-modern .news-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.layout-modern .news-item { display: grid; grid-template-columns: 180px 1fr; grid-template-areas: "datum titel" "datum tekst" "datum meer"; column-gap: 40px; border: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
.layout-modern .news-item time { grid-area: datum; font: 500 .85rem var(--m-sans); letter-spacing: .06em; color: var(--m-accent-2-dark); }
.layout-modern .news-item h3, .layout-modern .news-item h2 { grid-area: titel; margin: 0 0 6px; }
.layout-modern .news-item h3 a, .layout-modern .news-item h2 a { color: var(--ink); text-decoration: none; }
.layout-modern .news-item p { grid-area: tekst; color: var(--muted); margin: 0; }
.layout-modern .news-item > a { grid-area: meer; margin-top: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* Binnenpagina's */
.layout-modern .crumbs { margin: 40px 0 18px; font-size: .8rem; letter-spacing: .04em; }
.layout-modern .crumbs a { color: var(--muted); }
/* Alle foto's in zwart-wit met een zeer lichte warme toets (12%), zodat ze opgaan in de warme achtergrond.
   Niet voor logo's (/images/) en niet voor de homepagebanners, die al in de huisstijl getint zijn.
   !important: de artspagina zet zwart-wit rechtstreeks op de foto. */
.layout-modern img[src*="/storage/"]:not(.m-hero-bg) { filter: grayscale(1) sepia(.12) !important; }
/* Wie zijn we: korte inleiding in plaats van de grote titel */
.layout-modern .team-intro { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--m-serif); color: var(--ink); margin: 6px 0 0; }
.layout-modern .team-staff-title { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--m-serif); color: var(--ink); margin: 0; }
.layout-modern .home-team-staff { margin-top: 72px; }
.layout-modern .layout-sidebar { gap: 72px; grid-template-columns: 250px 1fr; padding-top: 8px; }
.layout-modern .sidebar h2 { font: 500 .72rem var(--m-sans); letter-spacing: .16em; color: var(--muted); border: 0; border-top: 1px solid var(--rule); padding: 12px 0 4px; margin: 0; }
.layout-modern .sidebar ul { margin-bottom: 30px; }
.layout-modern .sidebar li a { border-left: 0; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.layout-modern .sidebar li a:hover, .layout-modern .sidebar li a[aria-current="page"] { color: var(--m-accent-2-dark); background: none; }
.layout-modern .sidebar li a[aria-current="page"]::before { content: "— "; }
.layout-modern .sidebar img { filter: none !important; aspect-ratio: 4 / 5; object-fit: cover; }
.layout-modern .content > h1 { margin-bottom: 28px; }
.layout-modern .content > img.lead-image, .layout-modern .lead-image { max-height: 460px; margin: 4px 0 32px; }
.layout-modern .answer-box { background: none; border: 0; border-left: 2px solid var(--m-accent-2); padding: 4px 0 4px 24px; }
.layout-modern .answer-box h2 { font: 500 .72rem var(--m-sans); letter-spacing: .16em; color: var(--muted); }
.layout-modern .answer-box p { font-family: var(--m-serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.layout-modern .facts div { border: 0; border-top: 1px solid var(--rule); padding: 12px 0 0; }
.layout-modern .facts strong { font: 500 .72rem var(--m-sans); letter-spacing: .16em; color: var(--muted); }
.layout-modern .info-box { border: 0; border-top: 1px solid var(--rule); background: var(--paper-2); padding: 22px 26px; }
.layout-modern .location-card { border: 0; border-top: 1px solid var(--rule); padding: 14px 0 0; background: none; }
.layout-modern .location-card .type { color: var(--muted); letter-spacing: .14em; }
.layout-modern .location-card h3 { font-size: 1.5rem; }
.layout-modern .location-group[style*="--cols: 3"] .location-card h3 { font-size: 1.25rem; }
.layout-modern .location-card h3 a { color: var(--ink); text-decoration: none; }
.layout-modern .map-frame { filter: grayscale(.3); }
.layout-modern details.faq summary { font-family: var(--m-serif); font-size: 1.08rem; }
.layout-modern details.faq summary::after { color: var(--m-accent-2); }
.layout-modern .prose h2 { margin-top: 1.5em; }
.layout-modern input, .layout-modern select, .layout-modern textarea { background: #fff; border-color: var(--line); }
.layout-modern .review-note { font-style: italic; }
.layout-modern .alert-ok { background: var(--paper-2); }

/* Dermatologie */
.layout-modern .derm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 72px 0 88px; }
.layout-modern .derm-card { background: none; border-top: 1px solid var(--rule); padding: 18px 0 0; display: flex; flex-direction: column; text-align: left; }
.layout-modern .derm-card h2 { font-size: 1.5rem; margin: 0 0 12px; color: var(--ink); }
.layout-modern .derm-card p { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.layout-modern .derm-btn-outline { margin-top: auto; align-self: flex-start; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--m-accent); padding-bottom: 4px; }
.layout-modern .derm-btn-outline:hover { color: var(--m-accent-2-dark); }
.layout-modern .derm-intro { background: var(--paper-2); padding: 88px 0; }
.layout-modern .derm-intro .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.layout-modern .derm-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.layout-modern .derm-intro h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }

/* Afspraakblok en footer: donkere kleur uit de backoffice */
.m-cta { background: var(--m-dark); color: var(--paper); padding: 72px 0; }
.m-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.layout-modern .m-cta h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--paper); max-width: 16em; }
.layout-modern .m-cta .btn { background: var(--paper); color: var(--ink); }
.layout-modern .m-cta .btn:hover { background: var(--m-accent-2-dark); color: #fff; }
.m-footer { background: var(--m-dark); color: rgba(251, 249, 246, .72); padding: 0 0 28px; font-size: .9rem; }
.m-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; border-top: 1px solid rgba(251, 249, 246, .18); padding-top: 48px; }
.layout-modern .m-footer h2 { font: 500 .72rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 249, 246, .5); margin: 0 0 14px; }
.m-footer ul { list-style: none; margin: 0; padding: 0; }
.m-footer li { padding: 3px 0; }
.layout-modern .m-footer a { color: var(--paper); text-decoration: none; }
.layout-modern .m-footer a:hover { color: #fff; text-decoration: underline; }
.m-footer .m-brand-name { display: block; color: var(--paper); margin: 0 0 12px; }
.m-footer-logo { max-width: 280px; height: auto; margin-bottom: 14px; }
.m-footer-bottom { border-top: 1px solid rgba(251, 249, 246, .18); margin-top: 48px; padding-top: 18px; font-size: .78rem; color: rgba(251, 249, 246, .5); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.layout-modern .consent { background: var(--m-dark); }

@media (max-width: 1000px) {
  .m-hero-wide .m-hero-bg { position: static; display: block; height: auto; aspect-ratio: 16 / 9; object-position: 80% center; }
  .m-hero-wide .m-hero-inner { min-height: 0; }
  .m-hero-wide .m-hero-bg-alt { position: absolute; top: 0; left: 0; width: 100%; }
  .m-hero-wide .m-hero-inner > div { max-width: none; padding: 40px 0 52px; }
  .m-header-inner { gap: 14px; min-height: 72px; }
  .layout-modern .main-nav { top: 100%; background: var(--paper); border-top: 1px solid var(--line); }
  .layout-modern .main-nav > a, .layout-modern .main-nav .dropdown > button, .layout-modern .main-nav .dropdown > a { padding: 12px 0; }
  .layout-modern .dropdown-menu { box-shadow: none; border: 0; padding: 4px 0 12px; }
  .m-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .m-hero-dark .m-hero-bg { width: 100%; object-position: 70% center; -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
  .m-hero-dark .m-hero-inner > div { padding-top: 8px; }
  .layout-modern .categories > div { grid-template-columns: 1fr; grid-template-areas: "titel" "lijst" "meer"; }
  .layout-modern .derm-cards { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .layout-modern .layout-sidebar { grid-template-columns: 1fr; gap: 32px; }
  .m-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .m-hero-logo img { width: 280px; }
  .m-brand img { height: auto; width: 210px; }
  .layout-modern { font-size: 16px; }
  /* Afspraakknop staat op gsm al in de banner en in het afspraakblok onderaan elke pagina. */
  .m-header-end .btn { display: none; }
  .m-brand-name { font-size: 1.4rem; }
  .m-brand-sub { font-size: .9rem; }
  .m-hero { padding: 52px 0; }
  .layout-modern .section { padding: 64px 0; }
  .layout-modern .categories ul { columns: 1; }
  .layout-modern .news-item { grid-template-columns: 1fr; grid-template-areas: "datum" "titel" "tekst" "meer"; }
  .layout-modern .derm-cards, .m-footer-grid { grid-template-columns: 1fr; }
  .layout-modern .derm-intro .wrap { grid-template-columns: 1fr; gap: 32px; }
  .layout-modern .derm-intro img { max-width: 280px; }
}

/* Kopbalk in het groen met uitklappaneel "Behandelingen" */
.m-header { background: var(--m-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--paper); }
.layout-modern .main-nav > a, .layout-modern .m-mega-toggle { font: 400 .95rem var(--m-sans); color: var(--paper); padding: 30px 11px; background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.layout-modern .main-nav > a:hover, .layout-modern .m-mega-toggle:hover, .layout-modern .m-mega-toggle[aria-expanded="true"] { color: var(--m-accent); }
.layout-modern .main-nav > a[aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--m-accent); text-underline-offset: 8px; }
.m-mega-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin: 0 0 3px 9px; transition: transform .2s; }
.m-mega-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -1px; }
.layout-modern .m-header .lang-switch a, .layout-modern .m-header .lang-switch span { color: rgba(245, 239, 230, .62); }
.layout-modern .m-header .lang-switch [aria-current="true"] { color: var(--paper); }
.layout-modern .m-header .lang-switch a:hover { color: var(--m-accent); }
.layout-modern .m-header .nav-toggle { color: var(--paper); }
.layout-modern .m-header .btn:hover { background: var(--paper); color: var(--m-dark); }
.m-brand-name { color: var(--paper); }
.m-mega { display: none; background: color-mix(in srgb, var(--m-dark) 88%, #fff); color: var(--paper); }
.m-mega.open { display: block; }
.m-mega-zone { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--paper); font: 400 1.6rem/1.3 var(--m-serif); padding: 5px 0; }
.m-mega-zone small { font: 400 .75rem var(--m-sans); color: rgba(245, 239, 230, .62); }
/* Gekozen zone in zandgoud, de andere in wit. */
.m-mega-zone > span { transition: transform .15s; }
.m-mega-zone:hover, .m-mega-zone[aria-expanded="true"] { color: var(--m-accent); }
/* Zoals de behandelingen eronder: de gekozen zone schuift lichtjes naar rechts. */
.m-mega-zone:hover > span, .m-mega-zone[aria-expanded="true"] > span { transform: translateX(6px); }
.m-mega-zone[aria-expanded="true"] small { color: var(--m-accent); }
.m-mega-sep { display: block; height: 1px; background: rgba(245, 239, 230, .14); margin: 12px 0; }
.m-mega-title { font: 500 .75rem var(--m-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--m-accent); margin: 6px 0 10px; }
.m-mega-panel ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.m-mega-panel li { break-inside: avoid; }
.layout-modern .m-mega-panel a { display: block; color: var(--paper); text-decoration: none; font-size: .95rem; padding: 8px 0; border-bottom: 1px solid rgba(245, 239, 230, .14); transition: color .15s, padding .15s; }
.layout-modern .m-mega-panel a:hover { color: var(--m-accent); padding-left: 6px; }
.m-mega-group { column-span: all; font: 500 .7rem var(--m-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--m-accent); margin: 14px 0 0; }
.layout-modern .m-mega-panel .m-mega-all { border: 0; color: var(--m-accent); font: 500 .72rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; margin-top: 14px; display: inline-block; }
/* Foto in de huisstijl getint, zoals de homepagebanner: donker wordt groen, licht wordt warm wit. */
.m-mega-feat .m-mega-photo { position: relative; background: var(--m-dark); overflow: hidden; }
.m-mega-feat .m-mega-photo::after { content: ""; position: absolute; inset: 0; background: var(--m-accent); mix-blend-mode: multiply; opacity: .16; pointer-events: none; }
.layout-modern .m-mega .m-mega-feat img[src] { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08) !important; mix-blend-mode: screen; }
@media (min-width: 1001px) {
  .m-header-inner { position: static; }
  .m-mega { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid rgba(245, 239, 230, .14); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
  /* Zones links, de lijst van de gekozen zone in het midden, foto rechts. */
  .m-mega-inner { display: grid; grid-template-columns: 220px 1fr 260px; grid-template-rows: repeat(7, min-content) 1fr; column-gap: 44px; padding-top: 36px; padding-bottom: 40px; }
  .m-mega-zones { display: contents; }
  .m-mega-zone, .m-mega-sep { grid-column: 1; }
  .m-mega-panel { grid-column: 2; grid-row: 1 / -1; border-left: 1px solid rgba(245, 239, 230, .14); padding-left: 40px; }
  .m-mega-feat { grid-column: 3; grid-row: 1 / -1; }
}
@media (max-width: 1000px) {
  .layout-modern .main-nav { background: var(--m-dark); border-top: 1px solid rgba(245, 239, 230, .14); max-height: calc(100vh - 72px); overflow-y: auto; }
  .layout-modern .main-nav > a, .layout-modern .m-mega-toggle { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid rgba(245, 239, 230, .14); }
  .m-mega { padding: 4px 0 8px 14px; }
  .m-mega-inner { padding: 0; }
  .m-mega-zone { font-size: 1.35rem; }
  .m-mega-panel { padding: 0 0 12px; }
  .m-mega-panel ul { columns: 1; }
  .m-mega-feat, .m-mega-title { display: none; }
}
.layout-modern .m-header .btn { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1240px) {
  .layout-modern .main-nav > a, .layout-modern .m-mega-toggle { padding-left: 8px; padding-right: 8px; font-size: .9rem; }
  .m-header-inner { gap: 18px; }
}

/* Behandelingspagina (moderne layout): brede kop met foto en kernfeiten, inhoudstafel, rustige tekstkolom. */
.m-treat-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.m-treat-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.m-treat-hero-noimg { grid-template-columns: minmax(0, 1fr); }
.m-treat-hero-text { padding: 8px 0 56px; }
.m-treat-hero .crumbs { margin: 32px 0 28px; }
.layout-modern .m-treat-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.08; margin: 0 0 10px; }
.m-treat-term { margin: 0 0 22px; }
.m-treat-lead { font-family: var(--m-serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: 32em; margin: 0 0 28px; }
.m-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 30px; max-width: 34em; }
.m-facts div { border-top: 1px solid var(--rule); padding: 10px 0 12px; }
.m-facts dt { font: 500 .7rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.m-facts dd { margin: 4px 0 0; font-family: var(--m-serif); font-size: 1.05rem; color: var(--ink); }
.m-treat-cta { margin: 0; }
/* Tot aan de rechterrand van het scherm: de ruimte tussen de .wrap en de schermrand (niet 50% van de kolom). */
.m-treat-hero-img { position: relative; min-height: 420px; margin-right: calc((min(var(--wrap), 100vw - 32px) - 100vw) / 2); }
.m-treat-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-treat-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 72px; }
.m-treat-body-notoc { grid-template-columns: minmax(0, 1fr); }
.m-toc { position: sticky; top: 110px; align-self: start; font-size: .9rem; }
.m-toc p { font: 500 .7rem var(--m-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.m-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.m-toc li a { display: block; padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.m-toc li a:hover { color: var(--ink); }
.m-treat-content { max-width: 44em; }
.m-treat-content .prose { hyphens: manual; }
.m-treat-content .prose > p:first-child { font-size: 1.08rem; }
.m-treat-content h2[id], .m-treat-content [id] { scroll-margin-top: 110px; }
.m-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.m-related a { display: block; text-decoration: none; color: var(--ink); }
.m-related img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.m-related span { font-family: var(--m-serif); font-size: 1.15rem; }
@media (max-width: 900px) {
  .m-treat-hero-inner, .m-treat-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .m-treat-hero-img { order: -1; min-height: 240px; margin: 0 calc(50% - 50vw); }
  .m-treat-hero-text { padding-bottom: 40px; }
  .m-toc { position: static; margin-bottom: 32px; }
  .m-treat-body { padding-top: 36px; }
  .m-related { grid-template-columns: minmax(0, 1fr); }
}

/* Verdiepende pagina's onder een behandeling (bv. kapselcontractuur bij borstvergroting). */
.layout-modern .m-deeper { list-style: none; padding: 0; margin: 0 0 8px; border-top: 1px solid var(--rule); }
.layout-modern .m-deeper li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.layout-modern .m-deeper a { font-weight: 600; text-decoration: none; }
.layout-modern .m-deeper a::after { content: " \2192"; }
.layout-modern .m-deeper span { display: block; margin-top: 4px; font-size: .95em; color: var(--muted); }
.layout-modern .category-deeper { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--rule); font-size: .92em; }
.layout-modern .category-deeper li { margin: 4px 0; }

/* Melding in een venster: kleuren van de moderne huisstijl. */
.layout-modern .notice-popup { background: var(--paper); color: var(--ink); border-top: 4px solid var(--m-accent); }
.layout-modern .notice-popup::backdrop { background: rgba(32, 43, 35, .6); }
.layout-modern .notice-popup h2 { font-family: var(--m-serif, inherit); }
.layout-modern .notice-popup .btn { background: var(--m-accent); color: var(--m-on-accent); }
