/* BASIS INSTELLINGEN */

:root {
    --color-lucht-blauw: rgb(180, 189, 208);
    --color-zee: rgb(8, 91, 100);
    --color3: rgb(51, 52, 103);
    --color4: rgb(109, 125, 57);
    --color6: rgb(255, 255, 255);
    --color-wit: #ffffff;
    --color-grijs: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "BuurtCampusArial-Regular", Arial, sans-serif;
    color: var(--color3);
}

a {
    text-decoration: none;
    color: inherit;
}

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


/* HEADER */

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--color-lucht-blauw);
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.site-title a,
.header-main h1 a {
    font-family: "BuurtCampusArial-Bold", Arial, sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--color3);
}


/* HAMBURGER MENU */

.hamburger {
    width: 35px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-grijs);
    border-radius: 3px;
    transition: 0.35s ease;
}

/* ANIMATIE:X via MDN */
.hamburger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
}


/* NAVIGATIE */

#navList {
    display: none;
    flex-direction: column;
    gap: 15px;

    background: var(--color-wit);
    padding: 16px;
    border-radius: 12px;

    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;

    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;

    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 999;
}

/* Mobiele navigatie open */
#navList.open {
    display: flex !important;
    transform: translateY(0px);
    opacity: 1;
}


/* WELKOM + VIDEO (HOME) */

.home-video {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    text-align: center;
}

.home-video h2 {
    margin-bottom: 10px;
    color: var(--color3);
}

.home-video p {
    margin-bottom: 20px;
    color: var(--color3);
}

.home-video video {
    width: 100%;
    max-width: 900px;
    max-height: 480px;
    border-radius: 16px;
    object-fit: cover;
}


/* NIEUWS + ARCHIEF */

.news-and-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h2 {
    color: var(--color3);
    font-weight: 700;
}

.archief-btn {
    padding: 8px 16px;
    border: 2px solid var(--color3);
    border-radius: 6px;
    font-weight: bold;
    color: var(--color3);
}


/* NIEUWS GRID */

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card img {
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.news-card h3 {
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--color3);
}

.news-card h3:hover {
    text-decoration: underline;
}

.news-card p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color3);
}


/* ARTIKEL PAGINA */

.pagina-titel {
    max-width: 900px;
    margin: 25px auto;
    padding: 0 20px;
    font-size: 2rem;
    line-height: 1.3;
}

.artikel-foto {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.artikel-foto img {
    border-radius: 12px;
    max-height: 420px;
    object-fit: cover;
}

.artikel-tekstblok {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.55;
}

.blockquote1 {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
}


/* FORMULIER */

.contact-form {
    max-width: 550px;
    margin: 20px auto 60px;
    background: var(--color-lucht-blauw);
    padding: 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field,
.textarea-input-field {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* DECORATIE */

.decoratie-links,
.decoratie-rechts {
    position: absolute;      /* 👈 NIET fixed, scrolt gewoon mee */
    top: 180px;              /* start onder de header */
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 120px;
    pointer-events: none;
    z-index: 0;
}

.decoratie-links {
    left: 20px;
}

.decoratie-rechts {
    right: 20px;
}

.decoratie-links img,
.decoratie-rechts img {
    width: 100%;
    height: auto;
}


/* DESKTOP BREAKPOINT */

@media (min-width: 601px) {

    .hamburger {
        display: none !important;
    }

    #navList {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        opacity: 1;
        transform: none;
        box-shadow: none;
        gap: 40px;
    }

    .site-title a {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 50px;
        margin-top: 50px;
    }

    .home-video {
        padding: 50px 20px;
    }
}


/* GEBIED-KLEUREN (HEADER) */

.header-zuidoost {
    background-color: var(--color-zee) !important;
    color: var(--color6) !important;
}

.header-zuidoost h1 a,
.header-zuidoost #navList a {
    color: var(--color-zee) !important;
}

.header-oost {
    background-color: var(--color3) !important;
    color: var(--color3) !important;
}

.header-oost h1 a,
.header-oost #navList a {
    color: var(--color3) !important;
}

.header-nieuw-west {
    background-color: var(--color4) !important;
    color: var(--color4) !important;
}

.header-nieuw-west h1 a,
.header-nieuw-west #navList a {
    color: var(--color4) !important;
}



/* TOEVOEGING: HOVER EFFECT HEADER NAV */


.header-zuidoost #navList a,
.header-oost #navList a,
.header-nieuw-west #navList a {
    transition: color 0.25s ease;
}

.header-zuidoost #navList a:hover,
.header-oost #navList a:hover,
.header-nieuw-west #navList a:hover {
    color: var(--color-lucht-blauw);
}

.header-zuidoost #navList a:focus-visible,
.header-oost #navList a:focus-visible,
.header-nieuw-west #navList a:focus-visible {
    color: var(--color-lucht-blauw);
    outline: none;
}


/* GEBIEDS-GEBONDEN HOVER KLEUREN (HEADER)   */

/* ZUIDOOST */
.header-zuidoost #navList a:hover,
.header-zuidoost #navList a:focus-visible {
    color: var(--color-zee) !important;
}

/* OOST */
.header-oost #navList a:hover,
.header-oost #navList a:focus-visible {
    color: var(--color3) !important;
}

/* NIEUW-WEST */
.header-nieuw-west #navList a:hover,
.header-nieuw-west #navList a:focus-visible {
    color: var(--color4) !important;
}


/* FIX: HAMBURGER ECHT IN DE HOEK (MOBIEL)   */


@media (max-width: 600px) {

    .header-main {
        position: relative;
        flex-wrap: nowrap;
    }

    .hamburger {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .site-title,
    .header-main h1 {
        white-space: nowrap;
    }
}


/* FIX: EXTRA KLEIN SCHERM (320px)           */


@media (max-width: 340px) {

    .site-title a,
    .header-main h1 a {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }

    .hamburger {
        right: 8px;
        width: 28px;
        height: 20px;
    }

    .hamburger span {
        height: 2px;
    }
}

/* TOEVOEGING: HEADER DECORATIE (TABLET+)    */


/* STANDAARD: NIET ZICHTBAAR (MOBIEL) */
.header-decoratie {
    display: none;
}

/* TABLET & DESKTOP */
@media (min-width: 600px) {

    .header-decoratie {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
    }

    /* Zorg dat logo + menu erboven blijven */
    .header-main > *:not(.header-decoratie) {
        position: relative;
        z-index: 2;
    }

    /* ALGEMEEN */
    .header-decoratie img {
        position: absolute;
        height: auto;
    }

    /* WOLKEN */
    .wolk {
        width: 90px;
        opacity: 0.85;
    }

    .wolk-1 {
        top: px;
        left: 280px;
    }

    .wolk-2 {
        top: 5px;
        right: 160px;
    }

    /* VOGELS */
    .vogel {
        width: 42px;
    }

    .vogel-1 {
        top: 14px;
        left: 340px;
    }

    .vogel-2 {
        top: 42px;
        right: 210px;
    }
}

/* DESKTOP GROTER */
@media (min-width: 1024px) {

    .wolk {
        width: 120px;
    }

    .vogel {
        width: 50px;
    }
}

/* FIX: VOGELS RICHTING + AFSTAND            */

@media (min-width: 600px) {

    /* WOLKEN – MEER RUIMTE */
    .wolk-1 {
        top: 6px;
        left: 42%;
    }

    .wolk-2 {
        top: 12px;
        left: 70%;
    }

    /* VOGELS – LOS VAN WOLKEN */
    .vogel-1 {
        top: 38px;
        left: 48%;
        transform: scaleX(-1); /* kijkt naar links */
    }

    .vogel-2 {
        top: 42px;
        left: 76%;
        transform: scaleX(1);  /* kijkt naar rechts */
    }
}
/* ========================================= */
/* FIX: DECORATIE MEER NAAR HET MIDDEN        */
/* ========================================= */

@media (min-width: 600px) {

    /* WOLKEN – MEER CENTRAAL */
    .wolk-1 {
        top: 6px;
        left: 45%;
    }

    .wolk-2 {
        top: 10px;
        left: 60%;
    }

    /* VOGELS – ONDER WOLKEN, WEG VAN NAV */
    .vogel-1 {
        top: 40px;
        left: 48%;
        transform: scaleX(-1); /* kijkt naar links */
    }

    .vogel-2 {
        top: 44px;
        left: 62%;
        transform: scaleX(1); /* kijkt naar rechts */
    }
}
/* ========================================= */
/* FIX: DECORATIE ECHT IN HET MIDDEN (LOGO)  */
/* ========================================= */

@media (min-width: 600px) {

    /* HEADER ALS REFERENTIE */
    .header-main {
        position: relative;
    }

    /* DECORATIE-CONTAINER */
    .header-decoratie {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    /* WOLKEN – BOVEN LOGO */
    .wolk-1 {
        position: absolute;
        top: 6px;
        left: 38%;
    }

    .wolk-2 {
        position: absolute;
        top: 10px;
        left: 52%;
    }

    /* VOGELS – ONDER WOLKEN, RONDOM LOGO */
    .vogel-1 {
        position: absolute;
        top: 42px;
        left: 41%;
        transform: scaleX(-1); /* kijkt naar links */
    }

    .vogel-2 {
        position: absolute;
        top: 46px;
        left: 55%;
        transform: scaleX(1);  /* kijkt naar rechts */
    }
}
/* ===================================================== */
/* FIX: LOGO TEKST ALTIJD CONTRAST OP BUURT-PAGINA'S     */
/* ===================================================== */

.header-zuidoost .site-title a,
.header-oost .site-title a,
.header-nieuw-west .site-title a {
    color: #ffffff !important;
}
/* ================= VIDEO – SIMPEL & GOED ================= */

.video-wrapper {
    width: 100%;
    max-width: 360px;          /* TELEFOON: normale grootte */
    aspect-ratio: 16 / 9;
    margin: 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* COMPUTER */
@media (min-width: 768px) {
    .video-wrapper {
        max-width: 800px;      /* COMPUTER: niet te groot */
    }
}

/* Basis */
.wolk {
  position: absolute;
  will-change: transform;
}

/* Bewegen bij hover */
.header-main:hover .wolk-1 {
  animation: wolkDoor 6s linear infinite;
}

.header-main:hover .wolk-2 {
  animation: wolkDoor 9s linear infinite;
}

/* Van links naar rechts door het beeld */
@keyframes wolkDoor {
  from {
    transform: translateX(-150px);
  }
  to {
    transform: translateX(110vw);
  }
}

/* FIX: MENU LINKS ALTIJD ZICHTBAAR */
  
.header-zuidoost #navList a,
.header-oost #navList a,
.header-nieuw-west #navList a {
  color: #fff !important;
}

/*  duidelijke hover */
.header-zuidoost #navList a:hover,
.header-oost #navList a:hover,
.header-nieuw-west #navList a:hover,
.header-zuidoost #navList a:focus-visible,
.header-oost #navList a:focus-visible,
.header-nieuw-west #navList a:focus-visible {
  color: var(--color-lucht-blauw) !important;
  outline: none;
}

/* (aanrader) geen bullets */
#navList { list-style: none; margin: 0; padding: 0; }
