:root {
  --event-navy: #082f55;
  --event-navy-deep: #041f3a;
  --event-gold: #f0b35c;
  --event-ink: #10283f;
  --event-paper: #fffaf3;
  --event-white: #ffffff;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.event-hero {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1774 / 887;
  min-height: 420px;
  background: #d9c3aa;
}

.event-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.event-hero-image,
.event-hero noscript img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.event-hero-image.is-active,
.event-hero noscript img {
  opacity: 1;
}

.event-card {
  position: absolute;
  z-index: 4;
  color: var(--event-white);
  background: rgba(4, 31, 58, .94);
  border: 1px solid rgba(240, 179, 92, .75);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.event-card p,
.event-card time,
.event-card address {
  color: rgba(255, 255, 255, .88);
}

.event-card h1 {
  color: var(--event-white);
  letter-spacing: 0;
}

.event-card strong,
.event-card .event-accent {
  color: var(--event-gold);
}

.event-card-a {
  left: max(28px, calc((100vw - 1200px) / 2));
  bottom: 7%;
  width: clamp(290px, 28vw, 410px);
  padding: clamp(20px, 2.1vw, 30px);
  border-radius: 8px;
}

.event-card-a h1 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.event-card-a .event-details {
  display: grid;
  gap: 2px;
  margin-bottom: 13px;
}

.event-card-a .event-details span {
  font-size: 16px;
  font-weight: 700;
}

.event-card-a .event-activities {
  margin-bottom: 17px;
  font-size: 13px;
  line-height: 1.5;
}

.event-card-b {
  left: max(28px, calc((100vw - 1200px) / 2));
  bottom: -38px;
  width: min(590px, 43vw);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 8px;
  transform: none;
}

.event-card-b h1 {
  grid-column: 1 / -1;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.1;
}

.event-card-b .event-fact {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

.event-card-b .event-fact small {
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-card-b .event-fact strong {
  font-size: 12px;
}

.event-card-b .location-fact {
  grid-column: 1 / 3;
}

.event-card-b .event-button {
  grid-column: 3;
  grid-row: 2 / 4;
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: var(--event-navy-deep);
  background: var(--event-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.event-button:hover,
.event-button:focus-visible {
  background: #ffd18c;
  transform: translateY(-1px);
}

.topbar .event-nav-link {
  border-color: rgba(240, 179, 92, .7);
  color: #fff;
  background: rgba(8, 47, 85, .74);
}

/* Open middag pages */
.event-page {
  margin: 0;
  color: var(--event-ink);
  background: var(--event-paper);
}

.event-page .event-page-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 7px max(18px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(8, 47, 85, .12);
  color: var(--event-navy);
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(14px);
}

.event-page .event-page-header img {
  display: block;
  width: 124px;
  height: auto;
  object-fit: initial;
}

.event-page .event-page-header > a:first-child {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--event-navy-deep);
}

.event-page.variant-b .event-page-header > a:first-child {
  padding: 0;
  background: transparent;
}

.event-page .event-page-header nav {
  display: flex;
  gap: 8px;
}

.event-page .event-page-header a {
  color: inherit;
}

.event-page .event-page-header nav a {
  padding: 7px 10px;
  border: 1px solid rgba(8, 47, 85, .18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.open-hero {
  width: min(1160px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(62px, 8vw, 112px) 0;
}

.open-hero-copy {
  display: grid;
  gap: 18px;
}

.open-hero .event-kicker,
.event-section .event-kicker {
  margin: 0;
  color: #9a5a14;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.open-hero h1,
.event-section h2,
.event-section h3 {
  margin: 0;
  color: var(--event-navy);
  font-weight: 700;
  letter-spacing: 0;
}

.open-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.open-hero .event-date {
  color: var(--event-navy);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.open-hero .event-intro {
  max-width: 680px;
  color: #3e5365;
  font-size: 17px;
  line-height: 1.65;
}

.open-hero figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(8, 47, 85, .15);
}

.open-hero figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-section {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.event-section + .event-section {
  border-top: 1px solid rgba(8, 47, 85, .12);
}

.event-section-heading {
  max-width: 720px;
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.event-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.event-section p {
  color: #526575;
  font-size: 16px;
  line-height: 1.7;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(8, 47, 85, .14);
  border-radius: 8px;
  color: var(--event-navy);
  background: rgba(255, 255, 255, .62);
  font-size: 14px;
  font-weight: 700;
}

.signup-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(380px, 1fr);
  gap: clamp(36px, 7vw, 82px);
  align-items: start;
}

.event-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(8, 47, 85, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 47, 85, .07);
}

.event-form label {
  display: grid;
  gap: 7px;
  color: var(--event-navy);
  font-size: 13px;
  font-weight: 700;
}

.event-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 47, 85, .22);
  border-radius: 7px;
  color: #132535;
  background: #fff;
  font: inherit;
}

.event-form input:focus {
  border-color: var(--event-navy);
  outline: 3px solid rgba(8, 47, 85, .1);
}

.event-form button {
  min-height: 48px;
  width: fit-content;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--event-navy-deep);
  background: var(--event-gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.event-form .privacy-note {
  color: #687986;
  font-size: 11px;
  line-height: 1.55;
}

.form-success {
  display: none;
  padding: 22px;
  border: 1px solid rgba(8, 47, 85, .18);
  border-radius: 8px;
  color: var(--event-navy);
  background: #fff;
}

.form-success.is-visible {
  display: block;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 22px;
}

.flyer-card {
  display: grid;
  gap: 10px;
  color: var(--event-navy);
  text-decoration: none;
}

.flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(8, 47, 85, .14);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(8, 47, 85, .1);
}

.flyer-card span {
  font-size: 13px;
  font-weight: 700;
}

.event-page-footer {
  padding: 30px 18px;
  color: rgba(255, 255, 255, .72);
  background: var(--event-navy-deep);
  text-align: center;
}

.event-page-footer p {
  color: inherit;
  font-size: 13px;
}

.event-page.variant-b .event-page-header {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .12);
  background: rgba(4, 31, 58, .94);
}

.event-page.variant-b {
  color: #fff;
  background: var(--event-navy-deep);
}

.event-page.variant-b .open-hero-wrap {
  color: #fff;
  background: var(--event-navy-deep);
}

.event-page.variant-b .open-hero h1,
.event-page.variant-b .open-hero .event-date {
  color: #fff;
}

.event-page.variant-b .open-hero h1 {
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.02;
}

.event-title-brand {
  color: var(--event-gold);
}

.event-page.variant-b .open-hero .event-date {
  font-size: clamp(17px, 1.7vw, 22px);
}

.event-page.variant-b .open-hero .event-kicker {
  color: var(--event-gold);
}

.event-page.variant-b .open-hero .event-hero-kicker {
  max-width: 520px;
  font-size: clamp(14px, 1.45vw, 19px);
  line-height: 1.35;
}

.event-page.variant-b .open-hero .event-intro {
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.event-partner-group {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 36px;
}

.event-page.variant-b .event-partner-label {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.5;
}

.event-partner-logo {
  width: min(174px, 52vw);
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.event-partner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.event-fun-logo {
  position: absolute;
  top: 34px;
  right: 18px;
  width: 106px;
  height: 106px;
}

.event-fun-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
}

.event-page.variant-b #activiteiten {
  position: relative;
}

.event-page.variant-b .open-hero .open-flyer-feature {
  transform: translateY(-18px);
}

.event-page.variant-b .open-hero .open-flyer-feature {
  width: min(330px, 100%);
  aspect-ratio: 1052 / 1160;
  overflow: hidden;
  justify-self: end;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

.event-page.variant-b .open-hero .open-flyer-feature img {
  height: auto;
  object-fit: initial;
  object-position: top;
}

.event-page.variant-b .event-section {
  padding: clamp(42px, 5vw, 64px) 0;
  border-top-color: rgba(255, 255, 255, .12);
}

.event-page.variant-b .event-section h2,
.event-page.variant-b .event-section h3 {
  color: #fff;
}

.event-page.variant-b .event-section p {
  color: rgba(255, 255, 255, .7);
}

.event-page.variant-b .activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}

.event-page.variant-b .activity-list li {
  min-height: 62px;
  gap: 12px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.activity-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .22));
}

.event-page.variant-b .event-form {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.event-page.variant-b .event-form label {
  color: #fff;
}

.event-page.variant-b .event-form .privacy-note {
  color: rgba(255, 255, 255, .6);
}

.event-page.variant-b .form-success {
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.event-page.variant-b .flyer-grid {
  grid-template-columns: minmax(0, 300px);
}

.event-page.variant-b .flyer-card {
  color: #fff;
}

.event-page.variant-b .flyer-card img {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

@media (max-width: 980px) {
  .event-card-b {
    left: 18px;
    width: min(590px, calc(100% - 36px));
  }

  .event-page.variant-b .open-hero .open-flyer-feature {
    justify-self: start;
  }

  .open-hero,
  .signup-wrap {
    grid-template-columns: 1fr;
  }

  .open-hero figure {
    width: min(680px, 100%);
  }

  .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .event-hero {
    min-height: 0;
    aspect-ratio: auto;
    padding-top: 50%;
    background: #050505;
  }

  .event-hero-media {
    bottom: auto;
    aspect-ratio: 1774 / 887;
  }

  .event-card-a,
  .event-card-b {
    position: relative;
    inset: auto;
    width: calc(100% - 28px);
    min-height: 0;
    margin: 16px auto 0;
    transform: none;
  }

  .event-card-a {
    padding: 20px;
  }

  .event-card-b {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 17px;
  }

  .event-card-b h1 {
    grid-column: 1 / -1;
  }

  .event-card-b .location-fact {
    display: grid;
  }

  .event-card-b .event-button {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .event-page.variant-b .open-hero h1 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .event-page.variant-b .activity-list {
    grid-template-columns: 1fr;
  }

  .topbar .event-nav-link {
    order: -1;
  }

  .event-page .event-page-header nav a:first-child {
    display: none;
  }

  .event-page .event-page-header img {
    width: 104px;
    height: auto;
  }

  .event-page .event-page-header nav {
    gap: 4px;
  }

  .event-page .event-page-header nav a {
    padding: 6px 7px;
    font-size: 10px;
  }

  .event-fun-logo {
    position: static;
    width: 88px;
    height: 88px;
    margin: -14px 0 20px auto;
  }

  .open-hero {
    width: calc(100% - 28px);
    padding: 52px 0 64px;
  }

  .open-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .event-section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .activity-list,
  .flyer-grid {
    grid-template-columns: 1fr;
  }

  .flyer-grid {
    max-width: 310px;
  }

  .event-form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-hero-image {
    transition: none;
  }

  .event-button {
    transition: none;
  }
}
