/* ============================================================
   Pinchhitters Klantportaal — stijl in lijn met de Taken-app
   ============================================================ */

:root {
  --pagina: #f4efe3;
  --kaart: #ffffff;
  --vlak: #faf7f0;
  --lijn: #e7e1d3;
  --navy: #1a2a4a;
  --ink: #1a2a4a;
  --muted: #5f6982;
  --muted2: #9aa3b5;
  --oranje: #e85d2d;
  --oranje-d: #cf4d20;
  --lime: #c8e66b;
  --lime-d: #b6d652;
  --pill-groen-bg: #e7f0d4;  --pill-groen: #5d8a2f;
  --pill-grijs-bg: #ebe7dd;  --pill-grijs: #9b9488;
  --pill-oranje-bg: #fae8d3; --pill-oranje: #c2691f;
  --r: 12px;
  --rs: 8px;
  --sans: 'Barlow', sans-serif;
  --display: 'Barlow Condensed', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pagina);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.verborgen { display: none !important; }

a { color: var(--navy); }

/* ---------- Knoppen ---------- */

.knop {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--rs);
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.knop:disabled { opacity: .5; cursor: default; }

.knop-primair { background: var(--oranje); color: #fff; }
.knop-primair:hover:not(:disabled) { background: var(--oranje-d); }

.knop-lime { background: var(--lime); color: var(--navy); }
.knop-lime:hover:not(:disabled) { background: var(--lime-d); }

.knop-ghost { background: transparent; color: var(--navy); border-color: var(--lijn); }
.knop-ghost:hover:not(:disabled) { border-color: var(--navy); }

.knop-klein { font-size: 13px; padding: 6px 12px; }

/* ---------- Status-pills ---------- */

.pill {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-groen  { background: var(--pill-groen-bg);  color: var(--pill-groen); }
.pill-grijs  { background: var(--pill-grijs-bg);  color: var(--pill-grijs); }
.pill-oranje { background: var(--pill-oranje-bg); color: var(--pill-oranje); }
.pill-navy   { background: var(--navy); color: #fff; }

/* ---------- Login ---------- */

.login-scherm {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--r);
  padding: 36px 32px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-kaart h1 { font-size: 26px; }
.login-kaart p { color: var(--muted); margin: 0 0 20px; }
.login-kaart form { display: flex; flex-direction: column; gap: 10px; }
.login-voet {
  margin: 24px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--lijn);
  font-size: 12.5px;
  color: var(--muted2) !important;
}
.login-melding {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--rs);
  font-size: 14px;
}
.login-melding.ok { background: var(--pill-groen-bg); color: var(--pill-groen); }
.login-melding.fout { background: var(--pill-oranje-bg); color: var(--pill-oranje); }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img { height: 30px; display: block; }
.logo .logo-tekst {
  display: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.login-kaart .logo { margin-bottom: 18px; }
.login-kaart .logo img { height: 40px; }

/* ---------- Formulieren ---------- */

input[type="email"], input[type="text"], textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--rs);
  padding: 10px 12px;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid rgba(232, 93, 45, .35); border-color: var(--oranje); }
textarea { resize: vertical; min-height: 70px; }

/* ---------- Shell: topbalk + tabs ---------- */

.topbalk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--kaart);
  border-bottom: 1px solid var(--lijn);
}
.topbalk-klant {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs a, .tabs button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tabs a.actief { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs button { margin-left: auto; color: var(--muted); }
.tabs button:hover { border-color: var(--navy); color: var(--navy); }

main { padding: 22px; max-width: 1080px; margin: 0 auto; }

/* ---------- Kaarten & sectiekoppen ---------- */

.kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 18px;
}
.sectiekop {
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--lijn);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.kaartkop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.kaartkop h2 { margin: 0; font-size: 19px; }
.leeg { color: var(--muted2); font-style: italic; }

/* ---------- Dashboard: statusbalk ---------- */

.statusbalk { display: flex; gap: 0; }
.stap { flex: 1; text-align: center; position: relative; }
.stap::before {
  content: '';
  position: absolute;
  top: 15px; left: -50%; right: 50%;
  height: 2px;
  background: var(--lijn);
}
.stap:first-child::before { display: none; }
.stap-bol {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  background: var(--pill-grijs-bg);
  color: var(--pill-grijs);
  border: 2px solid var(--pagina);
}
.stap-label {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
}
.stap.gedaan .stap-bol { background: var(--pill-groen-bg); color: var(--pill-groen); }
.stap.gedaan .stap-label { color: var(--pill-groen); }
.stap.huidig .stap-bol { background: var(--oranje); color: #fff; }
.stap.huidig .stap-label { color: var(--oranje-d); }

/* ---------- Dashboard: tegels & contact ---------- */

.tegels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tegel {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--r);
  padding: 16px;
  text-decoration: none;
  display: block;
  transition: border-color .15s;
}
.tegel:hover { border-color: var(--navy); }
.tegel h3 { font-size: 16px; margin-bottom: 8px; }
.tegel p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

.dash-rij { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-initiaal {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}
.contact-naam { font-weight: 500; }
.contact-rol { font-size: 13px; color: var(--muted); }
.contact-knoppen { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Voorstel ---------- */

.twee-kolom { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

.recap { list-style: none; margin: 0 0 16px; padding: 0; }
.recap li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--lijn);
  font-size: 14px;
}
.recap li:last-child { border-bottom: none; }
.recap .k { color: var(--muted); }
.recap .w { font-weight: 500; text-align: right; }

.bevestiging {
  background: var(--pill-groen-bg);
  color: var(--pill-groen);
  border-radius: var(--rs);
  padding: 12px 14px;
  font-size: 14px;
}
.bevestiging.oranje { background: var(--pill-oranje-bg); color: var(--pill-oranje); }

.pdf-embed { width: 100%; height: 480px; border: 1px solid var(--lijn); border-radius: var(--rs); }

.actie-stapel { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Assets ---------- */

.uploadzone {
  border: 2px dashed var(--lijn);
  border-radius: var(--r);
  background: var(--vlak);
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 18px;
}
.uploadzone.sleep { border-color: var(--oranje); background: var(--pill-oranje-bg); }
.uploadzone strong { color: var(--navy); }

.checklijst { list-style: none; margin: 0; padding: 0; }
.checklijst li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lijn);
}
.checklijst li:last-child { border-bottom: none; }
.vinkje {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.vinkje.aan { background: var(--pill-groen-bg); color: var(--pill-groen); }
.vinkje.uit { background: var(--pill-grijs-bg); color: var(--pill-grijs); }

.bestand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lijn);
}
.bestand:last-child { border-bottom: none; }
.bestand-info { flex: 1; min-width: 0; }
.bestand-naam { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bestand-meta { font-size: 12.5px; color: var(--muted2); }

/* ---------- Creatives ---------- */

.creatives-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.creative-kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.creative-preview {
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--rs);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  overflow: hidden;
}
.creative-preview img { max-width: 100%; max-height: 260px; display: block; }
.creative-preview iframe { width: 100%; height: 260px; border: 0; }
.creative-labels { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.creative-knoppen { display: flex; gap: 8px; }

.draadje { border-top: 1px solid var(--lijn); padding-top: 10px; }
.draadje-bericht {
  background: var(--vlak);
  border-radius: var(--rs);
  padding: 8px 10px;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.draadje-meta { font-size: 11.5px; color: var(--muted2); margin-top: 2px; }

/* ---------- Resultaten ---------- */

.periode { display: flex; gap: 8px; flex-wrap: wrap; }
.periode span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--lijn);
  background: var(--kaart);
  color: var(--muted);
}
.periode span.actief { background: var(--navy); border-color: var(--navy); color: #fff; }

.embed-wrap { position: relative; width: 100%; padding-top: 62%; }
.embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--lijn);
  border-radius: var(--rs);
}
.scoreboard-placeholder {
  background: var(--vlak);
  border: 2px dashed var(--lijn);
  border-radius: var(--r);
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.noot { font-size: 12.5px; color: var(--muted2); text-align: center; margin-top: 4px; }

/* ---------- Berichten ---------- */

.chat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.chat-lijst { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.ballon { max-width: 78%; padding: 10px 14px; border-radius: var(--r); font-size: 14.5px; }
.ballon.klant { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.ballon.ph { align-self: flex-start; background: var(--kaart); border: 1px solid var(--lijn); border-bottom-left-radius: 4px; }
.ballon-meta { font-size: 11.5px; margin-top: 4px; opacity: .65; }
.chat-invoer { display: flex; gap: 10px; align-items: flex-end; }
.chat-invoer textarea { flex: 1; min-height: 46px; }

/* ---------- Welkomstkaart ---------- */

.welkom-lijst { list-style: none; margin: 10px 0 0; padding: 0; }
.welkom-lijst li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; }
.welkom-lijst .stip { width: 8px; height: 8px; border-radius: 50%; background: var(--oranje); flex-shrink: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .tegels { grid-template-columns: repeat(2, 1fr); }
  .dash-rij, .twee-kolom, .chat-layout { grid-template-columns: 1fr; }
  main { padding: 14px; }
  .topbalk { padding: 12px 14px; }
  .tabs { padding: 12px 14px 0; }
}
@media (max-width: 480px) {
  .tegels { grid-template-columns: 1fr; }
  .ballon { max-width: 90%; }
}

/* ---------- Print (Resultaten → Download PDF) ---------- */

@media print {
  body { background: #fff; }
  .topbalk, .tabs, .knop, .periode, .noot { display: none !important; }
  main { max-width: none; padding: 0; }
  .kaart { border: none; padding: 0 0 18px; }
  .scoreboard-placeholder { border: 1px solid #ccc; }
}
