/* ============================================================
   KERST — zwevende knop, hoekpopup en lichte kerstsfeer
   Staat los van styles.css zodat het hele onderdeel in één keer
   weg kan als het seizoen voorbij is: verwijder dit bestand,
   assets/js/kerst-reservering.js en de twee regels per pagina.
   Erft de tokens (--green-deep, --ff-display, …) uit styles.css.
   ============================================================ */

:root {
  --kerst-rood:      #A4161A;   /* wit hierop = 8.1:1 */
  --kerst-rood-diep: #7C1013;
  --kerst-rood-zacht:#FBE9E9;
  --kerst-goud:      #C9A227;
}

/* ---------- Lichte kerstsfeer ---------- */
/* Eén dun lint bovenaan. Meer dan dit wordt rommelig op een site die
   al druk is met palmen. */
.kerst-lint {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 95;
  background: repeating-linear-gradient(90deg,
    var(--kerst-rood) 0 22px, #fff 22px 30px,
    var(--green-deep) 30px 52px, var(--kerst-goud) 52px 60px);
  pointer-events: none;
}
/* De vaste header schuift het lint niet weg, dus hij krijgt wat lucht. */
.kerst-aan .site-header { top: 4px; }

/* ---------- Zwevende knop ---------- */
/* z-index 100: boven de pagina, onder het mobiele menu (120), zodat de
   knop achter de veil verdwijnt zodra dat menu opengaat. */
.kerst-fab {
  position: fixed; right: clamp(14px, 2.5vw, 26px); bottom: clamp(14px, 2.5vw, 26px);
  z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--kerst-rood); color: #fff; cursor: pointer;
  font-family: var(--ff-display); font-size: 1rem; font-weight: 600; line-height: 1;
  box-shadow: 0 10px 28px rgba(124, 16, 19, .34);
  transition: transform .2s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.kerst-fab:hover { background: var(--kerst-rood-diep); transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 16, 19, .42); }
.kerst-fab:active { transform: translateY(0); }
.kerst-fab:focus-visible { outline: 3px solid var(--kerst-rood); outline-offset: 3px; }
.kerst-fab svg { width: 20px; height: 20px; flex: none; }
.kerst-fab[hidden] { display: none; }

@media (max-width: 480px) {
  .kerst-fab { padding: 13px 18px; font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kerst-fab, .kerst-fab:hover { transition: none; transform: none; }
}

/* ---------- Hoekpopup ---------- */
/* Geen volledige zijkant: een venster in dezelfde hoek als de knop, dat
   eruit opengroeit. Vandaar transform-origin rechtsonder. */
.kerst-pop {
  position: fixed; z-index: 140;
  right: clamp(14px, 2.5vw, 26px);
  bottom: calc(clamp(14px, 2.5vw, 26px) + 62px);
  width: min(380px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--cream, #FFF8EC);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(23, 28, 20, .32), 0 0 0 1px rgba(23, 28, 20, .06);
  transform-origin: 100% 100%;
  transform: scale(.88) translateY(12px);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2, .9, .3, 1.1), opacity .2s ease;
}
.kerst-pop[hidden] { display: none; }
.kerst-pop.is-open { transform: scale(1) translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .kerst-pop { transition: none; transform: none; }
}

.kerst-kop {
  flex: none; background: var(--kerst-rood); color: #fff;
  padding: 15px 17px; display: flex; align-items: flex-start; gap: 12px;
}
.kerst-kop h2 { margin: 0; font-size: 1.08rem; color: #fff; line-height: 1.2; }
.kerst-kop p { margin: 3px 0 0; font-size: .8rem; color: rgba(255,255,255,.88); }
.kerst-kop__sluit {
  margin-left: auto; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff;
  transition: background-color .2s var(--ease);
}
.kerst-kop__sluit:hover { background: rgba(255,255,255,.3); }
.kerst-kop__sluit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kerst-kop__sluit svg { width: 16px; height: 16px; }

/* Het enige dat scrollt; kop en voet blijven staan. */
.kerst-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; display: grid; gap: 18px; align-content: start;
}

.kerst-stap__titel {
  font-family: var(--ff-display); font-weight: 600; font-size: .96rem;
  color: var(--green-deep); margin: 0 0 9px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* ---------- Velden ---------- */
.kerst-veld { display: grid; gap: 5px; }
.kerst-veld > label, .kerst-veld > .kerst-veld__label {
  font-size: .82rem; font-weight: 700; color: var(--ink);
}
.kerst-veld input, .kerst-veld select, .kerst-veld textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-field, #7E8B73);
  border-radius: 10px; padding: 10px 12px;
}
.kerst-veld textarea { min-height: 70px; resize: vertical; }
.kerst-veld input:focus, .kerst-veld select:focus, .kerst-veld textarea:focus {
  outline: 2px solid var(--kerst-rood); outline-offset: 1px; border-color: var(--kerst-rood);
}
.kerst-veld--fout input, .kerst-veld--fout select, .kerst-veld--fout textarea,
.kerst-veld--fout .kerst-tel { border-color: var(--kerst-rood); }
.kerst-fout { font-size: .78rem; color: var(--kerst-rood-diep); font-weight: 600; }
.kerst-fout:empty { display: none; }
.kerst-req { color: var(--kerst-rood); }
.kerst-hint { font-size: .76rem; color: var(--ink-soft); }

.kerst-rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.kerst-aantal { display: flex; align-items: stretch; gap: 6px; }
.kerst-aantal button {
  flex: none; width: 40px; border: 1px solid var(--line-field, #7E8B73);
  border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--green-deep);
}
.kerst-aantal button:hover:not(:disabled) { background: var(--green-soft); }
.kerst-aantal button:disabled { opacity: .4; cursor: default; }
.kerst-aantal input { text-align: center; font-weight: 700; }

.kerst-tel { display: flex; gap: 6px; }
.kerst-tel select { flex: none; width: 38%; min-width: 100px; }

/* ---------- Tijdsloten ---------- */
.kerst-shifts { display: grid; gap: 8px; }
.kerst-shift {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 13px; cursor: pointer; font: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.kerst-shift:hover { border-color: var(--kerst-rood); }
.kerst-shift[aria-pressed="true"] { border-color: var(--kerst-rood); background: var(--kerst-rood-zacht); }
.kerst-shift__tijd { font-family: var(--ff-display); font-weight: 600; color: var(--green-deep); }
.kerst-shift__naam { font-size: .78rem; color: var(--ink-soft); margin-left: auto; }

/* ---------- Infoknop en popover ---------- */
.kerst-info { position: relative; display: inline-flex; }
.kerst-info__knop {
  width: 19px; height: 19px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-deep); color: #fff;
  font-family: var(--ff-body); font-size: .7rem; font-weight: 800; line-height: 19px;
  padding: 0; text-align: center;
}
.kerst-info__knop:hover { background: var(--green-dark); }
.kerst-info__knop:focus-visible { outline: 2px solid var(--kerst-rood); outline-offset: 2px; }
.kerst-info__pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 3;
  width: min(260px, 72vw);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(23, 28, 20, .18);
  padding: 12px 13px; font-size: .82rem; line-height: 1.55; color: var(--ink-soft);
  font-weight: 400; text-align: left;
}
.kerst-info__pop[hidden] { display: none; }
.kerst-info__talen { display: flex; gap: 5px; margin-bottom: 8px; }
.kerst-info__talen button {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 700;
  color: var(--ink-soft); font-family: var(--ff-body);
}
.kerst-info__talen button[aria-pressed="true"] {
  background: var(--green-deep); border-color: var(--green-deep); color: #fff;
}

/* ---------- Menukaart ---------- */
.kerst-menus { display: grid; gap: 9px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.kerst-menu {
  display: grid; grid-template-columns: 62px 1fr; gap: 11px; text-align: left;
  width: 100%; padding: 9px; background: #fff;
  border: 2px solid var(--kerst-rood); border-radius: 10px;
}
.kerst-menu img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 8px; display: block;
  background: var(--sand, #F5E5C8);
}
.kerst-menu__dag { font-size: .72rem; font-weight: 700; color: var(--kerst-rood-diep);
  text-transform: uppercase; letter-spacing: .06em; }
.kerst-menu__naam { font-family: var(--ff-display); font-weight: 600; color: var(--green-deep);
  font-size: .94rem; margin-top: 1px; }
.kerst-menu__tekst { font-size: .8rem; color: var(--ink-soft); margin: 3px 0 0; line-height: 1.45; }
.kerst-menu__prijs { font-family: var(--ff-display); font-weight: 700; color: var(--kerst-rood-diep);
  margin-top: 4px; font-size: .88rem; }
.kerst-menu__link { display: inline-block; margin-top: 5px; font-size: .78rem; font-weight: 700;
  color: var(--green-deep); }
/* Een dag waarvan de kaart nog niet binnen is: geen afbeelding, dus ook geen
   beeldkolom, en een rustiger rand dan bij een echt menu. */
.kerst-menu--later {
  grid-template-columns: 1fr; border-style: dashed; border-color: #D9C9A7;
  background: #FFFDF7; padding: 11px 12px;
}
.kerst-menu--later .kerst-menu__naam { color: var(--ink-soft); }
.kerst-leeg { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---------- Samenvatting ---------- */
.kerst-sam { background: var(--green-soft); border-radius: 10px; padding: 13px 15px; }
.kerst-sam dl { display: grid; grid-template-columns: auto auto; gap: 6px 12px; margin: 0;
  font-size: .86rem; }
.kerst-sam dt { color: var(--ink-soft); }
.kerst-sam dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kerst-sam__totaal { border-top: 1px solid rgba(62,107,34,.25); margin-top: 10px; padding-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline; }
.kerst-sam__totaal span { font-family: var(--ff-display); font-weight: 600; color: var(--green-deep); }
.kerst-sam__totaal strong { font-family: var(--ff-display); font-size: 1.12rem; color: var(--kerst-rood-diep);
  font-variant-numeric: tabular-nums; }

/* ---------- Voet en meldingen ---------- */

.kerst-voet { flex: none; padding: 13px 16px; background: #fff;
  border-top: 1px solid var(--line); display: grid; gap: 8px; }
.kerst-verstuur {
  width: 100%; padding: 14px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--kerst-rood); color: #fff;
  font-family: var(--ff-display); font-size: .98rem; font-weight: 600; line-height: 1;
}
.kerst-verstuur:hover:not(:disabled) { background: var(--kerst-rood-diep); }
.kerst-verstuur:disabled { opacity: .62; cursor: progress; }
.kerst-voet__klein { margin: 0; font-size: .74rem; color: var(--ink-soft); text-align: center; }

.kerst-melding { border-radius: 10px; padding: 12px 14px; font-size: .86rem; }
.kerst-melding[hidden] { display: none; }
.kerst-melding--ok  { background: var(--green-soft); color: var(--green-dark); }
.kerst-melding--err { background: #FFE0D2; color: #8E3410; }
.kerst-melding p { margin: 0; }
.kerst-melding p + p { margin-top: 7px; }

.kerst-pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  /* Nog steeds een popup in de hoek, maar bijna schermbreed zodat de
     velden en het toetsenbord werkbaar blijven. */
  .kerst-pop {
    left: 10px; right: 10px; width: auto;
    bottom: calc(clamp(14px, 2.5vw, 26px) + 60px);
    max-height: calc(100vh - 110px);
  }
  .kerst-body { padding: 14px; gap: 15px; }
  .kerst-menus { max-height: none; }
}

/* ---------- Kerstblok op de homepage ---------- */
.kerst-band { background: var(--kerst-rood); color: #fff; }
.kerst-band .eyebrow { color: #FFD9B0; }
.kerst-band h2 { color: #fff; }
.kerst-band p { color: rgba(255,255,255,.9); }
.kerst-band__grid {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px); align-items: center; max-width: 820px; margin-inline: auto;
  text-align: left;
}
.kerst-band__kaart { display: block; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.kerst-band__kaart:hover { transform: translateY(-4px); }
.kerst-band__kaart img { display: block; width: 100%; height: auto; }
.kerst-band .btn--primary { background: #fff; color: var(--kerst-rood-diep); box-shadow: none; }
.kerst-band .btn--primary:hover { background: #FFF0F0; }
.kerst-band .btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.kerst-band .btn--ghost:hover { background: #fff; color: var(--kerst-rood-diep); }
@media (max-width: 720px) {
  .kerst-band__grid { grid-template-columns: 1fr; max-width: 420px; }
  .kerst-band__kaart { max-width: 260px; margin-inline: auto; }
}

/* ---------- Sneeuw ---------- */
/* z-index 89: over de pagina-inhoud, maar onder de header (90) en de
   zwevende knop (100), zodat niets klikbaars eronder verdwijnt.
   pointer-events: none — je moet er dwars doorheen kunnen klikken. */
.kerst-sneeuw {
  position: fixed; inset: 0; z-index: 89; overflow: hidden;
  pointer-events: none;
}
.kerst-vlok {
  position: absolute; top: -12px;
  border-radius: 50%;
  /* Niet zuiver wit: op de crèmekleurige achtergrond van deze site is dat
     onzichtbaar. Een koele tint met een zachte gloed leest op het licht
     én op het donkergroen van de footer. */
  background: #EAF2FB;
  box-shadow: 0 0 5px rgba(118, 152, 196, .55), 0 0 0 .5px rgba(118, 152, 196, .3);
  opacity: .9; filter: blur(.2px);
  animation-name: kerst-val; animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes kerst-val {
  /* De zijwaartse drift zit in de translateX, zodat het niet als regen valt. */
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--drift, 20px), 102vh, 0); }
}
/* Geen sneeuw bij voorkeur voor minder beweging; de rest van de sfeer blijft. */
@media (prefers-reduced-motion: reduce) {
  .kerst-sneeuw { display: none; }
}

/* ---------- Badge in de hero ---------- */
.kerst-badge {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 auto 1.1em; padding: 9px 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--kerst-rood); color: #fff;
  font-family: var(--ff-display); font-size: .88rem; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 22px rgba(124, 16, 19, .3);
  transition: transform .2s var(--ease), background-color .25s var(--ease);
}
.kerst-badge:hover { background: var(--kerst-rood-diep); transform: translateY(-2px); }
.kerst-badge:focus-visible { outline: 3px solid var(--kerst-rood); outline-offset: 3px; }
.kerst-badge svg { width: 15px; height: 15px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .kerst-badge, .kerst-badge:hover { transition: none; transform: none; }
}

/* ---------- Sneeuwrand op de footer ---------- */
/* Eigen element in plaats van ::before of ::after: die gebruikt styles.css
   al voor het ROTTERDAM-watermerk en de scrim. */
.kerst-sneeuwrand {
  position: absolute; inset: -1px 0 auto 0; height: 26px; z-index: 3;
  pointer-events: none;
  background: var(--cream, #FFF8EC);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v9c-6 0-9 5-15 5s-9-4-15-4-9 6-15 6-10-5-16-5-9 4-15 4-9-5-15-5-9 4-14 4-9-4-15-4z' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v9c-6 0-9 5-15 5s-9-4-15-4-9 6-15 6-10-5-16-5-9 4-15 4-9-5-15-5-9 4-14 4-9-4-15-4z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 240px 100%; mask-size: 240px 100%;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}

.kerst-menu-uitleg { margin: -4px 0 10px; font-size: .8rem; color: var(--ink-soft);
  line-height: 1.5; }

/* ---------- Taalknop in de kop ---------- */
.kerst-taal { display: flex; gap: 3px; margin-left: auto; flex: none;
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px; }
.kerst-taal button {
  border: 0; background: transparent; cursor: pointer; color: rgba(255,255,255,.82);
  font-family: var(--ff-body); font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; line-height: 1;
}
.kerst-taal button[aria-pressed="true"] { background: #fff; color: var(--kerst-rood-diep); }
.kerst-taal button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* De sluitknop stond met margin-left:auto rechts; dat doet de taalknop nu. */
.kerst-kop__sluit { margin-left: 8px; }

.kerst-menu__beeld { display: block; }

.kerst-taalvak { margin-left: auto; flex: none; display: grid; justify-items: center; gap: 3px; }
.kerst-taalvak .kerst-taal { margin-left: 0; }
.kerst-taalvak__uitleg { font-size: .62rem; color: rgba(255,255,255,.8);
  letter-spacing: .02em; white-space: nowrap; }
