:root {
  --slate: #cb5796;
  --slate-dark: #9d4885;
  --ink: #333333;
  --cream: #f4f2ef;
  --sheet: #ffffff;
  --line: #e4dfd9;
  --muted: #6b6560;
  --ok: #36857e;
  --ok-bg: #e7f4f2;
  --fout: #8b2e45;
  --fout-bg: #fdeeee;
  --letop: #6d5420;
  --letop-bg: #f4f2ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Be Vietnam Pro", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

h1, h2 {
  font-family: "Be Vietnam Pro", "Avenir Next", sans-serif;
  font-weight: 500;
}

h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; color: #000; }
h2 { margin: 0 0 14px; font-size: 22px; }

a { color: var(--slate-dark); }
a:hover { color: var(--ink); }

.boven {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--slate);
}
.boven-balk {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.merk {
  margin: 0;
  line-height: 0;
  text-decoration: none;
}
.merk img { display: block; height: 22px; width: auto; }
.menu { display: flex; gap: 18px; flex: 1; }
.menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}
.menu a[aria-current="page"] { color: var(--slate); box-shadow: inset 0 -2px 0 var(--slate); padding-bottom: 2px; }
.boven .tekstknop { color: var(--ink); }
.boven .tekstknop:hover { color: var(--slate); }
.boven form { margin: 0; }

.blad {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.kop { max-width: 40rem; margin-bottom: 28px; }
.paginakop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.paginakop .kop { margin: 0; max-width: none; flex: 1; }
.paginakop .primair { width: auto; white-space: nowrap; }

dialog.modal {
  border: 0;
  padding: 0;
  background: #fff;
  width: min(440px, calc(100% - 32px));
  color: var(--ink);
}
dialog.modal::backdrop { background: rgba(27, 29, 31, 0.45); }
.modal form { padding: 24px; }
.modal h2 { margin-bottom: 16px; }
.modal-knoppen { display: flex; justify-content: flex-end; gap: 8px; }
.modal-knoppen .primair,
.modal-knoppen .secundair { width: auto; }

.kaartjes-van-klant { margin-top: 22px; }
.wenk {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.inleiding { margin: 0; color: var(--ink); font-size: 17px; }

.alert { margin: 0 0 22px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--slate); }
.alert p { margin: 0; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.alert.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.alert.fout { border-color: var(--fout); color: var(--fout); background: var(--fout-bg); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.paneel, .resultaat {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 22px;
}

.veld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.veld span { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input[type="email"],
input[type="url"],
input[type="text"],
input[type="password"],
select,
.linkrij input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d9d3cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
  font-size: 16px;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badges .badge { margin-left: 0; }

input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

.vink { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; }
.vink small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

.primair, .secundair, .als-knop {
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
}

.primair {
  width: 100%;
  border: 1px solid var(--slate);
  padding: 15px 16px;
  background: var(--slate);
  color: #fff;
  font-size: 16px;
}
.primair:hover { background: var(--slate-dark); border-color: var(--slate-dark); }
.primair:disabled { opacity: 0.65; cursor: wait; }
.primair.smal { width: auto; }

.secundair, .als-knop {
  display: inline-block;
  border: 1px solid var(--slate);
  background: transparent;
  color: var(--slate);
  padding: 12px 14px;
  white-space: nowrap;
}
.secundair:hover, .als-knop:hover { background: #f8e8f1; color: var(--slate-dark); border-color: var(--slate); }

.resultaat { margin-bottom: 22px; }
.resultaat-kop h2 { margin-bottom: 2px; }
.meta, .fijn { color: var(--muted); }
.meta { margin: 0; }
.fijn { margin: 10px 0 0; font-size: 15px; }
.fijn.leeg { margin: 0; }
.fijn a { font-weight: 600; }

.linkrij { display: flex; gap: 8px; margin-top: 16px; }
.linkrij input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.rij-knoppen { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rij-knoppen form { margin: 0; }

.zijden {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}
.zijden li { min-width: 0; }
.zijden img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--cream);
  border: 1px solid var(--line);
}
.zijden span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

.voorbeeld {
  width: 100%;
  height: 740px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.stappen { margin: 0; padding-left: 18px; }
.stappen li { margin: 0 0 8px; }

.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lijst li:first-child { border-top: 0; padding-top: 0; }
.lijst strong { display: block; font-weight: 600; }
.lijst span { color: var(--muted); font-size: 14px; }

.tekstknop {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.badge.live { background: var(--slate); color: #fff; }
.badge.concept { background: var(--cream); color: var(--ink); border: 1px solid var(--slate); }

.optioneel { color: var(--muted); font-weight: 400; }

.module {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.module:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.module h3 { margin: 0 0 4px; font-family: "Be Vietnam Pro", sans-serif; font-size: 17px; font-weight: 500; }
.module p { margin: 0; }
.module form { margin: 0; flex-shrink: 0; }
.module-knoppen { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.module .primair,
.module .secundair,
.module .als-knop { width: auto; }

.acties { position: relative; flex-shrink: 0; }
.acties summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--slate);
  background: #fff;
  color: var(--slate);
  padding: 8px 16px;
  font: inherit;
  font-size: 15px;
  border-radius: 999px;
}
.acties summary::-webkit-details-marker { display: none; }
.acties[open] summary { background: var(--slate); color: #fff; }
.acties-lijst {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--slate);
  box-shadow: 0 12px 28px rgba(27, 29, 31, 0.12);
  padding: 6px 0;
}
.acties-lijst a,
.acties-lijst button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.acties-lijst a:hover,
.acties-lijst button:hover { background: var(--cream); }
.acties-lijst form { margin: 0; }
.acties-kop {
  margin: 8px 0 0;
  padding: 8px 16px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.acties-lijst .gevaar { color: var(--fout); }

.login-blad {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}
.login-blad .inleiding { margin: 0 0 18px; }
.login-blad .paneel { padding: 28px 24px 24px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .paginakop { align-items: flex-start; flex-direction: column; }
  .boven-balk { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 0; }
  .menu { flex-wrap: wrap; }
  .layout, .twee { grid-template-columns: 1fr; }
  .linkrij { flex-direction: column; }
  .lijst li, .module, .module-knoppen { align-items: flex-start; flex-direction: column; }
  .badges { justify-content: flex-start; }
  .acties, .acties summary { width: 100%; }
  .acties-lijst { left: 0; right: auto; min-width: 100%; }
  .zijden { grid-template-columns: repeat(2, 1fr); }
  .voorbeeld { height: 560px; }
}
