/* Websitebeheer – werkbalk en dialogen (in de kleuren van de website) */
:root {
  --mos: #1e3a2b;
  --blad: #2f6b3f;
  --linnen: #f4ede1;
  --perkament: #e6dcc8;
  --roest: #b45a2e;
  --roest-donker: #94451f;
  --inkt: #2a2a24;
  --zacht: #6b655a;
  --lijn: #d9cfbd;
  --papier: #fffdf8;
  --fout: #b3261e;
  --goed: #2f6b3f;
  --schaduw: 0 18px 40px -22px rgba(30, 58, 43, .5);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 15px/1.45 "Nunito", "Segoe UI", system-ui, sans-serif; color: var(--inkt);
  background: #d8d2c6; display: flex; flex-direction: column;
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-knop svg circle, .schakel svg { flex: none; }
#menu-knop svg { fill: currentColor; stroke: none; }
.zacht { color: var(--zacht); }
.klein { font-size: 13px; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--roest-donker); }

/* ---------- knoppen */
.knop {
  border: 1px solid var(--lijn); background: var(--papier); border-radius: 999px; padding: 7px 16px;
  font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; color: inherit; transition: background .15s, border-color .15s, opacity .15s;
}
.knop:hover:not(:disabled) { border-color: var(--zacht); }
.knop:disabled { opacity: .45; cursor: default; }
.knop.hoofd, .knop.hoofd:hover { background: var(--roest); border-color: var(--roest); color: #fff; }
.knop.hoofd:hover:not(:disabled) { background: var(--roest-donker); border-color: var(--roest-donker); }
.knop.stil { background: transparent; }
.knop.gevaar { color: var(--fout); }
.knop.rond { padding: 7px; border-radius: 50%; display: grid; place-items: center; }
.knop.klein { padding: 4px 11px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--roest); outline-offset: 2px; }

/* ---------- werkbalk */
.balk {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 8px 14px;
  background: var(--papier); border-bottom: 1px solid var(--lijn); position: relative; z-index: 10;
  box-shadow: 0 4px 14px -10px rgba(30, 58, 43, .5);
}
.balk-groep { display: flex; align-items: center; gap: 8px; }
.balk-groep.rechts { margin-left: auto; }
.merk { display: flex; align-items: center; gap: 8px; color: var(--mos); margin-right: 4px; }
.merk img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.merk b { font-weight: 800; }
.kies-pagina select {
  border: 1px solid var(--lijn); border-radius: 10px; background: var(--linnen); padding: 7px 30px 7px 12px;
  font-weight: 700; color: var(--mos); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a2b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
.schakel { display: flex; background: var(--linnen); border: 1px solid var(--lijn); border-radius: 10px; padding: 2px; }
.schakel button { border: 0; background: transparent; padding: 5px 8px; border-radius: 8px; cursor: pointer; color: var(--zacht); display: grid; place-items: center; }
.schakel button.actief { background: var(--papier); color: var(--mos); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.opmaak { background: var(--linnen); border: 1px solid var(--lijn); border-radius: 10px; padding: 2px; gap: 2px; }
.opmaak button {
  border: 0; background: transparent; min-width: 32px; height: 30px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; font-size: 15px; color: var(--mos);
}
.opmaak button:hover:not(:disabled) { background: var(--papier); }
.opmaak button:disabled { opacity: .35; cursor: default; }
.opmaak .tekstknop { padding: 0 10px; font-weight: 700; font-size: 13px; }
.scheiding { width: 1px; height: 20px; background: var(--lijn); margin: 0 3px; }
.status { font-size: 13px; color: var(--zacht); white-space: nowrap; }
.heeft-wijzigingen .status { color: var(--roest-donker); font-weight: 700; }

.menu-houder { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--papier);
  border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--schaduw); padding: 6px; display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: var(--inkt); text-decoration: none; font-weight: 600;
}
.menu a:hover, .menu button:hover { background: var(--linnen); }
.menu-kop { padding: 8px 12px 10px; font-size: 13px; color: var(--zacht); border-bottom: 1px solid var(--lijn); margin-bottom: 4px; }

.hint {
  display: flex; align-items: center; gap: 12px; justify-content: center; padding: 7px 14px;
  background: #eef2e6; color: var(--mos); font-size: 13.5px; border-bottom: 1px solid #d5ddc9;
}
.hint[hidden] { display: none; }
.hint button { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--mos); padding: 0 4px; }

/* ---------- voorbeeld */
.podium { flex: 1; min-height: 0; display: flex; justify-content: center; overflow: auto; }
.podium iframe { border: 0; width: 100%; height: 100%; background: var(--linnen); display: block; }
.podium.smal { padding: 18px 0; }
.podium.smal iframe { border-radius: 26px; box-shadow: 0 0 0 10px #2a2a24, var(--schaduw); height: calc(100% - 20px); max-height: 860px; }

/* ---------- dialogen */
.dialoog {
  border: 0; border-radius: 16px; padding: 24px; width: min(460px, calc(100vw - 32px)); background: var(--papier);
  box-shadow: var(--schaduw); color: var(--inkt);
}
.dialoog.breed { width: min(560px, calc(100vw - 32px)); }
.dialoog::backdrop { background: rgba(30, 40, 32, .45); }
.dialoog h2 { margin: 0 0 12px; font-size: 20px; color: var(--mos); }
.dialoog h3 { margin: 18px 0 8px; font-size: 15px; color: var(--mos); width: 100%; }
.dialoog p { margin: 0 0 14px; }
.dialoog form { display: flex; flex-direction: column; gap: 12px; }
.dialoog label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--zacht); }
.dialoog label.vink { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--inkt); font-size: 14px; }
.dialoog input:not([type=checkbox]), .dialoog textarea, .inlog-kaart input {
  border: 1px solid var(--lijn); border-radius: 9px; background: #fff; padding: 9px 11px; font-size: 15px; color: var(--inkt); width: 100%;
}
.dialoog textarea { resize: vertical; }
.dialoog input:focus, .dialoog textarea:focus, .inlog-kaart input:focus { outline: none; border-color: var(--roest); box-shadow: 0 0 0 3px rgba(200, 105, 59, .18); }
/* hoofdknop staat eerst in de HTML (Enter kiest die), maar rechts in beeld */
.dialoog-knoppen { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.dialoog-knoppen button[hidden] { display: none; }
.dialoog-kop { display: flex; justify-content: space-between; align-items: center; }
.dialoog-kop h2 { margin: 0; }
.sluit { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--zacht); }
.accounts { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--lijn); border-radius: 10px; }
.accounts li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--lijn); }
.accounts li:first-child { border-top: 0; }
.accounts li > span:first-child { font-weight: 700; flex: 1; }
.rij-form { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.rij-form input { flex: 1 1 160px; width: auto !important; }
.melding { min-height: 1.4em; margin: 14px 0 0 !important; font-weight: 700; color: var(--goed); font-size: 14px; }
.melding.fout { color: var(--fout); }

/* ---------- melding onderin */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  background: var(--mos); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--schaduw);
  font-weight: 600; font-size: 14px; z-index: 100; cursor: pointer;
}
.toast[hidden] { display: none; }
.toast.goed { background: var(--goed); }
.toast.fout { background: var(--fout); }
.toast a { color: #fff; }

/* ---------- beheermenu */
.menu-balk .merk .zacht { font-weight: 600; margin-left: 4px; }
.terug { text-decoration: none; color: var(--mos); }
.beheermenu { flex: 1; overflow: auto; background: var(--linnen); padding: 28px 16px 60px; }
.beheermenu > * { max-width: 1120px; margin-inline: auto; }
.beheermenu h1 { color: var(--mos); font-size: 28px; margin-top: 0; margin-bottom: 18px; }
.beheermenu h2 { color: var(--mos); font-size: 19px; margin: 30px auto 4px; }
.beheermenu section > p { margin-top: 0; margin-bottom: 16px; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kaart {
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 14px; padding: 16px;
  box-shadow: 0 6px 16px -12px rgba(30, 58, 43, .45); color: var(--inkt); text-decoration: none; text-align: left;
}
.kaart h3 { margin: 0; font-size: 17px; color: var(--mos); }
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kaart .knop { text-decoration: none; }
.delen { list-style: none; margin: 0; padding: 0; }
.delen a {
  display: flex; flex-direction: column; padding: 8px 10px; margin: 0 -10px; border-radius: 9px;
  text-decoration: none; color: var(--inkt); font-weight: 700; font-size: 14px;
}
.delen a:hover { background: var(--linnen); color: var(--roest-donker); }
.delen small { font-weight: 400; color: var(--zacht); font-size: 12.5px; }
.tegel { display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
div.tegel { cursor: default; }
a.tegel:hover, button.tegel:hover { border-color: var(--roest); transform: translateY(-2px); }
.tegel > svg { width: 30px; height: 30px; color: var(--roest); margin-bottom: 4px; }
.tegel p { margin: 0; font-size: 14px; }
.historie { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.historie li { padding: 3px 0; }

/* ---------- inloggen */
.inlog { min-height: 100%; display: grid; place-items: center; padding: 16px; background: var(--linnen); flex: 1; }
.inlog-kaart {
  width: min(380px, 100%); background: var(--papier); border: 1px solid var(--lijn); border-radius: 18px;
  padding: 30px; box-shadow: var(--schaduw); display: flex; flex-direction: column; gap: 14px;
}
.inlog-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; align-self: center; }
.inlog-kaart h1 { margin: 0; text-align: center; color: var(--mos); font-size: 24px; }
.inlog-kaart p { margin: 0; text-align: center; }
.inlog-kaart label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--zacht); }
.inlog-kaart .knop { padding: 11px; margin-top: 4px; }
.inlog-fout { color: var(--fout); font-weight: 700; }

@media (max-width: 900px) {
  .merk b { display: none; }
  .balk-groep.rechts { margin-left: 0; width: 100%; justify-content: flex-end; }
  .status { margin-right: auto; }
}

.balk-groep { flex-wrap: wrap; min-width: 0; }
.kies-pagina, .kies-pagina select { max-width: 100%; min-width: 0; }
.hint button { min-width: 28px; min-height: 28px; }

/* Foto vervangen */
.beeld-voorbeeld { display: block; max-width: 100%; max-height: 240px; margin: 0 auto 10px; border-radius: 8px; }
.beeld-kies { display: inline-block; margin: 6px 0; }
.beeld-alt { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; margin: 8px 0; }
.beeld-alt input { padding: 9px 12px; border: 1px solid var(--lijn); border-radius: 10px; font: inherit; font-weight: 400; }
#d-beeld .dialoog-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
