/* Huisstijl Bovenop + De Heeren van Aemstel */
:root {
  --bp-bg: #F4F1EC;
  --bp-surface: #FFFFFF;
  --bp-ink: #1E1A14;
  --bp-muted: #7B6D5D;
  --bp-border: #E0D9CF;
  --h-primary: #C0202A;
  --h-dark: #1A0608;
  --h-gold: #D4A017;
  --h-tint: #FAEAEA;
  --groen: #2E7D32;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bp-bg);
  color: var(--bp-ink);
  font: 400 16px/1.55 'DM Sans', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.45rem; margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
a { color: var(--h-primary); }
img { max-width: 100%; height: auto; }

.kop { background: var(--h-dark); color: #fff; }
.kop-binnen { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { height: 76px; width: auto; }
.menu { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu a, .menu .link { color: #fff; text-decoration: none; font-weight: 500; }
.menu a:hover, .menu .link:hover { color: var(--h-gold); }

.inhoud { max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; }
body.beheer .inhoud { max-width: 1100px; }
.voet { text-align: center; color: var(--bp-muted); font-size: .85rem; padding: 0 16px 32px; }

.welkom { padding: 8px 0 16px; }
.kaart {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.kaart.smal { max-width: 420px; margin: 40px auto; }
.kaart.aandacht { border-left: 4px solid var(--h-gold); }
.uitleg, .klein { color: var(--bp-muted); }
.klein { font-size: .875rem; }

.melding { padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--bp-border); }
.melding.ok { background: #EAF4EA; border-color: #BFDDBF; }
.melding.fout { background: var(--h-tint); border-color: #E9B7B9; color: #7A1016; }
.waarschuwing { color: #8A5A00; font-weight: 500; }

label { display: block; font-weight: 500; margin: 14px 0 6px; }
label.vinkje { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
label.vinkje input { width: auto; }
input[type=text], input:not([type]), input[type=email], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 10px 12px; border: 1px solid var(--bp-border); border-radius: 10px; background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--h-gold); outline-offset: 1px; }

.knop {
  display: inline-block; font: 500 1rem 'DM Sans', sans-serif;
  background: var(--h-primary); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 18px; margin-top: 14px; cursor: pointer; text-decoration: none;
}
.knop:hover { background: #A11A23; }
.knop.licht { background: #fff; color: var(--h-primary); border: 1px solid var(--h-primary); }
.knop.klein-knop { padding: 6px 12px; font-size: .9rem; margin-top: 8px; }
.knop[disabled] { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--h-primary); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
.rij { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

.bestand { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.bestand input { font: inherit; max-width: 100%; }

.optredens { list-style: none; padding: 0; margin: 0; }
.optredens li { padding: 10px 0; border-bottom: 1px solid var(--bp-border); display: flex; gap: 12px; flex-wrap: wrap; }
.optredens li:last-child { border-bottom: 0; }
.gast { color: var(--bp-muted); }

.check { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.check li::before { display: inline-block; width: 1.4em; font-weight: 700; }
.check li.ok::before { content: '✓'; color: var(--groen); }
.check li.mist::before { content: '○'; color: var(--h-primary); }

.huidige-foto { margin: 12px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.huidige-foto img { width: 160px; height: 160px; border-radius: 10px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

.editor { margin-top: 16px; }
.editor-vlak { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; line-height: 0; overflow: hidden; border-radius: 6px; }
.editor-vlak img { display: block; max-width: 100%; max-height: 70vh; width: auto; }
.kader {
  position: absolute; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(26, 6, 8, .55);
  cursor: move; outline: 1px solid rgba(0,0,0,.4);
}
.greep {
  position: absolute; right: -3px; bottom: -3px; width: 30px; height: 30px;
  background: var(--h-gold); border: 3px solid #fff; border-radius: 50% 0 0 0; cursor: nwse-resize;
}
.status { min-height: 1.5em; }

.pakket { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 12px 0; }
.afbeelding { margin: 0; }
.afbeelding img { border-radius: 8px; border: 1px solid var(--bp-border); }
.klein-pakket { grid-template-columns: repeat(3, minmax(0, 160px)); }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 500; color: var(--h-primary); }
.caption { font-size: .95rem; }

.tijden { border-collapse: collapse; margin: 6px 0 12px; }
.tijden th, .tijden td { text-align: left; padding: 4px 16px 4px 0; vertical-align: top; }
.tijden th { font-weight: 500; color: var(--bp-muted); }
.pdfs { padding-left: 20px; }

.tabel-scroll { overflow-x: auto; }
.lijst { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lijst th, .lijst td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bp-border); vertical-align: top; }
.lijst th { font-weight: 500; color: var(--bp-muted); white-space: nowrap; }
.status-label { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: #eee; white-space: nowrap; }
.s-ok, .s-klaar, .s-compleet, .s-live, .s-verstuurd { background: #EAF4EA; color: var(--groen); }
.s-nodig { background: #FFF4D6; color: #8A5A00; }
.s-fout { background: var(--h-tint); color: #7A1016; }
.zoek { margin-bottom: 12px; }
.naast { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tekstblok { white-space: pre-wrap; background: var(--bp-bg); padding: 12px; border-radius: 10px; }
.opmerkingen { list-style: none; padding: 0; }
.opmerkingen li { padding: 10px 0; border-bottom: 1px solid var(--bp-border); }
.problemen { padding-left: 20px; }

.js-alleen { display: none; }
.js .js-alleen { display: inline-block; }

@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .logo { height: 60px; }
  .kaart { padding: 16px; }
}

/* Bandoverzicht in het beheer */
.overzicht-beelden { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.overzicht-beelden img { width: 100%; max-width: 320px; border-radius: 8px; display: block; }
