/* Jouw tafel: het label dat zich vult terwijl je kiest */
.pagina-tafel .top nav { padding-right: 0; }

.tafel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); padding: 0 var(--rand) clamp(72px, 10vw, 140px); min-height: 100svh; }
.label-hang { position: relative; }
.tag-tafel {
  position: sticky; top: var(--rail-y); width: min(340px, 100%); margin: var(--rail-y) auto 0;
  --touw: clamp(80px, 15vh, 150px); --schuin-x: 40px; --schuin-y: 64px; --gasten: 2; --naam-maat: 2.5rem;
  filter: drop-shadow(0 18px 26px #000b);
}
.tag-tafel .tag-string { transition: height .7s cubic-bezier(.3, 1.3, .5, 1); }
.tafel-hangt .tag-tafel .tag-string { height: 86px; }
.tag-tafel .tag-body { height: clamp(460px, 68vh, 560px); padding: 86px 18px 18px; }

.velden-tafel { height: calc(100% - 44px); gap: 8px; }
.velden-tafel p { min-width: 44px; }
.velden-tafel .print { min-height: 52px; }
.velden-tafel .hand { font-size: 2.5rem; line-height: 1.02; min-height: 1em; }
.velden-tafel [data-veld="naam"] { font-size: var(--naam-maat); }

.teken { display: inline-block; animation: stift .16s linear both; }
@keyframes stift {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.lippen-gasten {
  left: 18px; bottom: 16px; width: calc(var(--gasten) * 26px); transition: width .18s steps(1);
}

.tafel-rechts { padding-top: clamp(120px, 20vh, 190px); max-width: 30rem; }
.tafel-rechts h1 { font-size: clamp(3.25rem, 7vw, 6.5rem); line-height: .95; }
.tafel-uitleg { margin-top: 14px; }
.tafel-klaar:focus { outline: none; }

.veld { margin-top: 26px; }
.veld label, .veld-titel { display: block; margin-bottom: 6px; }
.veld input, .veld select {
  width: 100%; height: 50px; padding: 0 12px;
  background: #0e0706; color: var(--vet); color-scheme: dark;
  border: 1px solid var(--staal); border-radius: 0;
  font: 400 1.0625rem/1 var(--tekst);
}
.veld select:disabled { color: var(--vet-zacht); border-color: #4b5255; }
.veld [aria-invalid="true"] { border-color: var(--tungsten); }
.veld-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 14px; }
.veld-contact { margin-bottom: 28px; }
.fout { margin-top: 6px; color: var(--tungsten); font-size: .9375rem; }
.regel { margin-top: 10px; color: var(--tungsten); font-size: .9375rem; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--staal); }
.stepper button { width: 50px; height: 50px; border: 0; background: none; color: var(--vet); font: 400 1.5rem/1 var(--tekst); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: #fff1; }
.stepper button:disabled { color: #6b5f58; cursor: default; }
.stepper output { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

.tafel-tip { margin: 22px 0; color: var(--vet-zacht); font-size: .9375rem; }
.klaar-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
#tafel-form[hidden], .tafel-klaar[hidden], .knop-licht[hidden] { display: none; }

/* Praktisch */
.praktisch-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) var(--rand) clamp(72px, 10vw, 140px); background: #0e0706; }
.praktisch-kol > p { margin-top: 1.1em; }
.praktisch-kol strong { font-weight: 500; }
.praktisch-kol .link + .link { margin-left: 1em; }
.faq h3 { font: 500 1.0625rem/1.4 var(--tekst); margin-top: 26px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin-top: 4px; color: var(--vet-zacht); }

@media (max-width: 760px) {
  /* Op de telefoon blijft het label boven in beeld terwijl je typt, en ligt de tekst gewoon horizontaal */
  .tafel, .praktisch-pagina { grid-template-columns: minmax(0, 1fr); }
  .tafel { display: block; padding-top: 0; min-height: 0; }
  .label-hang { display: contents; }
  .tag-tafel { z-index: 15; width: calc(100% - 118px); margin: 0 0 0 auto; --touw: 82px; --schuin-x: 18px; --schuin-y: 26px; }
  .tafel-hangt .tag-tafel .tag-string { height: 82px; }
  .tag-tafel .tag-body { height: auto; padding: 30px 12px 10px; }
  .velden-tafel { writing-mode: horizontal-tb; height: auto; gap: 2px; width: auto; margin: 0; }
  .velden-tafel p { min-width: 0; min-height: 1.5rem; }
  .velden-tafel .print { min-height: 0; width: 38px; flex: none; font-size: .625rem; }
  .velden-tafel .hand, .velden-tafel [data-veld="naam"] { font-size: 1.3rem; white-space: nowrap; }
  .lippen-gasten { position: static; width: calc(var(--gasten) * 15px); height: 14px; margin-top: 4px; mask-size: 15px 14px; }
  @keyframes stift {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  .tafel-rechts { padding-top: 34px; max-width: none; }
  .veld-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .teken { animation: none; }
  .tag-tafel .tag-string, .lippen-gasten { transition: none; }
}
