/* UitvaartFlow – app
   Rustig en goed leesbaar: veel wit, donkergroen als merkkleur, grote knoppen (minimaal 48px)
   omdat de uitvaartverzorger vaak staand of bij mensen thuis op een tablet werkt. */

@font-face { font-family: "Jakarta"; src: url(fonts/jakarta.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --merk: #166534; --merk-donker: #14532D; --merk-licht: #DCEFE1; --merk-zacht: #F0F7F2; --salie: #7FA36E;
  --terra: #C2410C; --terra-licht: #FDEDE6;
  --inkt: #0F172A; --inkt-2: #334155; --inkt-3: #64748B; --inkt-4: #94A3B8;
  --lijn: #E2E8F0; --lijn-2: #EEF2F7; --grijs: #F8FAFC; --wit: #fff;
  --fout: #B42318; --fout-licht: #FEF3F2;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rond: 14px;
  --schaduw: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -10px rgba(15,23,42,.14);
  --zij: 252px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--inkt); background: var(--grijs); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--merk); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #86C79A; outline-offset: 2px; border-radius: 8px; }
.laden { padding: 60px; text-align: center; color: var(--inkt-3); }
.verborgen { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Opbouw ---------- */
.schil { display: grid; grid-template-columns: var(--zij) minmax(0, 1fr); min-height: 100vh; }
.schil > div { min-width: 0; }
.zij { position: sticky; top: 0; height: 100vh; background: var(--wit); border-right: 1px solid var(--lijn); display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; }
.merk { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; padding: 0 8px; text-decoration: none; color: var(--inkt); }
.merk img { width: 32px; height: 32px; }
.merk b { color: var(--merk); }
.onderneming { padding: 0 10px; font-size: 13.5px; color: var(--inkt-3); margin-top: -10px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 11px; text-decoration: none; color: var(--inkt-2); font-weight: 600; font-size: 15.5px; }
.nav a:hover { background: var(--grijs); }
.nav a.actief { background: var(--merk-zacht); color: var(--merk); }
.nav .ic { width: 20px; height: 20px; color: var(--inkt-4); }
.nav a.actief .ic { color: var(--merk); }
.nav-kop { font-size: 12px; font-weight: 700; color: var(--inkt-4); text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 4px; }
.zij-voet { margin-top: auto; border-top: 1px solid var(--lijn); padding: 14px 8px 0; font-size: 14px; }
.zij-voet b { display: block; }
.zij-voet small { color: var(--inkt-3); }
.zij-voet .knop { margin-top: 10px; width: 100%; }
.hoofd { min-width: 0; padding: 28px 36px 60px; max-width: 1240px; width: 100%; }
.topbalk { display: none; }
.kop-rij { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kop-rij p { color: var(--inkt-3); margin: 4px 0 0; }
.kruimel { font-size: 14px; color: var(--inkt-3); margin-bottom: 6px; }
.kruimel a { color: var(--inkt-3); text-decoration: none; }
.kruimel a:hover { color: var(--merk); }

/* ---------- Iconen ---------- */
.ic { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-huis { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ic-map { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ic-gesprek { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.ic-mensen { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.7-3.5 3.3-5.5 6.5-5.5s5.8 2 6.5 5.5M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5c2 .7 3.2 2.6 3.5 5.5'/%3E%3C/svg%3E"); }
.ic-lijst { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.ic-tandwiel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); }
.ic-persoon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.8-4 4-6 8-6s7.2 2 8 6'/%3E%3C/svg%3E"); }
.ic-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-zoek { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }
.ic-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.ic-uit { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E"); }
.ic-agenda { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ic-vink { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.ic-euro { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7a7 7 0 1 0 0 10M4 10h10M4 14h10'/%3E%3C/svg%3E"); }
.ic-adresboek { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M8 17c.8-2 2.2-3 4-3s3.2 1 4 3'/%3E%3C/svg%3E"); }
.ic-label { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
.ic-sjabloon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }

/* ---------- Knoppen en velden ---------- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; background: var(--merk); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .1s; }
.knop:hover { background: var(--merk-donker); }
.knop:active { transform: scale(.98); }
.knop:disabled { opacity: .55; cursor: default; }
.knop.licht { background: var(--wit); color: var(--inkt); border-color: var(--lijn); }
.knop.licht:hover { background: var(--grijs); border-color: #CBD5E1; }
.knop.gevaar { background: var(--wit); color: var(--fout); border-color: #FECDCA; }
.knop.gevaar:hover { background: var(--fout-licht); }
.knop.klein { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.knop.groot { min-height: 56px; padding: 0 26px; font-size: 17px; }
.knop.breed { width: 100%; }
.knoppen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.velden { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.velden.drie { grid-template-columns: repeat(3, 1fr); }
.velden .heel { grid-column: 1 / -1; }
.veld label, .veld .veldnaam { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--inkt-2); }
.veld label small { font-weight: 500; color: var(--inkt-4); }
.veld input, .veld select, .veld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 12px; background: var(--wit); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.veld textarea { min-height: 96px; resize: vertical; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--merk); box-shadow: 0 0 0 4px var(--merk-licht); }
.veld .hulp { font-size: 13.5px; color: var(--inkt-3); margin-top: 6px; }
.keuzes { display: flex; gap: 8px; flex-wrap: wrap; }
.keuzes label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--lijn); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--wit); }
.keuzes input { position: absolute; opacity: 0; pointer-events: none; }
.keuzes input:checked + span { color: var(--merk); }
.keuzes label:has(input:checked) { border-color: var(--merk); background: var(--merk-zacht); color: var(--merk); }
.keuzes label:has(input:focus-visible) { outline: 3px solid #86C79A; outline-offset: 2px; }
.schakel { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
.schakel input { width: 22px; height: 22px; accent-color: var(--merk); }

/* ---------- Kaarten ---------- */
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 18px; padding: 24px; }
.kaart + .kaart { margin-top: 18px; }
.raster > .kaart + .kaart { margin-top: 0; }
.kaart-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.raster { display: grid; gap: 18px; }
.raster.twee { grid-template-columns: 1.5fr 1fr; }
.tegels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tegel { background: var(--wit); border: 1px solid var(--lijn); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.tegel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k, var(--merk)); }
.tegel small { color: var(--inkt-3); font-weight: 600; font-size: 13.5px; }
.tegel b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.leeg { padding: 28px; text-align: center; color: var(--inkt-3); border: 1.5px dashed var(--lijn); border-radius: 14px; }

/* ---------- Lijsten ---------- */
.zoekbalk { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.zoekveld { flex: 1; min-width: 240px; position: relative; }
.zoekveld .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--inkt-4); }
.zoekveld input { width: 100%; min-height: 50px; padding: 0 14px 0 42px; border: 1px solid #CBD5E1; border-radius: 12px; font-size: 17px; background: var(--wit); }
.zoekveld input:focus { outline: none; border-color: var(--merk); box-shadow: 0 0 0 4px var(--merk-licht); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--lijn); background: var(--wit); font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--inkt-2); }
.filter.aan { background: var(--merk); color: #fff; border-color: var(--merk); }
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
.tabel { width: 100%; border-collapse: collapse; background: var(--wit); }
.tabel th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--inkt-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--lijn); background: var(--grijs); }
.tabel td { padding: 14px; border-bottom: 1px solid var(--lijn-2); vertical-align: middle; }
.tabel tr.klik { cursor: pointer; }
.tabel tr.klik:hover td { background: var(--merk-zacht); }
.tabel td small { display: block; color: var(--inkt-3); font-size: 13.5px; }
.tabel-houder { border: 1px solid var(--lijn); border-radius: 16px; overflow: hidden; background: var(--wit); }
.label { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #F1F5F9; color: #475569; }
.s-voorgesprek { background: #F1F5F9; color: #475569; }
.s-melding { background: var(--terra-licht); color: #9A3412; }
.s-regelgesprek { background: #FEF3C7; color: #92400E; }
.s-planning { background: #E0F2FE; color: #075985; }
.s-uitvaart { background: #EDE9E3; color: #57534E; }
.s-afrekening { background: #ECFCCB; color: #3F6212; }
.s-nazorg { background: var(--merk-licht); color: var(--merk-donker); }
.s-gesloten { background: #F1F5F9; color: #64748B; }

/* ---------- Dossier ---------- */
.dossier-kop { background: var(--wit); border: 1px solid var(--lijn); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; }
.dossier-kop h1 { font-size: 26px; }
.dossier-kop .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--inkt-3); font-size: 15px; margin-top: 6px; align-items: center; }
.fasen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.fasen button { border: 0; background: none; padding: 10px 0 0; border-top: 4px solid var(--lijn); text-align: left; font-size: 13px; font-weight: 700; color: var(--inkt-4); cursor: pointer; min-height: 44px; }
.fasen button.gedaan { border-color: var(--salie); color: var(--merk); }
.fasen button.nu { border-color: var(--merk); color: var(--inkt); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--lijn); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 16px; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; color: var(--inkt-3); font-weight: 700; font-size: 15.5px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.actief { color: var(--merk); border-color: var(--merk); }
.gegevens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 24px; }
.gegevens div { padding: 10px 0; border-bottom: 1px solid var(--lijn-2); }
.gegevens dt, .gegevens small { display: block; font-size: 13px; color: var(--inkt-3); font-weight: 600; }
.tijdlijn { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--lijn); }
.tijdlijn li { position: relative; padding: 0 0 16px 14px; }
.tijdlijn li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--wit); border: 2.5px solid var(--salie); }
.tijdlijn li:first-child::before { background: var(--merk); border-color: var(--merk); }
.tijdlijn small { display: block; color: var(--inkt-3); font-size: 13px; }
.persoon { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--lijn-2); }
.persoon:last-child { border-bottom: 0; }
.persoon .info small { display: block; color: var(--inkt-3); }
.notitie { padding: 14px 16px; background: var(--grijs); border-radius: 12px; margin-bottom: 10px; white-space: pre-wrap; }
.notitie small { display: block; color: var(--inkt-3); margin-bottom: 4px; white-space: normal; }
.voorgesprek-hint { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }

/* ---------- Inloggen ---------- */
.inlog { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 500px at 20% 0%, #E8F3EA, transparent 70%), radial-gradient(700px 500px at 100% 100%, #F2F5E6, transparent 70%), var(--grijs); }
.inlog-kaart { width: min(440px, 100%); background: var(--wit); border: 1px solid var(--lijn); border-radius: 24px; padding: 36px; box-shadow: var(--schaduw); }
.inlog-kaart .merk { justify-content: center; margin-bottom: 8px; font-size: 22px; }
.inlog-kaart .merk img { width: 40px; height: 40px; }
.inlog-kaart > p { text-align: center; color: var(--inkt-3); }
.inlog-kaart form { display: grid; gap: 16px; margin-top: 22px; }
.inlog-kaart .link { background: none; border: 0; color: var(--merk); font-weight: 600; cursor: pointer; padding: 8px; justify-self: center; min-height: 44px; }

/* ---------- Meldingen en vensters ---------- */
.fout-tekst { color: var(--fout); background: var(--fout-licht); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.goed-tekst { color: var(--merk-donker); background: var(--merk-zacht); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.meldingen { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 300; width: min(520px, calc(100% - 32px)); }
.melding { background: var(--inkt); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--schaduw); font-weight: 600; animation: in .25s ease; }
.melding.fout { background: var(--fout); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
.scherm-dimmer { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 20px; z-index: 200; animation: in .2s ease; }
.venster { background: var(--wit); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.venster h2 { margin-bottom: 14px; }
.venster .knoppen { margin-top: 20px; justify-content: flex-end; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 16px; background: var(--grijs); padding: 14px; border-radius: 12px; }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; margin: 12px 0; }
.kopieer { display: flex; gap: 8px; }
.kopieer input { flex: 1; min-height: 46px; border: 1px solid var(--lijn); border-radius: 10px; padding: 0 12px; font-size: 14px; background: var(--grijs); }

/* ---------- Tablet en telefoon ---------- */
@media (max-width: 1100px) {
  .tegels { grid-template-columns: repeat(2, 1fr); }
  .raster.twee { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .schil { grid-template-columns: minmax(0, 1fr); }
  .zij { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 150; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--schaduw); }
  .zij.open { transform: none; }
  .topbalk { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--lijn); padding: 8px 12px; }
  .topbalk button { width: 48px; height: 48px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
  .topbalk .ic { width: 24px; height: 24px; }
  .hoofd { padding: 20px 16px 60px; }
  .velden, .velden.drie, .gegevens { grid-template-columns: 1fr; }
  .fasen { grid-template-columns: repeat(4, 1fr); }
  .tabel .smal-weg { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Demo-balk (alleen in de klikbare demo) ---------- */
.demo-balk { position: sticky; top: 0; z-index: 160; background: #FEF3C7; color: #78350F; font-size: 14.5px; font-weight: 600; text-align: center; padding: 8px 14px; border-bottom: 1px solid #FDE68A; }
.demo-balk button { margin-left: 10px; background: none; border: 1px solid #D97706; color: #78350F; border-radius: 8px; padding: 4px 10px; font-weight: 700; cursor: pointer; }

/* ---------- Fase 2: wensen, planning, agenda ---------- */
.hulp { font-size: 14px; color: var(--inkt-3); }
.rood { color: var(--fout); }
.link { background: none; border: 0; color: var(--merk); font-weight: 700; cursor: pointer; padding: 6px 0; min-height: 36px; text-align: left; }
.lijstje { list-style: none; padding: 0; margin: 8px 0 0; }
.lijstje li { padding: 10px 0; border-bottom: 1px solid var(--lijn-2); }
.lijstje li:last-child { border-bottom: 0; }
.lijstje small { display: block; color: var(--inkt-3); }
.wensen { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.wensen > div > .kaart + .kaart, .wensen .kaart + section { margin-top: 18px; }
.stappen { display: grid; gap: 6px; position: sticky; top: 16px; }
.stappen button { display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 10px; text-align: left; min-height: 58px; padding: 8px 12px; border: 1px solid var(--lijn); border-radius: 14px; background: var(--wit); font-weight: 700; cursor: pointer; color: var(--inkt-2); }
.stappen button span { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grijs); font-size: 14px; }
.stappen button small { color: var(--inkt-3); font-weight: 600; font-size: 12.5px; }
.stappen button.nu { border-color: var(--merk); background: var(--merk-zacht); color: var(--merk); }
.stappen button.nu span { background: var(--merk); color: #fff; }
body.tablet { font-size: 19px; }
body.tablet .groot-invoer .veld input, body.tablet .groot-invoer .veld textarea { font-size: 20px; min-height: 60px; }
body.tablet .groot-invoer .keuzes label { min-height: 60px; font-size: 18px; padding: 0 22px; }
body.tablet .zij { display: none; }
body.tablet .schil { grid-template-columns: minmax(0, 1fr); }
.doek { width: 100%; height: auto; aspect-ratio: 3 / 1; border: 2px dashed #CBD5E1; border-radius: 14px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.handtekening { max-width: 100%; border: 1px solid var(--lijn); border-radius: 12px; background: #fff; }
.taken { list-style: none; padding: 0; margin: 0; }
.taak { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--lijn-2); }
.taak:last-child { border-bottom: 0; }
.taak .info { flex: 1; min-width: 0; }
.taak .info small { display: block; color: var(--inkt-3); font-size: 13.5px; }
.taak.af .info b { text-decoration: line-through; color: var(--inkt-3); }
.taak.te-laat { background: linear-gradient(90deg, var(--fout-licht), transparent 60%); border-radius: 10px; padding-left: 8px; }
.vink { position: relative; width: 30px; height: 30px; flex: none; margin-top: 2px; cursor: pointer; }
.vink input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vink span { display: block; width: 30px; height: 30px; border: 2px solid #CBD5E1; border-radius: 9px; background: #fff; transition: background .15s; }
.vink input:checked + span { background: var(--merk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 20px no-repeat; border-color: var(--merk); }
.vink input:focus-visible + span { outline: 3px solid #86C79A; outline-offset: 2px; }
.voortgang { margin-bottom: 14px; }
.voortgang > div:first-child { display: flex; justify-content: space-between; font-size: 15px; }
.voortgang small { color: var(--inkt-3); }
.balk { height: 8px; background: var(--lijn-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.balk span { display: block; height: 100%; border-radius: 99px; background: var(--merk); }
.rand-rood { border-color: #FECDCA; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.dag { background: var(--wit); border: 1px solid var(--lijn); border-radius: 16px; padding: 12px; min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.dag.vandaag { border-color: var(--merk); box-shadow: 0 0 0 3px var(--merk-licht); }
.dag h3 { font-size: 14.5px; color: var(--inkt-2); margin-bottom: 4px; }
.dag .item { text-align: left; border: 0; border-left: 4px solid var(--merk); background: var(--merk-zacht); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; cursor: pointer; color: var(--inkt); }
.dag .item small { display: block; color: var(--inkt-3); font-size: 12px; }
.dag .item.i-uitvaart { border-color: #57534E; background: #EDE9E3; }
.dag .item.i-taak { border-color: var(--terra); background: var(--terra-licht); }
.dag .item.compact { padding: 5px 8px; font-size: 12.5px; line-height: 1.35; border-left-width: 3px; background: #FFF7F3; }
.dag .item.compact small { font-size: 11.5px; }
.dag .item.s-regelgesprek { border-color: #A16207; background: #FEF3C7; }
.dag .klein-plus { font-size: 13px; margin-top: auto; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wensen { grid-template-columns: minmax(0, 1fr); } .stappen { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (max-width: 600px) { .week { grid-template-columns: minmax(0, 1fr); } .dag { min-height: 0; } }

/* ---------- Fase 3: geld, documenten, afdrukken ---------- */
.r { text-align: right; }
.tabel td.r, .tabel th.r { white-space: nowrap; }
.groen { color: var(--merk); font-weight: 600; }
.rij-tussen { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.venster.breed { width: min(920px, 100%); }
.g-concept { background: #F1F5F9; color: #475569; }
.g-open, .g-verstuurd { background: #E0F2FE; color: #075985; }
.g-deels { background: #FEF3C7; color: #92400E; }
.g-betaald, .g-akkoord { background: var(--merk-licht); color: var(--merk-donker); }
.g-gecrediteerd { background: #F1F5F9; color: #64748B; }
.label.g-verlopen { background: var(--fout-licht); color: var(--fout); }
.regel-lijst { display: grid; gap: 8px; }
.regel { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 76px 70px 100px 36px; gap: 6px; align-items: center; }
.regel input, .regel select { min-height: 44px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 10px; font-size: 15.5px; background: #fff; width: 100%; }
.regel .r-aantal, .regel .r-prijs { text-align: right; }
.regel .r-derden { font-size: 12.5px; color: var(--inkt-3); display: flex; align-items: center; gap: 4px; }
.regel .r-bedrag { text-align: right; font-weight: 700; font-size: 15px; }
.regel .r-weg { border: 0; background: none; font-size: 22px; color: var(--inkt-4); cursor: pointer; min-height: 40px; }
.regel .r-weg:hover { color: var(--fout); }
.totalen { margin: 14px 0 0 auto; border-collapse: collapse; min-width: 280px; }
.totalen td { padding: 5px 0 5px 24px; text-align: right; }
.totalen td:first-child { text-align: left; padding-left: 0; color: var(--inkt-2); }
.totalen tr.eind td { font-weight: 800; font-size: 18px; border-top: 2px solid var(--inkt); padding-top: 8px; }
.tabel.regels td small { display: inline; }
.catalogus { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; max-height: 60vh; overflow: auto; padding: 2px; }
.artikel { text-align: left; border: 1px solid var(--lijn); border-radius: 14px; background: #fff; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.artikel:hover { border-color: var(--merk); }
.artikel.toegevoegd { border-color: var(--merk); background: var(--merk-zacht); }
.artikel img, .artikel .geen-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--grijs); display: grid; place-items: center; margin-bottom: 6px; color: var(--inkt-4); }
.artikel small { color: var(--inkt-3); font-size: 12.5px; }
.documenten { list-style: none; padding: 0; margin: 0; }
.documenten li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--lijn-2); }
.documenten li:last-child { border-bottom: 0; }
.documenten img, .doc-icoon { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--grijs); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--inkt-3); border: 1px solid var(--lijn); }
.documenten .info { flex: 1; min-width: 0; }
.documenten .info small { display: block; color: var(--inkt-3); font-size: 13.5px; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; }
.velden-lijst { display: flex; flex-wrap: wrap; gap: 6px; }
.velden-lijst .filter { font-family: ui-monospace, Menlo, monospace; font-size: 12px; min-height: 32px; }
/* Afdruk */
.afdruk-balk { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--lijn); }
.afdruk-houder { padding: 28px 16px 60px; }
.afdruk-houder.klein { padding: 0; }
.afdruk-blad { background: #fff; max-width: 820px; margin: 0 auto; padding: 56px 60px; box-shadow: var(--schaduw); border-radius: 6px; font-size: 15px; line-height: 1.5; color: #0F172A; }
.afdruk-houder.klein .afdruk-blad { padding: 24px; box-shadow: none; border: 1px solid var(--lijn); }
.afdruk-blad h1 { font-size: 26px; margin: 0 0 12px; }
.afdruk-blad h2 { font-size: 18px; margin: 22px 0 8px; }
.afdruk-blad h3 { font-size: 15.5px; margin: 16px 0 6px; }
.ad-kop { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ad-naam { font-size: 20px; font-weight: 800; color: var(--merk); }
.ad-titel { text-align: right; }
.ad-titel h1 { margin: 0; }
.ad-klein { font-size: 12.5px; color: #64748B; }
.ad-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748B; margin-bottom: 4px; }
.ad-blokken { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.ad-regels { width: 100%; border-collapse: collapse; }
.ad-regels th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748B; border-bottom: 2px solid #0F172A; padding: 6px 8px; }
.ad-regels td { padding: 8px; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.ad-regels .r, .ad-totalen .r { text-align: right; white-space: nowrap; }
.ad-totalen { margin: 14px 0 22px auto; border-collapse: collapse; min-width: 300px; }
.ad-totalen td { padding: 4px 8px; }
.ad-totalen .ad-eind td { font-weight: 800; border-top: 2px solid #0F172A; }
.ad-betalen { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #F8FAFC; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.epc { flex: none; background: #fff; padding: 6px; border-radius: 6px; }
.ad-voet { margin-top: 36px; padding-top: 12px; border-top: 1px solid #E2E8F0; font-size: 12px; color: #64748B; text-align: center; }
.doc-tabel { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.doc-tabel th { text-align: left; width: 38%; font-weight: 600; color: #475569; padding: 6px 10px 6px 0; vertical-align: top; border-bottom: 1px solid #EEF2F7; }
.doc-tabel td { padding: 6px 0; border-bottom: 1px solid #EEF2F7; }
@media (max-width: 900px) {
  .regel { grid-template-columns: minmax(0, 1fr) 70px 100px; }
  .regel .r-oms { grid-column: 1 / -1; }
  .regel .r-derden, .regel .r-btw { grid-column: span 1; }
  .afdruk-blad { padding: 28px 22px; }
  .ad-blokken { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; }
  .afdruk-balk, .demo-balk, .meldingen { display: none !important; }
  .afdruk-houder { padding: 0; }
  .afdruk-blad { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .ad-betalen { break-inside: avoid; }
}

/* ---------- Nabestaandenportaal ---------- */
body.portaal { background: radial-gradient(900px 500px at 10% 0%, #E8F3EA, transparent 70%), var(--grijs); }
.portaal-blad { max-width: 680px; margin: 0 auto; padding: 0 16px 20px; }
.portaal-blad .kaart + .kaart { margin-top: 16px; }
.portaal-blad h2 { margin-bottom: 10px; }
.portaal-kop { padding: 18px 0; }
.portaal-kop .merk { padding: 0; font-size: 17px; }
.portaal-held { text-align: center; padding: 26px 0 30px; }
.portaal-held h1 { font-size: 32px; margin: 6px 0; }
.portaal-held p { color: var(--inkt-3); margin: 0; }
.portaal-held .data { font-size: 17px; color: var(--inkt-2); }
.portaal .groot { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.upload-vak { display: grid; place-items: center; min-height: 120px; border: 2px dashed #A7C4A0; border-radius: 16px; background: var(--merk-zacht); cursor: pointer; font-weight: 700; color: var(--merk); text-align: center; padding: 16px; }
.upload-vak input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-vak:focus-within { outline: 3px solid #86C79A; outline-offset: 2px; }
.miniaturen { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mini { aspect-ratio: 1; border: 1px solid var(--lijn); border-radius: 12px; background: var(--grijs) center / cover no-repeat; cursor: pointer; display: flex; align-items: flex-end; padding: 6px; overflow: hidden; }
.mini span { font-size: 11px; color: var(--inkt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; text-align: left; }
.mini.met-foto span { display: none; }
.b-concept, .c-afgewezen { background: #F1F5F9; color: #475569; }
.b-besteld, .c-concept { background: #E0F2FE; color: #075985; }
.b-bevestigd, .b-geleverd, .c-goedgekeurd { background: var(--merk-licht); color: var(--merk-donker); }
.b-geannuleerd { background: var(--fout-licht); color: var(--fout); }
.lijstje .schakel { align-items: flex-start; font-weight: 500; }
.lijstje .schakel small { display: block; color: var(--inkt-3); }

/* ---------- Rouwkaart-ontwerper ---------- */
.rk { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: start; }
.rk-paneel .kaart + .kaart { margin-top: 18px; }
.rk-paneel h2 { margin-bottom: 12px; }
.rk-ontwerpen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rk-ontwerpen button { border: 1.5px solid var(--lijn); border-radius: 12px; background: #fff; padding: 6px 6px 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--inkt-2); }
.rk-ontwerpen button.aan { border-color: var(--merk); background: var(--merk-zacht); color: var(--merk); }
.rk-staal { display: grid; place-items: center; aspect-ratio: 105 / 148; background: var(--bg); border-radius: 6px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }
.rk-staal i { width: 46%; height: 8%; border-top: 3px solid var(--tk); border-bottom: 2px solid var(--ac); }
.rk-kleuren { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rk-kleuren [data-kleur]:not(.link) { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lijn); cursor: pointer; }
.rk-kleuren [data-kleur].aan:not(.link) { box-shadow: 0 0 0 2px var(--merk); }
.rk-eigen { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--lijn); background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; }
.rk-eigen input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.rk-voorbeeld { position: sticky; top: 16px; }
.rk-balk { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rk-vellen { display: grid; gap: 22px; justify-items: center; background: #E9ECEF; border-radius: 18px; padding: 28px 18px; }
.rk-vel { margin: 0; text-align: center; max-width: 100%; }
.rk-vel canvas { max-width: 100%; max-height: 62vh; height: auto; box-shadow: 0 10px 30px -10px rgba(15,23,42,.35), 0 1px 3px rgba(15,23,42,.12); background: #fff; }
.rk-vel.dubbel { position: relative; }
.rk-vel figcaption { font-size: 13px; color: var(--inkt-3); margin-top: 8px; font-weight: 600; }
@media (max-width: 1100px) { .rk { grid-template-columns: minmax(0, 1fr); } .rk-voorbeeld { position: static; order: -1; } }
.zij-voet .versie { display: block; margin-top: 4px; font-size: 12px; color: var(--inkt-4); }

.rk-upload { position: relative; overflow: hidden; cursor: pointer; }
.rk-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rk-schuif { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--inkt-2); margin-top: 10px; }
.rk-schuif input { width: 100%; accent-color: var(--merk); }
.rk-fotobewerking .keuzes { margin-bottom: 4px; }
.rk-vellen canvas { touch-action: none; cursor: grab; }
.veld label.rk-upload { display: inline-flex; margin: 0; color: var(--inkt); font-size: 16px; }

.tabs { flex-wrap: nowrap; overflow: visible; position: relative; }
.tabs a { padding: 12px 14px; }
.tabs .meer { position: relative; margin-left: auto; flex: none; }
.tabs .meer > button { min-height: 48px; padding: 0 14px; border: 0; background: none; font-weight: 700; font-size: 15.5px; color: var(--inkt-3); cursor: pointer; border-bottom: 3px solid transparent; }
.tabs .meer > button:hover { color: var(--merk); }
.tabs .meer-lijst { display: none; position: absolute; right: 0; top: 100%; z-index: 50; background: #fff; border: 1px solid var(--lijn); border-radius: 14px; box-shadow: var(--schaduw); padding: 6px; min-width: 200px; }
.tabs .meer.open .meer-lijst { display: grid; }
.tabs .meer-lijst a { border: 0; margin: 0; border-radius: 9px; padding: 10px 14px; min-height: 44px; }
.tabs .meer-lijst a:hover { background: var(--merk-zacht); color: var(--merk); }

.portaal-link input { width: 100%; margin-top: 8px; min-height: 40px; border: 1px solid var(--lijn); border-radius: 10px; padding: 0 10px; font-size: 13px; background: var(--grijs); color: var(--inkt-2); }
.portaal-knoppen { margin-top: 8px; }

/* ---------- Huisstijl op afdrukken ---------- */
.afdruk-blad .ad-logo { max-height: 70px; max-width: 220px; display: block; margin-bottom: 10px; object-fit: contain; }
.afdruk-blad .ad-naam { color: var(--hs-kleur, var(--merk)); }
.afdruk-blad .ad-regels th { border-bottom-color: var(--hs-kleur, #0F172A); color: var(--hs-kleur, #64748B); }
.afdruk-blad .ad-totalen .ad-eind td { border-top-color: var(--hs-kleur, #0F172A); }
.afdruk-blad .ad-betalen { border-left: 4px solid var(--hs-accent, #7FA36E); }
.afdruk-blad.hs-klassiek h1, .afdruk-blad.hs-klassiek h2, .afdruk-blad.hs-klassiek .ad-naam { font-family: "RkCormorant", Georgia, serif; font-weight: 600; letter-spacing: 0; }
.afdruk-blad.hs-klassiek h1 { font-size: 30px; }
.afdruk-blad.document h1, .afdruk-blad.document h2 { color: var(--hs-kleur, #0F172A); }
.doc-kop { margin-bottom: 18px; }
@font-face { font-family: "RkCormorant"; src: url(fonts/rk/CormorantGaramond-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "RkCormorant"; src: url(fonts/rk/CormorantGaramond-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RkCormorant"; src: url(fonts/rk/CormorantGaramond-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Nabestaandenportaal (huisstijl van de onderneming) ---------- */
body.portaal { --pt-kleur: #166534; --pt-donker: #0E3F21; --pt-zacht: #E8F0EA; --pt-accent: #7FA36E; --pt-accent-zacht: #EEF3EA; background: #F7F6F3; }
body.portaal .pt-serif, .pt-held h1, .pt-kaart h2, .pt-groot, .pt-aanhef { font-family: "RkCormorant", Georgia, serif; }
body.pt-modern .pt-held h1, body.pt-modern .pt-kaart h2, body.pt-modern .pt-groot, body.pt-modern .pt-aanhef { font-family: var(--font); letter-spacing: -0.02em; }
.pt-held { position: relative; color: #fff; text-align: center; padding: 18px 20px 92px; background: radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,.12), transparent 70%), linear-gradient(160deg, var(--pt-kleur), var(--pt-donker)); overflow: hidden; }
.pt-held.met-foto { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)), var(--pt-foto) center / cover no-repeat, var(--pt-donker); }
.pt-held.met-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--pt-kleur), transparent 70%); opacity: .35; pointer-events: none; }
.pt-held > * { position: relative; z-index: 1; }
.pt-balk { display: flex; justify-content: center; margin-bottom: 26px; }
.pt-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }
.pt-logo img { max-height: 44px; max-width: 200px; display: block; object-fit: contain; }
.pt-merknaam { font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.pt-held-inhoud { max-width: 640px; margin: 0 auto; }
.pt-portret { width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255,255,255,.15) center / cover no-repeat; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); }
.pt-kaars { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.pt-kaars .pt-ic { width: 30px; height: 30px; }
.pt-boven { margin: 0 0 4px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.pt-held h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0; }
.pt-roepnaam { font-family: "RkCormorant", Georgia, serif; font-style: italic; font-size: 24px; margin: 4px 0 0; opacity: .95; }
.pt-data { margin: 10px 0 0; font-size: 16px; opacity: .9; }
.pt-data span { opacity: .6; margin: 0 4px; }
.pt-blad { max-width: 680px; margin: -64px auto 0; padding: 0 16px 40px; position: relative; z-index: 2; display: grid; gap: 16px; }
.pt-kaart { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 18px 40px -24px rgba(15,23,42,.25); }
.pt-kop { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-kop .pt-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--pt-zacht); color: var(--pt-kleur); flex: none; }
.pt-kaart h2 { margin: 0; font-size: 26px; font-weight: 600; color: var(--pt-donker); letter-spacing: 0; }
body.pt-modern .pt-kaart h2 { font-size: 21px; font-weight: 800; }
.pt-groot { font-size: 30px; font-weight: 600; color: var(--pt-donker); margin: 4px 0 0; line-height: 1.15; }
.pt-tijd { font-size: 18px; margin: 2px 0 0; color: var(--inkt-2); }
.pt-plek { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--inkt-2); }
.pt-plek .pt-ic { width: 20px; height: 20px; color: var(--pt-accent); flex: none; margin-top: 2px; }
.pt-knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pt-knop { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--pt-kleur); background: var(--pt-kleur); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; font-family: var(--font); }
.pt-knop:hover { background: var(--pt-donker); border-color: var(--pt-donker); }
.pt-knop.licht { background: #fff; color: var(--pt-kleur); }
.pt-knop.licht:hover { background: var(--pt-zacht); }
.pt-knop:disabled { opacity: .55; }
.pt-programma { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid #EEF0F2; }
.pt-programma li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #EEF0F2; }
.pt-programma time { color: var(--inkt-3); font-size: 14px; text-transform: capitalize; }
.pt-programma time b { display: block; color: var(--pt-kleur); font-size: 17px; }
.pt-programma small { display: block; color: var(--inkt-3); }
.pt-welkom { background: var(--pt-zacht); box-shadow: none; border: 1px solid color-mix(in srgb, var(--pt-kleur) 18%, transparent); }
.pt-aanhef { font-size: 24px; font-weight: 600; color: var(--pt-donker); margin: 0 0 8px; }
.pt-onder { margin: 16px 0 0; font-weight: 700; color: var(--pt-donker); }
.pt-onder small { font-weight: 500; color: var(--inkt-3); }
.pt-zacht-tekst { color: var(--inkt-3); font-size: 15px; margin: 0 0 14px; }
.pt-sleep { position: relative; display: grid; justify-items: center; gap: 4px; padding: 28px 16px; border: 2px dashed color-mix(in srgb, var(--pt-accent) 70%, #fff); border-radius: 18px; background: var(--pt-accent-zacht); cursor: pointer; text-align: center; color: var(--pt-donker); transition: background .2s, border-color .2s; }
.pt-sleep.actief, .pt-sleep:hover { border-color: var(--pt-kleur); background: var(--pt-zacht); }
.pt-sleep input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-sleep:focus-within { outline: 3px solid var(--pt-accent); outline-offset: 2px; }
.pt-sleep-ic .pt-ic { width: 44px; height: 44px; color: var(--pt-kleur); }
.pt-sleep small { color: var(--inkt-3); }
.pt-bezig { height: 6px; border-radius: 99px; background: #EEF0F2; overflow: hidden; margin-top: 14px; }
.pt-bezig span { display: block; height: 100%; background: var(--pt-kleur); transition: width .3s; }
.pt-sub { font-size: 15px; margin: 22px 0 10px; color: var(--inkt-2); font-family: var(--font); }
.pt-galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pt-mini { aspect-ratio: 1; border: 0; border-radius: 14px; background: #F1F3F4 center / cover no-repeat; cursor: pointer; display: flex; align-items: flex-end; padding: 8px; overflow: hidden; }
.pt-mini span { font-size: 11px; color: var(--inkt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; text-align: left; }
.pt-mini.met-foto span { display: none; }
.pt-stukken { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pt-stukken button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid #EEF0F2; background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.pt-stukken button:hover { border-color: var(--pt-kleur); background: var(--pt-zacht); }
.pt-stukken .pt-ic { width: 28px; height: 28px; color: var(--pt-kleur); flex: none; }
.pt-stukken small { display: block; color: var(--inkt-3); }
.pt-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--inkt-2); }
.pt-veld { width: 100%; min-height: 110px; border: 1px solid #CBD5E1; border-radius: 14px; padding: 12px 14px; font: inherit; resize: vertical; }
.pt-veld:focus { outline: none; border-color: var(--pt-kleur); box-shadow: 0 0 0 4px var(--pt-zacht); }
.pt-berichten { margin-top: 18px; display: grid; gap: 8px; }
.pt-bericht { background: #F7F6F3; border-radius: 14px; padding: 12px 14px; white-space: pre-wrap; }
.pt-bericht small { display: block; color: var(--inkt-3); white-space: normal; }
.pt-voet { text-align: center; color: var(--inkt-3); font-size: 13.5px; padding: 10px 0 0; }
.pt-voet img { max-height: 36px; max-width: 160px; opacity: .8; margin-bottom: 8px; }
.pt-ic { width: 20px; height: 20px; }
@media (max-width: 520px) { .pt-programma li { grid-template-columns: 1fr; gap: 2px; } .pt-kaart { padding: 22px 18px; } }

/* Huisstijl in de instellingen */
.hs-blok { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.hs-afb { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hs-afb .hs-vak { width: 140px; height: 80px; border: 1px dashed #CBD5E1; border-radius: 12px; display: grid; place-items: center; background: #F8FAFC center / contain no-repeat; color: var(--inkt-4); font-size: 13px; }
.hs-afb .hs-vak.foto { background-size: cover; }
.hs-kleurrij { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hs-kleurrij button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lijn); cursor: pointer; }
.hs-kleurrij input[type=color] { width: 44px; height: 34px; border: 1px solid var(--lijn); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.hs-voorbeeld { border-radius: 18px; overflow: hidden; border: 1px solid var(--lijn); background: #F7F6F3; position: sticky; top: 16px; }
.hs-voorbeeld .kop { color: #fff; text-align: center; padding: 18px 14px 34px; background: linear-gradient(160deg, var(--v-kleur), var(--v-donker)); }
.hs-voorbeeld .kop.met-foto { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)), var(--v-foto) center / cover; }
.hs-voorbeeld .kop img { max-height: 30px; max-width: 140px; background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 10px; }
.hs-voorbeeld .kop b { display: block; font-size: 22px; font-weight: 600; font-family: "RkCormorant", Georgia, serif; }
.hs-voorbeeld.modern .kop b { font-family: var(--font); font-weight: 800; font-size: 18px; }
.hs-voorbeeld .kop small { opacity: .85; }
.hs-voorbeeld .kaartje { background: #fff; margin: -20px 12px 12px; border-radius: 14px; padding: 14px; font-size: 13.5px; }
.hs-voorbeeld .kaartje span { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 99px; background: var(--v-kleur); color: #fff; font-weight: 700; font-size: 12.5px; }
.hs-voorbeeld .kaartje i { display: block; height: 4px; width: 50px; border-radius: 2px; background: var(--v-accent); margin-top: 10px; }
@media (max-width: 1100px) { .hs-blok { grid-template-columns: minmax(0, 1fr); } }
