/* FEMS Planner — stijl afgeleid van studiofems.nl
   Luxe = veel witruimte, dunne lijnen, lichte letters, kleine hoofdletters
   met ruime letterafstand, en rustige overgangen. */

:root {
  --olijf: #414339;      /* hoofdkleur Studio FEMS */
  --olijf-diep: #383a31;
  --olijf-zacht: #5C5F50;
  --olijfgrijs: #767A68;
  --zand: #D6D1C4;       /* accentkleur Studio FEMS */
  --zand-licht: #EDEAE3;
  --creme: #F8F4F1;
  --grijs: #9d9c95;
  --wit: #ffffff;
  --rood: #9b4a3c;
  --lijn: #e6e1d8;       /* haarlijnen */
  --schaduw: 0 1px 2px rgba(65, 67, 57, .04), 0 12px 32px -12px rgba(65, 67, 57, .14);
  --schaduw-hoog: 0 2px 4px rgba(65, 67, 57, .05), 0 22px 44px -16px rgba(65, 67, 57, .24);
  --zacht: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--olijf);
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: .01em; }

/* Kleine hoofdletters met ruime spatiëring: het "luxe" kopje */
.klein-kapitaal, .dagnaam, th, .kop-label, legend, form label > span.veld,
.detail-blok h3, .klantkeuze label, .klant-intro .voorbeeld, .logo-planner {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Bovenbalk ---------- */

.balk {
  background: var(--olijf);
  color: var(--zand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  padding: 18px 40px;
}

.logo { display: flex; align-items: center; gap: 18px; line-height: 1; }
.logo img { height: 56px; width: auto; display: block; }
.logo-planner {
  color: var(--zand); padding-left: 18px; border-left: 1px solid rgba(214, 209, 196, .3);
  font-weight: 400; letter-spacing: .32em;
}

.klantkeuze { display: flex; align-items: center; gap: 12px; }
.klantkeuze label { color: rgba(214, 209, 196, .55); }
.klantkeuze select {
  appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23D6D1C4' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
  color: var(--creme); border: 0; border-bottom: 1px solid rgba(214, 209, 196, .4); border-radius: 0;
  padding: 6px 22px 6px 0; font: inherit; font-size: 16px; font-weight: 300; min-width: 180px; cursor: pointer;
}
.klantkeuze select:focus { outline: none; border-bottom-color: var(--zand); }
.klantkeuze select option { color: var(--olijf); }
.klantkeuze .knop { padding: 6px 14px; }

.tabs { display: flex; gap: 28px; margin-left: auto; }
.tab {
  background: none; border: 0; color: rgba(214, 209, 196, .6); cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 0; position: relative; transition: color .3s var(--zacht);
}
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--zand); transform: scaleX(0); transition: transform .4s var(--zacht);
}
.tab:hover { color: var(--zand); }
.tab.actief { color: var(--creme); }
.tab.actief::after { transform: scaleX(1); }

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

.knop {
  background: var(--olijf); color: var(--creme); border: 1px solid var(--olijf);
  padding: 11px 22px; border-radius: 2px; font: inherit; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s var(--zacht), color .3s var(--zacht), border-color .3s var(--zacht);
}
.knop:hover { background: var(--olijf-diep); }
.knop-licht { background: transparent; color: inherit; border-color: currentColor; }
.knop-licht:hover { background: var(--olijf); color: var(--creme); border-color: var(--olijf); }
.balk .knop-licht { border-color: rgba(214, 209, 196, .45); color: var(--zand); }
.balk .knop-licht:hover { background: var(--zand); color: var(--olijf); border-color: var(--zand); }
.knop-gevaar { background: transparent; color: var(--rood); border-color: transparent; padding-left: 0; }
.knop-gevaar:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.knop-icoon { padding: 6px 14px 8px; letter-spacing: 0; font-size: 18px; font-weight: 300; line-height: 1; }

/* ---------- Inhoud ---------- */

main { max-width: 1240px; margin: 0 auto; padding: 48px 40px 80px; animation: verschijn .5s var(--zacht); }

@keyframes verschijn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kop {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  margin-bottom: 26px;
}
.kop-titel { margin-right: auto; }
.kop-label { color: var(--grijs); display: block; margin-bottom: 6px; }
.kop h1 { font-size: 38px; line-height: 1.1; }
.kop h1::first-letter { text-transform: uppercase; }
.kop h1 small { color: var(--grijs); font-size: 15px; margin-left: 10px; font-weight: 400; }

.legenda { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 18px; font-size: 12px; color: var(--olijf-zacht); }
.legenda span { display: inline-flex; align-items: center; gap: 8px; }
.legenda i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }

.leeg {
  text-align: center; color: var(--grijs); padding: 80px 20px; font-weight: 300; font-size: 17px;
  background: var(--wit); border: 1px solid var(--lijn);
}

/* ---------- Kalender ---------- */

.kalender {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--lijn); gap: 1px; border: 1px solid var(--lijn);
}
.dagnaam {
  background: var(--creme); padding: 12px 12px 10px; color: var(--grijs);
}
.dag {
  background: var(--wit); min-height: 128px; padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; transition: background .25s var(--zacht);
}
.dag:hover { background: #fdfcfa; }
.dag.andere-maand { background: #fbfaf8; }
.dag.andere-maand .dag-nummer { color: #c9c6be; }
.dag-nummer {
  font-size: 13px; font-weight: 300; align-self: flex-start;
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px;
}
.dag.vandaag .dag-nummer { background: var(--olijf); color: var(--creme); font-weight: 600; }

.chip {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1.35; color: var(--olijf);
  padding: 6px 8px; border-radius: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .25s var(--zacht), box-shadow .25s var(--zacht);
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(65, 67, 57, .35); }
.chip:has(.chip-foto) { display: flex; gap: 8px; align-items: center; padding: 4px 8px 4px 4px; }
.chip-foto { width: 32px; height: 40px; object-fit: cover; border-radius: 1px; flex: none; background: rgba(255,255,255,.3); }
.chip-tekst { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip.idee {
  background: transparent !important; color: var(--olijf-zacht) !important;
  outline: 1px dashed var(--grijs); outline-offset: -1px;
}
.chip.gepost { opacity: .5; }
.chip-platform { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; opacity: .7; display: block; }

/* ---------- Lijst ---------- */

.tabel-wrap { background: var(--wit); border: 1px solid var(--lijn); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; color: var(--grijs); background: var(--creme);
  padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--lijn);
}
td { padding: 14px 16px; border-top: 1px solid var(--lijn); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .2s var(--zacht); }
tbody tr:hover { background: #fdfcfa; }
td.datum { white-space: nowrap; color: var(--olijf-zacht); }
td.datum::first-letter { text-transform: uppercase; }
td.hook { min-width: 240px; font-weight: 600; }
.hook-met-foto { display: flex; align-items: center; gap: 14px; }
.lijst-foto { width: 40px; height: 50px; object-fit: cover; flex: none; }

.label {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; letter-spacing: .03em;
}
.status { border: 1px solid var(--lijn); color: var(--olijf-zacht); }
.status-idee { border-style: dashed; border-color: var(--grijs); }
.status-klaar { background: var(--zand-licht); border-color: var(--zand-licht); }
.status-gepost { background: var(--olijf); color: var(--creme); border-color: var(--olijf); }

.schakelaar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin-right: 8px; color: var(--olijf-zacht); }
.schakelaar input { accent-color: var(--olijf); }

/* ---------- Klantweergave ---------- */

.klant-intro {
  background: var(--olijf); color: var(--zand);
  padding: 56px 56px 52px; margin-bottom: 56px; position: relative; overflow: hidden;
}
/* zachte lichtval, zoals in Femkes fotografie */
.klant-intro::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 209, 196, .14), transparent);
  pointer-events: none;
}
.klant-intro .voorbeeld { color: rgba(214, 209, 196, .55); }
.klant-intro h1 { font-size: 46px; margin: 14px 0 10px; color: var(--creme); line-height: 1.1; }
.klant-intro p { margin: 0; color: rgba(214, 209, 196, .8); font-size: 17px; font-weight: 300; max-width: 480px; }

.week { margin-bottom: 52px; }
.week-kop {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--lijn); padding-bottom: 12px; margin-bottom: 22px;
}
.week-kop h2 { font-size: 24px; }
.week-kop span { color: var(--grijs); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.week-leeg { color: var(--grijs); font-size: 15px; font-weight: 300; margin: 0; }

.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; align-items: start; }
.kaart {
  background: var(--wit); border: 0; padding: 0; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column;
  box-shadow: var(--schaduw);
  transition: transform .45s var(--zacht), box-shadow .45s var(--zacht);
}
.kaart:hover { transform: translateY(-4px); box-shadow: var(--schaduw-hoog); }
.kaart-foto { position: relative; display: block; overflow: hidden; }
.kaart-foto img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--zand-licht);
  transition: transform .8s var(--zacht);
}
.kaart:hover .kaart-foto img { transform: scale(1.03); }
.aantal {
  position: absolute; top: 12px; right: 12px; background: rgba(56, 58, 49, .7); color: var(--creme);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; padding: 3px 9px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.kaart-tekst { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.kaart-datum { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grijs); display: flex; align-items: center; gap: 8px; }
.kaart-datum i { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: none; }
.kaart-hook { font-size: 18px; font-weight: 300; line-height: 1.35; }
.kaart-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kaart-meta .label { border: 1px solid var(--lijn); color: var(--olijf-zacht); }
.kaart-meta .status-gepost { border-color: var(--olijf); color: var(--creme); }

/* ---------- Vensters ---------- */

dialog {
  border: 0; border-radius: 2px; padding: 40px 44px 34px; width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  color: var(--olijf); box-shadow: 0 30px 80px -20px rgba(30, 31, 26, .45);
}
dialog[open] { animation: venster-open .35s var(--zacht); }
@keyframes venster-open { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(40, 41, 35, .55); backdrop-filter: blur(3px); }
dialog h2 { font-size: 30px; margin-bottom: 26px; line-height: 1.2; }

form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 20px; flex: 1; }
form small { font-weight: 400; color: var(--grijs); font-size: 12px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--olijf); font-size: 15px;
  border: 1px solid var(--lijn); border-radius: 2px; padding: 11px 12px; background: var(--wit);
  transition: border-color .2s var(--zacht);
}
input:hover, select:hover, textarea:hover { border-color: var(--zand); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olijf); }
textarea { resize: vertical; }
.rij { display: flex; gap: 18px; }

fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.vinkjes { display: flex; flex-wrap: wrap; gap: 8px; }
.vinkjes label {
  flex-direction: row; align-items: center; gap: 6px; margin: 0; flex: none;
  font-weight: 400; border: 1px solid var(--lijn); border-radius: 999px; padding: 6px 15px; cursor: pointer;
  transition: all .2s var(--zacht);
}
.vinkjes label:hover { border-color: var(--olijf); }
.vinkjes label:has(input:checked) { background: var(--olijf); color: var(--creme); border-color: var(--olijf); }
.vinkjes input { display: none; }

.venster-knoppen {
  display: flex; gap: 10px; align-items: center; margin: 12px -44px -34px; padding: 18px 44px;
  border-top: 1px solid var(--lijn); background: var(--wit);
  position: sticky; bottom: -34px;
}
.vul { flex: 1; }

/* Foto's in het formulier */
.beeld-lijst { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.beeld-lijst:empty { display: none; }
.beeld-item { position: relative; width: 104px; }
.beeld-item img { width: 104px; height: 130px; object-fit: cover; display: block; background: var(--zand-licht); }
.beeld-nr {
  position: absolute; top: 6px; left: 6px; background: var(--olijf); color: var(--creme);
  font-size: 10px; font-weight: 600; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center;
}
.beeld-knoppen { display: flex; justify-content: space-between; margin-top: 6px; }
.beeld-knoppen button {
  border: 1px solid var(--lijn); background: var(--wit); border-radius: 2px; width: 30px; height: 26px;
  cursor: pointer; color: var(--olijf); font: inherit; line-height: 1; transition: border-color .2s;
}
.beeld-knoppen button:hover:not(:disabled) { border-color: var(--olijf); }
.beeld-knoppen button:disabled { opacity: .3; cursor: default; }
.beeld-toevoegen {
  display: inline-flex !important; flex-direction: row !important; align-items: center;
  border: 1px dashed var(--grijs); padding: 12px 18px; cursor: pointer; margin-bottom: 6px !important;
  font-size: 11px !important; letter-spacing: .2em; text-transform: uppercase; transition: all .2s var(--zacht);
}
.beeld-toevoegen:hover { border-color: var(--olijf); background: var(--creme); }
.beeld-toevoegen input { display: none; }
.uitleg { display: block; }

/* Detail (klant bekijkt een post) */
.detail-fotos {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -44px 22px; padding: 0 44px 8px; scroll-padding: 0 44px;
}
.detail-fotos img {
  height: 380px; max-width: 80%; object-fit: cover; scroll-snap-align: start; flex: none;
}
.video-knop { display: inline-block; text-decoration: none; margin-bottom: 14px; }
.detail-datum { color: var(--grijs); margin-bottom: 8px; display: block; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -12px 0 24px; }
.detail-meta .label { border: 1px solid var(--lijn); color: var(--olijf-zacht); }
.detail-blok { margin-bottom: 20px; }
.detail-blok h3 { color: var(--grijs); margin-bottom: 4px; }
.detail-blok p { margin: 0; white-space: pre-wrap; }
#bekijk-venster .venster-knoppen { margin-top: 20px; }

/* ---------- Inloggen, laden, klantmodus ---------- */

/* Zolang je niet als Femke bent ingelogd: geen klantkeuze en tabs */
body:not([data-modus="beheer"]) .klantkeuze,
body:not([data-modus="beheer"]) .tabs { display: none; }
.tab-uit { color: rgba(214, 209, 196, .4); }

.laden { text-align: center; color: var(--grijs); padding: 120px 20px; font-weight: 300; letter-spacing: .05em; }

.login {
  max-width: 420px; margin: 40px auto; background: var(--wit); border: 1px solid var(--lijn);
  padding: 48px 44px 40px;
}
.login h1 { font-size: 36px; margin-bottom: 28px; }
.login form .knop { width: 100%; margin-top: 6px; padding: 14px; }
.login-fout { color: var(--rood); font-size: 14px; margin: -6px 0 14px; }

.deel-knop { margin-top: 26px; position: relative; }

.voet {
  text-align: center; color: var(--grijs); font-size: 13px; padding: 40px 0 0;
  border-top: 1px solid var(--lijn);
}
.voet a { color: var(--olijf); }

.beeld-toevoegen.bezig { opacity: .5; pointer-events: none; }
.beeld-toevoegen.bezig::after { content: ' — bezig met uploaden…'; text-transform: none; letter-spacing: 0; }

/* ---------- Telefoon ---------- */

@media (max-width: 760px) {
  .balk { padding: 14px 16px; gap: 14px; }
  .logo img { height: 44px; }
  .tabs { margin-left: 0; width: 100%; justify-content: space-between; gap: 8px; }
  .tab { font-size: 10px; letter-spacing: .14em; }
  .klantkeuze { width: 100%; }
  .klantkeuze select { flex: 1; min-width: 0; }
  main { padding: 28px 16px 60px; }
  .kop h1 { font-size: 28px; }
  .rij { flex-direction: column; gap: 0; }
  .dag { min-height: 70px; padding: 4px; }
  .dag-nummer { width: 22px; height: 22px; font-size: 12px; }
  .dagnaam { padding: 8px 4px; font-size: 9px; letter-spacing: .1em; }
  .chip { font-size: 0; padding: 0; height: 6px; border-radius: 999px; }
  .chip:has(.chip-foto) { padding: 0; }
  .chip-foto, .chip-platform { display: none; }
  .klant-intro { padding: 36px 24px; margin-bottom: 40px; }
  .klant-intro h1 { font-size: 34px; }
  dialog { padding: 28px 20px 24px; }
  dialog h2 { font-size: 24px; }
  .venster-knoppen { margin: 12px -20px -24px; padding: 14px 20px; bottom: -24px; }
  .detail-fotos { margin: 0 -20px 20px; padding: 0 20px 8px; }
  .detail-fotos img { height: 300px; }
}
