@font-face {
  font-family: 'Bellota';
  src: url('../assets/Bellota-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Bellota';
  src: url('../assets/Bellota-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Hore';
  src: url('../assets/Hore.otf') format('opentype');
  font-weight: 400;
}

/*
  Kleursysteem: bright groen/oranje komen letterlijk uit de huisstijl (poster,
  merchandise) en zijn bedoeld voor vlakken/iconen/badges, niet voor tekst op wit -
  daar is het contrast te laag (getest: ~2.4-3.0:1, WCAG AA vereist 4.5:1 voor
  gewone tekst). De -donker varianten zijn dezelfde kleuren, verdiept tot ze wel
  voldoende contrast geven als tekstkleur op wit, of als vlak onder witte tekst.
*/
:root {
  --oranje: #f39200;
  --oranje-donker: #b35c00;
  --groen: #3aaa35;
  --groen-donker: #256b22;
  --wit: #ffffff;
  --tekst: #222222;
  --nood-rood: #e2231a;
  --nav-hoogte: 64px;
  --header-hoogte: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Bellota', sans-serif;
  color: var(--tekst);
  background: #f7f7f5;
  /* Geen ligaturen (bv. "ka", "ra" aan elkaar) - afgesproken huisstijlregel.
     Hore gebruikt kennelijk een feature die font-variant-ligatures niet raakt
     (vermoedelijk calt/rlig), dus expliciet alle ligatuur-achtige features uit. */
  font-variant-ligatures: none;
  -webkit-font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "hlig" 0, "clig" 0, "calt" 0, "rlig" 0;
}

h1, h2, h3, .titel-hore {
  font-family: 'Hore', 'Bellota', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-hoogte);
  background: var(--groen);
  color: var(--wit);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  z-index: 1000;
}
.app-header .logo {
  height: 40px;
  width: auto;
}
.header-titel {
  font-family: 'Hore', 'Bellota', sans-serif;
  font-size: 1.15rem;
  color: var(--oranje);
  text-shadow: none;
  -webkit-text-stroke: 3px var(--wit);
  paint-order: stroke fill;
}

main {
  position: absolute;
  top: var(--header-hoogte);
  bottom: var(--nav-hoogte);
  left: 0; right: 0;
  overflow: hidden;
}

.view {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 12px 14px;
}
.view-actief { display: block; }

#view-kaart.view-actief {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.route-kiezer {
  padding: 10px 14px;
  background: var(--wit);
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.route-kiezer select {
  flex: 1;
  min-width: 0;
  padding: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#kaart {
  flex: 1;
  width: 100%;
}

.locatie-status {
  padding: 6px 14px;
  font-size: 0.8rem;
  background: var(--wit);
  border-top: 1px solid #eee;
  color: #555;
}

h2 {
  color: var(--groen);
  margin-top: 4px;
  font-size: 1.3rem;
}
.uitleg { color: #555; font-size: 0.9rem; }

.lijst {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lijst li {
  background: var(--wit);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.lijst li .naam {
  font-weight: 700;
  color: var(--tekst);
}
.lijst li .tijd {
  color: var(--oranje-donker);
  font-weight: 700;
  margin-right: 8px;
}

.muziekpunt {
  padding: 0;
  overflow: hidden;
}
.muziekpunt-knop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  color: var(--tekst);
}
.muziekpunt-knop .naam { font-weight: 700; }
.muziekpunt-knop .chevron {
  color: var(--oranje-donker);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.muziekpunt.open .chevron {
  transform: rotate(180deg);
}
.muziekpunt-detail {
  padding: 0 12px 12px;
  color: #555;
  font-size: 0.9rem;
}
.muziekpunt-detail[hidden] {
  display: none;
}

.chat-berichten {
  height: calc(100% - 110px);
  overflow-y: auto;
  background: var(--wit);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
}
.chat-bericht {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #f0f0f0;
  max-width: 80%;
}
.chat-bericht.eigen {
  background: var(--groen-donker);
  color: white;
  margin-left: auto;
}
.chat-bericht.organisatie {
  background: var(--oranje);
  color: #201a12;
}
.chat-bericht .afzender {
  font-size: 0.75rem;
  font-weight: 700;
  display: block;
  opacity: 0.7;
}
.chat-form {
  display: flex;
  gap: 8px;
  /* Rechts ruimte vrijhouden zodat de "Versturen"-knop nooit onder de vaste
     noodknop (64px breed, 16px vanaf de rand) komt te zitten. */
  padding-right: 84px;
}
.chat-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 999px;
  padding-left: 16px;
  font-family: inherit;
}
.chat-form button {
  padding: 10px 18px;
  background: var(--groen-donker);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
}

.noodknop {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-hoogte) + 32px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nood-rood);
  color: white;
  border: 3px solid white;
  font-family: 'Hore', 'Bellota', sans-serif;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  z-index: 1100;
}

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--nav-hoogte);
  background: var(--wit);
  border-top: 1px solid #ddd;
  display: flex;
  z-index: 1000;
}
.nav-item {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: 'Hore', 'Bellota', sans-serif;
  font-size: 0.68rem;
  color: #888;
  padding: 6px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item.nav-actief {
  color: var(--groen-donker);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal.verborgen { display: none; }
.modal-inhoud {
  background: white;
  border-radius: 16px;
  padding: 20px;
  max-width: 340px;
}
.modal-inhoud h2 { margin-top: 0; }
.modal-nadruk {
  background: #fdecea;
  color: var(--nood-rood);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}
.modal-knoppen {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-knoppen button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
}
.knop-gevaar {
  background: var(--nood-rood);
  color: white;
}

.marker-muziek {
  background: var(--oranje);
  border-radius: 50%;
  border: 2px solid white;
  width: 14px;
  height: 14px;
}
