/* Hand-drawn look: thick marker lines, slightly crooked corners, colours taken
   from the children's drawings. Dark background with light text.
   System fonts only (nothing is downloaded). */

:root {
  --paars: #8a2a90;           /* header, solid */
  --paars-rand: #5e1b63;
  --blauw-menu: #0f1f66;      /* menu column, solid and dark */
  --blauw-rand: #060f3a;
  --blauw-fel: #4a6bff;       /* borders and details that must show on black */
  --oranje: #f26a0f;
  --lichtblauw: #8ec9ee;      /* titles and links on a dark background */
  --lichtblauw-zacht: #cfe9f9;
  --lila: #e3a6ea;
  --achtergrond: #07070b;     /* main area */
  --paneel: #14141f;          /* cards and boxes */
  --tekst: #f2f2f7;
  --tekst-zacht: #b9b9cc;
  --inkt: #1b1b3a;            /* dark text on orange or light blue */
  --scheef: 14px 28px 12px 26px / 26px 12px 28px 14px;
  --scheef-b: 26px 12px 28px 14px / 12px 28px 14px 26px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--achtergrond);
  color: var(--tekst);
  font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", "Comic Neue", cursive;
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: var(--lichtblauw); }
a:hover { color: #ffb27a; }

:focus-visible { outline: 4px solid #ffb27a; outline-offset: 3px; }

/* ---------- Header (logo and title centred) ---------- */
.kop {
  background: var(--paars);
  border-bottom: 6px solid var(--paars-rand);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.kop .logo { width: 84px; height: auto; flex: none; }
.kop .titel {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 3px 3px 0 var(--oranje), 6px 6px 0 var(--blauw-menu);
  transform: rotate(-1.5deg);
}
.kop .titel a { color: inherit; text-decoration: none; }

/* ---------- Layout: menu on the left ---------- */
.inhoud {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  min-height: 60vh;
}

/* The column is full height; the links stay pinned at the top while scrolling. */
.menu {
  background: var(--blauw-menu);
  border-right: 6px solid var(--blauw-rand);
  padding: 16px 12px;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 16px;
}
.menu a {
  display: block;
  padding: 8px 12px;
  background: var(--achtergrond);
  border: 4px solid var(--lichtblauw);
  border-radius: var(--scheef);
  color: var(--lichtblauw-zacht);
  text-decoration: none;
  font-weight: 700;
}
.menu a:hover { background: var(--paneel); color: #fff; transform: rotate(-1deg); }
.menu a[aria-current="page"] { background: var(--oranje); color: var(--inkt); border-color: var(--lichtblauw-zacht); }

main { padding: 20px clamp(12px, 3vw, 32px) 32px; max-width: 920px; }
main h1 { margin-top: 0; color: var(--lichtblauw); }
main h2 { color: var(--lila); margin-top: 1.6em; }

/* ---------- Card list ---------- */
.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }

.kaart {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--paneel);
  border: 5px solid var(--blauw-fel);
  border-radius: var(--scheef);
  box-shadow: 6px 6px 0 var(--blauw-menu);
}
.kaart:nth-child(even) { border-radius: var(--scheef-b); }

.kaart .foto {
  width: 130px;
  height: 182px;
  object-fit: contain;
  background: var(--lichtblauw-zacht);
  border: 4px solid var(--tekst);
  border-radius: 10px 6px 12px 6px;
}
.kaart h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--lichtblauw); }
.kaart .details { margin: 0 0 6px; color: var(--tekst-zacht); font-size: .95rem; }
.kaart .labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.label {
  display: inline-block;
  padding: 2px 10px;
  border: 3px solid var(--lichtblauw);
  border-radius: var(--scheef);
  background: var(--blauw-menu);
  color: var(--tekst);
  font-size: .9rem;
}
.label.voorraad { background: #123a14; border-color: #5fd35f; color: #d7f5c9; }
.label.uitverkocht { background: #4a1e08; border-color: var(--oranje); color: #ffc9a3; font-weight: 700; }

.kaart .koop { display: grid; gap: 8px; justify-items: end; text-align: right; }
.prijs { font-size: 1.7rem; font-weight: 700; color: #fff; }

.kaart.is-uitverkocht .foto { filter: grayscale(1); opacity: .55; }
.kaart.is-uitverkocht .prijs { text-decoration: line-through; color: var(--tekst-zacht); }
.stempel {
  position: absolute;
  top: 38%;
  left: 40px;
  transform: rotate(-12deg);
  padding: 4px 14px;
  border: 5px solid var(--oranje);
  border-radius: var(--scheef);
  color: #ff9b57;
  background: rgba(7, 7, 11, .9);
  font-size: 1.5rem;
  font-weight: 700;
  pointer-events: none;
}
.voorbeeldlint {
  position: absolute;
  top: -14px;
  right: 14px;
  padding: 2px 12px;
  background: var(--paars);
  color: #fff;
  border: 3px solid var(--lila);
  border-radius: var(--scheef);
  font-size: .9rem;
  transform: rotate(3deg);
}

/* ---------- Buttons and fields ---------- */
.knop, button {
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  background: var(--oranje);
  color: var(--inkt);
  border: 4px solid var(--lichtblauw-zacht);
  border-radius: var(--scheef);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--blauw-fel);
  text-decoration: none;
  display: inline-block;
}
.knop:hover, button:hover { background: #ff8533; color: var(--inkt); transform: translate(-1px, -1px); }
button.secundair, .knop.secundair { background: var(--lichtblauw); }
button.gevaar { background: #ffb59b; border-color: #ffd9c2; box-shadow: 3px 3px 0 #b3300a; }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

select, input[type="text"], input[type="number"], input[type="file"], textarea {
  font: inherit;
  padding: 6px 10px;
  border: 3px solid var(--lichtblauw);
  border-radius: var(--scheef);
  background: var(--achtergrond);
  color: var(--tekst);
  max-width: 100%;
}
label { font-weight: 700; display: block; margin-bottom: 4px; }

/* ---------- Text blocks ---------- */
.notitie {
  padding: 10px 14px;
  background: var(--blauw-menu);
  border: 4px solid var(--blauw-fel);
  border-radius: var(--scheef);
}
.concept-melding {
  padding: 10px 14px;
  background: #3a3000;
  color: #ffe680;
  border: 4px dashed var(--oranje);
  border-radius: var(--scheef);
  font-weight: 700;
}
.fout {
  padding: 10px 14px;
  background: #4a1608;
  color: #ffd0bd;
  border: 4px solid #ff7a4d;
  border-radius: var(--scheef);
  font-weight: 700;
}
.verzendopties {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--blauw-menu);
  border: 4px solid var(--blauw-fel);
  border-radius: var(--scheef);
}
.stappen { padding-left: 1.4em; }
.stappen li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.voet {
  border-top: 6px solid var(--paars);
  background: var(--paneel);
  color: var(--tekst-zacht);
  padding: 14px 16px 22px;
  font-size: .92rem;
}
.voet p { margin: 4px 0; max-width: 900px; }
.voet ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .inhoud { grid-template-columns: minmax(0, 1fr); }
  select { width: 100%; }
  /* On mobile the menu is a strip that stays pinned at the top while scrolling. */
  .menu {
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 0;
    border-bottom: 6px solid var(--blauw-rand);
    padding: 8px 10px;
  }
  .menu ul { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .menu a { padding: 4px 10px; font-size: .9rem; border-width: 3px; }
  .kop .logo { width: 64px; }
  .kaart { grid-template-columns: 96px minmax(0, 1fr); }
  .kaart .foto { width: 96px; height: 134px; }
  .kaart .koop { grid-column: 1 / -1; justify-items: stretch; text-align: left; grid-template-columns: 1fr auto; align-items: center; }
  .stempel { left: 16px; top: 28%; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu a:hover, .knop:hover, button:hover { transform: none; }
}

/* ---------- Admin (beheer) ---------- */
.beheer-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.beheer-artikel {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--paneel);
  border: 5px solid var(--blauw-fel);
  border-radius: var(--scheef);
}
.beheer-artikel img { width: 80px; height: 112px; object-fit: contain; background: var(--lichtblauw-zacht); border: 3px solid var(--tekst); border-radius: 8px; }
.beheer-artikel h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--lichtblauw); }
.beheer-acties { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.aantal-knoppen { display: inline-flex; align-items: center; gap: 8px; }
.aantal-knoppen output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.3rem; }
.formulier { display: grid; gap: 14px; padding: 16px; background: var(--paneel); border: 5px solid var(--oranje); border-radius: var(--scheef); margin-bottom: 24px; }
.formulier .rij { display: grid; gap: 4px; }
.formulier img.voorvertoning { max-width: 120px; max-height: 168px; border: 3px solid var(--tekst); border-radius: 8px; background: var(--lichtblauw-zacht); }
