* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #222;
}

header {
  background: #1f4e79;
  color: #fff;
  padding: 1rem 1.5rem;
}
header h1 { margin: 0; font-size: 1.5rem; }

main {
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.paneel {
  background: #fff;
  border: 1px solid #dde1e6;
  border-radius: 8px;
  padding: 1rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.paneel h2 { margin: 0 0 1rem; font-size: 1.2rem; }

.rij { display: flex; flex-direction: column; margin-bottom: .75rem; }
.rij-dubbel { flex-direction: row; gap: 1rem; flex-wrap: wrap; }
.rij-dubbel > div { display: flex; flex-direction: column; flex: 1; min-width: 160px; }

label { font-weight: 600; margin-bottom: .25rem; }
.lijst-kop label { font-weight: normal; }

input, textarea, select, button {
  font: inherit;
  padding: .45rem .6rem;
  border: 1px solid #b8bfc7;
  border-radius: 4px;
}
textarea { resize: vertical; }

button {
  background: #1f4e79;
  color: #fff;
  border-color: #1f4e79;
  cursor: pointer;
}
button:hover { background: #173b5c; }
button.secundair { background: #fff; color: #1f4e79; }
button.secundair:hover { background: #eef3f8; }
button.gevaar { background: #fff; color: #b42318; border-color: #b42318; }
button.gevaar:hover { background: #fdecea; }

.knoppen { display: flex; gap: .5rem; }

.foutmelding { color: #b42318; font-weight: 600; min-height: 1.2em; margin: .75rem 0 0; }
.foutmelding:empty { display: none; }

.lijst-kop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.lijst-kop h2 { margin: 0; }

.advertentie-lijst { list-style: none; padding: 0; margin: 0; }
.advertentie {
  border: 1px solid #dde1e6;
  border-radius: 6px;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}
.advertentie.bewerken { border-color: #1f4e79; box-shadow: 0 0 0 2px #c9dbee; }
.advertentie-kop { display: flex; justify-content: space-between; gap: 1rem; }
.advertentie-titel { font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.advertentie-prijs { font-weight: 700; white-space: nowrap; }
.advertentie-info { color: #555; margin: .35rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.advertentie-acties { display: flex; justify-content: flex-end; gap: .5rem; }

.leeg { color: #666; font-style: italic; }
