/* ==========================================================================
   ZVCT Bestelapp — house style (brandbook v1.0)
   Kleuren, typografie en componenten volgen het ZVCT Brandbook.
   ========================================================================== */

:root {
  /* Brandkleuren */
  --schild:  #003C84;  /* primair / basis */
  --diep:    #002A5E;  /* tekst / diepte */
  --helder:  #1C5AA8;  /* accent / links */
  --goud:    #F0CC24;  /* highlight / CTA */
  --amber:   #E49000;  /* warm accent */
  --wolk:    #F2F6FB;  /* vlakken / rust */

  --bg:      #F2F6FB;
  --panel:   #ffffff;
  --ink:     #1b2b40;
  --muted:   #5b6b80;
  --line:    #dfe7f1;

  --ok:      #0f766e;
  --ok-bg:   #eafaf6;
  --warn:    #b45309;
  --warn-bg: #fff7ea;
  --err:     #b3261e;
  --err-bg:  #fdf1f0;

  --radius:  14px;
  --radius-sm: 9px;
  --shadow:  0 1px 2px rgba(0, 42, 94, .06), 0 8px 24px rgba(0, 42, 94, .06);

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

/* --- Fonts (self-hosted, met systeem-fallback) --------------------------- */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: local("Montserrat SemiBold"), url("fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: local("Montserrat Bold"), url("fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap;
  src: local("Montserrat Black"), url("fonts/montserrat-900.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: local("Source Sans 3"), url("fonts/sourcesans-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: local("Source Sans 3 SemiBold"), url("fonts/sourcesans-600.woff2") format("woff2"); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--schild);
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }

p { margin: 0 0 .8em; }
a { color: var(--helder); }

.muted, .small { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* --- Header -------------------------------------------------------------- */
.app-header {
  background: var(--schild);
  color: #fff;
  border-bottom: 3px solid var(--goud);
}
.app-header .bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-header .brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700;
}
.app-header .brand img, .app-header .brand svg { height: 40px; width: auto; display: block; }
.app-header .brand .sub { display: block; margin-top: 3px; font-size: .72rem; font-weight: 600; color: #bcd2ef; letter-spacing: .12em; text-transform: uppercase; }
.app-header nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.app-header nav a {
  color: #dbe8fa; text-decoration: none; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; padding: 7px 11px; border-radius: 8px;
}
.app-header nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.app-header nav a.active { background: var(--helder); color: #fff; }

/* --- Layout -------------------------------------------------------------- */
.container { max-width: 960px; margin: 0 auto; padding: 22px 16px 96px; }
.container.narrow { max-width: 560px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card.tight { padding: 14px 16px; }

.page-head { margin-bottom: 16px; }
.page-head .eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--helder); color: #fff;
  padding: 11px 16px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; line-height: 1; transition: filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: .88rem; border-radius: 8px; }

/* Goud is uitsluitend voor de bevestig- en betaalknop (brandbook). */
.btn.gold { background: var(--goud); color: var(--diep); box-shadow: 0 2px 0 #c129 inset; }
.btn.gold:hover { background: #f6d648; }

.btn.secondary { background: #fff; color: var(--schild); border-color: var(--line); }
.btn.secondary:hover { background: var(--wolk); filter: none; }
.btn.ghost { background: transparent; color: var(--helder); border-color: transparent; }
.btn.danger { background: #fff; color: var(--err); border-color: #f2c9c6; }
.btn.danger:hover { background: var(--err-bg); filter: none; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- Forms --------------------------------------------------------------- */
label { display: block; font-family: var(--font-head); font-weight: 600; margin: 0 0 6px; color: var(--diep); }
input[type="text"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--helder); box-shadow: 0 0 0 3px rgba(28,90,168,.15);
}
textarea { min-height: 92px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: auto; }
.check label { margin: 0; }

/* --- Grid / rows --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* --- Flash --------------------------------------------------------------- */
.flash {
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); font-weight: 600;
}
.flash.success { color: var(--ok);   border-color: #bfe9dd; background: var(--ok-bg); }
.flash.info    { color: var(--helder); border-color: #cfe0f5; background: #eef4fc; }
.flash.error   { color: var(--err);  border-color: #f2c9c6; background: var(--err-bg); }

/* --- Tables -------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.table th { font-family: var(--font-head); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* --- Badges -------------------------------------------------------------- */
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge.ok    { color: var(--ok);   background: var(--ok-bg);   border-color: #bfe9dd; }
.badge.warn  { color: var(--warn); background: var(--warn-bg); border-color: #f2ddb5; }
.badge.muted { color: var(--muted); background: #eef1f6; border-color: #dde3ec; }
.badge.code  { font-family: var(--font-head); letter-spacing: .06em; color: var(--diep); background: #fff6cf; border-color: #ecd985; font-size: .95rem; }

/* --- Menu (deelnemer) ---------------------------------------------------- */
.menu-cat { margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--goud); }
.menu-cat h2 { margin: 0; }
.menu-item {
  display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .name { font-weight: 600; color: var(--diep); }
.menu-item .name .nl { font-weight: 400; font-size: .84em; color: var(--muted); }
.menu-item .desc { font-size: .86rem; color: var(--muted); }
.menu-cat h2 .nl { font-weight: 400; font-size: .62em; color: var(--muted); }
.menu-item .price { font-family: var(--font-head); font-weight: 700; color: var(--schild); white-space: nowrap; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button {
  width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1;
  color: var(--schild); cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--wolk); }
.stepper input {
  width: 40px; text-align: center; border: 0; padding: 0; font-family: var(--font-head); font-weight: 700;
  background: transparent; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Sticky samenvatting (totaal / budget / eigen bijdrage) -------------- */
.summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--diep); color: #fff; box-shadow: 0 -6px 24px rgba(0,42,94,.25);
}
.summary-bar .inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.summary-bar .figs { display: flex; gap: 18px; flex-wrap: wrap; }
.summary-bar .fig .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #a9c2e6; }
.summary-bar .fig .v { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.summary-bar .fig .v.over { color: var(--goud); }
.summary-bar form, .summary-bar .cta { margin-left: auto; }

/* --- Stats (admin) ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--wolk); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--schild); }

.kitchen { columns: 2; column-gap: 26px; }
.kitchen .kline { break-inside: avoid; display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.kitchen .kline .q { font-family: var(--font-head); font-weight: 700; color: var(--schild); }

.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* --- Menu filter --------------------------------------------------------- */
.menu-filter { position: sticky; top: 0; z-index: 15; }
.menu-filter input[type="search"] { margin-bottom: 10px; }
/* Categorieën als horizontale slider: één rij, van links naar rechts scrollen
   (met de vinger op mobiel), zodat ze niet meer over meerdere regels breken. */
.filter-chips {
  display: flex; gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;            /* Firefox: geen scrollbalk */
  margin: 0 -4px;                   /* chips mogen tot de kaartrand lopen */
  padding: 2px 4px;                 /* ruimte zodat de active-rand niet wegvalt */
}
.filter-chips::-webkit-scrollbar { display: none; }  /* WebKit/Blink */
.chip {
  flex: 0 0 auto;                   /* niet krimpen: overloop => scrollen */
  scroll-snap-align: start;
  border: 1px solid var(--line); background: #fff; color: var(--schild);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--wolk); }
.chip.active { background: var(--schild); color: #fff; border-color: var(--schild); }
.no-results { display: none; text-align: center; color: var(--muted); padding: 24px; }
.your-order { border-left: 4px solid var(--goud); }

/* --- Export met taalkeuze (admin dagweergave) --------------------------- */
.export-box { display: grid; gap: 8px; }
.export-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.export-line .export-lang {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--muted);
  min-width: 150px;
}
.export-line .export-lang .small { font-weight: 400; }

/* --- Inlogscherm kampleiding -------------------------------------------- */
.auth-body {
  min-height: 100vh; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  background-color: var(--diep);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-attachment: fixed;
}
.auth-wrap { width: 100%; max-width: 400px; }
.auth-wrap-wide { max-width: 460px; }
.auth-card {
  background: #fff; border-radius: var(--radius); border-top: 4px solid var(--goud);
  padding: 32px 28px 26px; box-shadow: 0 24px 60px rgba(0,20,50,.38);
}
.auth-logo { display: block; height: 68px; width: auto; margin: 0 auto 16px; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}
.auth-head h1 { margin: 2px 0 5px; }
.auth-head .muted { font-size: .86rem; margin: 0; }
.auth-submit { margin-top: 4px; }
.auth-back {
  display: block; text-align: center; margin-top: 18px;
  font-size: .88rem; color: var(--muted); text-decoration: none;
}
.auth-back:hover { color: var(--schild); }

/* --- Admin: kampdag-overzicht (kaarten i.p.v. brede tabel) --------------- */
.day-list { display: grid; gap: 14px; }
.day-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.day-card .top h3 { margin: 0; }
.day-card .top h3 a { text-decoration: none; color: var(--schild); }
.day-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.day-figs { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.day-figs .f .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day-figs .f .v { font-family: var(--font-head); font-weight: 700; color: var(--schild); }
.day-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-items: center; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.45rem; }
  .kitchen { columns: 1; }
  .app-header .brand .sub { display: none; }
  .summary-bar .figs { gap: 12px; }
}
