/* Black Friday 2026: balk bovenaan, blok na de hero, knoppen in het midden.
   Eén bestand voor alle Pubergids- en Leergids-pagina's. */
:root { --bf-inkt: #1a1216; --bf-geel: #ffc82d; --bf-roze: #f65d8b; --bf-paars: #8c52ff; }

/* V3 owner-authorized larger announcement; supersedes the V2 40px/narrow adapter. */
:root { --bf-bar-height: 72px; }
body.pubergids-page, body.leergids-page { --pg-announcement-height: var(--bf-bar-height); --bar-h: var(--bf-bar-height); }
body.pubergids-page .pubergids-announcement, body.leergids-page .urgentie-bar {
  position: fixed !important; inset: 0 0 auto !important; width: auto !important; height: var(--bf-bar-height) !important;
  margin: 0 !important; padding: 0 24px !important; box-sizing: border-box; z-index: 400;
  display: flex; align-items: center; justify-content: center; background: var(--bf-inkt); border: 0;
}
.pubergids-page .pubergids-announcement .wrap, .leergids-page .urgentie-bar .wrap { width: 100%; max-width: 1120px; padding: 0; }
.bf-balk { margin: 0; width: 100%; }
.bf-balk a { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.bf-balk__label { color: var(--bf-geel); text-transform: uppercase; letter-spacing: .08em; font-size: 16px; }
.bf-balk__klok { display: inline-block; flex: none; background: rgba(255,255,255,.12); border-radius: 8px; padding: 8px 16px;
  font-size: 28px; font-variant-numeric: tabular-nums; color: var(--bf-geel); }
body .dtvj-header[data-header-section="pubergids"] { top: var(--bf-bar-height) !important; }
body .dtvj-header[data-header-section="leergids"] { margin-top: var(--bf-bar-height) !important; }
body.pubergids-page .dtvj-mobile-menu, body.leergids-page .dtvj-mobile-menu { top: calc(var(--bf-bar-height) + 80px) !important; }
body.pubergids-page #black-friday, body.leergids-page #black-friday { scroll-margin-top: calc(var(--bf-bar-height) + 96px); }
@media (max-width: 768px) {
  :root { --bf-bar-height: 64px; }
  body.pubergids-page .pubergids-announcement, body.leergids-page .urgentie-bar { padding: 0 12px !important; }
  body.pubergids-page, body.leergids-page { padding-top: var(--bf-bar-height); }
  body .dtvj-header[data-header-section="leergids"] { margin-top: 0 !important; }
  .bf-balk a { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 12px; row-gap: 3px; font-size: 13px; }
  .bf-balk__label { font-size: 12px; }
  .bf-balk__lang { display: none; }
  .bf-balk__klok { grid-column: 1 / -1; justify-self: stretch; text-align: center; font-size: 20px; padding: 3px 16px; }
}
/* Leergids opening only: explicit first-paint/hydration visibility; no global reveal override. */
body.leergids-page :is(.product-hero, .lp-hero) .reveal { opacity: 1; transform: none; transition: none; }

/* V4: the display:contents visual leaves its blob at hero scope (z-index:1).
   Keep Leergids copy, price and CTA above that decoration without moving boxes. */
body.leergids-page .product-hero .product-hero-content { position: relative; z-index: 2; }

/* 2. Het blok direct na de hero */
.bf-deal { background: var(--bf-inkt); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) var(--edge, 20px); }
.bf-deal__in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bf-deal__in > * { grid-column: 1; }
.bf-deal__label { justify-self: start; display: inline-block; margin: 0; background: var(--bf-geel); color: var(--bf-inkt);
  font: 800 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: .6rem .85rem; border-radius: 8px; transform: rotate(-2deg); }
.bf-deal__titel { margin: 1.1rem 0 .9rem; font-family: var(--font-display); font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.05; color: #fff; }
.bf-deal__titel em { color: var(--bf-geel); }
.bf-deal__prijs { display: flex; align-items: baseline; gap: .9rem; margin: 0 0 1.5rem; }
.bf-deal__prijs del { font: 600 1.4rem var(--font-body); color: rgba(255,255,255,.55); }
.bf-deal__prijs strong { font: 700 clamp(3.2rem, 9vw, 4.5rem)/1 var(--font-display); color: var(--bf-geel); }
.bf-deal__klok { display: flex; gap: .5rem; margin: 0 0 .5rem; }
.bf-deal__klok span { min-width: 66px; padding: .65rem .4rem .55rem; border-radius: 12px; background: rgba(255,255,255,.09); text-align: center;
  font: 600 .68rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.bf-deal__klok b { display: block; margin-bottom: .2rem; font: 700 1.7rem/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0; color: #fff; }
.bf-deal__tot { margin: 0 0 1.6rem; font-size: .85rem; color: rgba(255,255,255,.65); }
.bf-deal .bf-deal__knop { justify-self: start; font-size: 1.1rem; padding: 18px 36px; min-height: 58px; }
.bf-deal__code { margin: 1rem 0 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.bf-deal__code b { color: #fff; letter-spacing: .06em; }
.bf-deal__cadeau { grid-column: 2; grid-row: 1 / span 8; position: relative; margin: 0; text-align: center; }
.bf-deal__cadeau img { width: min(100%, 320px); height: auto; transform: rotate(4deg); filter: drop-shadow(0 22px 40px rgba(0,0,0,.45)); }
.bf-deal__sticker { position: absolute; top: -6px; left: 4%; z-index: 2; background: var(--bf-roze); color: #fff;
  font: 800 1rem/1 var(--font-body); padding: .7rem 1rem; border-radius: 999px; transform: rotate(-8deg); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.bf-deal__cadeau figcaption { margin-top: 1.2rem; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.85); }
.bf-deal__cadeau figcaption b { color: #fff; }
[data-bf-klok][hidden] { display: none !important; }
@media (max-width: 768px) {
  .bf-deal__in { grid-template-columns: 1fr; text-align: center; }
  .bf-deal__in > * { grid-column: 1; }
  .bf-deal__label, .bf-deal .bf-deal__knop { justify-self: center; }
  .bf-deal__prijs, .bf-deal__klok { justify-content: center; }
  .bf-deal__cadeau { grid-row: auto; display: flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; padding: .9rem; border-radius: 16px; background: rgba(255,255,255,.07); text-align: left; }
  .bf-deal__cadeau img { width: 96px; flex: none; transform: rotate(-3deg); }
  .bf-deal__sticker { display: none; }
  .bf-deal__cadeau figcaption { margin: 0; font-size: .9rem; }
  .bf-deal .bf-deal__knop { width: 100%; justify-content: center; }
}

/* 3. Knoppen weer netjes uitgelijnd */
body.pubergids-page[data-guide-pilot] .cta-component { align-items: center; text-align: center; }
.product-hero .cta-component-proof { text-align: left; margin-left: 0; }
@media (max-width: 768px) {
  .hero-purchase .btn, .hero-actions .btn { width: 100%; justify-content: center; }
  .product-hero .cta-component-proof { text-align: center; margin-left: auto; }
}

/* Het menu blijft bovenin staan, net als op de andere pagina's; de actiebalk staat erboven en scrolt mee weg
   (eigenaar, 27 november 2026). components/guide-pilot/VasteKop.astro zet het menu onder de balk zolang die
   in beeld is en daarna helemaal bovenaan. Zonder script staat het menu vast onder de balk. */
body.pubergids-page .pubergids-announcement, body.leergids-page .urgentie-bar { position: absolute !important; }
body .dtvj-header[data-header-section="pubergids"], body .dtvj-header[data-header-section="leergids"] { position: fixed !important; top: var(--bf-bar-height) !important; left: 0; right: 0; margin-top: 0 !important; }
body.leergids-page { padding-top: calc(var(--bf-bar-height) + 80px) !important; }
