:root {
  --room: #fbf7f0;
  --kaart: #ffffff;
  --inkt: #2b2621;
  --zacht: #7a6f64;
  --zon: #e0913a;
  --lijn: #ece3d6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--room);
  color: var(--inkt);
  line-height: 1.45;
}

.kop {
  position: relative;
  height: 340px;
  background: center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.kop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 8, 0) 35%, rgba(20, 14, 8, 0.72) 100%);
}

.kop-tekst {
  position: relative;
  z-index: 1;
  padding: 0 24px 26px;
  color: #fff;
}

.kop-tekst p {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffd9a8;
}

h1 {
  margin-top: 6px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

main { padding: 8px 18px 40px; }

h2 {
  margin: 30px 6px 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--zon);
}

.gerecht {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: var(--kaart);
  box-shadow: 0 1px 0 var(--lijn), 0 8px 24px rgba(43, 38, 33, 0.06);
}

.gerecht img {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}

.gerecht-naam {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
}

.prijs {
  font-size: 17px;
  font-weight: 700;
  color: var(--zon);
  white-space: nowrap;
}

.gerecht.zonder-foto { padding: 16px 14px; }

.open {
  margin: -22px 18px 0;
  position: relative;
  z-index: 2;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: var(--kaart);
  box-shadow: 0 1px 0 var(--lijn), 0 12px 30px rgba(43, 38, 33, 0.12);
}

.open h2 { margin: 0 0 12px; }

.open dl {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  font-size: 16px;
}

.open dd {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tafel {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--zon);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.erbij {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--zon);
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  cursor: pointer;
}

.erbij[data-aantal]::after {
  content: attr(data-aantal);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--inkt);
  font-size: 12px;
  line-height: 20px;
}

body:has(.bestelbalk:not([hidden])) main { padding-bottom: 110px; }

.bestelbalk {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 18px;
  background: var(--inkt);
  color: #fff;
  box-shadow: 0 12px 30px rgba(43, 38, 33, 0.3);
}

.bestelbalk[hidden] { display: none; }

.bestelbalk strong { margin-right: auto; }

.bestelbalk button {
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--zon);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Smalle telefoons: de prijs onder de naam, zodat het plusje er altijd naast past. */
@media (max-width: 360px) {
  .gerecht { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; }
  .gerecht.zonder-foto { grid-template-columns: 1fr auto; }
  .gerecht img { width: 72px; height: 72px; grid-row: span 2; }
  .gerecht-naam { grid-column: -3; }
  .prijs { grid-column: -3; grid-row: 2; }
  .erbij { grid-column: -2; grid-row: 1 / span 2; }
}

@media (min-width: 640px) {
  .bestelbalk { left: 50%; right: auto; width: 536px; transform: translateX(-50%); }
}

.voorbeeld {
  padding: 8px 16px;
  background: var(--inkt);
  color: #ffd9a8;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.verstuurd {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(43, 38, 33, 0.55);
}

.verstuurd[hidden] { display: none; }

.bon {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: var(--kaart);
  box-shadow: 0 20px 50px rgba(43, 38, 33, 0.3);
}

.bon-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lijn);
  color: var(--zacht);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bon h2 { margin: 12px 0 14px; }

.bon-tafel { font-weight: 700; }

.bon ul { list-style: none; margin: 6px 0 10px; }

.bon li { padding: 4px 0; border-bottom: 1px dashed var(--lijn); }

.bon-totaal { font-weight: 700; color: var(--zon); }

.bon-uitleg { margin-top: 14px; font-size: 14px; color: var(--zacht); }

.bon button {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--inkt);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
