/* Kunstregister — huisstijl Gemeente Landgraaf (petrol #00627F, groen #A1C037 / #C1D272, Roboto) */
@font-face { font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/roboto-400.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/roboto-400i.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/roboto-500.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/roboto-700.woff2) format("woff2"); }

:root {
  --petrol: #00627F;
  --petrol-donker: #004a60;
  --petrol-licht: #e5f0f3;
  --groen: #A1C037;
  --groen-licht: #C1D272;
  --groen-zacht: #f2f6e3;
  --rood: #9a002a;
  --oranje: #b45f06;
  --tekst: #1d1d1b;
  --grijs: #6f6f6f;
  --lijn: #dae1e7;
  --vlak: #f4f4f4;
  --wit: #ffffff;
  --radius: 10px;
  --schaduw: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 Roboto, Arial, sans-serif; color: var(--tekst); background: var(--vlak); }
a { color: var(--petrol); }
a:hover { color: var(--petrol-donker); }
h1, h2, h3 { color: var(--petrol); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 500; }
img { max-width: 100%; }
.verborgen { display: none !important; }
.klein { font-size: .875rem; }
.grijs { color: var(--grijs); }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- kop ---------- */
.kop { background: var(--wit); border-bottom: 4px solid var(--groen); }
.kop-binnen { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--petrol); }
.logo img { height: 46px; width: auto; }
.logo span { font-weight: 500; font-size: 1.05rem; border-left: 2px solid var(--groen-licht); padding-left: 14px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu a, .menu button.link { text-decoration: none; color: var(--petrol); font-weight: 500; padding: 8px 12px; border-radius: var(--radius); background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.menu a:hover, .menu a.actief, .menu button.link:hover { background: var(--petrol-licht); }
.menu form { margin: 0; }
.menu-knop { display: none; }
@media (max-width: 860px) {
  .menu-knop { display: inline-flex; margin-left: auto; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .menu.open { display: flex; }
  .logo span { display: none; }
}

main { max-width: 1280px; margin: 0 auto; padding: 24px 16px 60px; }
.voet { text-align: center; color: var(--grijs); font-size: .8rem; padding: 20px 16px 40px; }

/* ---------- blokken ---------- */
.blok { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); padding: 20px; margin-bottom: 20px; }
.blok > h2:first-child { margin-top: 0; }
.rij { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tussen { justify-content: space-between; }
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.raster-2 { display: grid; gap: 20px; grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .raster-2 { grid-template-columns: 1fr; } }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--petrol); color: var(--wit); border-radius: var(--radius); padding: 16px 18px; }
.kpi:nth-child(2) { background: var(--petrol-donker); }
.kpi.groen { background: var(--groen); color: #1d2a00; }
.kpi .getal { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi .wat { font-size: .85rem; opacity: .9; }
.kpi a { color: inherit; }

/* ---------- knoppen ---------- */
.knop { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid var(--petrol); background: var(--petrol); color: var(--wit); font: 500 1rem Roboto, Arial, sans-serif; text-decoration: none; cursor: pointer; line-height: 1.2; }
.knop:hover { background: var(--petrol-donker); border-color: var(--petrol-donker); color: var(--wit); }
.knop.licht { background: var(--wit); color: var(--petrol); }
.knop.licht:hover { background: var(--petrol-licht); color: var(--petrol); }
.knop.groen { background: var(--groen); border-color: var(--groen); color: #1d2a00; }
.knop.groen:hover { background: #8fac2b; border-color: #8fac2b; }
.knop.gevaar { background: var(--wit); border-color: var(--rood); color: var(--rood); }
.knop.gevaar:hover { background: var(--rood); color: var(--wit); }
.knop.klein { padding: 6px 12px; font-size: .875rem; }
.knop[disabled] { opacity: .5; cursor: default; }

/* ---------- formulieren ---------- */
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 4px; color: #333; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b0b0b0; border-radius: 6px; font: 400 1rem Roboto, Arial, sans-serif; background: var(--wit); color: var(--tekst);
}
input:focus, select:focus, textarea:focus, .knop:focus-visible, a:focus-visible { outline: 3px solid var(--groen-licht); outline-offset: 1px; border-color: var(--petrol); }
textarea { min-height: 90px; resize: vertical; }
.veld { margin-bottom: 14px; }
.velden { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hulp { font-size: .8rem; color: var(--grijs); margin-top: 3px; }
.vink { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.vink input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--petrol); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; color: var(--petrol); font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.formulier-acties { position: sticky; bottom: 0; background: var(--wit); padding: 14px 0 4px; border-top: 1px solid var(--lijn); display: flex; gap: 10px; flex-wrap: wrap; }

.filters { display: grid; gap: 10px; grid-template-columns: 2fr repeat(4, 1fr) auto; align-items: end; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } .filters .zoek { grid-column: 1 / -1; } }

/* ---------- meldingen ---------- */
.melding { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 5px solid var(--petrol); background: var(--petrol-licht); }
.melding.ok { border-color: var(--groen); background: var(--groen-zacht); }
.melding.waarschuwing, .melding.fout { border-color: var(--rood); background: #fbecef; }

/* ---------- tabellen ---------- */
.tabel-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grijs); font-weight: 500; }
th a { color: inherit; text-decoration: none; }
tbody tr:hover { background: #fafcfd; }
td.duim { width: 64px; }
.duim img, .duim .leeg { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; background: var(--vlak); }
.tabel-klik td a.hoofd { font-weight: 500; text-decoration: none; }
.tabel-klik td a.hoofd:hover { text-decoration: underline; }

/* ---------- labels/badges ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 500; white-space: nowrap; background: var(--vlak); color: #333; border: 1px solid var(--lijn); }
.badge.status-in_collectie { background: var(--groen-zacht); border-color: var(--groen-licht); color: #3e5000; }
.badge.status-in_depot { background: var(--petrol-licht); border-color: #b9d4dc; color: var(--petrol-donker); }
.badge.status-uitgeleend { background: #fff4e0; border-color: #f0cf96; color: #7a4a00; }
.badge.status-in_restauratie { background: #f3e9f7; border-color: #d8bfe3; color: #5b2a73; }
.badge.status-vermist { background: #fbecef; border-color: #e7b5c1; color: var(--rood); }
.badge.status-afgestoten { background: #eee; color: #555; }
.badge.conditie-goed { color: #3e5000; }
.badge.conditie-matig { color: var(--oranje); border-color: #f0cf96; }
.badge.conditie-slecht { color: var(--rood); border-color: #e7b5c1; background: #fbecef; }
.badge.publiek { background: var(--petrol); color: var(--wit); border-color: var(--petrol); }
.te-laat { color: var(--rood); font-weight: 500; }

/* ---------- tegels ---------- */
.tegels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tegel { background: var(--wit); border-radius: var(--radius); box-shadow: var(--schaduw); overflow: hidden; text-decoration: none; color: var(--tekst); display: flex; flex-direction: column; }
.tegel:hover { box-shadow: 0 0 0 2px var(--groen-licht), var(--schaduw); }
.tegel .beeld { aspect-ratio: 4 / 3; background: var(--vlak); display: flex; align-items: center; justify-content: center; color: var(--grijs); }
.tegel .beeld img { width: 100%; height: 100%; object-fit: cover; }
.tegel .info { padding: 12px 14px; }
.tegel .titel { font-weight: 500; color: var(--petrol); }

/* ---------- detail ---------- */
.kenmerken { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kenmerken dt { color: var(--grijs); font-size: .9rem; }
.kenmerken dd { margin: 0; }
.galerij { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.galerij figure { margin: 0; position: relative; }
.galerij img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.galerij figcaption { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.hoofdbeeld img { width: 100%; max-height: 520px; object-fit: contain; background: var(--vlak); border-radius: var(--radius); display: block; }
.tijdlijn { list-style: none; padding: 0; margin: 0; }
.tijdlijn li { padding: 8px 0 8px 18px; border-left: 3px solid var(--groen-licht); position: relative; margin-left: 6px; }
.tijdlijn li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--petrol); }
details.uitklap { border: 1px solid var(--lijn); border-radius: var(--radius); padding: 10px 14px; margin-top: 12px; background: #fcfcfc; }
details.uitklap summary { cursor: pointer; font-weight: 500; color: var(--petrol); }
details.uitklap[open] summary { margin-bottom: 12px; }

/* ---------- kaart ---------- */
.kaart { height: 340px; border-radius: var(--radius); border: 1px solid var(--lijn); z-index: 0; }
.kaart.groot { height: calc(100vh - 220px); min-height: 420px; }
.kaart.mini { height: 220px; }
.leaflet-popup-content img { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; }

/* ---------- inloggen ---------- */
.inlog { max-width: 420px; margin: 6vh auto; }
.inlog .blok { padding: 28px; border-top: 6px solid var(--petrol); }
.inlog .logo-groot { display: block; margin: 0 auto 18px; height: 70px; }
.qr-blok svg { width: 200px; height: 200px; display: block; margin: 10px auto; }
.code-veld { font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; }

/* ---------- publiek ---------- */
.held { background: var(--petrol); color: var(--wit); border-radius: var(--radius); padding: 32px 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.held h1 { color: var(--wit); font-size: 2rem; }
.held p { max-width: 640px; margin: 0; opacity: .95; }
.held::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--groen); opacity: .35; }

/* ---------- labels printen ---------- */
.labelvel { display: grid; gap: 4mm; grid-template-columns: repeat(3, 1fr); }
.labelvel.groot { grid-template-columns: repeat(2, 1fr); }
.qrlabel { border: 1px dashed #b0b0b0; border-radius: 3mm; padding: 3mm; display: flex; gap: 3mm; align-items: center; break-inside: avoid; background: #fff; }
.qrlabel svg { width: 26mm; height: 26mm; flex: none; }
.labelvel.groot .qrlabel svg { width: 40mm; height: 40mm; }
.qrlabel .nr { font-weight: 700; color: var(--petrol); font-size: 11pt; }
.qrlabel .t { font-size: 9pt; line-height: 1.25; }
.qrlabel .org { font-size: 7pt; color: var(--grijs); margin-top: 1mm; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .kop, .voet, .niet-printen { display: none !important; }
  main { padding: 0; max-width: none; }
  .qrlabel { border-color: #ddd; }
}
.smal { max-width: 560px; }
.regels { white-space: pre-line; }
.filters.filters-publiek { grid-template-columns: 2fr 1fr auto; }
@media (max-width: 1000px) { .filters.filters-publiek { grid-template-columns: 1fr 1fr; } }
.kop .menu-knop { display: none; }
@media (max-width: 860px) { .kop .menu-knop { display: inline-flex; } }
@media screen and (max-width: 700px) { .labelvel, .labelvel.groot { grid-template-columns: 1fr; } }
input[type=file] { font: 400 .95rem Roboto, Arial, sans-serif; max-width: 100%; }
input[type=file]::file-selector-button { font: 500 1rem Roboto, Arial, sans-serif; padding: 12px 18px; margin-right: 12px; border-radius: var(--radius); border: 2px solid var(--groen); background: var(--groen); color: #1d2a00; cursor: pointer; }
@media (max-width: 600px) {
  .formulier-acties { flex-wrap: nowrap; gap: 8px; padding: 10px 0 6px; }
  .formulier-acties .knop { padding: 9px 12px; font-size: .9rem; flex: 1; justify-content: center; }
  .formulier-acties .alleen-breed { display: none; }
}
.proefbalk { background: var(--groen-licht); color: #1d2a00; text-align: center; font-size: .85rem; font-weight: 500; padding: 6px 16px; }
@media print { .proefbalk { display: none; } }
