:root{
  /* Kleuren uit het logo van De Wingerd */
  --bg: #d8dca1;             /* zacht geelgroen van de logo-achtergrond */
  --leaf: #a3b018;           /* olijf-/limoengroen van het blad */
  --green: #3c782a;          /* middengroen van de omlijning en tekst in het logo */
  --green-dark: #23461a;     /* donkere variant voor tekst en hover */
  --olive: #7e8a06;          /* donkere olijf van de ster */
  --star: #cccc7e;           /* lichte ster / subtiele accenten */
  --white-green: 250,251,238;/* licht groen-wit (RGB) voor panelen en tegels */

  --panel: rgba(var(--white-green),0.80);
  --tile: rgba(var(--white-green),0.88);
  --tileHover: rgba(255,255,255,0.98);
  --radius: 18px;
  --shadow: 0 10px 26px rgba(35,70,26,0.14);
  --shadowHover: 0 14px 34px rgba(35,70,26,0.20);
  --text: var(--green-dark);
  --muted: rgba(35,70,26,0.60);
  --border: rgba(35,70,26,0.18);
  --ok: var(--green);
  --err: #b00020;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
}

.wrap{
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* LINKS */
.melding{
  position: fixed;
  top: 0;
  background-color: yellow;
  color: red;
  font-size: 0.7em;

}

.left{
  width: 70vw;
  height: 100vh;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}

/* RECHTS */
.right{
  width: 30vw;
  height: 100vh;
  background: var(--panel);
  backdrop-filter: blur(6px);
  padding: 24px;
  border-left: 1px solid var(--border);
  overflow: auto;
}

.right-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.school-logo{
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: white;
}

h2{
  margin: 8px 0 0;
  font-size: 18px;
}

input{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 16px;
  outline: none;
}

input:focus{
  box-shadow: 0 0 0 3px rgba(163,176,24,0.45);
}

button{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 650;
  background: var(--green);
  color: #fff;
}

button:hover{
  background: var(--green-dark);
  color: #fff;
}

button.secondary{
  background: var(--leaf);     /* bladgroen als secundaire kleur */
  color: var(--green-dark);
}

button.secondary:hover{
  background: var(--olive);
  color: #fff;
}

button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.mail-output{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: white;
  text-align: center;
  font-weight: 750;
  min-height: 44px;
  word-break: break-word;
}

.status{
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}

.status.ok{ color: var(--ok); }
.status.err{ color: var(--err); }

/* GRID */
.grid{
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile{
  background: var(--tile);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 130px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.tile:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
  background: var(--tileHover);
}

.tile img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tile .name{
  font-weight: 750;
  text-align: center;
}

.tile.placeholder{
  opacity: 0.6;
  cursor: default;
}
.tile.placeholder:hover{
  transform: none;
  box-shadow: var(--shadow);
  background: var(--tile);
}

/* accessibility helper */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Responsive */
@media (max-width: 900px){
  .wrap{ flex-direction: column; }
  .left{ width: 100vw; height: 70vh; }
  .right{ width: 100vw; height: 30vh; border-left: none; border-top: 1px solid var(--border); }
  .grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}