/* Map2Grow, kleuren van Leerscan.nl: warm bruin als hoofdkleur (#ad805a),
   donkerbruin voor de balk, olijf en donkergroen als accent, Lato, witte
   kaarten. De variabelen heten nog --groen uit de eerste bouwronde; de
   waarden zijn de Leerscan-bruintinten. */

:root {
  --groen: #AD805A;
  --groen-donker: #8F6845;
  --groen-diep: #7C5E40;
  --groen-licht: #E3D3C2;
  --tint: #F2EAE0;
  --inkt: #1F1F1F;
  --grijs: #576063;
  --grijs-licht: #8E9598;
  --lijn: #E8E0D6;
  --wit: #fff;
  --room: #FAF7F2;
  --let-op: #D98324;
  --let-op-bg: #FDF3E6;
  --vraag: #7A824C;
  --vraag-bg: #F0F1E5;
  --fout: #B44B36;
  --zee: #1B5E8A;
  --zand: #E4D9B4;
  --polder: #7FC07A;
  --radius: 10px;
  --schaduw: 0 1px 2px rgba(31,31,31,.05), 0 6px 20px rgba(31,31,31,.06);
  --schaduw-diep: 0 10px 40px rgba(31,31,31,.14);
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--inkt);
  background: var(--room); font-size: 15px; line-height: 1.5;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
a { color: var(--groen-donker); }
button { font-family: var(--font); font-size: 14px; cursor: pointer; }
input, select, textarea {
  font-family: var(--font); font-size: 14px; color: var(--inkt);
  border: 1px solid var(--lijn); border-radius: 8px; padding: 8px 10px;
  background: var(--wit); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--groen); box-shadow: 0 0 0 3px rgba(83,168,99,.18);
}
label { display: block; font-size: 13px; font-weight: 700; color: var(--grijs); margin: 10px 0 4px; }
.hint { font-size: 12.5px; color: var(--grijs-licht); margin-top: 3px; }
/* De hulpvragen als voorbeeldtekst in de velden: cursief en lichter grijs,
   zodat ze duidelijk geen ingevulde tekst zijn. */
input::placeholder, textarea::placeholder { color: #AEB4B6; font-style: italic; opacity: 1; }

/* ------------------------------------------------------------------ knoppen */
.knop {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--groen); color: var(--wit); border: none;
  border-radius: 8px; padding: 9px 16px; font-weight: 700;
}
.knop:hover { background: var(--groen-donker); }
.knop.rustig { background: var(--wit); color: var(--inkt); border: 1px solid var(--lijn); }
.knop.rustig:hover { background: var(--tint); }
.knop.klein { padding: 5px 10px; font-size: 13px; }
.knop.gevaar { background: var(--wit); color: var(--fout); border: 1px solid var(--fout); }
.knop.gevaar:hover { background: #FBEEEB; }
.knop:disabled { opacity: .5; cursor: default; }

/* -------------------------------------------------------------------- lagen */
.scherm { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.kaart {
  background: var(--wit); border: 1px solid var(--lijn);
  border-radius: var(--radius); box-shadow: var(--schaduw); padding: 20px;
}
.balk {
  background: var(--groen-diep); color: var(--wit);
  padding: 14px 20px; display: flex; align-items: center; gap: 14px;
}
.balk .merk { font-weight: 900; font-size: 17px; letter-spacing: .3px; }
/* Kruimelpad in de bruine balken, naar het voorbeeld van de DIN-maker. */
.kruimel { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.85); min-width: 0; }
.kruimel a { color: rgba(255,255,255,.85); text-decoration: none; }
.kruimel a:hover { color: #fff; text-decoration: underline; }
.kruimel .nu { color: #fff; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.kruimel-pijl { opacity: .55; }
/* De accountknop: initialen in een bolletje. */
.account-bol {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: var(--vraag); color: #fff; font-size: 10px; font-weight: 900;
  align-items: center; justify-content: center; letter-spacing: .5px; vertical-align: -6px;
}
/* De mensen achter Map2Grow in het contactvenster. */
.contact-personen { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.contact-persoon {
  flex: 1; min-width: 250px; display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--lijn); border-radius: 10px; padding: 12px; background: var(--room);
}
.contact-persoon img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.balk .merk small { font-weight: 400; opacity: .8; margin-left: 8px; }
.balk .rek { flex: 1; }
.balk button { background: rgba(255,255,255,.12); color: var(--wit); border: none; border-radius: 7px; padding: 7px 12px; }
.balk button:hover { background: rgba(255,255,255,.22); }

/* ------------------------------------------------------------------- inlog */
.inlog-schil { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--tint), var(--room) 55%); padding: 20px; }
.inlog { width: 400px; max-width: 100%; }
.inlog .kaart { padding: 28px; }
.inlog .logo { text-align: center; margin-bottom: 18px; }
.inlog .logo b { font-size: 26px; color: var(--groen-diep); }
.inlog .logo div { color: var(--grijs); font-size: 13.5px; margin-top: 4px; }
.melding { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0; }
.melding.info { background: var(--vraag-bg); color: var(--vraag); }
.melding.fout { background: #FBEEEB; color: var(--fout); }
.melding.goed { background: var(--tint); color: var(--groen-diep); }

/* ------------------------------------------------------------------ lijsten */
/* Startpagina in twee kolommen: links over Map2Grow en de drie functies,
   rechts de leerlandschappen. Op een smal scherm komen de landschappen boven. */
.start-indeling { display: flex; gap: 22px; align-items: flex-start; }
/* Zelfde kophoogte links en rechts, zodat de kaart Over Map2Grow op gelijke
   hoogte begint met de rij leerlandschappen. */
.start-kop { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 16px; }
.start-rechts .tegels { margin-top: 0; }
.start-links { flex: 0 0 400px; max-width: 400px; }
.start-rechts { flex: 1; min-width: 0; }
.start-links p { font-size: 13.5px; color: var(--grijs); margin: 8px 0; }
.start-links ul { padding-left: 20px; margin: 8px 0; font-size: 13.5px; color: var(--grijs); }
.start-links li { margin-bottom: 4px; }
.start-functie { border-top: 1px solid var(--lijn); padding-top: 10px; margin-top: 10px; }
.start-functie p { margin: 3px 0; }
@media (max-width: 980px) {
  .start-indeling { flex-direction: column-reverse; }
  .start-links { flex: none; max-width: none; width: 100%; }
  .start-rechts { width: 100%; }
}
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.tegel { cursor: pointer; transition: box-shadow .15s; position: relative; }
.tegel:hover { box-shadow: var(--schaduw-diep); }
.tegel .mini-zee { height: 110px; border-radius: 7px; background: linear-gradient(150deg, #2273A6, var(--zee)); margin-bottom: 12px; position: relative; overflow: hidden; }
.tegel h3 { margin-bottom: 2px; }
.tegel .meta { font-size: 12.5px; color: var(--grijs-licht); }
.functie-badge { display: inline-block; background: var(--tint); color: var(--groen-diep); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 700; margin-top: 6px; }
/* In de balk staat het badge naast tekst in plaats van eronder: de marge van
   de tegelweergave duwde hem daar een paar pixels omlaag. */
.editor-balk .functie-badge { margin-top: 0; }

/* ------------------------------------------------------------------- editor */
.editor-schil { display: flex; flex-direction: column; height: 100vh; }
/* De balk blijft altijd één regel: wordt het venster smal, dan krimpt het
   kruimelpad (met puntjes) in plaats van dat de knoppen naar beneden vallen. */
.editor-balk { display: flex; align-items: center; gap: 10px; background: var(--groen-diep); color: var(--wit); padding: 8px 14px; flex-wrap: nowrap; overflow: hidden; }
.editor-balk .titel { font-weight: 900; }
.editor-balk .rek { flex: 1 1 auto; min-width: 0; }
.editor-balk .kruimel { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.editor-balk .kruimel .nu { max-width: none; }
.editor-balk .logo-svg, .editor-balk .functie-badge, .editor-balk button { flex: 0 0 auto; }
.editor-balk button { background: rgba(255,255,255,.12); color: var(--wit); border: none; border-radius: 7px; padding: 6px 11px; font-size: 13px; }
.editor-balk button:hover { background: rgba(255,255,255,.24); }
.editor-balk button:disabled { opacity: .35; cursor: default; }
.editor-balk button:disabled:hover { background: rgba(255,255,255,.12); }
.editor-balk button.actief { background: var(--wit); color: var(--groen-diep); }
/* position: relative, anders legt de rechterkolom zich in een smal venster
   (waar hij absoluut gepositioneerd is) over de balk bovenin heen. */
.editor-romp { flex: 1; display: flex; min-height: 0; position: relative; }
.paneel-links {
  width: 218px; background: var(--wit); border-right: 1px solid var(--lijn);
  padding: 12px; overflow-y: auto; flex-shrink: 0;
}
.paneel-rechts {
  width: 460px; background: #F7F0E5; border-left: 1px solid var(--lijn);
  padding: 14px; overflow-y: auto; flex-shrink: 0;
}
.paneel-splitser {
  width: 10px; flex-shrink: 0; cursor: col-resize;
  background: var(--lijn); touch-action: none; position: relative;
}
/* Drie puntjes als greep, zodat te zien is dat de kolom te verschuiven is. */
.paneel-splitser::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 40px; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 2px 2px, var(--grijs-licht) 2px, transparent 2.4px) 0 0 / 4px 12px repeat-y;
}
.paneel-splitser:hover { background: var(--groen-licht); }
.doek-houder { flex: 1; position: relative; overflow: hidden; background: #0F3B57; }
.doek-houder svg { display: block; width: 100%; height: 100%; touch-action: none; }

/* De kopjes in het palet als bruin balkje, met lucht eromheen: zo zie je in
   één oogopslag waar een onderdeel begint en waar het ophoudt. */
.paneel-kop {
  font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px;
  color: var(--wit); background: var(--groen); border-radius: 6px;
  padding: 5px 9px; margin: 20px 0 10px;
}
.paneel-kop:first-child { margin-top: 0; }

.palet-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: var(--room); border: 1px solid var(--lijn); border-radius: 8px;
  padding: 7px 9px; margin-bottom: 6px; text-align: left; font-size: 13px;
}
.palet-item:hover { border-color: var(--groen); background: var(--tint); }
.palet-item .bol { width: 22px; height: 22px; border-radius: 50% 45% 55% 48%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.15); }
.palet-item .bol.eiland { background: var(--zand); }
.palet-item .bol.polder { background: var(--polder); }
.palet-item .bol.brug { background: #333; border-radius: 3px; height: 10px; margin: 6px 0; }
.palet-item .bol.postit { background: #FFE066; border-radius: 3px; }

.zee-regelaar { margin: 4px 0 10px; }
.zee-regelaar input[type=range] { width: 100%; padding: 0; }
.zee-regelaar .uitersten { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--grijs-licht); }

.legenda-rij { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.legenda-rij .vlek { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); flex-shrink: 0; }
.legenda-rij input { padding: 4px 7px; font-size: 13px; }

/* eigenschappen rechts */
.eigenschap-blok { border-top: 1px solid var(--lijn); padding-top: 10px; margin-top: 12px; }
.kleur-keuze { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.kleur-keuze .optie { width: 26px; height: 26px; border-radius: 5px; border: 2px solid transparent; cursor: pointer; }
.kleur-keuze .optie.actief { border-color: var(--inkt); }

/* toets en assistent */
.toets-item { border-left: 3px solid var(--vraag); background: var(--vraag-bg); border-radius: 6px; padding: 9px 11px; font-size: 13.5px; margin-bottom: 8px; }
.toets-item.let-op { border-left-color: var(--let-op); background: var(--let-op-bg); }
.toets-item b { display: block; margin-bottom: 2px; }
.toets-item .plek { font-size: 12px; color: var(--grijs); }

.stap-lijst { counter-reset: stap; }
.stap {
  position: relative; padding: 10px 12px 10px 40px; border: 1px solid var(--lijn);
  border-radius: 8px; margin-bottom: 8px; background: var(--wit); font-size: 13.5px;
}
.stap::before {
  counter-increment: stap; content: counter(stap);
  position: absolute; left: 10px; top: 10px; width: 22px; height: 22px;
  background: var(--tint); color: var(--groen-diep); font-weight: 900;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.stap b { display: block; }
.stap .tekst { color: var(--grijs); font-size: 13px; margin-top: 2px; }
.stap.af { background: var(--tint); opacity: .75; }
.stap.af::before { content: "✓"; background: var(--groen); color: var(--wit); }

/* gesprek */
.gesprek { display: flex; flex-direction: column; gap: 10px; }
.gesprek .vraag-ballon { background: var(--tint); border-radius: 10px 10px 10px 3px; padding: 10px 12px; font-size: 14px; }
.gesprek textarea { min-height: 70px; }

/* ------------------------------------------------------------------ modals */
.sluier {
  position: fixed; inset: 0; background: rgba(31,31,31,.45);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.venster { background: var(--wit); border-radius: 12px; box-shadow: var(--schaduw-diep); width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; }
.venster.breed { width: 760px; }
.venster-voet { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

table.net { width: 100%; border-collapse: collapse; font-size: 14px; }
table.net th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--grijs-licht); border-bottom: 1px solid var(--lijn); padding: 6px 8px; }
table.net td { border-bottom: 1px solid var(--lijn); padding: 8px; }

.rij { display: flex; gap: 12px; }
.rij > * { flex: 1; }

/* versies */
.versie-rij { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--lijn); font-size: 13.5px; }
.versie-rij .rek { flex: 1; }
.versie-rij .moment { color: var(--grijs-licht); font-size: 12px; }

/* aanwezigheid */
.aanwezig { display: flex; gap: 4px; }
.aanwezig .bolletje { width: 26px; height: 26px; border-radius: 50%; background: var(--groen); color: var(--wit); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid var(--wit); }

/* functiekeuze als drie kaarten naast elkaar, teksten boven uitgelijnd */
/* Vier functies naast elkaar; op een smal venster twee bij twee. */
.functie-keuze { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; align-items: stretch; }
@media (max-width: 760px) { .functie-keuze { grid-template-columns: repeat(2, 1fr); } }
.functie-kaart {
  flex: 1; border: 2px solid var(--lijn); border-radius: 10px; padding: 12px;
  cursor: pointer; text-align: left; background: var(--wit); font-family: var(--font);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
}
.functie-kaart:hover { border-color: var(--groen-licht); }
.functie-kaart.actief { border-color: var(--groen); background: var(--tint); }
.functie-kaart b { display: block; margin-bottom: 3px; font-size: 14.5px; }
.functie-kaart small { color: var(--grijs); font-size: 12px; line-height: 1.35; display: block; }

/* doelgroepen met hun kleuren in het smalle linkerpalet */
.palet-doelgroepen label { margin-top: 0; }
.palet-doelgroepen .legenda-rij { gap: 5px; margin-bottom: 5px; }
.palet-doelgroepen .legenda-rij input[type="text"], .palet-doelgroepen .legenda-rij input:not([type]) { min-width: 0; font-size: 12.5px; padding: 5px 7px; }

/* het uitgewerkte voorbeeld per element, in een lichtbruin kadertje */
.voorbeeld-pmw {
  background: var(--tint); border: 1px solid var(--groen-licht);
  border-radius: 8px; padding: 8px 10px; margin-top: 8px;
}
.voorbeeld-pmw b { font-size: 12.5px; color: var(--groen-diep); }
.voorbeeld-pmw ul { font-size: 12.5px; color: var(--grijs); padding-left: 18px; margin: 4px 0 0; }

/* een bevinding van de meelezer die naar een post-it of element wijst */
.toets-item.aanwijsbaar { cursor: pointer; }
.toets-item.aanwijsbaar:hover { background: var(--tint); }

/* ruimte-regel in het palet: krapper, percentage, ruimer */
.ruimte-regel { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ruimte-regel .knop { width: 34px; font-weight: 900; }

/* presenteerbalkje boven het doek, naar het voorbeeld van de DIN-maker */
.presenteer-balk {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px;
  box-shadow: var(--schaduw-diep); display: flex; align-items: center;
  gap: 4px; padding: 5px 8px; z-index: 6;
}
.presenteer-balk button {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--lijn);
  background: var(--wit); font-size: 16px; color: var(--inkt); cursor: pointer;
}
.presenteer-balk button:hover { background: var(--tint); }
.presenteer-balk .stap-tekst {
  font-size: 12.5px; font-weight: 700; color: var(--groen-diep); padding: 0 6px;
  max-width: 38vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* zoomknoppen op het doek, horizontaal naast elkaar met Pas in erbij */
.zoomknoppen { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: row; gap: 6px; z-index: 5; }
.zoomknoppen button {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--lijn);
  background: var(--wit); font-size: 19px; font-weight: 700; color: var(--inkt);
  box-shadow: var(--schaduw); cursor: pointer;
}
.zoomknoppen button:hover { background: var(--tint); }

/* puntjesmenu op een tegel, naast de titel (niet over het beeld heen) */
.tegel-kop { display: flex; align-items: center; gap: 8px; }
.tegel-kop h3 { flex: 1; margin: 0 0 2px; }
.tegel-menu { position: relative; }
.tegel-menu-knop {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: none; color: var(--grijs-licht); font-size: 18px; font-weight: 900;
  line-height: 1; cursor: pointer;
}
.tegel-menu-knop:hover { background: var(--tint); color: var(--inkt); }
.tegel-menu .menu {
  display: none; position: absolute; right: 0; top: 34px; background: var(--wit);
  border: 1px solid var(--lijn); border-radius: 9px; box-shadow: var(--schaduw-diep);
  min-width: 200px; padding: 6px; z-index: 6;
}
.tegel-menu.open .menu { display: block; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-radius: 6px; padding: 8px 10px; font-size: 13.5px; cursor: pointer; color: var(--inkt);
  font-family: var(--font);
}
.menu-item:hover { background: var(--tint); }
.menu-item.gevaar { color: var(--fout); }
.menu-item.gevaar:hover { background: #FBEEEB; }

/* verslepen van tegels om de volgorde te wisselen */
.tegel.sleep-bron { opacity: .4; }
.tegel.sleep-doel { outline: 3px dashed var(--groen); outline-offset: 3px; }

/* kleine regelaars in het palet */
.palet-regel { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px 31px; }
.palet-regel input[type=range] { flex: 1; padding: 0; }
.palet-regel select { font-size: 12px; padding: 3px 5px; width: auto; }

/* logo in de balk */
.balk .logo-svg, .editor-balk .logo-svg { display: flex; align-items: center; }
.balk .logo-svg svg, .editor-balk .logo-svg svg { height: 30px; display: block; }

/* tevredenheidsschaal in het gesprek */
.schaal-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--grijs-licht); margin-top: 2px; }
.schaal-waarde { text-align: center; font-weight: 900; font-size: 15px; color: var(--groen-diep); margin-top: 4px; }

@media (max-width: 900px) {
  .paneel-rechts { position: absolute; right: 0; top: 0; bottom: 0; z-index: 10; box-shadow: var(--schaduw-diep); }
  .paneel-links { width: 180px; }
  /* Smalle vensters: de balk houdt één regel door strakker te zetten en het
     minst nodige weg te laten. Terug naar het overzicht kan via het logo. */
  .editor-balk { gap: 6px; padding: 8px 10px; }
  .editor-balk button { padding: 6px 8px; }
  .editor-balk .kruimel a, .editor-balk .kruimel-pijl { display: none; }
}
@media (max-width: 720px) {
  .editor-balk .functie-badge, .editor-balk #e-status { display: none; }
  .editor-balk .logo-svg svg { height: 24px; }
}
