/* Afvalwijzer — huisstijl De Graaf Groep */
:root {
  --blue: #1a3a9e;
  --blue-light: #0289fe;
  --blue-dark: #0f2470;
  --green: #5eb846;
  --grey: #f4f5f7;
  --ink: #14213a;
  --ink-soft: #4a5568;
  --line: #e2e6ee;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 36, 112, .08);
  --shadow-lg: 0 10px 30px rgba(15, 36, 112, .14);
  --stream: var(--blue);
  --stream-dark: var(--blue-dark);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--grey);
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--blue); }

img, svg { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.topbar {
  background: linear-gradient(115deg, var(--blue-dark), var(--blue) 55%, var(--blue-light));
  color: #fff;
}
.topbar-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px 18px;
  max-width: 960px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: rgba(255, 255, 255, .16);
  display: grid; place-items: center; font-size: 19px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 400; font-size: 12px; opacity: .85; }
.topbar-spacer { flex: 1; }
.lang {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 600;
}
.lang a { padding: 5px 12px; color: #fff; text-decoration: none; }
.lang a[aria-current="true"] { background: #fff; color: var(--blue-dark); }

/* ---------- generieke blokken ---------- */
main { padding: 22px 0 46px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.4px; }
h2 { font-size: 21px; margin: 30px 0 12px; letter-spacing: -.2px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--blue); color: #fff; text-decoration: none;
  border: 0; border-radius: 999px; padding: 13px 22px;
  font: inherit; font-weight: 600; cursor: pointer; min-height: 48px;
}
.btn:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--grey); color: var(--blue-dark); }
.btn-block { width: 100%; }

/* ---------- hero + actiekaarten ---------- */
.hero { margin-bottom: 20px; }
.actions { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 700px) { .actions { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.action {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border-top: 5px solid var(--blue-light);
}
.action:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.action .icon { font-size: 34px; line-height: 1; }
.action h3 { margin: 10px 0 4px; font-size: 19px; }
.action p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.action .cta { color: var(--blue); font-weight: 600; font-size: 15px; }
.action.alt { border-top-color: var(--green); }
.action.alt .cta { color: #3f8f2b; }

/* ---------- zoeken ---------- */
.searchbox { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbox input[type="search"] {
  flex: 1 1 200px; min-width: 0; font: inherit; padding: 13px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; min-height: 48px;
}
.searchbox input[type="search"]:focus { outline: 3px solid rgba(2, 137, 254, .3); border-color: var(--blue-light); }
.suggestions { list-style: none; margin: 10px 0 0; padding: 0; }
.suggestions li { border-bottom: 1px solid var(--line); }
.suggestions a {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 11px 4px; text-decoration: none; color: inherit;
}
.suggestions .pill { font-size: 12px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--stream); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* ---------- stromen-grid ---------- */
.streams { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.stream-tile {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px;
  border-left: 6px solid var(--stream);
}
.stream-tile:hover { box-shadow: var(--shadow-lg); }
.stream-tile .icon { font-size: 26px; }
.stream-tile strong { display: block; margin: 6px 0 2px; font-size: 16px; line-height: 1.25; }
.stream-tile span { font-size: 13px; color: var(--ink-soft); }

/* ---------- stroompagina ---------- */
.stream-hero {
  /* donkere sluier zodat witte tekst ook op gele en oranje stromen leesbaar blijft */
  background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)), linear-gradient(135deg, var(--stream-dark), var(--stream));
  color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-lg);
}
.stream-hero .icon { font-size: 42px; line-height: 1; }
.stream-hero h1 { margin: 8px 0 6px; }
.stream-hero .bin {
  display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600;
}
.stream-hero p { margin: 8px 0 0; opacity: .95; }

.cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cols { grid-template-columns: 1fr 1fr; } }

ul.check, ul.cross { list-style: none; margin: 0; padding: 0; }
ul.check li, ul.cross li { position: relative; padding: 5px 0 5px 30px; border-bottom: 1px solid var(--line); }
ul.check li:last-child, ul.cross li:last-child { border-bottom: 0; }
ul.check li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
ul.cross li::before { content: "✕"; position: absolute; left: 2px; color: #dc2626; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--stream); box-shadow: 0 0 0 3px #fff;
}
.timeline strong { display: block; }
.timeline p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; }

.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fact { background: var(--grey); border-radius: 12px; padding: 14px; }
.fact b { display: block; font-size: 24px; color: var(--stream-dark); line-height: 1.1; }
.fact span { font-size: 14px; color: var(--ink-soft); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { background: var(--grey); border-radius: 999px; padding: 6px 13px; font-size: 15px; }

.law { border-left: 4px solid var(--blue-light); background: #f1f7ff; padding: 12px 14px; border-radius: 8px; font-size: 15px; }

/* ---------- resultaat ---------- */
.result-hero {
  background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)), linear-gradient(135deg, var(--stream-dark), var(--stream));
  color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); margin-bottom: 16px;
}
.result-hero .kicker { text-transform: uppercase; letter-spacing: 1.4px; font-size: 12px; opacity: .85; font-weight: 700; }
.result-hero .icon { font-size: 52px; line-height: 1; }
.result-hero h1 { font-size: 32px; margin: 4px 0 2px; }
.result-hero a { color: #fff; font-weight: 600; }
.result-hero .note { background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 15px; }

/* ---------- scanner ---------- */
.scanner { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-height: 62vh; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame {
  position: absolute; inset: 14% 10%; border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35);
}
.scanner .hintbar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; text-align: center;
}
.status { margin: 12px 0; font-size: 15px; }
.status.error { color: #b91c1c; font-weight: 600; }

/* ---------- footer ---------- */
footer.site {
  background: var(--blue-dark); color: #fff; padding: 26px 0; margin-top: 30px; font-size: 15px;
}
footer.site a { color: #fff; }
footer.site .wrap > * + * { margin-top: 6px; }

/* ---------- printvel ---------- */
.labels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.label {
  background: #fff; border: 2px solid var(--stream); border-radius: 12px; overflow: hidden;
  break-inside: avoid; page-break-inside: avoid;
}
.label .label-head { background: var(--stream-dark); color: #fff; padding: 10px 12px; }
.label .label-head strong { font-size: 18px; display: block; line-height: 1.2; }
.label .label-head span { font-size: 13px; opacity: .9; }
.label .label-body { display: flex; gap: 12px; padding: 12px; align-items: center; }
.label .label-body svg, .label .label-body img { width: 96px; height: 96px; flex: 0 0 96px; }
.label .label-body p { margin: 0; font-size: 13px; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.label .label-body b { display: block; font-size: 15px; color: var(--ink); }
.label .label-body .url { font-size: 11px; letter-spacing: -.1px; }

@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, footer.site, .no-print { display: none !important; }
  main { padding: 0; }
  .labels { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { box-shadow: none; padding: 0; }
}

/* toegankelijkheid */
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- bronnen ---------- */
.fact em { display: block; margin-top: 5px; font-size: 12px; font-style: normal; color: var(--ink-soft); opacity: .85; }
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sources li:last-child { border-bottom: 0; }
.sources li a { display: block; font-weight: 600; overflow-wrap: anywhere; }
.sources li span { display: block; font-size: 13px; color: var(--ink-soft); }

/* ---------- fotofunctie ---------- */
.action.photo { border-top-color: #8b5cf6; }
.action.photo .cta { color: #6d28d9; }
.photo-preview { margin: 4px 0 12px; }
.photo-preview img {
  display: block; width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 12px; background: #0f172a;
}
label.btn { cursor: pointer; }
