:root {
  --bg: #f6f1ea;
  --ink: #421708;
  --card: #fff;
  --line: rgba(66, 23, 8, 0.12);
  --accent: #ce2b17;
}

* { box-sizing: border-box; }

body.beheer {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

.beheer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
}

.beheer-top a {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
  font-size: 14px;
}

.beheer-top__brand {
  font-weight: 700;
}

.beheer-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.beheer-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.beheer-card,
.beheer-form,
.beheer-table,
.beheer-message {
  background: var(--card);
  border: 1px solid var(--line);
}

.beheer-card {
  width: min(100%, 420px);
  padding: 28px;
  display: grid;
  gap: 12px;
}

.beheer-card h1,
.beheer-main h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.beheer-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.beheer-form label,
.beheer-card label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.beheer-form input,
.beheer-form textarea,
.beheer-form select,
.beheer-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font: inherit;
}

.beheer-form button,
.beheer-card button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.beheer-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b5a4e;
  line-height: 1.4;
}

.beheer-error { color: var(--accent); font-weight: 700; }
.beheer-ok { color: #176b3a; font-weight: 700; }
.beheer-danger {
  background: #8b1e1e !important;
}

.beheer-auth-links {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
}

.beheer-auth-links a {
  color: var(--ink);
}

.beheer-table {
  width: 100%;
  border-collapse: collapse;
}

.beheer-table th,
.beheer-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.beheer-links {
  padding-left: 18px;
}

.beheer-links li { margin-bottom: 8px; }

.beheer-messages { display: grid; gap: 12px; }
.beheer-message { padding: 16px; }
.beheer-message header { margin-bottom: 8px; }

.beheer-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
}

.beheer-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.beheer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.beheer-toggle input {
  width: auto;
  margin: 0;
}

.beheer-repeat {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line);
  background: #fbf8f4;
}

.beheer-help {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.beheer-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.beheer-inline-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.beheer-inline-form input[type="text"] {
  min-width: min(100%, 320px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  font: inherit;
}

.beheer-inline-form button,
.beheer-form button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.beheer-thumb {
  display: block;
  max-width: 240px;
  max-height: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.beheer-thumb--logo {
  width: 120px;
  height: 40px;
}
