/* Gedeelde stijl voor de oliebollen-bestelpagina en de beheerpagina's.
   Zelfde navy/goud/bordeaux winterstijl als de Scouting Laurentius-flyer. */
:root {
  --night: #0b1733;
  --night-deep: #071028;
  --gold: #f3c23d;
  --gold-deep: #c9962a;
  --cream: #fbf4e2;
  --ice: #eaf1ff;
  --ice-dim: #aebcdd;
  --maroon: #7e2334;
  --maroon-deep: #591725;
  --pine: #2f6b45;
  --pine-deep: #214f33;
  --line: rgba(234, 241, 255, 0.14);
  --card-bg: #112352;
  --focus: #f3c23d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, .display { font-family: "Oswald", "Arial Narrow", sans-serif; }
img { max-width: 100%; }
a { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 28px);
  padding-bottom: 36px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 70%, #16265a 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  text-align: center;
}

.lights {
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding-top: calc(env(safe-area-inset-top, 0px) + 4px);
  z-index: 2;
}
.lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  animation: twinkle 2.6s ease-in-out infinite;
  box-shadow: 0 0 8px 2px currentColor;
}
.lights span:nth-child(4n+1) { color: #f3c23d; }
.lights span:nth-child(4n+2) { color: #e0536b; }
.lights span:nth-child(4n+3) { color: #4fb0e0; }
.lights span:nth-child(4n+4) { color: #6fcf7a; }
.lights span:nth-child(odd) { animation-delay: .4s; }
.lights span:nth-child(3n) { animation-delay: 1.1s; }
@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.snow span {
  position: absolute;
  top: -8%;
  display: block;
  width: var(--s, 5px);
  height: var(--s, 5px);
  background: #fff;
  border-radius: 50%;
  opacity: .75;
  animation: fall var(--d, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes fall {
  to { transform: translate(var(--drift, 20px), 480px); }
}

.logo-row { display: flex; justify-content: center; margin-bottom: 14px; }
.logo-row img { height: 56px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 10px;
}

.headline {
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  margin: 0 0 6px;
  text-wrap: balance;
}
.subline {
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 18px;
  letter-spacing: .03em;
}

.price-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: radial-gradient(circle at 30% 20%, var(--maroon) 0%, var(--maroon-deep) 70%);
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  margin: 4px auto 18px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.price-badge strong { font-size: 1.3rem; color: var(--gold); font-family: "Oswald", sans-serif; }
.price-badge span { font-size: .72rem; color: var(--cream); }
.price-badge small { font-size: .62rem; color: var(--ice-dim); margin-top: 2px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; font-size: .85rem; color: var(--ice); }
.hero-meta .chip { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }

/* ---------- Content ---------- */
main { max-width: 640px; margin: 0 auto; padding-block: 28px 56px; }

.notice {
  background: rgba(243, 194, 61, .1);
  border: 1px solid rgba(243, 194, 61, .35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--cream);
  margin-bottom: 24px;
}
.notice strong { color: var(--gold); }
.notice.warn { background: rgba(224,83,107,.1); border-color: rgba(224,83,107,.35); }

section.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
section.card h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--cream); letter-spacing: .02em; }
section.card p.hint { margin: 0 0 16px; font-size: .85rem; color: var(--ice-dim); }

.variant { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.variant:last-child { margin-bottom: 0; }
.variant-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.variant-head h3 { margin: 0; font-size: 1rem; color: var(--ice); font-weight: 600; font-family: inherit; }
.variant-head .tag {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pine);
  background: rgba(111, 207, 122, .14); border: 1px solid rgba(111, 207, 122, .3); border-radius: 999px; padding: 2px 8px;
}

.qty-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; min-width: 0; }
.qty-row + .qty-row { margin-top: 10px; }
.qty-label { font-size: .88rem; color: var(--ice); min-width: 0; }
.qty-label .price { color: var(--ice-dim); font-size: .8rem; display: block; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.stepper button { width: 32px; height: 32px; flex: 0 0 auto; background: rgba(255,255,255,.06); border: none; color: var(--ice); font-size: 1.1rem; cursor: pointer; }
.stepper button:hover { background: rgba(255,255,255,.14); }
.stepper button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* [type=number] erbij: zelfde specificiteit als de algemene input[type=number]-regel verderop
   zou anders (op bronvolgorde) winnen en deze width/padding stilletjes overschrijven. */
.stepper input[type=number] {
  width: 26px; flex: 0 0 auto; text-align: center; border: none; background: transparent; color: var(--cream);
  font-size: .95rem; padding: 0; border-radius: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input[type=number]::-webkit-outer-spin-button, .stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 380px) {
  .qty-row { grid-template-columns: 1fr; justify-items: start; }
}

label.field { display: block; margin-bottom: 14px; }
label.field:last-child { margin-bottom: 0; }
label.field span.lbl { display: block; font-size: .85rem; color: var(--ice); margin-bottom: 6px; }
label.field span.sub { display: block; font-size: .76rem; color: var(--ice-dim); margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); font-size: .95rem; padding: 10px 12px; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--ice-dim); }

.donate-amt { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.donate-amt span { color: var(--ice-dim); }

.summary { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.summary-row span:first-child { color: var(--ice-dim); min-width: 0; }
.summary-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.05rem; font-weight: 700; color: var(--gold); }

.submit-btn {
  width: 100%; border: none; border-radius: 12px; padding: 14px; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  color: var(--cream); background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); cursor: pointer; margin-top: 16px;
}
.submit-btn:hover { filter: brightness(1.08); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.confirm { text-align: center; padding: 10px 4px 2px; }
.confirm .check { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--pine); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.confirm .check.err { background: var(--maroon); }
.confirm h2 { color: var(--cream); margin-bottom: 6px; }
.confirm p { color: var(--ice-dim); font-size: .9rem; }

#order-form.sent section.card { display: none; }

footer { max-width: 640px; margin: 0 auto; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .78rem; color: var(--ice-dim); }
footer a { color: var(--ice-dim); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .lights span, .snow span { animation: none; }
}
