/* FotoStudio – basisstijl. Pas de variabelen aan voor je eigen huisstijl. */
:root {
  --brand: #e4572e;
  --brand-dark: #c4421d;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ok: #15803d;
  --err: #b91c1c;
  --info: #1d4ed8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-dark); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.card > h2:first-child, .card h2:first-child { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f1f2f4; padding: .1em .4em; border-radius: 4px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 28px; padding-bottom: 60px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; }

/* Header */
.site-header { background: #111827; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.logo-mark { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(228,87,46,.3); margin-right: 10px; vertical-align: 1px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .nav .link { color: #d1d5db; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a.active, .nav .link:hover { color: #fff; }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.subnav a { padding: 12px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .95rem; }
.subnav a.active, .subnav a:hover { color: var(--ink); border-color: var(--brand); }
.site-footer { color: var(--muted); font-size: .85rem; padding: 24px 0; border-top: 1px solid var(--line); background: #fff; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f3f4f6; border-color: #d1d5db; }
.btn-danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: var(--err); }
.btn-small { padding: 6px 12px; font-size: .875rem; }
.btn-large { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 8px; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Kaarten en layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 440px; margin: 20px auto; }
.card.medium { max-width: 720px; }
.card.highlight { border-color: #fed7aa; background: #fffaf5; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1, .page-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0 16px; }
.grid-3-1 { display: grid; grid-template-columns: 3fr 1fr; gap: 0 16px; }
.grid-main-side { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-2.align-start, .grid-main-side.align-start { align-items: start; }
.empty { color: var(--muted); text-align: center; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Formulieren */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
label small { font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(228,87,46,.25); border-color: var(--brand); }
input[type=checkbox] { display: inline-block; width: auto; margin: 0 8px 0 0; accent-color: var(--brand); transform: scale(1.15); }
label.check { display: flex; align-items: center; font-weight: 400; gap: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 8px 0 18px; }
legend { font-weight: 600; padding: 0 6px; }
.field-error { display: block; color: var(--err); font-size: .85rem; font-weight: 500; margin-top: 4px; }
.field-ok { display: block; color: var(--ok); font-size: .85rem; font-weight: 500; margin-top: 4px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; margin: 0; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 16px 20px; }
.filters label { margin: 0; flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }

/* Meldingen */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
pre.debug { white-space: pre-wrap; font-size: .8rem; background: #f3f4f6; padding: 12px; border-radius: 6px; overflow: auto; }

/* Badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #e5e7eb; color: #374151; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-pending_payment { background: #fef3c7; color: #92400e; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Home */
.hero { padding: 40px 0 20px; max-width: 760px; }
.hero h1 { font-size: 2.4rem; }
.lead { font-size: 1.15rem; color: #4b5563; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-nr { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; margin-right: 8px; }

/* Reserveren */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 20px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 80px; text-align: center; margin: 0; font-size: 1.1rem; font-weight: 600; }
.stepper .btn { width: 44px; height: 44px; padding: 0; font-size: 1.3rem; }
.stepper .muted { margin-left: 10px; }
.calendar { max-width: 420px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; cursor: pointer; position: relative; }
.cal-day::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.cal-day.open::after { background: var(--ok); }
.cal-day.full::after { background: #f59e0b; }
.cal-day.admin::after { background: #9ca3af; }
.cal-day.closed { background: #f3f4f6; color: #9ca3af; }
.cal-day.past { background: transparent; color: #d1d5db; border-color: transparent; cursor: default; }
.cal-day:not(:disabled):hover { border-color: var(--brand); }
.cal-day.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-day.selected::after { background: #fff; }
.cal-legend { font-size: .8rem; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; }
.dot.open { background: var(--ok); } .dot.full { background: #f59e0b; } .dot.closed { background: #d1d5db; }
.slots { margin-top: 20px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 6px; font: inherit; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.slot small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--brand); }
.slot.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.selected small { color: #ffe4d9; }
.slot:disabled { background: #f9fafb; color: #d1d5db; text-decoration: line-through; cursor: not-allowed; }
.code-row { margin-bottom: 4px; }
.code-input { display: flex; gap: 8px; margin-top: 5px; }
.code-input input { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; }
.code-msg { display: block; min-height: 1.2em; font-size: .85rem; margin: -8px 0 10px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }

/* Reserveringslijst */
.res-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.res-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: inherit; }
.res-row:hover { border-color: var(--brand); }
.res-date { width: 52px; text-align: center; flex: 0 0 auto; }
.res-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.res-month { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.res-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.res-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.day-head { text-transform: none; font-size: 1rem; color: var(--muted); margin-top: 24px; }
.admin-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.admin-actions .inline-form input { width: 70px; padding: 6px 8px; }

/* Afbeeldingen */
.project-block { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.project-head { background: #f9fafb; padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); font-weight: 600; gap: 10px; }
.project-head .muted { margin-left: auto; }
.session-block { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.session-block:last-child { border-bottom: 0; }
.session-block.is-empty { opacity: .6; }
.session-head { margin-bottom: 10px; gap: 10px; }
.session-head .muted { margin-left: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.thumb { display: block; text-decoration: none; color: var(--muted); font-size: .78rem; text-align: center; }
.thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #f3f4f6; border: 1px solid var(--line); display: block; margin-bottom: 3px; }
.thumb:hover img { border-color: var(--brand); }
.download-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: #fff; border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox-bar { color: #fff; margin-top: 12px; display: flex; gap: 16px; align-items: center; cursor: default; }

/* Handleiding */
.manual { padding-left: 1.3rem; }
.manual li { margin-bottom: 8px; }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; }
.table.card { padding: 0; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.table.hours input { display: inline-block; width: auto; margin: 0; }

/* Responsief */
@media (max-width: 900px) {
  .booking, .grid-main-side { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #111827; flex-direction: column; align-items: flex-start; padding: 12px 20px 20px; gap: 14px; z-index: 50; }
  .nav-open .nav { display: flex; }
  .grid-2, .grid-3, .grid-3-1 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero h1 { font-size: 1.8rem; }
  .res-row { flex-wrap: wrap; }
  .table.hours td { display: block; }
}
