/* =============================================================
   LAYOUT.CSS — Nebula
   ============================================================= */

/* -------------------------------------------------------------
   CSS-variabelen
   ------------------------------------------------------------- */
:root {
  --color-purple:      #50589c;
  --color-turquoise:   #17b890;
  --color-light-blue:  #cce2f1;
  --color-event-blue:  #016fb9;
  --color-text:        #111111;
  --color-white:       #ffffff;
  --color-cream:       #f3eee8;
  --color-yellow:      #ffda29;
  --container:         1200px;
}

/* -------------------------------------------------------------
   Reset & box-model
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background-color: #EFEBF5;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------
   Container
   ------------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* -------------------------------------------------------------
   Site wrapper — sticky footer via flexbox
   + maximale breedte op grote schermen (boxed layout)
   ------------------------------------------------------------- */
.site-wrapper,
.site-wrapper--front {
  min-height: 100vh;
  max-width: min(1520px, calc(100vw - clamp(32px, 8vw, 160px)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------
   Main content — vult de ruimte tussen header en footer
   ------------------------------------------------------------- */
main,
.main-content,
.main-content--front,
.front-page-content {
  flex: 1;
  min-width: 0;
}

/* Padding alleen op reguliere pagina's, niet op de homepage */
.main-content:not(.main-content--front) {
  padding: 60px 0;
}

.highlighted {
  margin-bottom: 0;
  padding-bottom: 0;
}

.site-footer {
  margin-top: 0;
}

/* -------------------------------------------------------------
   Skip-link (toegankelijkheid)
   ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--color-white);
  color: var(--color-text);
  padding: 10px 14px;
  border: 2px solid var(--color-text);
}

/* -------------------------------------------------------------
   Knoppen
   ------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 3px solid var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.button--primary {
  background: var(--color-yellow);
  color: var(--color-text);
}

.button--primary:hover {
  background: #d4a800;
}

.button--secondary {
  background: var(--color-white);
  color: var(--color-text);
}

.button--secondary:hover {
  background: #d4a800;
}

/* -------------------------------------------------------------
   Events sectie
   ------------------------------------------------------------- */
.events-section {
  background: var(--color-light-blue);
  padding: 70px 0 62px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 500;
}

.section-heading a {
  color: var(--color-text);
  font-weight: 700;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------------
   Event card
   ------------------------------------------------------------- */
.event-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  border: 2px solid var(--color-text);
  background: var(--color-event-blue);
  color: var(--color-white);
}

.event-card__media {
  min-height: 360px;
  background: #d7cec2;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__content {
  padding: 28px 28px 24px;
}

.event-card__meta {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.event-card__content h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 13ch;
}

.event-card__content p {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38ch;
}

/* Alleen de expliciete linkknop in de event card stylen */
.event-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-text);
}

/* -------------------------------------------------------------
   Hero fallback achtergrond
   ------------------------------------------------------------- */
.heroimage--fallback {
  width: 100%;
  height: 100%;
  min-height: 565px;
  background: linear-gradient(135deg, #d8e4df 0%, var(--color-light-blue) 100%);
}

/* -------------------------------------------------------------
   Contactformulier
   ------------------------------------------------------------- */

/* Intro-styling: zie css/webform.css (.contact-intro) — bevat de
   typografie die overeenkomt met de articles-section op /events. */

/* Meer ruimte tussen intro en formulier */
.contact-message-form {
  margin-top: 32px;
}

/* Ruimte onder het formulier voor de footer */
.main-content {
  padding-bottom: 64px;
}

.contact-message-form {
  width: 100%;
  margin: 40px 0 72px;
  padding: 32px;
  background: #f3eee8;
  border: 2px solid #111111;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}
.contact-message-form > *:last-child {
  margin-bottom: 0;
}

/* Spacing */
.contact-message-form .js-form-item,
.contact-message-form .form-item,
.contact-message-form fieldset {
  margin: 0 0 20px;
}

/* Labels */
.contact-message-form label {
  display: block;
  margin: 0 0 8px;
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.contact-message-form .form-required::after {
  content: " *";
  color: #5960a8;
  font-weight: 700;
}

/* Invoervelden */
.contact-message-form input[type="text"],
.contact-message-form input[type="email"],
.contact-message-form input[type="tel"],
.contact-message-form input[type="search"],
.contact-message-form input[type="url"],
.contact-message-form input[type="password"],
.contact-message-form select,
.contact-message-form textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 2px solid #111111;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-message-form textarea {
  min-height: 170px;
  resize: vertical;
}
.contact-message-form input::placeholder,
.contact-message-form textarea::placeholder {
  color: #666666;
  opacity: 1;
}
.contact-message-form input:hover,
.contact-message-form select:hover,
.contact-message-form textarea:hover {
  background: #fcfaf7;
}
.contact-message-form input:focus-visible,
.contact-message-form select:focus-visible,
.contact-message-form textarea:focus-visible {
  outline: 3px solid #23b89e;
  outline-offset: 3px;
}

/* Actions / submit */
.contact-message-form .form-actions,
.contact-message-form .js-form-wrapper.form-wrapper {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
  box-shadow: none;
}
.contact-message-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 54px;
  padding: 14px 18px;
  margin: 0;
  border: 2px solid #111111;
  border-radius: 0;
  background: #f0c419;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.contact-message-form input[type="submit"]:hover {
  background: #23b89e;
  color: #ffffff;
}
.contact-message-form input[type="submit"]:focus-visible {
  outline: 3px solid #5960a8;
  outline-offset: 3px;
}
.contact-message-form input[type="submit"]:active {
  transform: translateY(1px);
}
.contact-message-form input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Foutmeldingen */
.contact-message-form .form-item--error input,
.contact-message-form .form-item--error select,
.contact-message-form .form-item--error textarea,
.contact-message-form input.error,
.contact-message-form select.error,
.contact-message-form textarea.error {
  border-color: #5960a8;
  background: #fbf8fc;
}
.contact-message-form .form-item--error-message,
.contact-message-form .error,
.contact-message-form [role="alert"] {
  display: block;
  margin-top: 8px;
  color: #5960a8;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Statusberichten */
.contact-message-form .messages--status { background: #c6d8e4; border: 2px solid #111111; padding: 16px; margin: 20px 0 0; }
.contact-message-form .messages--error   { background: #f6e8ee; border: 2px solid #111111; padding: 16px; margin: 20px 0 0; }
.contact-message-form .messages--warning { background: #fff4cc; border: 2px solid #111111; padding: 16px; margin: 20px 0 0; }

/* Fieldsets */
.contact-message-form fieldset {
  padding: 18px;
  border: 2px solid #111111;
}
.contact-message-form legend {
  padding: 0 8px;
  font-weight: 700;
}

/* -------------------------------------------------------------
   Article grid — content-breedte gelijk aan de hero (site-wrapper).
   ------------------------------------------------------------- */
.article-grid {
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Titel van het artikel-grid: dezelfde typografie als events-block__title
   zodat de twee sectie-koppen visueel gelijk lopen. */
.article-grid__title {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #111111;
}

@media (max-width: 1520px) {
  .article-grid {
    padding-inline: var(--nnn-space-lg, 24px);
  }
}

@media (max-width: 600px) {
  .article-grid {
    padding-inline: var(--nnn-space-md, 16px);
  }
}

/* Mobiel */
@media (max-width: 640px) {
  .contact-message-form {
    width: calc(100% - 32px);
    margin: 48px auto;
    padding: 22px 20px 20px;
  }
  .contact-message-form input[type="submit"] {
    width: 100%;
  }
}

.contact-message-form .form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-message-form .form-type-checkbox label {
  display: inline;
  font-weight: 400;
  margin: 0;
}

.contact-message-form .form-type-checkbox input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .event-card__content {
    padding: 22px 20px 20px;
  }

  .event-card__content h3 {
    font-size: 1.9rem;
  }
}
.privacy-notice {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.privacy-notice a {
  text-decoration: underline;
}

.views-element-container:has(.article-grid) {
  padding-top: 70px;
}
            