/* ============================================================
   BLOKKEN-EDITOR — gedeelde opmaak
   Gelinkt door index.html (de hoofd-SPA) én website-admin.html
   (het iframe-beheer). De kleurvariabelen verschillen per context,
   vandaar de dubbele terugval: --lijn (iframe) → --line (SPA) → hex.
   ============================================================ */
.blok-editor { display: flex; flex-direction: column; gap: 10px; }

.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-bottom: none; border-radius: 7px 7px 0 0; padding: 6px; background: var(--zacht, var(--ice-100, #f6f7f9)); }
.rt-btn { border: 1px solid var(--lijn, var(--line, #e3e6ea)); background: #fff; border-radius: 5px; padding: 4px 9px; font-size: .8rem; cursor: pointer; line-height: 1.2; }
.rt-btn:hover { background: #eef0f3; }
.rt-editor { border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 0 0 7px 7px; padding: 10px 12px; min-height: 140px; max-height: 340px; overflow: auto; font: inherit; line-height: 1.5; background: #fff; }
.rt-editor:focus { outline: 2px solid var(--azuur2, var(--azure-mid, #14507a)); outline-offset: -1px; }
.rt-editor h2 { font-size: 1.2rem; margin: .6em 0 .3em; }
.rt-editor h3 { font-size: 1.05rem; margin: .5em 0 .3em; }
.rt-editor p { margin: .4em 0; }
.rt-editor ul { margin: .4em 0; padding-left: 1.4em; }

/* Verplicht (nog leeg) veld, bv. alt-tekst bij een afbeelding */
.veld-verplicht { border-color: #b3261e !important; background: #fdecea; }

.blok { border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 9px; background: #fff; }
.blok-kop { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: var(--zacht, var(--ice-100, #f6f7f9)); border-bottom: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 9px 9px 0 0; }
.blok-type { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grijs, var(--muted, #5b6672)); }
.blok-acties button { border: 1px solid var(--lijn, var(--line, #e3e6ea)); background: #fff; border-radius: 5px; width: 26px; height: 24px; cursor: pointer; margin-left: 3px; }
.blok-acties button:disabled { opacity: .35; cursor: default; }
.blok-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.blok-body input, .blok-body select, .blok-body textarea { padding: 7px 9px; border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 6px; font: inherit; width: 100%; }
.blok-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.blok-rij { display: flex; gap: 8px; }
.blok-rij input { flex: 1; }
.blok-upload { white-space: nowrap; border: 1px solid var(--lijn, var(--line, #e3e6ea)); background: var(--zacht, var(--ice-100, #f6f7f9)); border-radius: 6px; padding: 0 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.blok-preview { max-height: 130px; border-radius: 6px; align-self: flex-start; }
.blok-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.blok-add-btn { border: 1px dashed var(--azuur2, var(--azure-mid, #14507a)); background: #eef4f8; color: var(--azuur, var(--azure-dark, #0a2a43)); border-radius: 7px; padding: 7px 12px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.blok-add-btn:hover { background: #e1edf4; }
.blok-leeg { color: var(--grijs, var(--muted, #5b6672)); padding: 14px; text-align: center; border: 1px dashed var(--lijn, var(--line, #e3e6ea)); border-radius: 8px; }
.blok .rt-editor { min-height: 90px; }
.blok-collabel { font-size: .76rem; color: var(--grijs, var(--muted, #5b6672)); font-weight: 600; display: block; margin-bottom: 4px; }
.blok-twee .rt-editor { min-height: 70px; }

/* Geneste blokken binnen een 'twee kolommen'-blok */
.kol-edit { gap: 14px; align-items: start; }
.kol-kolom { background: var(--zacht, var(--ice-100, #f6f7f9)); border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 8px; padding: 10px; }
.kol-blokken { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.kol-kolom .blok { background: #fff; }
.kol-add .blok-add-btn { padding: 5px 9px; font-size: .78rem; }
@media (max-width: 680px) { .kol-edit { grid-template-columns: 1fr; } }

.faq-rij { display: grid; grid-template-columns: 1fr 26px; gap: 6px; align-items: start; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--lijn, var(--line, #e3e6ea)); }
.faq-rij input, .faq-rij textarea { grid-column: 1; padding: 7px 9px; border: 1px solid var(--lijn, var(--line, #e3e6ea)); border-radius: 6px; font: inherit; width: 100%; margin-bottom: 4px; }
.faq-del { grid-column: 2; grid-row: 1/3; border: 1px solid var(--lijn, var(--line, #e3e6ea)); background: #fff; border-radius: 5px; height: 24px; cursor: pointer; }
