@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Book_reduced.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Italic_reduced.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Medium_reduced.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Medium_Italic_reduced.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Bold_reduced.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Absolut Pro Reduced";
  src: url("/fonts/absolut-pro-reduced/Absolut_Pro_Bold_Italic_reduced.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --vj-blue: #01aef0;
  --vj-green: #00a651;
  --vj-red: #f63440;
  --vj-yellow: #ffc709;
  --vj-purple: #6a2c87;

  --ink: #26313a;
  --ink-soft: #55636c;
  --paper: #f6f8f9;
  --surface: #ffffff;
  --line: #dde3e6;
  --focus: #0b7ec2;

  --font-display: "Absolut Pro Reduced", ui-rounded, "SF Pro Rounded", sans-serif;
  --font-body: "Mulish", system-ui, -apple-system, sans-serif;
}

/*
  Deliberately light-only: the site always shows a white background,
  regardless of the visitor's OS theme or the viewer's dark-mode toggle.
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
  margin-left: 28px;
}

.login-toggle {
  display: none;
}

.hamburger {
  display: none;
}

.login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex: 1 1 320px;
  max-width: 460px;
  margin-right: 32px;
}

.login-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.login-controls button {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  background: var(--vj-blue);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0 22px;
  cursor: pointer;
  flex: 0 0 auto;
}

.login-controls button:hover { filter: brightness(1.08); }

.login-controls input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  flex: 1 1 120px;
  min-width: 0;
  max-width: 160px;
}

.login-controls button,
.login-controls input {
  height: 34px;
}

.login-help {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: right;
}

.login-help a {
  color: var(--focus);
  text-decoration: underline;
}

/* ---------- Accountmenu (ingelogd) ---------- */

.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 32px;
  position: relative;
}

.account-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.account-icon-btn svg {
  width: 17px;
  height: 17px;
}

.account-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--vj-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
  border-radius: 2px;
}

.account-toggle-check {
  display: none;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.account-caret {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 30;
}

.account-toggle-check:checked ~ .account-dropdown {
  display: block;
}

.account-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
}

.account-dropdown a:hover {
  background: var(--paper);
}

.account-dropdown a + a {
  border-top: 1px solid var(--line);
}

.account-dropdown-name {
  display: block;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

/* ---------- Tile nav grid ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 36px 0 6px;
}

.tile {
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 40px;
  text-decoration: none;
  overflow: hidden;
}

.tile h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

.tile p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  font-weight: 400;
}

.tile--blue   { background: var(--vj-blue); }
.tile--green  { background: var(--vj-green); }
.tile--red    { background: var(--vj-red); }
.tile--yellow { background: var(--vj-yellow); }
.tile--purple { background: var(--vj-purple); }

.tile--photo {
  justify-content: center;
  padding-right: 104px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

/* Donkere overlay voor leesbaarheid van titel/badge, ongeacht of er een
   echte foto of de groene placeholder onder zit. */
.tile--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
}

/* Groene "bladeren"-placeholder zolang er nog geen echte foto is ingesteld. */
.tile--photo--placeholder {
  background-color: #2f5c2a;
  background-image:
    radial-gradient(ellipse 70px 46px at 8% 20%, #4d7f34 0%, transparent 70%),
    radial-gradient(ellipse 60px 40px at 22% 65%, #3a6b2e 0%, transparent 70%),
    radial-gradient(ellipse 80px 50px at 38% 15%, #5a8f3d 0%, transparent 70%),
    radial-gradient(ellipse 65px 42px at 55% 55%, #345f28 0%, transparent 70%),
    radial-gradient(ellipse 75px 48px at 70% 25%, #4d7f34 0%, transparent 70%),
    radial-gradient(ellipse 60px 38px at 85% 70%, #3a6b2e 0%, transparent 70%),
    radial-gradient(ellipse 70px 46px at 95% 15%, #5a8f3d 0%, transparent 70%),
    radial-gradient(ellipse 90px 56px at 15% 85%, #24451e 0%, transparent 70%),
    radial-gradient(ellipse 80px 50px at 65% 90%, #24451e 0%, transparent 70%);
}

.tile--photo::before {
  position: absolute;
  bottom: 8px;
  right: 56px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile--photo h2 {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tile--hero {
  --portrait-w: 180px;
  --portrait-h: 211px;
  --portrait-overflow-top: 71px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  background: var(--vj-blue);
  overflow: visible;
}

.tile--hero .portrait {
  position: absolute;
  left: 0px;
  top: calc(-1 * var(--portrait-overflow-top));
  width: var(--portrait-w);
  height: var(--portrait-h);
  overflow: hidden;
  z-index: 2;
}

.tile--hero .portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
}

.tile--hero .portrait img.is-visible {
  opacity: 1;
}

.tile--hero .copy {
  position: relative;
  z-index: 3;
  padding-left: calc(var(--portrait-w) - 60px);
}

.tile--hero h2 {
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1.25;
  max-width: 21ch;
  text-wrap: wrap;
}

.badge-new {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  background: #f07d1a;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ---------- News grid ---------- */

.news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 6px;
  margin: 6px 0 48px;
}

.news-item article {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  padding: 22px 28px;
  background: linear-gradient(150deg, #4a5c68, #26313a);
}

.news-item.tone-a article { background: linear-gradient(150deg, #6b7f8c, #33424c); }
.news-item.tone-b article { background: linear-gradient(150deg, #3a3a3a, #17181a); }
.news-item.tone-c article { background: linear-gradient(150deg, #8a7360, #4a3c2f); }
.news-item.tone-d article {
  background: linear-gradient(90deg, #d0021b 0%, #f5a623 25%, #f8e71c 45%,
    #7ed321 60%, #4a90d9 78%, #6a2c87 100%);
}

.news-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.news-item .meta {
  margin: 0;
  padding: 6px 2px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.news-item .meta time {
  font-style: italic;
  color: var(--ink);
}

.news-item .meta a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.news-item .meta a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

footer.site a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .brand img { margin-left: 12px; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 28px;
    height: 28px;
    margin-right: 14px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ink-soft);
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
  }

  .hamburger span:nth-child(2) { width: 70%; }

  .login-toggle:checked ~ .hamburger span {
    width: 100%;
  }

  .login-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .login-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .login-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .login {
    display: none;
    flex: 0 0 auto;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin-right: 0;
    padding: 0 6px;
  }

  .login-toggle:checked ~ .login {
    display: flex;
  }

  .login-help { text-align: left; }
  .login-controls { justify-content: flex-start; }
  .login-controls input { max-width: none; }
  .tile--hero {
    --portrait-w: 153px;
    --portrait-h: 181px;
    --portrait-overflow-top: 61px;
  }
  .tile--hero .copy { padding-bottom: 14px; }
  .tile--hero h2 { font-size: 1.4rem; }
  .tiles, .news { grid-template-columns: 1fr; }

  .brand img { height: 38px; }
  .tile { min-height: 120px; padding: 14px 24px; }
  .tile h2 { font-size: 1.6rem; }
  .tile p { font-size: 0.95rem; }
  .tile--photo h2 { font-size: 1.6rem; }
  .badge-new { font-size: 1.05rem; }
  .news-item article { min-height: 120px; padding: 16px 18px; }
  .news-item h3 { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  .tile--hero { --portrait-overflow-top: 43px; }
}

@media (min-width: 381px) and (max-width: 424px) {
  .tile--hero { --portrait-overflow-top: 43px; }
}

@media (max-width: 340px) {
  .tile--hero { --portrait-overflow-top: 11px; }
}

@media (min-width: 341px) and (max-width: 364px) {
  .tile--hero {
    --portrait-w: 153px;
    --portrait-h: 181px;
    --portrait-overflow-top: 11px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .tile--hero {
    --portrait-w: 169px;
    --portrait-h: 200px;
    --portrait-overflow-top: -4px;
  }

  .tile--hero h2 {
    font-size: 1.5rem;
    max-width: 18ch;
  }

  .tile h2 { font-size: 2.1rem; }
  .tile--photo h2 { font-size: 2.1rem; }
  .badge-new { font-size: 1.17rem; }
  .news-item h3 { font-size: 1.44rem; }
}

@media (min-width: 894px) and (max-width: 980px) {
  .tile--hero {
    --portrait-w: 169px;
    --portrait-h: 200px;
    --portrait-overflow-top: 38px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .tile--hero { --portrait-overflow-top: 37px; }

  .tile h2 { font-size: 2.3rem; }
  .tile--photo h2 { font-size: 2.3rem; }
  .badge-new { font-size: 1.24rem; }
}

@media (min-width: 1133px) and (max-width: 1180px) {
  .tile--hero { --portrait-overflow-top: 71px; }
}

/* ---------- Cookiebanner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  gap: 18px;
  padding: 16px 24px 16px 136px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner-mascot {
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 92px;
  height: 138px;
  overflow: hidden;
}

.cookie-banner-mascot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.cookie-banner-text {
  flex: 1;
  min-width: 160px;
  font-size: 0.85rem;
  color: var(--ink);
}

.cookie-banner-text strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.cookie-banner-text a {
  color: var(--vj-blue);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  border-radius: 2px;
  height: 34px;
  padding: 0 18px;
  cursor: pointer;
}

.cookie-btn-accept {
  background: var(--vj-blue);
  color: #fff;
  border: none;
}

.cookie-btn-decline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .cookie-banner { flex-wrap: wrap; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}
