/* AMCA beheer — rustig en functioneel, in de huisstijl */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
:root { --navy: #0B1420; --navy-2: #121F2E; --red: #D72632; --red-dark: #BF1F2A; --light: #F4F6F7; --text: #182330; --muted: #6B7280; --border: #DDE2E6; --ok: #1F7A4D; --warn: #9A6400; --radius: 10px; }
* { box-sizing: border-box; }
html { background: var(--navy); }
body.admin { margin: 0; min-height: 100vh; font: 400 15.5px/1.55 "Inter", system-ui, sans-serif; color: var(--text); background: var(--light); }
a { color: var(--red-dark); }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 19px; }
h3 { margin: 18px 0 8px; font-size: 16px; }
code { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.a-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 12px clamp(16px, 3vw, 32px); background: var(--navy); color: #fff; }
.a-brand { color: #fff; font-weight: 800; letter-spacing: .04em; text-decoration: none; font-size: 18px; }
.a-brand span { font-weight: 400; opacity: .75; }
.a-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; flex: 1 1 auto; }
.a-nav a, .a-user a, .a-link { color: rgba(255, 255, 255, .85); text-decoration: none; padding: 6px 9px; border-radius: 6px; font-size: 14.5px; }
.a-nav a:hover, .a-user a:hover, .a-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.a-nav a[aria-current], .a-user a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.a-user { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.a-link { background: none; border: 0; font: inherit; cursor: pointer; }

.a-main { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 80px; }
.a-intro { max-width: 820px; color: #3B4652; margin: 0 0 24px; }
.a-muted, .a-hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.a-back { margin: 0 0 8px; font-size: 14px; }
.a-back a { text-decoration: none; }
.a-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.a-head h1 { margin: 0; }
.a-empty { padding: 20px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

.a-alert { margin: 0 0 14px; padding: 12px 16px; border-radius: 8px; border-left: 4px solid; background: #fff; }
.a-alert--success { border-color: var(--ok); background: #EAF6EF; }
.a-alert--warning { border-color: #D4A017; background: #FFF7E0; color: #5C4300; }
.a-alert--error { border-color: var(--red); background: #FBEAEB; color: #7A1219; }

.a-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 7px; border: 1px solid var(--border); background: #fff; color: var(--text); font: 600 14.5px/1.2 "Inter", sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.a-btn:hover { border-color: #B9C2CA; }
.a-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.a-btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.a-btn--ghost { background: transparent; }
.a-btn--danger { color: var(--red-dark); border-color: #F0C3C7; }
.a-btn--danger:hover { background: #FBEAEB; border-color: var(--red); }
.a-btn--small { padding: 6px 10px; font-size: 13px; }

.a-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 32px; }
.a-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.a-tile:hover { border-color: var(--red); }
.a-tile span { color: var(--muted); font-size: 13.5px; }
.a-status { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.a-status div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); }
.a-status div:first-child { border-top: 0; }
.a-status dt { font-weight: 600; }
.a-status dd { margin: 0; }

.a-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.a-table th, .a-table td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--border); vertical-align: middle; }
.a-table th { background: #FAFBFB; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }
.a-table td a { text-decoration: none; font-weight: 600; color: var(--text); }
.a-table td a:hover { color: var(--red-dark); }
.a-table tr.is-past td { color: var(--muted); }
.a-table tr.is-past td a { color: var(--muted); font-weight: 500; }
.a-actions-col { width: 1%; white-space: nowrap; text-align: right; }

.a-form { display: block; }
.a-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 20px; }
.a-cell { grid-column: span 6; min-width: 0; }
.a-cell--half { grid-column: span 3; }
.a-cell--third { grid-column: span 2; }
.a-narrow { max-width: 480px; }
.a-section { margin: 0 0 22px; padding: 22px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.a-form.a-grid { padding: 22px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.a-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.a-section .a-field + .a-field, .a-narrow .a-field { margin-top: 14px; }
.a-field > label, .a-field > legend { font-weight: 600; font-size: 14px; padding: 0; }
.req { color: var(--red); margin-left: 3px; }
.a-field input[type=text], .a-field input[type=url], .a-field input[type=email], .a-field input[type=date], .a-field input[type=time], .a-field input[type=number], .a-field input[type=tel], .a-field input[type=password], .a-field select, .a-field textarea, .a-lang textarea, .a-lang input {
  width: 100%; padding: 10px 12px; font: 400 15px/1.45 "Inter", sans-serif; color: var(--text); background: #fff; border: 1px solid #C9D0D6; border-radius: 7px; }
.a-field textarea, .a-lang textarea { resize: vertical; }
.a-field input:focus, .a-field select:focus, .a-field textarea:focus, .a-lang textarea:focus, .a-lang input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 20, 32, .12); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.a-error { margin: 6px 0 0; color: var(--red-dark); font-size: 13.5px; font-weight: 500; }
.a-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; background: #FFF7E0; color: #5C4300; font-size: 13.5px; }
.a-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14.5px; cursor: pointer; }
.a-check input { width: 17px; height: 17px; accent-color: var(--red); }
.a-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.a-radios { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; border: 0; }
.a-radios legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; width: 100%; }
.a-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.a-danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Meertalige velden */
.a-lang { position: relative; }
.a-lang-tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.a-lang-tab { position: relative; padding: 5px 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--light); font: 600 12.5px "Inter", sans-serif; color: var(--muted); cursor: pointer; }
.a-lang-tab[aria-selected="true"] { background: #fff; color: var(--text); border-color: #C9D0D6; }
.a-lang-tab.has-value::after { content: ""; position: absolute; top: 5px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.a-lang-pane textarea, .a-lang-pane input { border-top-left-radius: 0; }

/* Afbeeldingen */
.a-slots { display: grid; gap: 16px; }
.a-slot { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 22px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.a-slot h2 { font-size: 17px; margin-bottom: 6px; }
.a-slot-img { background: var(--light); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.a-slot-img--dark { background: var(--navy); }
.a-slot-img img { width: 100%; height: auto; display: block; }
.a-slot-body form { margin-top: 12px; }
.a-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.a-inline-form .a-warn, .a-inline-form .a-hint { flex-basis: 100%; }
.a-badge { display: inline-block; margin: 0; padding: 3px 9px; border-radius: 999px; background: var(--light); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.a-badge--custom { background: #EAF6EF; color: var(--ok); }
.a-thumb { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 6px; background: var(--light); }
.a-thumb--small { width: 72px; height: 48px; object-fit: contain; }
.a-thumb--empty { display: flex; align-items: center; justify-content: center; width: 120px; height: 72px; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--border); }
.a-image-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.a-image-row .a-thumb { max-width: 200px; }
.a-pdf-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.a-pdf-row:first-of-type { border-top: 0; }
.a-pdf-lang { font-weight: 700; font-size: 13px; }
.a-pdf-current { font-size: 14px; }
.a-pdf-current em { color: var(--muted); font-style: normal; }
.a-photos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.a-photos li { padding: 8px; background: var(--light); border-radius: 8px; border: 2px solid transparent; }
.a-photos li.is-cover { border-color: var(--red); }
.a-photos .a-thumb { max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.a-photo-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.a-hours-row { margin-top: 8px; }
.a-rules { padding-left: 18px; margin: 14px 0 18px; }

.a-login { max-width: 400px; margin: 8vh auto 0; padding: 30px 32px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.a-login .a-field { margin-top: 14px; }
.a-login .a-btn { margin-top: 20px; width: 100%; justify-content: center; }

@media (max-width: 760px) {
  .a-cell--half, .a-cell--third { grid-column: span 6; }
  .a-slot { grid-template-columns: 1fr; }
  .a-status div { grid-template-columns: 1fr; gap: 2px; }
  .a-table th:nth-child(n+3), .a-table td:nth-child(n+3):not(.a-actions-col) { display: none; }
  .a-pdf-row { grid-template-columns: 34px 1fr; }
  .a-pdf-row input[type=file], .a-pdf-row .a-check { grid-column: 2; }
}
