body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7fafc;
  color: #222;
  margin: 0;
}
.site-header {
  background: #195193;
  color: #fff;
  box-shadow: 0 2px 18px #1951931a;
}
.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 18px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 30px;
}
.logo img {
  height: 58px;
  width: 58px;
  background: #fff;
  border-radius: 12px;
}
.bedrijfsnaam {
  font-size: 1.65em;
  font-weight: 700;
}
.header-contact {
  text-align: right;
}
.loginbtn, .logoutbtn {
  background: #fff;
  color: #195193;
  border: none;
  border-radius: 7px;
  padding: 8px 26px;
  font-size: 1em;
  cursor: pointer;
  margin-top:8px;
  font-weight:600;
}
.logoutbtn { background: #b20000; color: #fff;}
.footer {
  margin:52px 0 0 0;
  text-align:center;
  color:#666;
}
#login_overlay {
  display:none;
  position:fixed;
  left:0; top:0;
  width:100vw; height:100vh;
  z-index:1000;
  background:rgba(15,25,55,0.12);
  align-items:center; justify-content:center;
}
#login_overlay.active { display:flex; }
.loginblok {
  background:#fff;
  border-radius:14px;
  box-shadow:0 4px 32px #19519322;
  padding:46px 36px 36px 36px;
  min-width:320px;
  max-width:95vw;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.loginblok input {
  width:100%;
  padding:12px;
  font-size:1.08em;
  margin-bottom:15px;
  border:1px solid #dbe4f6;
  border-radius:6px;
}
.loginblok button {
  background:#195193;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:10px 32px;
  font-size:1.1em;
  cursor:pointer;
}
.loginblok .error { color:#b20000; margin-bottom:12px;}

.blok {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px #19519317;
  margin: 38px 0 0 0;
  padding: 30px 26px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
  position: relative;
}

.blok-content {
  flex: 1;
  min-width: 230px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.blok h2 {
  font-size: 1.22em;
  color: #195193;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.blok-tekst { font-size:1.08em; line-height:1.55; }

.blok-afbeelding {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.blok-afbeelding img {
  width: 210px;
  max-width:42vw;
  border-radius: 12px;
  margin-bottom: 7px;
  box-shadow: 0 2px 12px #2222;
  transition: transform .18s cubic-bezier(.26,.8,.5,1), box-shadow .18s;
}
.blok-afbeelding img:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 4px 20px #1951932e;
}

.blok-gallery {
  width: 100%;
  display: flex;
  gap: 22px;
  margin-top: 28px;
  justify-content: flex-start;
  align-items: flex-end;
}
.blok-gallery img {
  width: 180px;
  max-width: 44vw;
  border-radius: 12px;
  box-shadow: 0 2px 12px #2222;
  transition: transform .18s cubic-bezier(.26,.8,.5,1), box-shadow .18s;
}
.blok-gallery img:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 4px 20px #1951932e;
}
@media (max-width:700px) {
  .blok { flex-direction: column; gap: 13px; }
  .blok-afbeelding img, .blok-gallery img { width:99%; max-width:98vw; }
  .blok-gallery { gap:8px; }
}
.blok-knoppen {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 0;
  bottom: -6px;
}
.edit-btn, .del-btn, .save-btn, .cancel-btn {
  background: #195193;
  color: #fff;
  border:none;
  border-radius:6px;
  padding:5px 13px;
  cursor:pointer;
  font-size:.97em;
  box-shadow:0 2px 9px #19519314;
}
.del-btn {background: #d10000;}
.save-btn {background: #1b990f;}
.cancel-btn {background: #b20000;}
.editveld, .edittitel, .editimg {width:100%;font-size:1.07em;margin-top:7px;padding:8px; border-radius:7px;border:1px solid #e2e8f0;}
.edittitel {font-weight:bold;}
.add-blok-btn {background:#eab308; color:#195193; border:none; border-radius:9px; padding:10px 24px; font-weight:700; font-size:1.1em; margin:32px 0 0 0; cursor:pointer; box-shadow: 0 2px 10px #eab30822;}
.blok-content {
  position: relative;
  padding-bottom: 44px; /* ruimte voor knoppen onderin */
}

/* Edit/verwijder-knoppen links onderin blok */
.bewerk-knoppen {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 9px;
  padding: 8px 0 0 0;
}

.edit-btn, .del-btn {
  margin-left: 0;
  margin-right: 9px;
  margin-bottom: 0;
  margin-top: 0;
  background: #195193;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: .97em;
  transition: background .18s;
}

.edit-btn:hover { background: #14386a; }
.del-btn      { background: #d10000; }
.del-btn:hover{ background: #900; }
