[hidden] { display: none !important; }
/* Layout: één telefoonkolom met vaste tabbalk onderin; op desktop gecentreerd als app-scherm */
:root {
  --bg: #f1f2f7;
  --surface: #ffffff;
  --ink: #1a1652;
  --muted: #5c5f7d;
  --line: #dcdde8;
  --red: #d8342e;
  --on-red: #ffffff;
  --navy: #12104a;
  --silver: #b9bccb;
  --accent: #d8342e;
  --ok: #1d7a46;
  --t-heren: #d8342e;
  --t-u15: #1f4fa3;
  --t-u12: #13806f;
  --t-bee: #b7860b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0a2c; --surface: #17154a; --ink: #eceefa; --muted: #a3a6c4; --line: #2a2766;
  --red: #ee4a43; --on-red: #ffffff; --navy: #12104a; --accent: #ff7a73; --ok: #5fd18f; --t-heren: #ff6b64; --t-u15: #7fa8ff; --t-u12: #4fd1b8; --t-bee: #f2c14e; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0b0a2c; --surface: #17154a; --ink: #eceefa; --muted: #a3a6c4; --line: #2a2766;
  --red: #ee4a43; --on-red: #ffffff; --navy: #12104a; --accent: #ff7a73; --ok: #5fd18f; --t-heren: #ff6b64; --t-u15: #7fa8ff; --t-u12: #4fd1b8; --t-bee: #f2c14e; color-scheme: dark }

* { box-sizing: border-box }
html, body { height: 100% }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
.app { max-width: 460px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { background: var(--navy); color: #fff; padding-block: 18px 20px; position: relative; overflow: hidden; border-bottom: 5px solid var(--red); }
header.top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed rgba(216,52,46,.55); pointer-events: none; }
header.top .brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.logo { width: 76px; height: auto; flex: none; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 0 0 3px var(--red); }
header.top h1 { font: 900 30px/1 var(--display); letter-spacing: .5px; margin: 0; text-transform: uppercase; }
header.top .kopregel { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
header.top .kopregel .demo { margin-top: 0; }
header.top .socials { display: flex; gap: 8px; }
header.top .socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; }
header.top .socials a:hover, header.top .socials a:focus-visible { background: var(--red); border-color: var(--red); }
header.top .socials svg { width: 18px; height: 18px; }
header.top .sub { font-size: 13px; opacity: .8; margin-top: 2px; }
.demo { position: relative; z-index: 1; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; background: var(--red); color: var(--on-red); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }

main { flex: 1; padding-block: 18px 110px; display: flex; flex-direction: column; gap: 18px; }
h2 { font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .6px; margin: 0; text-wrap: balance; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small { font-size: 13px; color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.date { text-align: center; border-radius: 10px; background: var(--navy); color: #fff; padding-block: 6px; font-variant-numeric: tabular-nums; }
.date b { display: block; font: 900 24px/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.date b.lang { font-size: 18px; }
.date span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); font-weight: 600; }
.item h3 { margin: 0 0 2px; font-size: 16px; }
.item p { margin: 0; color: var(--muted); font-size: 14px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.wie { border-color: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

button, .btn { font: 600 14px var(--body); border-radius: 10px; padding: 9px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button.primary, a.btn.primary { background: var(--red); color: var(--on-red); border-color: transparent; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: not-allowed; }
button.done { background: transparent; color: var(--ok); border-color: var(--ok); }

.slots { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }

.takenlijst { border-top: 5px solid var(--navy); }
.takenlijst.ac { border-top-color: var(--red); }
.takenlijst h3 { margin: 0; font-size: 18px; }
.waarschuwing { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(216, 52, 46, .10); border: 1px solid rgba(216, 52, 46, .30); color: var(--ink); }
.taak { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.taak input[type=checkbox] { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--red); flex: none; }
.taak .wat { flex: 1; min-width: 0; }
.taak .meta { font-size: 12.5px; color: var(--muted); }
.taak .meta.laat { color: var(--red); font-weight: 600; }
.taak.klaar .titel { text-decoration: line-through; color: var(--muted); }
.taak button.weg { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; cursor: pointer; }
.takenform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.takenform .vol { grid-column: 1 / -1; }
.takenform input { min-width: 0; width: 100%; box-sizing: border-box; }
.slot .open { color: var(--muted); font-size: 13px; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--red); }

.news { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.news .kicker { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.news h3 { margin: 4px 0 6px; font-size: 17px; text-wrap: balance; }
.news p { margin: 0; color: var(--muted); font-size: 14px; }
.news .newsimg { display: block; width: calc(100% + 32px); margin: -16px -16px 12px; border-radius: 14px 14px 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
.news .newslink { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.news { overflow: hidden; }

.homeplate { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--navy); color: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.homeplate p { margin: 2px 0 0; opacity: .8; font-size: 13px; }
.homeplate a { background: var(--red); color: var(--on-red); border: none; }

.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
input, select { font: 15px var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.note { font-size: 12.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); background: var(--ok); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 30; }


.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 13px var(--body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.match .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.match .line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.match .line.u55 { font-weight: 700; }
.match .score { font: 900 22px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.badge.thuis { background: var(--red); color: var(--on-red); }
.badge.uit { border: 1px solid var(--line); color: var(--muted); }
.badge.res-w { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.res-l { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.badge.res-d, .badge.res-x { border: 1px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table.stand { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.stand th, table.stand td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.stand th:nth-child(2), table.stand td:nth-child(2) { text-align: left; white-space: normal; }
table.stand th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
table.stand tr.u55 td { font-weight: 700; background: color-mix(in srgb, var(--red) 10%, transparent); }
table.stand tr:last-child td { border-bottom: none; }
.bron { font-size: 12px; color: var(--muted); }

.weekend { background: var(--navy); color: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; border-left: 6px solid var(--red); }
.weekend h2 { color: #fff; }
.weekend .sub { font-size: 13px; color: var(--silver); }
.weekend .rij[class*="t-"] { border-left: 4px solid var(--tc); padding-left: 10px; margin-left: -4px; }
.weekend .rij { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); }
.weekend .tijd { font: 900 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.weekend .tijd span { display: block; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: 1px; color: var(--silver); margin-top: 3px; }
.weekend .wie { min-width: 0; }
.weekend .wie b { display: block; font-size: 15px; }
.weekend .wie small { color: var(--silver); font-size: 12.5px; }
.weekend.uit { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid var(--silver); }
.weekend.uit h2 { color: var(--ink); }
.weekend.uit .sub, .weekend.uit .tijd span, .weekend.uit .wie small { color: var(--muted); }
.weekend.uit .rij { border-top-color: var(--line); }
.match { border-left: 5px solid var(--tc, var(--line)); }
.match[class*="t-"] { background: var(--tcl); border-color: var(--tcm); border-left-color: var(--tc); }
.chip.t-heren, .chip.t-u15, .chip.t-u12 { background: var(--tcl); }
.table-wrap[class*="t-"] { border-top: 4px solid var(--tc); }
.table-wrap[class*="t-"] tr.u55 td { background: var(--tcm); }
.t-heren { --tc: var(--t-heren); --tcl: rgba(216, 52, 46, .10); --tcm: rgba(216, 52, 46, .18); }
.t-u15 { --tc: var(--t-u15); --tcl: rgba(31, 79, 163, .10); --tcm: rgba(31, 79, 163, .18); }
.t-u12 { --tc: var(--t-u12); --tcl: rgba(19, 128, 111, .10); --tcm: rgba(19, 128, 111, .18); }
.t-bee { --tc: var(--t-bee); --tcl: rgba(183, 134, 11, .12); --tcm: rgba(183, 134, 11, .20); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tilegroup h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
a.tile { display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy); color: var(--text); text-decoration: none; }
a.tile:active { transform: scale(.98); }
a.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a.tile svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
a.tile b { font-size: 15px; line-height: 1.25; }
a.tile span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
a.tile[class*="t-"] { background: var(--tcl); border-color: var(--tcm); border-top-color: var(--tc); }
a.tile[class*="t-"] svg { color: var(--tc); }
.tilefoot { font-size: 12.5px; color: var(--muted); text-align: center; }
.badge.team { background: var(--tcm); color: var(--tc); }
.chip.t-heren, .chip.t-u15, .chip.t-u12 { border-color: var(--tc); color: var(--tc); }
.chip[aria-pressed="true"].t-heren, .chip[aria-pressed="true"].t-u15, .chip[aria-pressed="true"].t-u12 { background: var(--tc); color: #fff; }
.weekend .wie .badge.team { vertical-align: 2px; }
.weekend:not(.uit) .badge.team { background: #fff; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
nav.tabs .inner { max-width: 460px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
nav.tabs button { border: none; background: none; border-radius: 0; flex-direction: column; gap: 2px; padding: 10px 4px 12px; color: var(--muted); font-size: 12px; justify-content: center; }
nav.tabs button svg { width: 22px; height: 22px; }
nav.tabs button[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--red); }
nav.tabs button[aria-current="page"] svg { color: var(--red); }
@media (prefers-reduced-motion: no-preference) { .view { animation: in .2s ease-out } @keyframes in { from { opacity: .4; transform: translateY(4px) } to { opacity: 1; transform: none } } }

/* Echte app: extra onderdelen */
.status { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.status.fout { border-color: var(--red); color: var(--ink); }
.login { display: flex; justify-content: center; }
.login button { font-size: 13px; background: none; border: none; color: var(--muted); text-decoration: underline; }
.leeg { font-size: 14px; color: var(--muted); margin: 0; }
.bezet { color: var(--muted); font-size: 13px; font-weight: 600; }
textarea { font: 15px var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }

.sponsor { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 14px; padding: 16px; }
.sponsor.actie { background: var(--red); color: #fff; border-color: var(--red); }
.sponsor .kicker { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.sponsor.actie .kicker { color: #fff; opacity: .85; }
.sponsor h3 { margin: 4px 0 6px; font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .4px; text-wrap: balance; }
.sponsor p { margin: 0; font-size: 14px; }
.sponsor.actie a.btn.primary { background: #fff; color: var(--red); }
.sponsor.actie a.btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

.install ol { margin: 4px 0 8px; padding-left: 20px; }
.install ol li { margin: 2px 0; }
.install p { margin: 6px 0; }
