:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --ink: #23190f;
  --ink-soft: #75695a;
  --border: #e6ddce;
  --accent: #a8672b;
  --accent-dark: #7c4a1c;
  --accent-contrast: #fffaf2;
  --danger: #b3392c;
  --success: #2f6b4f;
  --warning: #96660e;
  --radius: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  padding-bottom: 3rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.78), rgba(246, 242, 234, 0.78)),
    url("hero.jpg");
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

h1, h2 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  margin: 0;
}

a { color: var(--accent-dark); }

.topbar {
  /* Zelfde foto als body (die via fixed attachment doorheen schijnt), hier
     enkel een donkerdere overlay bovenop voor leesbare tekst. */
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.55) 0%, rgba(20, 15, 10, 0.72) 100%);
  color: var(--accent-contrast);
}
.topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.topbar h1 {
  font-size: 1.9rem;
  color: var(--accent-contrast);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.scissors { font-size: 1.3rem; color: var(--accent); }
@media (max-width: 480px) {
  .topbar-inner { padding: 2.5rem 1rem 1.75rem; }
  .topbar h1 { font-size: 1.5rem; }
}

.wizard {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}
.step {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.step span {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink-soft);
}
.step.active span, .step.done span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.step.active, .step.done { color: var(--ink); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.panel.hidden { display: none; }
.panel h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }

.gekozen-dienst {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.gekozen-dienst strong { color: var(--ink); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
@media (max-width: 420px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.service-card:hover, .service-card:focus-visible { border-color: var(--accent); }
.service-card.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.service-naam { font-weight: 600; }
.service-duur { font-size: 0.8rem; opacity: 0.8; }

.date-scroller {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-chip {
  flex: 0 0 auto;
  min-width: 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.date-chip .dag { font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; }
.date-chip .nummer { font-weight: 700; font-size: 1.05rem; }
.date-chip:disabled { opacity: 0.35; cursor: not-allowed; }
.date-chip.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.date-chip.selected .dag { color: var(--accent-contrast); opacity: 0.85; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 420px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}
.slot-btn {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.slot-btn:hover, .slot-btn:focus-visible { border-color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.geen-slots { color: var(--ink-soft); }
.geen-slots.hidden { display: none; }

form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
form input, form textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
}
form input:focus, form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-primary, .btn-secondary {
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
  margin-top: 0.75rem;
}
.btn-secondary:hover { color: var(--ink); border-color: var(--accent); }

.foutmelding {
  color: var(--danger);
  font-size: 0.85rem;
}
.foutmelding.hidden { display: none; }

#panel-bevestigd { text-align: center; }
.bevestiging-icoon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.footer {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.8rem;
}
.footer a { color: var(--ink-soft); }

/* Infoblok: adres, contact, openingsuren, kaartje */
.shop-info {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .shop-info { grid-template-columns: 1fr; }
}
.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.info-block h2 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.info-list li { display: flex; flex-direction: column; gap: 0.05rem; }
.info-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--accent-dark); text-decoration: underline; }

.uren-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.uren-tabel td {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.uren-tabel tr:last-child td { border-bottom: none; }
.uren-tabel td:first-child { color: var(--ink-soft); }
.uren-tabel td:last-child { text-align: right; }
.uren-tabel tr.gesloten td:last-child { color: var(--ink-soft); }

.info-map {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}
.info-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Beheer */
.admin-login {
  max-width: 320px;
  margin: 4rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.admin-login form { text-align: left; margin: 1rem 0; }
.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.admin-login input {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-overzicht {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
.admin-acties {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.boekingen-tabel {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.boekingen-tabel th, .boekingen-tabel td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.boekingen-tabel th {
  background: var(--bg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.btn-annuleer {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
  cursor: pointer;
}
.btn-annuleer:hover { background: var(--danger); color: #fff; }

@media (max-width: 700px) {
  .boekingen-tabel { display: block; overflow-x: auto; }
}

/* Instellingen (/admin/instellingen) */
.instellingen-form { max-width: 640px; }
.instellingen-sectie {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.instellingen-sectie h2 {
  font-size: 1rem;
  margin: 0 0 0.9rem;
}
.instellingen-sectie .hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 0.9rem;
}
.instellingen-sectie .hint code {
  background: var(--bg);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}
.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
}
.checkbox-label input { width: auto; }
.pauze-tijden { display: flex; gap: 1rem; margin-top: 0.6rem; }
.pauze-tijden label { flex: 1; }

.instellingen-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.instellingen-tabel th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0.4rem;
}
.instellingen-tabel td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.instellingen-tabel input[type="text"],
.instellingen-tabel input[type="number"],
.instellingen-tabel input[type="time"] {
  width: 100%;
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.instellingen-tabel .getal-klein { width: 5rem; }
.instellingen-tabel input[type="checkbox"] { width: auto; }

.melding-succes {
  background: rgba(47, 107, 79, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.foutenlijst {
  background: rgba(179, 57, 44, 0.08);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.foutenlijst ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.waarschuwingenlijst {
  background: rgba(150, 102, 14, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.waarschuwingenlijst ul { margin: 0; padding-left: 1.2rem; }
.waarschuwingenlijst li { margin-bottom: 0.3rem; }
.waarschuwingenlijst li:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .dagen-tabel, .diensten-tabel, .periodes-tabel { display: block; overflow-x: auto; }
}
