/* ============================================================
 * lijstvandedag — app.css
 * Overgenomen uit het prototype: design tokens, landing en lijst.
 * ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:        #f4f0e8;
  --paper-warm:   #efeae0;
  --card:         #fbf9f4;
  --card-edge:    rgba(60, 50, 30, 0.08);

  --ink:          #1f1c17;
  --ink-soft:     #4a443c;
  --ink-mute:     #8a8378;
  --ink-faint:    #b8b1a4;

  --forest:       #2f4a36;
  --forest-deep:  #233a2a;
  --forest-hover: #38583f;
  --forest-soft:  #dfe7dc;
  --forest-tint:  #e9efe5;
  --forest-line:  #c9d5c3;

  --danger:       #a4452e;
  --whatsapp:     #25d366;

  --shadow-card:  0 1px 0 rgba(60,50,30,0.04), 0 12px 32px -8px rgba(40,30,15,0.10);
  --shadow-soft:  0 1px 0 rgba(60,50,30,0.04), 0 6px 18px -6px rgba(40,30,15,0.08);
  --radius-card:  20px;
  --radius-pill:  999px;
  --radius-soft:  12px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea { font-family: inherit; color: inherit; }
input:focus, textarea:focus, button:focus { outline: none; }
.serif { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; letter-spacing: -0.01em; }

[x-cloak] { display: none !important; }

/* Visueel verborgen, beschikbaar voor schermlezers. */
.a11y-live,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link verschijnt op focus. */
.skip-link {
  position: absolute;
  left: 8px; top: -40px;
  background: var(--forest);
  color: #f4f1e8;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 9999;
  transition: top .15s ease;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Reduced motion — respecteer voorkeur. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.app {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(47,74,54,0.06), transparent 60%),
    radial-gradient(800px 500px at 100% 30%, rgba(212,196,160,0.18), transparent 60%),
    var(--paper);
}

/* ---------- header ---------- */
.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.brand .mark {
  width: 32px; height: 32px;
  background: var(--forest);
  color: #f3efe6;
  border-radius: 8px 8px 10px 8px;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 500;
  font-size: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 10px -4px rgba(47,74,54,0.35);
}
.brand .mark.sm { width: 26px; height: 26px; font-size: 15px; border-radius: 7px 7px 8px 7px; }
.header-right { color: var(--ink-soft); font-size: 15px; }
.header-right a { color: inherit; text-decoration: none; padding: 8px 4px; border-radius: 6px; }
.header-right a:hover { color: var(--ink); }
.date-pill {
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-soft);
  font-size: 15px;
  font-weight: 500;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-forest {
  background: var(--forest);
  color: #f4f1e8;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 6px 16px -6px rgba(47,74,54,0.5);
}
.btn-forest:hover { background: var(--forest-hover); }
.btn-whatsapp {
  background: var(--forest);
  color: #f4f1e8;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 18px -6px rgba(47,74,54,0.5);
  padding: 14px 22px;
  font-size: 15.5px;
}
.btn-whatsapp:hover { background: var(--forest-hover); }
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--card-edge);
  color: var(--ink-soft);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(60,50,30,0.18); }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-link {
  color: var(--forest-deep);
  background: transparent;
  text-decoration: underline;
}

button:focus-visible, input:focus-visible, a:focus-visible, [role=button]:focus-visible {
  box-shadow: 0 0 0 3px rgba(47,74,54,0.25);
  border-radius: 6px;
}

/* ---------- landing ---------- */
.landing-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 120px;
}
.hero {
  text-align: center;
  padding: 40px 0 24px;
  max-width: 920px;
  margin: 0 auto;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: var(--forest-tint);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--forest-deep);
  margin-bottom: 28px;
}
.hero .pill::before {
  content: ""; width: 6px; height: 6px; background: var(--forest); border-radius: 50%;
}
.hero h1 {
  font-size: clamp(48px, 7.2vw, 84px);
  line-height: 1.02;
  margin: 0 0 28px;
  font-weight: 500;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 50;
  color: var(--forest);
  font-weight: 400;
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-input-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 20px;
  border-radius: 22px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.hero-input-row { display: flex; gap: 10px; }
.hero-input-row input[type="text"] {
  flex: 1;
  padding: 18px 22px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  font-size: 17px;
}
.hero-input-row input::placeholder { color: var(--ink-mute); }
.hero-input-row input:focus { background: var(--paper-warm); }
.hero-input-row .btn-forest { padding: 18px 22px; font-size: 16px; }
.hero-note { font-size: 13.5px; color: var(--ink-mute); padding: 0 8px; }

.checks-row {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 22px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.checks-row span { display: inline-flex; align-items: center; gap: 8px; }
.checks-row svg { color: var(--forest); }

.sec-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  text-align: center;
  margin: 100px 0 36px;
  letter-spacing: -0.01em;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  padding: 32px 30px 34px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.step-num {
  width: 34px; height: 34px;
  background: var(--forest); color: #f3efe6;
  border-radius: 8px 8px 10px 8px;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px;
}
.step-card h3 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  margin: 6px 0 0; letter-spacing: -0.01em;
}
.step-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  display: flex; gap: 18px; align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--forest-tint);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--forest);
}
.feature-card h4 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.landing-footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--card-edge);
  color: var(--ink-mute);
  font-size: 14px;
}
.landing-footer a { color: inherit; text-decoration: underline; margin: 0 6px; }

/* ---------- list page (v3 — compact, mobile-first) ---------- */
.list-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 80px;
}

.list-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

/* card-header: titel links, progress + dots rechts */
.card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.list-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
  min-width: 0;
  outline: none;
  border-radius: 4px;
  cursor: text;
  background: transparent;
  border: none;
  padding: 2px 2px;
  color: var(--ink);
  text-overflow: ellipsis;
}
.list-title:focus { box-shadow: 0 0 0 2px rgba(47,74,54,0.18); }
.list-title::placeholder { color: var(--ink-faint); font-style: italic; }

.card-head-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}

.progress-pill {
  background: var(--paper-warm);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.progress-pill.done {
  background: var(--forest-tint);
  color: var(--forest-deep);
}

/* Iconenknop in card-header */
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-mute);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--paper-warm); color: var(--ink); }
.icon-btn.active { background: var(--forest-tint); color: var(--forest); }

.menu-wrap { position: relative; }

/* Dunne voortgangsbalk onder de header */
.progress-bar {
  height: 3px;
  background: rgba(60,50,30,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 14px;
}
.progress-bar > div {
  height: 100%;
  width: 0;
  background: var(--forest);
  border-radius: inherit;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.items { display: flex; flex-direction: column; }

/* item row — geen grip, check helemaal links */
.item {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  align-items: start;
  gap: 10px;
  padding: 6px 2px;
  border-radius: 10px;
  position: relative;
  transition: background .15s ease;
}
.item:hover { background: rgba(60,50,30,0.025); }

/* SortableJS — visuele states tijdens drag */
.sortable-ghost {
  opacity: 0.4;
  background: var(--forest-tint) !important;
}
.sortable-chosen { cursor: grabbing; }
.sortable-drag {
  background: var(--card) !important;
  box-shadow: 0 12px 32px -10px rgba(40,30,15,0.25);
  border-radius: 10px;
}
.sortable-list {
  /* Geef de container een minimale hoogte zodat lege groepen een drop-target zijn. */
  min-height: 2px;
}

/* group/section header — alles op één regel */
.section-group { margin-top: 6px; }
.section-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 6px;
  position: relative;
}
.section-head .section-toggle {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-mute);
  font-size: 16px; font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  line-height: 1;
  flex-shrink: 0;
}
.section-head .section-toggle:hover { background: var(--paper-warm); color: var(--ink); }
.section-label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  border: none; background: transparent;
  padding: 2px 4px; border-radius: 4px;
  flex-shrink: 0;
  max-width: 50%;
}
.section-label:focus { box-shadow: 0 0 0 2px rgba(47,74,54,0.18); }
.section-line {
  flex: 1; height: 1px; background: var(--forest-line); opacity: .5;
}
.section-delete {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-faint);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.section-head:hover .section-delete, .section-head:focus-within .section-delete { opacity: 1; }
.section-delete:hover { color: var(--danger); background: rgba(164,69,46,0.08); }

/* checkbox */
.check {
  width: 26px; height: 26px;
  border: 1.6px solid var(--ink-faint);
  border-radius: 8px;
  display: grid; place-items: center;
  background: transparent;
  color: transparent;
  transition: all .15s ease;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;  /* aligneer met eerste regel van textarea */
}
.check:hover { border-color: var(--forest); }
.check.checked {
  background: var(--forest);
  border-color: var(--forest);
  color: #f4f1e8;
}

/* text + badge */
.item-text-wrap {
  display: flex; align-items: flex-start; gap: 8px;
  min-width: 0;
  padding-top: 4px;
}
.qty-badge {
  font-size: 12px; font-weight: 600;
  color: var(--forest-deep);
  background: var(--forest-tint);
  padding: 3px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 1.3;
  margin-top: 1px;
}

/* Auto-grow textarea voor lange items — wraps en geen overflow. */
.item-text {
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  flex: 1; min-width: 0;
  border: none; background: transparent;
  padding: 0 2px;
  border-radius: 4px;
  width: 100%;
  resize: none;
  overflow: hidden;
  line-height: 1.4;
  word-break: break-word;
  outline: none;
}
.item-text:focus { box-shadow: 0 0 0 2px rgba(47,74,54,0.18); }
.item.done .item-text {
  text-decoration: line-through;
  color: var(--ink-mute);
}
.item.done .qty-badge { opacity: .5; }

.item .delete {
  opacity: 0;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
  color: var(--ink-faint);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  margin-top: 1px;
}
.item:hover .delete, .item:focus-within .delete { opacity: 1; }
.item .delete:hover, .item .delete:focus-visible { color: var(--danger); background: rgba(164,69,46,0.08); }

/* Op touch: delete blijvend zichtbaar (geen hover) */
@media (hover: none) {
  .item .delete, .section-head .section-delete { opacity: 0.6; }
}

/* add row — prominent op mobiel: groot plus-vlak dat ook submit doet */
.add-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px;
  margin: 10px -2px 4px;
  border-radius: 12px;
  background: var(--paper-warm);
  border: 1.5px dashed var(--forest-line);
  transition: border-color .15s ease, background .15s ease;
}
.add-row:focus-within {
  border-color: var(--forest);
  border-style: solid;
  background: var(--forest-tint);
}
.add-row .add-btn {
  width: 36px; height: 36px;
  background: var(--forest);
  color: #f4f1e8;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 12px -4px rgba(47,74,54,0.4);
  transition: background .15s ease, transform .1s ease;
}
.add-row .add-btn:hover { background: var(--forest-hover); }
.add-row .add-btn:active { transform: scale(0.94); }
.add-row input {
  flex: 1; border: none; background: transparent;
  font-size: 16px; padding: 6px 2px;
  outline: none;
}
.add-row input::placeholder { color: var(--ink-mute); }

/* share-row: klein, onder de card. URL klikbaar = direct copy. */
.share-row {
  display: flex; align-items: stretch; gap: 6px;
  margin: 0 2px 8px;
}
.share-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.share-link:hover { background: var(--paper-warm); }
.share-link:active { transform: scale(0.99); }
.share-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.share-copied {
  flex-shrink: 0;
  color: var(--forest);
  font-weight: 600;
  font-size: 13px;
}
.share-icon {
  width: 44px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.share-icon:hover { background: var(--forest-tint); color: var(--forest); }

.below-note {
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  margin: 12px 4px 0;
  line-height: 1.5;
}

/* dots menu — opent rechts uitgelijnd onder de icon-btn */
.menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  box-shadow: 0 12px 32px -10px rgba(40,30,15,0.18);
  padding: 6px;
  z-index: 20;
}
.menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-size: 14.5px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-align: left;
}
.menu button:hover { background: var(--paper-warm); color: var(--ink); }
.menu button.danger:hover { background: rgba(164,69,46,0.08); color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--card-edge); margin: 4px 0; }

/* qr modal */
.modal-veil {
  position: fixed; inset: 0;
  background: rgba(20, 15, 8, 0.4);
  display: grid; place-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--card);
  border-radius: 22px;
  padding: 32px;
  width: min(380px, 90vw);
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(20,15,8,0.5);
  position: relative;
}
.modal h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 600;
  margin: 0 0 6px;
}
.modal p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.modal .qr-img-wrap {
  background: var(--paper);
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 18px;
}
.modal .link-pill {
  font-family: 'Work Sans', monospace;
  font-variant-numeric: tabular-nums;
  background: var(--forest-tint);
  color: var(--forest-deep);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  display: inline-block;
  margin-bottom: 22px;
}
.modal .link-pill b { font-weight: 600; }
.modal .close-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-mute);
}
.modal .close-x:hover { background: var(--paper-warm); color: var(--ink); }

/* toast */
.toast {
  position: fixed;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--forest-deep);
  color: #f4f1e8;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 12px 32px -10px rgba(40,30,15,0.4);
  z-index: 200;
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-mute);
  font-size: 15px;
}

/* gone / error pages */
.center-card {
  max-width: 540px;
  margin: 80px auto;
  padding: 48px 40px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.center-card h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
}
.center-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.center-card .actions { margin-top: 24px; display: inline-flex; gap: 10px; }

/* error-detail (validation) */
.errors {
  background: rgba(164, 69, 46, 0.06);
  border: 1px solid rgba(164, 69, 46, 0.25);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 12px;
  font-size: 14px;
}
.errors ul { margin: 0; padding-left: 18px; }

/* flash status */
.flash {
  background: var(--forest-tint);
  color: var(--forest-deep);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
  font-size: 14px;
}

/* admin */
.admin-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.admin-nav {
  display: flex; gap: 16px;
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--card-edge);
}
.admin-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
.admin-nav a.active { color: var(--forest-deep); font-weight: 600; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 20px;
}
.admin-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0 0 16px;
  font-size: 22px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 8px;
  border-bottom: 1px solid var(--card-edge);
}
.admin-table th {
  font-weight: 600; color: var(--ink-soft);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em;
}
.admin-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  background: var(--paper-warm);
  border-radius: 12px;
}
.admin-stat .label { font-size: 12.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.admin-stat .value { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

/* Dashboard: device-verdeling als stacked bar */
.device-bar {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 12px;
}
.device-seg { height: 100%; transition: width .3s ease; }
.device-seg.mobile  { background: var(--forest); }
.device-seg.desktop { background: var(--forest-soft); }
.device-seg.unknown { background: var(--ink-faint); }
.device-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.device-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.device-legend .dot.mobile  { background: var(--forest); }
.device-legend .dot.desktop { background: var(--forest-soft); }
.device-legend .dot.unknown { background: var(--ink-faint); }

/* Dashboard: tijdreeks-tabel met sparkline */
.series-table .series-tot {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 80px;
}
.series-table .series-spark { padding: 6px 8px; }
.series-table .series-spark svg { display: block; }

/* Dashboard: horizontale bar-rows */
.bar-row {
  height: 8px;
  background: var(--paper-warm);
  border-radius: 999px;
  overflow: hidden;
}
.bar-row-fill {
  height: 100%;
  background: var(--forest);
  border-radius: inherit;
  transition: width .3s ease;
}

/* Wordfilter editor */
.wf-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.wf-row {
  display: grid;
  grid-template-columns: 1fr 110px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--paper-warm);
  border-radius: 8px;
  font-size: 14.5px;
}
.wf-row .wf-term { font-family: monospace; color: var(--ink); }
.wf-row .wf-mode {
  font-size: 12px;
  background: var(--forest-tint);
  color: var(--forest-deep);
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
}
.wf-row .wf-note { color: var(--ink-soft); font-size: 13px; }
.wf-row .wf-del {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-faint);
}
.wf-row .wf-del:hover { color: var(--danger); background: rgba(164,69,46,0.08); }

.wf-add {
  display: grid;
  grid-template-columns: 1fr 120px 1fr auto;
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}
.wf-add label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--ink-soft);
}
.wf-add input, .wf-add select {
  padding: 8px 10px;
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  font-size: 14px;
  background: var(--card);
  font-family: inherit;
}
.wf-add button { padding: 8px 14px; }

.wf-section-title {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 20px 0 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .wf-row, .wf-add { grid-template-columns: 1fr; }
}

/* honeypot — visueel verstopt maar wel echt aanwezig in de DOM */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* ---------- print ---------- */
@media print {
  /* Verberg alles buiten de lijstkaart. */
  .site-header,
  .progress-row,
  .eye-btn,
  .add-row,
  .share-actions,
  .share-bar,
  .below-note,
  .modal-veil,
  .toast,
  .item .grip,
  .item .delete,
  .a11y-live,
  nav, footer { display: none !important; }

  body, .app { background: #fff !important; }
  .list-main { padding: 0 !important; max-width: 100% !important; }
  .list-card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    page-break-inside: auto;
  }

  /* Print-header met titel + datum + QR rechtsboven. */
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14mm;
    border-bottom: 1px solid #999;
    padding-bottom: 4mm;
  }
  .print-header .title h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22pt;
    margin: 0 0 2mm;
    font-weight: 600;
  }
  .print-header .title .meta {
    font-size: 10pt; color: #555;
  }
  .print-header .qr {
    flex-shrink: 0;
  }
  .print-header .qr canvas,
  .print-header .qr svg {
    display: block;
    width: 28mm; height: 28mm;
  }
  .print-header .qr .url {
    font-size: 8pt;
    text-align: center;
    margin-top: 1mm;
    font-family: monospace;
    color: #333;
  }

  .item, .divider-row {
    grid-template-columns: 8mm 1fr !important;
    padding: 2mm 0 !important;
    page-break-inside: avoid;
    border-bottom: 0.5pt solid #ddd;
  }
  .item .check {
    width: 5mm !important; height: 5mm !important;
    border: 1pt solid #333 !important;
    background: #fff !important;
    color: transparent !important;
  }
  .item.done .check::after {
    content: "✓";
    color: #000;
    font-size: 12pt;
    line-height: 5mm;
    text-align: center;
    display: block;
  }
  .item.done .item-text { text-decoration: none !important; color: #000 !important; }
  .item-text-wrap { gap: 4mm !important; }
  .item-text {
    font-size: 12pt; color: #000;
    border: none !important; box-shadow: none !important;
  }
  .qty-badge {
    background: transparent !important;
    color: #000 !important;
    border: 0.5pt solid #666;
    padding: 0 1.5mm !important;
  }
  .divider-row .line { background: #333 !important; opacity: 1 !important; }
  .divider-row input.label {
    font-size: 9pt !important;
    color: #555 !important;
    letter-spacing: 0.15em;
  }

  .print-footer {
    display: block !important;
    margin-top: 8mm;
    font-size: 8pt;
    color: #888;
    text-align: center;
  }

  @page {
    margin: 14mm 16mm;
  }
}
.print-only { display: none; }
@media print { .print-only { display: block; } }

/* ---------- responsive ---------- */

/* Tablet en kleiner: één-koloms grids, knop full-width onder input. */
@media (max-width: 760px) {
  .steps-grid, .features-grid { grid-template-columns: 1fr; }
  .hero-input-row { flex-direction: column; }
  .hero-input-row .btn-forest { width: 100%; justify-content: center; }
  .list-card { padding: 24px 22px 12px; }
  .site-header { padding: 20px 22px; }
  .landing-main { padding: 12px 20px 80px; }
  .hero { padding: 24px 0 12px; }
  .hero p.lead { font-size: 17px; margin-bottom: 28px; }
  .sec-title { margin: 64px 0 24px; }
  .step-card { padding: 24px 22px 26px; }
  .feature-card { padding: 20px 22px; }
}

/* Echte mobiel (≤480px): nog compacter en pill blijft in één regel. */
@media (max-width: 480px) {
  .landing-main { padding: 8px 14px 60px; }
  .site-header { padding: 16px 14px; }
  .brand { font-size: 16px; }
  .header-right { font-size: 13.5px; }

  .hero { padding: 16px 0 8px; }
  /* "Geen account · geen app · geen gedoe" is op mobiel te veel ruis — weg. */
  .hero .pill { display: none; }
  .hero h1 {
    /* Min-font naar 32px zodat "Een lijstje." zonder rare breaks past. */
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 20px;
  }
  .hero p.lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .hero-input-card {
    padding: 14px;
    border-radius: 18px;
  }
  .hero-input-row input[type="text"] {
    padding: 14px 16px;
    font-size: 16px;
  }
  .hero-input-row .btn-forest { padding: 14px 18px; font-size: 15.5px; }
  .hero-note { font-size: 12.5px; padding: 0 4px; }
  .checks-row {
    gap: 14px;
    font-size: 13.5px;
    margin-top: 16px;
  }

  .sec-title {
    margin: 48px 0 20px;
    font-size: 28px;
  }
  .step-card h3, .feature-card h4 { font-size: 18px; }
  .step-card p, .feature-card p { font-size: 14.5px; }

  /* Lijstpagina compacter op smal scherm. */
  .list-main { padding: 4px 12px 60px; }
  .list-card { padding: 14px 14px 6px; border-radius: 16px; }
  .list-title { font-size: clamp(20px, 5.5vw, 26px); }
  .card-head { gap: 6px; }
  .icon-btn { width: 30px; height: 30px; }
  .progress-pill { font-size: 12px; padding: 3px 8px; }

  .item { gap: 8px; }
  .item-text { font-size: 15.5px; }
  .menu { min-width: 200px; }

  .landing-footer { margin-top: 56px; font-size: 13px; }
}
