/* admin.css
   Doel: één centrale ADMIN/INFORMATIEVE stijl (overzicht-achtige uitstraling)
   Gebruik voor: contact/faq/privacy/voorwaarden/login/beheer/dashboards (stap voor stap).

   Let op: werkpagina’s (kalender/overzicht/UVS) blijven hun eigen layout houden. */

/* ========== Basis / variabelen ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
  --brand: #2f5f66;
  --brand-hover: #274f55;
  --text: #1a1a1a;
  --bg: #f5f5f5;
  --border: rgba(0,0,0,.12);
  /* Oude homepage: één smalle contentkolom (~900px); rustiger dan 1200/1400px */
  --content-max: 900px;
  /* Header/footer mogen breder dan content voor rust + navigatie */
  --chrome-max: 1400px;
  --page-pad-x: 24px;
}

body {
  color: var(--text);
  background: #fafafa;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Page variants */
body.admin-page--auth { background: var(--bg); }

/* ========== Layout ========== */
main {
  width: min(var(--content-max), calc(100% - 2 * var(--page-pad-x)));
  margin: 0 auto;
  padding: 40px 0 56px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ========== Header (centrale structuur) ========== */
.site-hf {
  background: var(--brand);
  color: #fff;
  padding: 14px var(--page-pad-x);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-hf .site-hf__inner {
  max-width: min(var(--chrome-max), 100%);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}

.site-hf__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.site-hf__left { justify-self: start; }
.site-hf__title { justify-self: center; }
.site-hf__right { justify-self: end; }

.site-hf__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-hf__brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0.98;
}

.site-hf__logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.site-hf__title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 19px;
}

/* ========== Navigatie ========== */
.site-hf__main,
.site-hf__right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.site-hf__main { justify-content: center; padding-top: 2px; }
.site-hf__right { justify-content: flex-end; }

.site-hf__main a,
.site-hf__right a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0.95;
}
.site-hf__main a:hover,
.site-hf__right a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== ADMIN UI primitives ========== */
h1, h2, h3 { line-height: 1.28; margin: 1.35rem 0 0.7rem; }
h2 { font-size: 1.5625rem; font-weight: 750; letter-spacing: -0.012em; }
h3 { font-size: 1.125rem; font-weight: 680; opacity: 0.94; }

main p { margin: 0 0 1em; }
main li { margin: 0.35em 0; line-height: inherit; }

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #ddd; padding: 14px 16px; text-align: left; vertical-align: top; }
th { background-color: #f2f2f2; }

label { font-weight: 700; }
select, input, textarea { font: inherit; }

button, .btn { cursor: pointer; }
button[type="submit"] {
  width: 100%;
  padding: 1em;
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
}
button[type="submit"]:hover { background-color: var(--brand-hover); }

/* Homepage-secties: kolommen/spacing zoals vroeger; geen nieuwe HTML nodig */
.overview-section {
  margin-bottom: 2.75rem;
}
.overview-section > div {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.overview-section > div > img {
  width: 250px;
  max-width: min(250px, 42vw);
  height: auto;
  flex-shrink: 0;
}
.overview-section > div > div {
  flex: 1 1 280px;
  min-width: 0;
}
.intro-section > h2:first-of-type {
  margin-top: 0;
}
/* Tweede tabel (feature-rijen): zelfde kaart-raster als voorheen, iets zachtere randen */
.intro-section table:not(.info-table) td {
  border-color: #e2e2e2;
  padding: 1rem 1.1rem;
}
.intro-section table:not(.info-table) tr:nth-child(odd) td {
  background-color: #f3f3f3;
}
.intro-section table:not(.info-table) tr:nth-child(even) td {
  background-color: #fff;
}

/* Contact/FAQ minimale page-styling (voorheen aparte files) */
.contact-section,
.faq-section {
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0 var(--page-pad-x);
}
.contact-form { max-width: 520px; }
.info-table {
  width: 100%;
  max-width: 100%;
  margin: 1.35rem auto 2.15rem;
}
.info-table td {
  padding: 1rem 1rem;
}

/* FAQ specifics (previously inline) */
.faq-section { max-width: min(800px, 100%); margin: 0 auto; padding: 24px var(--page-pad-x) 20px; }
.faq-section h2 { text-align: center; }
.faq-item { cursor: pointer; border-bottom: 1px solid #ddd; padding: 10px; background-color: #f9f9f9; }
.faq-answer { display: none; padding: 10px; background-color: #f4f4f4; color: #333; }
.faq-question { font-weight: 700; color: #333; }
.faq-item:hover { background-color: #e0e0e0; }

/* Login (auth) */
.auth-container {
  max-width: 400px;
  margin: 10vh auto;
  background-color: #fff;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  width: min(400px, calc(100% - 2 * var(--page-pad-x)));
}
.auth-container h2 { text-align: center; margin-top: 0; }
.auth-container form label { display: block; margin-bottom: 10px; }
.auth-container input[type="text"],
.auth-container input[type="password"] {
  width: 100%;
  padding: 8px;
}
.auth-container button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: var(--brand);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}
.auth-container button:hover { background-color: var(--brand-hover); }
.auth-links { text-align: center; margin-top: 15px; }
.auth-links a {
  display: block;
  color: var(--brand);
  text-decoration: none;
  margin: 5px 0;
}
.auth-links a:hover { text-decoration: underline; }
.auth-msg { text-align: center; margin-bottom: 15px; }
.auth-msg--error { color: #b91c1c; }
.auth-msg--status { color: var(--brand); }

/* ========== Footer ========== */
.site-hf--footer {
  position: static;
  top: auto;
  z-index: auto;
  background: var(--brand);
  color: #fff;
  padding: 16px var(--page-pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0;
  text-align: center;
  font-size: 15px;
}

.site-hf--footer .site-hf__inner {
  max-width: min(var(--chrome-max), 100%);
}

/* Footer layout (admin/informatieve pagina's) */
.site-footer {
  width: 100%;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  align-items: start;
  text-align: left;
}
.site-footer__head {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  font-size: 14px;
  opacity: 0.98;
}
.site-footer__text {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.95;
}
.site-footer__link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.95;
  margin: 0 0 6px;
}
.site-footer__link:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.site-footer__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  opacity: 0.92;
  text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  :root { --page-pad-x: 16px; }
  .site-hf { padding: 12px var(--page-pad-x); }
  .site-hf__top {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }
  .site-hf__title {
    justify-self: start;
    grid-column: 1 / -1;
    font-size: 17px;
  }
  .site-hf__right { justify-self: end; }
  body { font-size: 16px; }
  main {
    width: min(var(--content-max), calc(100% - 2 * var(--page-pad-x)));
    padding: 28px 0 44px;
    box-shadow: none;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-footer__bottom {
    text-align: left;
  }
}

