/* Story Panel v1.3.20 — frontend */
.hal-story-panel{
  --hal-story-bg:#050505;
  --hal-story-left-bg:#050505; /* legacy naam: basisachtergrond rechterpaneel */
  --hal-story-left-panel-bg:#111111;
  --hal-story-right-panel-bg:#111111;
  --hal-story-accent:#d7a92f;
  --hal-story-eyebrow-gap:14px;
  --hal-story-outer-padding:24px;
  --hal-story-panel-height:260px;
  --hal-story-panel-height-mobile:220px;
  --hal-story-eyebrow-x:0px;
  --hal-story-eyebrow-y:0px;
  --hal-story-eyebrow-x-mobile:0px;
  --hal-story-eyebrow-y-mobile:0px;
  --hal-story-title-x:0px;
  --hal-story-title-y:0px;
  --hal-story-title-x-mobile:0px;
  --hal-story-title-y-mobile:0px;
  --hal-story-intro-x:0px;
  --hal-story-intro-y:0px;
  --hal-story-intro-x-mobile:0px;
  --hal-story-intro-y-mobile:0px;
  --hal-story-image:none;
  --hal-story-image-w:72%;
  --hal-story-image-w-mobile:100%;
  --hal-story-image-shift-x:10%;
  --hal-story-image-shift-x-mobile:0%;
  --hal-story-fade:28%;
  --hal-story-fade-mobile:34%;
  --hal-story-fade-right:8%;
  --hal-story-fade-right-mobile:10%;
  --hal-story-fade-top:0%;
  --hal-story-fade-top-mobile:0%;
  --hal-story-fade-bottom:0%;
  --hal-story-fade-bottom-mobile:0%;
  --hal-story-img-x:100%;
  --hal-story-img-y:50%;
  --hal-story-zoom:100%;
  --hal-story-image-opacity:1;
  background:var(--hal-story-bg)!important;
  margin:0 auto;
  padding:72px 28px;
  box-sizing:border-box;
  color:#fff;
}
.hal-story-panel *{box-sizing:border-box}
.hal-story-width-normal{max-width:1100px}
.hal-story-width-wide{max-width:1380px}
.hal-story-width-full{max-width:none;width:100%}

.hal-story-inner{
  display:grid;
  gap:58px;
  align-items:center;
  margin:auto;
  max-width:1320px;
  padding:var(--hal-story-outer-padding);
  background:var(--hal-story-bg)!important;
  border:0;
}

/* Buitenrand staat volledig los van de twee paneelkaders. */
.hal-story-outer-border-none .hal-story-inner{border:0!important}
.hal-story-outer-border-subtle .hal-story-inner{border:1px solid color-mix(in srgb,var(--hal-story-accent) 16%,#222)!important}
.hal-story-outer-border-gold .hal-story-inner{border:1px solid var(--hal-story-accent)!important}
.hal-story-outer-border-accent_left .hal-story-inner{border:0!important;border-left:2px solid var(--hal-story-accent)!important}

.hal-story-ratio-50-50 .hal-story-inner{grid-template-columns:1fr 1fr}
.hal-story-ratio-60-40 .hal-story-inner{grid-template-columns:3fr 2fr}
.hal-story-ratio-40-60 .hal-story-inner{grid-template-columns:2fr 3fr}
.hal-story-ratio-30-70 .hal-story-inner{grid-template-columns:3fr 7fr}
.hal-story-ratio-20-80 .hal-story-inner{grid-template-columns:1fr 4fr}

/* Rechterpaneel: verhaal + beeld. */
.hal-story-copy{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:var(--hal-story-panel-height);
  background-color:var(--hal-story-left-bg)!important;
  border:0;
}
.hal-story-copy::before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  bottom:0;
  right:0;
  width:calc(var(--hal-story-image-w) + var(--hal-story-image-shift-x));
  background-image:var(--hal-story-image);
  background-repeat:no-repeat;
  background-position:var(--hal-story-img-x) var(--hal-story-img-y);
  background-size:auto var(--hal-story-zoom);
  opacity:var(--hal-story-image-opacity);
  pointer-events:none;

  /* Horizontale én verticale fade. De twee maskers worden doorsneden. */
  -webkit-mask-image:
    linear-gradient(to right,
      transparent 0%,
      #000 var(--hal-story-fade),
      #000 calc(100% - var(--hal-story-fade-right)),
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      #000 var(--hal-story-fade-top),
      #000 calc(100% - var(--hal-story-fade-bottom)),
      transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:
    linear-gradient(to right,
      transparent 0%,
      #000 var(--hal-story-fade),
      #000 calc(100% - var(--hal-story-fade-right)),
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      #000 var(--hal-story-fade-top),
      #000 calc(100% - var(--hal-story-fade-bottom)),
      transparent 100%);
  mask-composite:intersect;
}
.hal-story-copy>*{position:relative;z-index:1}

.hal-story-right-surface-base .hal-story-copy{background-color:var(--hal-story-left-bg)!important}
.hal-story-right-surface-transparent .hal-story-copy{background-color:transparent!important}
.hal-story-right-surface-dark .hal-story-copy{background-color:var(--hal-story-right-panel-bg)!important}

.hal-story-right-border-none .hal-story-copy{border:0!important}
.hal-story-right-border-subtle .hal-story-copy{border:1px solid color-mix(in srgb,var(--hal-story-accent) 16%,#222)!important}
.hal-story-right-border-gold .hal-story-copy{border:1px solid var(--hal-story-accent)!important}
.hal-story-right-border-accent_left .hal-story-copy{border:0!important;border-left:2px solid var(--hal-story-accent)!important}

.hal-story-panel .hal-story-eyebrow{margin:0 0 var(--hal-story-eyebrow-gap)!important;left:var(--hal-story-eyebrow-x)!important;top:var(--hal-story-eyebrow-y)!important}
.hal-story-panel .hal-story-title{margin:0 0 24px!important;left:var(--hal-story-title-x)!important;top:var(--hal-story-title-y)!important}
.hal-story-panel .hal-story-intro{max-width:760px;margin:0 0 30px!important;left:var(--hal-story-intro-x)!important;top:var(--hal-story-intro-y)!important}

.hal-story-buttons{display:flex;flex-wrap:wrap;gap:18px}
.hal-story-panel .hal-story-button{
  display:inline-flex;
  border:1px solid var(--hal-story-accent)!important;
  text-decoration:none!important;
  transition:background-color .18s ease,border-color .18s ease;
  align-items:center;
  justify-content:center;
  transform:none!important
}
.hal-story-panel .hal-story-button-label{margin:0!important;padding:14px 24px}
.hal-story-panel .hal-story-button-align-left{margin-left:0!important;margin-right:auto!important}
.hal-story-panel .hal-story-button-align-center{margin-left:auto!important;margin-right:auto!important}
.hal-story-panel .hal-story-button-align-right{margin-left:auto!important;margin-right:0!important}
.hal-story-panel .hal-story-button-gold{background:var(--hal-story-accent)!important}
.hal-story-panel .hal-story-button-outline{background:transparent!important}
.hal-story-panel .hal-story-button:hover,
.hal-story-panel .hal-story-button:focus{
  background:color-mix(in srgb,var(--hal-story-accent) 76%,#fff)!important;
  border-color:color-mix(in srgb,var(--hal-story-accent) 76%,#fff)!important;
  transform:none!important
}

/* Linkerpaneel: checklist. Achtergrond/vlak en kader zijn onafhankelijk. */
.hal-story-side{padding:34px 36px;border:0;min-height:var(--hal-story-panel-height)}
.hal-story-left-surface-transparent .hal-story-side{background:transparent!important}
.hal-story-left-surface-dark .hal-story-side{background:var(--hal-story-left-panel-bg)!important}

.hal-story-left-border-none .hal-story-side{border:0!important}
.hal-story-left-border-subtle .hal-story-side{border:1px solid color-mix(in srgb,var(--hal-story-accent) 16%,#222)!important}
.hal-story-left-border-gold .hal-story-side{border:1px solid var(--hal-story-accent)!important}
.hal-story-left-border-accent_left .hal-story-side{border:0!important;border-left:2px solid var(--hal-story-accent)!important}

.hal-story-panel .hal-story-side-title{margin:0 0 22px!important}
.hal-story-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.hal-story-panel .hal-story-list li{display:flex;gap:12px;align-items:flex-start}
.hal-story-check{color:var(--hal-story-accent)!important;font-weight:800;flex:0 0 auto}
.hal-story-panel .hal-story-item-text{margin:0!important;flex:1 1 auto;min-width:0}

@supports not (color:color-mix(in srgb,#000 50%,#fff)){
  .hal-story-left-border-subtle .hal-story-side,
  .hal-story-right-border-subtle .hal-story-copy,
  .hal-story-outer-border-subtle .hal-story-inner{border-color:#222!important}
  .hal-story-panel .hal-story-button:hover,
  .hal-story-panel .hal-story-button:focus{filter:brightness(1.16)}
}

@media(max-width:820px){
  .hal-story-inner,
  .hal-story-ratio-50-50 .hal-story-inner,
  .hal-story-ratio-60-40 .hal-story-inner,
  .hal-story-ratio-40-60 .hal-story-inner,
  .hal-story-ratio-30-70 .hal-story-inner,
  .hal-story-ratio-20-80 .hal-story-inner{grid-template-columns:1fr}
  .hal-story-panel{padding:52px 22px}
  .hal-story-side{padding:28px;min-height:var(--hal-story-panel-height-mobile)}
  .hal-story-copy{min-height:var(--hal-story-panel-height-mobile)}
  .hal-story-panel .hal-story-eyebrow{left:var(--hal-story-eyebrow-x-mobile)!important;top:var(--hal-story-eyebrow-y-mobile)!important}
  .hal-story-panel .hal-story-title{left:var(--hal-story-title-x-mobile)!important;top:var(--hal-story-title-y-mobile)!important}
  .hal-story-panel .hal-story-intro{left:var(--hal-story-intro-x-mobile)!important;top:var(--hal-story-intro-y-mobile)!important}
  .hal-story-copy::before{
    width:calc(var(--hal-story-image-w-mobile) + var(--hal-story-image-shift-x-mobile));
    -webkit-mask-image:
      linear-gradient(to right,
        transparent 0%,
        #000 var(--hal-story-fade-mobile),
        #000 calc(100% - var(--hal-story-fade-right-mobile)),
        transparent 100%),
      linear-gradient(to bottom,
        transparent 0%,
        #000 var(--hal-story-fade-top-mobile),
        #000 calc(100% - var(--hal-story-fade-bottom-mobile)),
        transparent 100%);
    mask-image:
      linear-gradient(to right,
        transparent 0%,
        #000 var(--hal-story-fade-mobile),
        #000 calc(100% - var(--hal-story-fade-right-mobile)),
        transparent 100%),
      linear-gradient(to bottom,
        transparent 0%,
        #000 var(--hal-story-fade-top-mobile),
        #000 calc(100% - var(--hal-story-fade-bottom-mobile)),
        transparent 100%);
  }
}

/* v1.3.12: volledige lokale typografie is terug voor H1-H6/P. */
/* v1.3.14: checklist links, verhaal/beeldpaneel rechts. */
/* v1.3.15: werkende basisachtergrond + Hero AW-achtige beeldregeling. */
/* v1.3.16: extra donkere achtergrondpresets, eigen kleur en randloze panelen. */
/* v1.3.17: rechterpaneel-achtergrond bij Rechterpaneel; beeldmenging toegevoegd. */
/* v1.3.18: fade boven/onder; tabvolgorde aangepast; vlak en kader per paneel onafhankelijk. */

/* v1.3.19: paneelhoogte desktop/mobiel instelbaar; kolomverhoudingen 30/70 en 20/80 toegevoegd. */

/* v1.3.20: vrije X/Y-positionering per rechterpaneel-tekstblok; lokale fontkleur versterkt voor theme-conflicten. */

/* CTA's onderaan rechts, met afzonderlijke randen voor desktop en mobiel. */
.hal-story-panel .hal-story-copy{display:flex;flex-direction:column;align-items:stretch}
.hal-story-panel .hal-story-buttons{position:relative;margin-top:auto;margin-left:auto;margin-right:var(--hal-story-buttons-right,32px);margin-bottom:var(--hal-story-buttons-bottom,28px);padding-top:24px;justify-content:flex-end;max-width:calc(100% - var(--hal-story-buttons-right,32px));box-sizing:border-box}
@media(max-width:820px){.hal-story-panel .hal-story-buttons{margin-right:var(--hal-story-buttons-right-mobile,20px);margin-bottom:var(--hal-story-buttons-bottom-mobile,20px);max-width:calc(100% - var(--hal-story-buttons-right-mobile,20px))}}
