/* TV Compound — basisstijl. Mobiel eerst, grote aanraakdoelen, geen externe bronnen. */
:root {
    --kleur-tekst: #111827;
    --kleur-achtergrond: #f3f4f6;
    --kleur-vlak: #ffffff;
    --kleur-merk: #14532d;
    --kleur-accent: #166534;
    --kleur-rand: #d1d5db;
    --kleur-waarschuwing: #92400e;
    --kleur-waarschuwing-vlak: #fef3c7;
    font-size: 106.25%;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--kleur-tekst);
    background: var(--kleur-achtergrond);
}

.overslaan { position: absolute; left: -9999px; }
.overslaan:focus { left: 1rem; top: 1rem; background: var(--kleur-vlak); padding: .5rem 1rem; z-index: 10; }

.kop {
    background: var(--kleur-merk);
    color: #fff;
    padding: .75rem 1rem;
}
.merk { font-weight: 700; letter-spacing: .02em; }

.inhoud { max-width: 48rem; margin: 0 auto; padding: 1rem; }

.kaart {
    background: var(--kleur-vlak);
    border: 1px solid var(--kleur-rand);
    border-radius: .75rem;
    padding: 1.25rem;
}

h1 { font-size: 1.6rem; margin: 0 0 .5rem; }

.melding {
    background: var(--kleur-waarschuwing-vlak);
    color: var(--kleur-waarschuwing);
    border-radius: .5rem;
    padding: .75rem 1rem;
}

a { color: var(--kleur-accent); }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* Kop en navigatie */
.kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.kop a, .kop .knop-link { color: #fff; }
.merk { text-decoration: none; }
.kopnav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.kopnav a { padding: .5rem 0; }
.inline { display: inline; }

/* Formulieren en knoppen: grote aanraakdoelen */
.smal { max-width: 28rem; margin: 1rem auto; }
.formulier { display: grid; gap: .5rem; }
.formulier label { font-weight: 600; }
.formulier .vink { font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=datetime-local] {
    font: inherit; width: 100%; min-height: 3rem; padding: .5rem .75rem;
    border: 1px solid #9ca3af; border-radius: .5rem; background: #fff;
}
input[aria-invalid=true] { border-color: #b91c1c; }
.vink { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; }
.vink input { width: 1.4rem; height: 1.4rem; }
.ingesprongen { margin-left: 2rem; }
.knop {
    display: inline-block; font: inherit; font-weight: 600; min-height: 3rem; padding: .7rem 1.2rem;
    color: #fff; background: var(--kleur-accent); border: 0; border-radius: .5rem; cursor: pointer; text-decoration: none;
}
.knop-link { font: inherit; background: none; border: 0; padding: .5rem 0; color: var(--kleur-accent); text-decoration: underline; cursor: pointer; }
.gevaar { color: #b91c1c; }
.knop.gevaar { background: #b91c1c; color: #fff; }
.veldfout, .fout { color: #b91c1c; }
.fout { background: #fee2e2; border-radius: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; }
.klein { font-size: .875rem; color: #4b5563; }
.sub { display: block; color: #4b5563; font-size: .95rem; }
.label { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 1rem; background: #dcfce7; color: var(--kleur-merk); vertical-align: middle; }
fieldset { border: 1px solid var(--kleur-rand); border-radius: .5rem; padding: .75rem; }
.tweekolom { display: grid; gap: .5rem; }
@media (min-width: 40rem) { .tweekolom { grid-template-columns: 1fr 1fr; } }

/* Gids */
.zoeken { margin-bottom: 1rem; }
.zoekregel { display: flex; gap: .5rem; }
.lijst { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.lijstlink { display: block; padding: 1rem; background: var(--kleur-vlak); border: 1px solid var(--kleur-rand); border-radius: .75rem; text-decoration: none; color: inherit; }
.stadionkop h1 { margin-bottom: .25rem; }
.actief { font-size: 1.1rem; }
.varianten { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.variantknop { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 1rem; border: 2px solid var(--kleur-accent); border-radius: 2rem; text-decoration: none; font-weight: 600; }
.variantknop[aria-current=page] { background: var(--kleur-accent); color: #fff; }
.waarschuwing { margin: 1rem 0; padding: .75rem 1rem; border-left: 6px solid #d97706; background: var(--kleur-waarschuwing-vlak); border-radius: .5rem; }
.rubrieken { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 1rem 0; }
.rubrieken a { padding: .4rem 0; }
.sectie { margin: 1rem 0; scroll-margin-top: 1rem; }
.sectie h2 { margin-top: 0; }
.opmaak table { border-collapse: collapse; width: 100%; }
.opmaak th, .opmaak td, table th, table td { border: 1px solid var(--kleur-rand); padding: .4rem .5rem; text-align: left; vertical-align: top; }
.media { list-style: none; padding: 0; display: grid; gap: .75rem; }
.media figure { margin: 0; }
.media figcaption { font-size: .9rem; color: #4b5563; }
code { overflow-wrap: anywhere; }

/* Beheer */
.tegels { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.getal { display: block; font-size: 2rem; font-weight: 700; }
.tabelrol { overflow-x: auto; background: var(--kleur-vlak); }
table { border-collapse: collapse; width: 100%; }
.acties { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
tr.ingetrokken { color: #6b7280; }
.noodknop { margin-top: 2rem; }
.grootcode { font-size: 1.5rem; }
.codes { columns: 2; font-size: 1.1rem; }
.qr { background: #fff; padding: .5rem; }
.sleutel { letter-spacing: .05em; }

/* Tabellen als gestapelde kaarten op smalle schermen */
@media (max-width: 40rem) {
    table.stapel thead { position: absolute; left: -9999px; }
    table.stapel, table.stapel tbody, table.stapel tr, table.stapel td { display: block; width: 100%; }
    table.stapel tr { border: 1px solid var(--kleur-rand); border-radius: .75rem; margin-bottom: .75rem; padding: .5rem .75rem; background: var(--kleur-vlak); }
    table.stapel td { border: 0; padding: .25rem 0; }
    table.stapel td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: #4b5563; }
    .tabelrol { background: none; }
}

/* Meldformulier */
textarea, select { font: inherit; width: 100%; padding: .5rem .75rem; border: 1px solid #9ca3af; border-radius: .5rem; background: #fff; }
select { min-height: 3rem; }
input[type=date] { font: inherit; min-height: 3rem; padding: .5rem .75rem; border: 1px solid #9ca3af; border-radius: .5rem; }
.knop.secundair { background: #fff; color: var(--kleur-accent); border: 2px solid var(--kleur-accent); }
.knop:disabled { opacity: .6; cursor: wait; }
.fotoknoppen { display: flex; flex-wrap: wrap; gap: .5rem; }
.verborgen-invoer { position: absolute; width: 1px; height: 1px; opacity: 0; }
.knop:focus-within { outline: 3px solid #2563eb; outline-offset: 2px; }
.fotolijst { list-style: none; padding: 0; display: grid; gap: .75rem; }
.fotoitem { display: grid; gap: .25rem; padding: .5rem; border: 1px solid var(--kleur-rand); border-radius: .5rem; }
.fotoitem.mislukt { border-color: #b91c1c; background: #fef2f2; }
.fotoitem .voorbeeld { max-height: 8rem; width: auto; border-radius: .25rem; }
.fotoitem progress { width: 100%; }
.fotonaam { overflow-wrap: anywhere; font-size: .9rem; }
.fotoacties { display: flex; gap: 1rem; }
.privacy summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.meldlink { font-size: .95rem; }

/* Beheer: meldingen en redactie */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: .9rem; }
.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0 0 1rem; }
.gegevens dt { font-weight: 600; }
.gegevens dd { margin: 0; }
.toelichting { white-space: pre-wrap; }
.fotokeuze { border: 1px solid #d1d5db; border-radius: .5rem; margin: .5rem 0; padding: .5rem; }
.fotokeuze img { vertical-align: middle; border-radius: .25rem; }
.paginering { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }
.label.status-nieuw { background: #fef3c7; }
.label.status-in_beoordeling, .label.status-wacht_op_informatie { background: #dbeafe; }
.label.status-verwerkt { background: #dcfce7; }
.label.status-afgewezen { background: #f3f4f6; }
.editorbalk { display: flex; flex-wrap: wrap; gap: .25rem .75rem; padding: .4rem .5rem; border: 1px solid #d1d5db; border-bottom: 0; border-radius: .5rem .5rem 0 0; background: #f9fafb; }
.editorvlak { min-height: 12rem; padding: .75rem; border: 1px solid #d1d5db; border-radius: 0 0 .5rem .5rem; background: #fff; }
.editorvlak:focus { outline: 3px solid #86efac; }
.editor textarea { width: 100%; font-family: monospace; }
.conceptmedia { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.conceptmedia img { max-width: 100%; height: auto; border-radius: .25rem; }
.meldingnaast { border-left: 4px solid #f59e0b; }
.knoppen { display: flex; flex-wrap: wrap; gap: .5rem; }
details.kaart summary { cursor: pointer; }
.conceptmedia label { display: block; margin-top: .5rem; }
.conceptmedia img { display: block; }
.inline-figuur { margin: .75rem 0; }
.inline-figuur img { max-width: 100%; height: auto; border-radius: .5rem; display: block; }
.editorvlak figure { margin: .5rem 0; outline: 1px dashed #9ca3af; display: inline-block; }
.editorvlak figure img { max-width: 240px; height: auto; display: block; }
