/* ============================================================
   Keukenscherm Happy Alphen. Zelfde familie als de app: Fraunces
   voor koppen, diep paars als basis, terracotta en goud als accent.
   Donker, want dit scherm staat achter de bar.
   ============================================================ */

:root {
  --paars: #14021F;
  --paars-2: #230537;
  --paars-3: #331048;
  --terra: #C05530;
  --goud: #E9B44C;
  --ivoor: #FBF6F1;
  --zacht: rgba(251, 246, 241, 0.62);
  --lijn: rgba(251, 246, 241, 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html, body { overflow-x: clip; }

body {
  min-height: 100dvh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(120% 80% at 15% 0%, #2E0B44 0%, transparent 60%),
    radial-gradient(90% 70% at 90% 10%, #3A1130 0%, transparent 55%),
    var(--paars);
  color: var(--ivoor);
  -webkit-font-smoothing: antialiased;
  padding: clamp(1rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.2rem) 3rem;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }

/* ---------- Kop ---------- */

.kop {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--lijn);
}
.merk {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--goud); margin-bottom: 0.35rem;
}
.kop h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.kop-rechts { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.verbinding {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(251, 246, 241, 0.07); border: 1px solid var(--lijn);
  font-size: 0.82rem; color: var(--zacht);
}
.verbinding i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #57C98B; box-shadow: 0 0 0 4px rgba(87, 201, 139, 0.16);
}
.verbinding.is-weg i { background: var(--terra); box-shadow: 0 0 0 4px rgba(192, 85, 48, 0.18); }

.geluid-knop {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: rgba(251, 246, 241, 0.07); border: 1px solid var(--lijn);
  font-size: 0.82rem; color: var(--zacht);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.geluid-knop:hover { background: rgba(251, 246, 241, 0.13); }
.geluid-knop[aria-pressed="true"] { background: var(--goud); color: var(--paars); border-color: transparent; }
.geluid-ico svg { width: 16px; height: 16px; display: block; }

/* ---------- Uitleg en telling ---------- */

.uitleg {
  max-width: 60ch; margin: 1.15rem 0 0;
  font-size: 0.94rem; line-height: 1.6; color: var(--zacht);
}

.balk { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.3rem; }
.balk-vak {
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: rgba(251, 246, 241, 0.06); border: 1px solid var(--lijn);
  font-size: 0.84rem; color: var(--zacht);
}
.balk-vak b { color: var(--ivoor); font-weight: 600; }

/* ---------- Bonnen ---------- */

.bonnen {
  margin-top: 1.5rem;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}

.bon {
  background: rgba(251, 246, 241, 0.055);
  border: 1px solid var(--lijn);
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem 1.05rem;
  animation: bonIn 0.5s var(--ease) both;
}
@keyframes bonIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.bon.is-nieuw { border-color: rgba(233, 180, 76, 0.55); background: rgba(233, 180, 76, 0.09); }
.bon.is-bezig { border-color: rgba(192, 85, 48, 0.45); }
.bon.is-klaar { opacity: 0.55; }

.bon-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; }
.bon-tafel { font-family: 'Fraunces', serif; font-size: 1.5rem; }
.bon-tafel span { color: var(--goud); }
.bon-tijd { font-size: 0.8rem; color: var(--zacht); font-variant-numeric: tabular-nums; }

.bon-merk {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.bon-merk.nieuw { background: var(--goud); color: var(--paars); }
.bon-merk.bezig { background: var(--terra); color: var(--ivoor); }
.bon-merk.klaar { background: rgba(251, 246, 241, 0.16); color: var(--ivoor); }

.bon-regels { list-style: none; margin: 0.95rem 0 0; border-top: 1px solid var(--lijn); }
.bon-regel {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--lijn);
  font-size: 0.98rem;
}
.bon-aantal {
  flex: none; min-width: 2rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.55rem; background: rgba(251, 246, 241, 0.1);
  font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.bon-naam { flex: 1; line-height: 1.35; }
.bon-prijs { color: var(--zacht); font-size: 0.86rem; font-variant-numeric: tabular-nums; }

.bon-opmerking {
  margin-top: 0.75rem; padding: 0.6rem 0.75rem;
  border-radius: 0.7rem; background: rgba(233, 180, 76, 0.12);
  font-size: 0.86rem; line-height: 1.45; color: var(--ivoor);
}

.bon-voet { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.95rem; }
.bon-totaal { font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.bon-knoppen { display: flex; gap: 0.45rem; }
.bon-knop {
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(251, 246, 241, 0.1); border: 1px solid var(--lijn);
  font-size: 0.83rem; font-weight: 500;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.bon-knop:hover { background: rgba(251, 246, 241, 0.2); }
.bon-knop:active { transform: scale(0.96); }
.bon-knop.is-op { background: var(--goud); color: var(--paars); border-color: transparent; }

/* ---------- Leeg ---------- */

.leeg { margin-top: 2rem; }
.leeg-kaart {
  max-width: 34rem; padding: 2.2rem 1.9rem;
  border: 1px dashed var(--lijn); border-radius: 1.4rem;
  background: rgba(251, 246, 241, 0.04);
}
.leeg-ico svg { width: 34px; height: 34px; color: var(--goud); margin-bottom: 0.9rem; }
.leeg-kaart h2 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.leeg-kaart p { font-size: 0.94rem; line-height: 1.6; color: var(--zacht); }
.leeg-link {
  display: inline-block; margin-top: 1.1rem;
  padding: 0.6rem 1.25rem; border-radius: 999px;
  background: var(--goud); color: var(--paars); font-weight: 600; font-size: 0.9rem;
}

/* ---------- Voet ---------- */

.voet {
  margin-top: 3rem; padding-top: 1.1rem; border-top: 1px solid var(--lijn);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--zacht);
}

@media (max-width: 560px) {
  .kop { align-items: flex-start; flex-direction: column; }
  .bonnen { grid-template-columns: 1fr; }
}
