/* Bobbejaan — Aardvark-palet: #081F30 + oranje #F7931E (Kontoer v2), groen/rooi vir stand */
:root {
  --kop: #081F30;
  --oranje: #F7931E;
  --oranje-lig: #FFF1E0;
  --groen: #16A34A;
  --rooi: #DC2626;
  --grond: #F3F5F7;
  --paneel: #FFFFFF;
  --ink: #0F1B26;
  --sag: #5B6B7A;
  --lyn: #DCE2E8;
  --rond: 12px;
  --veilig-bo: env(safe-area-inset-top, 0px);
  --veilig-onder: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--grond); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
button { font: inherit; color: inherit; }
svg.ik { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* kopstrook */
#kop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  min-height: calc(56px + var(--veilig-bo)); padding: var(--veilig-bo) 8px 0 8px; background: var(--kop); color: #fff; }
#titel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#titelNaam { font-weight: 650; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#titelSub { font-size: 12.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#titelSub:empty { display: none; }
#logo { margin-left: 4px; }
#kopRegs { display: flex; align-items: center; gap: 4px; }
.ikoonknop { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
#kop .ikoonknop:active { background: rgba(255,255,255,.12); }
.kol { width: 10px; height: 10px; border-radius: 50%; background: #64748B; margin: 0 6px; }
.kol.aan { background: #22C55E; }
.kol.af { background: var(--rooi); }

main { max-width: 760px; margin: 0 auto; padding: 12px 12px calc(16px + var(--veilig-onder)); }

/* kaarte en lyste */
.blok { background: var(--paneel); border: 1px solid var(--lyn); border-radius: var(--rond); margin-bottom: 12px; overflow: hidden; }
.blok h2 { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--sag);
  margin: 0; padding: 12px 14px 6px; }
.ry { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; border-top: 1px solid var(--lyn);
  background: transparent; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; cursor: pointer; }
.blok h2 + .ry, .blok .ry:first-child { border-top: 0; }
.ry:active { background: #EEF2F5; }
.ry .merk { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--kop); color: var(--oranje); flex: none; }
.ry .merk.mens { border-radius: 50%; background: #E8EDF2; color: var(--kop); font-weight: 700; }
.ry .lyf { flex: 1; min-width: 0; }
.ry .naam { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry .voor { font-size: 14px; color: var(--sag); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.getal { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--oranje); color: var(--kop);
  font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.luisterknop { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--lyn); background: #fff; color: var(--sag);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.luisterknop.aan { background: var(--kop); color: var(--oranje); border-color: var(--kop); }

.soek { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--lyn); border-radius: var(--rond);
  padding: 0 12px; margin-bottom: 12px; min-height: 46px; color: var(--sag); }
.soek input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; min-height: 44px; color: var(--ink); }

/* radio-stand */
.radio { display: flex; align-items: center; gap: 12px; padding: 14px; }
.radio .lyf { flex: 1; }
.radio .hoof { font-weight: 650; }
.radio .sub { font-size: 14px; color: var(--sag); }
.skakel { position: relative; width: 56px; height: 32px; border-radius: 16px; background: #CBD5E1; border: 0; cursor: pointer; flex: none; }
.skakel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .15s; }
.skakel.aan { background: var(--groen); }
.skakel.aan::after { left: 27px; }
.waarsku { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #FFF7ED; border-top: 1px solid #FED7AA; font-size: 14px; }
.waarsku button { margin-left: auto; }

/* knoppies */
.knop { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--lyn); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.knop.hoof { background: var(--kop); color: #fff; border-color: var(--kop); }
.knop.oranje { background: var(--oranje); color: var(--kop); border-color: var(--oranje); }
.knop:disabled { opacity: .5; }
.knoprye { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }

/* gesprek */
body.gesprek main { padding-bottom: calc(150px + var(--veilig-onder)); }
#boodskappe { display: flex; flex-direction: column; gap: 8px; }
.dag { align-self: center; font-size: 12.5px; color: var(--sag); background: #E6EBF0; border-radius: 8px; padding: 3px 10px; margin: 6px 0; }
.bel { max-width: 86%; align-self: flex-start; background: #fff; border: 1px solid var(--lyn); border-radius: 14px 14px 14px 4px; padding: 8px 10px; }
.bel.myne { align-self: flex-end; background: var(--oranje-lig); border-color: #FAD7A8; border-radius: 14px 14px 4px 14px; }
.bel.speel { outline: 2px solid var(--oranje); }
.bel .wie { font-size: 13px; font-weight: 650; color: #B45309; margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.bel .tyd { font-size: 11.5px; color: var(--sag); text-align: right; margin-top: 2px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.bel .teks { white-space: pre-wrap; word-wrap: break-word; }
.bel .uitskrif { font-size: 14.5px; color: #334155; margin-top: 6px; white-space: pre-wrap; }
.bel .uitskrif.wag { color: var(--sag); font-style: italic; }
.speler { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.speelknop { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--kop); color: var(--oranje); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.speelknop:disabled { background: #94A3B8; color: #fff; }
.balk { flex: 1; height: 6px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.balk i { display: block; height: 100%; width: 0; background: var(--oranje); }
.duur { font-size: 13px; color: var(--sag); min-width: 36px; text-align: right; }
.kimerk { font-size: 12px; color: var(--sag); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.kimerk svg.ik { width: 14px; height: 14px; }
.meer { align-self: center; }

/* onderbalk: druk-en-praat + teks */
#praat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--paneel); border-top: 1px solid var(--lyn);
  padding: 10px 12px calc(10px + var(--veilig-onder)); }
#praat .binne { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.tiklyn { display: flex; gap: 8px; }
.tiklyn textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1px solid var(--lyn); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 16px; }
#ptt { width: 100%; min-height: 64px; border-radius: 14px; border: 0; background: var(--kop); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
#ptt svg.ik { width: 26px; height: 26px; color: var(--oranje); }
#ptt.op { background: var(--rooi); }
#ptt.op svg.ik { color: #fff; }
#ptt:disabled { opacity: .6; }

/* vorms */
.veld { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px; }
.veld label { font-size: 13.5px; color: var(--sag); font-weight: 600; }
.veld input, .veld select { min-height: 44px; border: 1px solid var(--lyn); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.kleure { display: flex; gap: 8px; padding: 4px 14px 8px; }
.kleure button { width: 44px; height: 44px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; }
.kleure button.gekies { border-color: var(--kop); }
.lid { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; }
.lid input { width: 22px; height: 22px; }
.kode { font: 700 30px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .18em; text-align: center; padding: 14px; color: var(--kop); }
.leeg { text-align: center; color: var(--sag); padding: 28px 14px; }
.klein { font-size: 13.5px; color: var(--sag); padding: 0 14px 12px; }

/* koppel */
.koppel { text-align: center; padding: 24px 8px; }
.koppel img { width: 96px; height: 96px; border-radius: 22px; }
.koppel h1 { font-size: 24px; margin: 14px 0 4px; }
.koppel p { color: var(--sag); margin: 0 0 18px; }
.koppel input { width: 100%; max-width: 280px; min-height: 56px; text-align: center; font: 700 26px ui-monospace, Consolas, monospace;
  letter-spacing: .2em; text-transform: uppercase; border: 2px solid var(--lyn); border-radius: 12px; }
.koppel .knop { margin-top: 14px; min-width: 200px; }
.fout { color: var(--rooi); font-size: 14px; min-height: 20px; margin-top: 8px; }

.draai { animation: draai 1s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  main { padding-top: 20px; }
}
