/* ============================================================
   SPORTKAMPEN DE MIESTER — stijlblad
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f0f4; --surface: #fff; --surface2: #f3eaf0; --border: #e2cdd8;
  --text: #1e1118; --muted: #7a5568; --accent: #7a0d44; --accent-d: #5a0932; --accent-l: #f8e9f0;
  --highlight: #d5cf09;
  --orange: #e8511e; --green: #1a9e5a; --yellow: #c98a00; --red: #bf3030;
  --radius: 10px; --sh: 0 2px 10px rgba(122,13,68,.08); --sh-lg: 0 8px 28px rgba(122,13,68,.15);
}
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; min-height: 100vh; }
h1 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
h2 { font-family: 'Syne', sans-serif; font-size: 1.08rem; font-weight: 700; }
h3 { font-family: 'Syne', sans-serif; font-size: .93rem; font-weight: 700; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* header */
.site-header { background: var(--accent); color: #fff; padding: 0 24px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(122,13,68,.35); }
.header-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.header-logo { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 2px 5px; display: block; flex-shrink: 0; }
.header-highlight { display: block; width: 3px; height: 32px; background: var(--highlight); border-radius: 2px; flex-shrink: 0; }
.header-icon { background: #fff; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.header-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: .97rem; color: #fff; line-height: 1.1; }
.header-sub { font-size: .72rem; color: rgba(255,255,255,.7); display: block; }
.header-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.header-nav a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 7px; }
.header-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.header-nav a.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; }
.season-select { padding: 6px 10px; border-radius: 7px; border: none; font-family: inherit; font-size: .83rem; font-weight: 600; color: var(--accent-d); background: #fff; }

/* layout */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 26px 20px 60px; }
.page-hd { margin-bottom: 20px; }
.page-hd p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--sh); }
.card + .card { margin-top: 16px; }
.card-l { border-left: 3px solid var(--accent); }
.card-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

/* forms */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .73rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-family: inherit; font-size: .9rem; background: var(--surface); color: var(--text); outline: none; transition: border-color .15s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--accent); }
.fg textarea { resize: vertical; min-height: 70px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { background: var(--accent-l); border: 1px solid #e3bfd0; color: var(--accent-d); border-radius: 8px; padding: 10px 14px; font-size: .84rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 18px; border-radius: 7px; border: none; font-family: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none; white-space: nowrap; }
.btn-p { background: var(--accent); color: #fff; } .btn-p:hover { background: var(--accent-d); }
.btn-s { background: var(--surface2); color: var(--text); border: 1px solid var(--border); } .btn-s:hover { background: var(--border); }
.btn-g { background: var(--green); color: #fff; } .btn-g:hover { background: #148046; }
.btn-r { background: var(--red); color: #fff; } .btn-r:hover { background: #9e2020; }
.btn-o { background: none; border: 1.5px solid var(--accent); color: var(--accent); } .btn-o:hover { background: var(--accent-l); }
.btn-sm { padding: 5px 11px; font-size: .78rem; }
.btn-xs { padding: 3px 8px; font-size: .73rem; }
.btn-grp { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, .tab:focus-visible, .week-card:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

/* badges + pills */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .71rem; font-weight: 700; white-space: nowrap; }
.b-pending { background: #fff3cd; color: #7a5800; }
.b-confirmed { background: #d4edda; color: #145220; }
.b-rejected { background: #f8d7da; color: #6e1a1a; }
.b-info { background: var(--accent-l); color: var(--accent-d); }
.pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: .7rem; font-weight: 700; border: 1.5px solid; }
.pill-ok { color: var(--green); border-color: var(--green); background: #d4edda; }
.pill-pend { color: #7a5800; border-color: var(--yellow); background: #fff3cd; }
.pill-rej { color: var(--red); border-color: var(--red); background: #f8d7da; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; padding: 8px 11px; background: var(--surface2); font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px 11px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fcf6f9; }
.td-actions { display: flex; gap: 4px; flex-wrap: nowrap; }
.kamp-select { padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; font-family: inherit; font-size: .8rem; max-width: 210px; background: #fff; }

/* stats */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-n { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-l { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* week cards + kamp chips (public form) */
.season-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: .85rem; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 10px; }
.season-title:first-child { margin-top: 0; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.week-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 13px 14px; cursor: pointer; user-select: none; position: relative; background: var(--surface); }
.week-card:hover { border-color: var(--accent); background: var(--accent-l); }
.week-card.sel { border-color: var(--accent); background: var(--accent-l); cursor: default; }
.week-card .wc-head { cursor: pointer; padding-right: 26px; }
.week-card.sel .wc-head::after { content: '✓'; position: absolute; top: 10px; right: 13px; color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.wc-naam { font-family: 'Syne', sans-serif; font-weight: 800; font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.wc-dates { font-size: .77rem; color: var(--muted); margin-top: 2px; }
.wc-hint { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.wc-kampen { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #dcb3c6; }
.wc-kampen-t { font-size: .74rem; font-weight: 700; color: var(--accent-d); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--border); background: #fff; border-radius: 20px; padding: 4px 11px; font-family: inherit; font-size: .79rem; font-weight: 500; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--accent); }
.chip.sel { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: none; font-family: inherit; font-size: .86rem; font-weight: 500; padding: 9px 15px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(30,17,24,.5); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: 14px; padding: 26px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh-lg); }
.modal-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 10px; }
.modal-x { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.modal-x:hover { background: var(--surface2); }

/* search */
.search-row { display: flex; gap: 9px; margin-bottom: 15px; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 180px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-family: inherit; font-size: .88rem; outline: none; }
.search-row input:focus { border-color: var(--accent); }
.search-row select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-family: inherit; font-size: .88rem; background: #fff; }

/* monitor cards, detail rows */
.mon-card { display: flex; gap: 13px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; margin-bottom: 8px; background: var(--surface); }
.mon-card:hover { border-color: var(--accent); background: var(--accent-l); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: .92rem; flex-shrink: 0; }
.avatar-lg { width: 50px; height: 50px; font-size: 1.1rem; }
.ir { display: flex; gap: 8px; margin-bottom: 6px; font-size: .87rem; }
.ir-k { color: var(--muted); min-width: 130px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; padding-top: 2px; }
.sec-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 8px; }
.wsr { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; background: var(--surface2); border-radius: 7px; margin-bottom: 6px; gap: 10px; flex-wrap: wrap; }
.wsr-r { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.kamp-row { display: flex; gap: 8px; align-items: center; padding: 7px 10px; background: var(--surface2); border-radius: 7px; margin-bottom: 5px; }
.kamp-row input[type=text] { flex: 1; min-width: 0; padding: 5px 9px; border: 1.5px solid var(--border); border-radius: 6px; font-size: .84rem; font-family: inherit; }
.kamp-row input[type=number] { width: 58px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; font-size: .84rem; text-align: center; }
.kamp-lbl { font-size: .71rem; color: var(--muted); white-space: nowrap; }
hr.div { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* roster */
.rc { text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.2; }
.rc small { display: block; font-weight: 500; font-size: .66rem; }
.rc-ok { background: #d4edda !important; color: #145220; }
.rc-pend { background: #fff3cd !important; color: #7a5800; }
.rc-rej { background: #f8d7da !important; color: #6e1a1a; }
.rc-none { background: var(--surface2) !important; color: #b8c0cc; }

/* capacity bar (overzicht per kamp) */
.cap-ok { color: var(--green); font-weight: 700; }
.cap-low { color: var(--red); font-weight: 700; }
.cap-full { color: var(--accent); font-weight: 700; }

/* alerts, toast, loading, empty */
.alert { padding: 11px 15px; border-radius: 7px; font-size: .87rem; margin-bottom: 15px; }
.alert-ok { background: #d4edda; color: #145220; border: 1px solid #b8ddc4; }
.alert-err { background: #f8d7da; color: #6e1a1a; border: 1px solid #f1b8bb; }
.alert-warn { background: #fff3cd; color: #6a4b00; border: 1px solid #ecd68a; }
.toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 9px; font-size: .88rem; font-weight: 500; box-shadow: var(--sh-lg); z-index: 999; opacity: 0; transform: translateY(8px); transition: all .3s; max-width: 360px; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: var(--green); color: #fff; } .toast-err { background: var(--red); color: #fff; }
.loading { display: flex; align-items: center; justify-content: center; padding: 40px 20px; gap: 10px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-icon { font-size: 2.3rem; margin-bottom: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.dot-ok { background: var(--green); } .dot-pend { background: var(--yellow); }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 34px; width: 100%; max-width: 400px; box-shadow: var(--sh-lg); }
.login-card h1 { font-size: 1.25rem; margin-bottom: 4px; text-align: center; }
.login-card .sub { color: var(--muted); font-size: .86rem; margin-bottom: 20px; text-align: center; }
.login-icon { font-size: 2.4rem; text-align: center; margin-bottom: 10px; }
.link-btn { background: none; border: none; color: var(--accent); font-family: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; padding: 0; }

.site-footer { text-align: center; padding: 20px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 40px; }
.site-footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 720px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .page-wrap { padding: 16px 14px 48px; }
  h1 { font-size: 1.35rem; }
  .header-nav { width: 100%; }
}
@media print {
  .site-header, .btn-grp, .tabs, .search-row, .btn, .toast { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ── STARTPAGINA ── */
.home-wrap { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 60px; }
.home-intro { text-align: center; max-width: 520px; margin-bottom: 44px; }
.home-intro h1 { font-size: 2rem; margin-bottom: 10px; }
.home-intro p { color: var(--muted); font-size: .95rem; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; width: 100%; max-width: 900px; }
.home-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--text); box-shadow: var(--sh); transition: border-color .18s, box-shadow .18s, transform .18s; display: flex; flex-direction: column; gap: 10px; }
.home-card:hover { border-color: var(--accent); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.home-card-icon { font-size: 2rem; line-height: 1; }
.home-card h2 { font-size: 1rem; font-weight: 700; color: var(--accent); margin: 0; }
.home-card p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.card-tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 4px; width: fit-content; }
.tag-open { background: #d4edda; color: #145220; }
.tag-login { background: var(--accent-l); color: var(--accent); }
.home-footer { margin-top: 48px; font-size: .78rem; color: var(--muted); text-align: center; }
.home-footer a { color: var(--muted); }

/* ── LOCATIES RESERVEREN ── */
.grid-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); box-shadow: var(--sh); }
.grid-table { border-collapse: collapse; min-width: 860px; width: 100%; font-size: .78rem; background: var(--surface); }
.grid-table th, .grid-table td { border: 1px solid var(--border); padding: 5px 7px; text-align: center; vertical-align: middle; }
.grid-table .terrein-col { text-align: left; min-width: 185px; font-weight: 500; background: var(--surface2); position: sticky; left: 0; z-index: 2; border-right: 2px solid var(--border); font-size: .8rem; }
.grid-table .day-header { background: var(--accent); color: #fff; font-family: 'Syne', sans-serif; font-size: .8rem; }
.grid-table .dd-header { background: var(--surface2); font-weight: 600; font-size: .74rem; color: var(--muted); }
.grid-table .dd-vm { background: #ede0e9; color: var(--accent); }
.grid-table .dd-nm { background: #efedc8; color: #7a6e00; }
.cell-free { background: #f4fcf7; cursor: pointer; transition: background .15s; }
.cell-free:hover { background: #c8ecd5; }
.cell-own { background: var(--accent-l); cursor: pointer; transition: background .15s; }
.cell-own:hover { background: #f0cfe0; }
.cell-taken { background: #fdf4f4; }
.cell-btn { background: none; border: none; cursor: pointer; padding: 3px 4px; width: 100%; min-height: 36px; line-height: 1.3; font-family: inherit; }
.cell-free .cell-btn { color: var(--green); font-size: 1.1rem; }
.cell-own .cell-btn { color: var(--accent); font-weight: 600; font-size: .74rem; }
.cell-taken-label { color: var(--red); font-size: .72rem; line-height: 1.3; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px; }
.cell-taken-label .sym { font-size: 1.1rem; }
.cell-taken-label .kmp { font-size: .62rem; opacity: .8; line-height: 1.1; }
.info-bar { background: var(--accent-l); color: var(--accent); border-radius: var(--radius); padding: 10px 16px; font-size: .83rem; margin-bottom: 18px; }
