:root {
    --bg-dark: #081529;     /* donkerblauw */
    --accent:  #ffcc33;     /* steunkleur, makkelijk aan te passen */
    --text:    #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #102648 0%, #081529 55%, #030816 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* pagina zelf niet horizontaal scrollbaar */
}

/* HEADER + NAV */
header {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 5rem; /* ruimte voor header van twee regels, tekst begint altijd opzelfde afstand */
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-left {
    margin-right: auto; /* titel meer naar links */
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.nav-left .highlight {
    color: var(--accent);
}

.nav-left .nav-small {
    font-size: 0.78em;
    font-weight: 500;
    opacity: 0.92;
    text-transform: none; /* houd 'stichting' en 'in' in kleine letters */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Tijdelijk: knoppen zonder inhoud verbergen */
.nav-right #nav-contact,
.nav-right #nav-projecten {
    display: none;
}

.nav-right a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease-out, color 0.2s ease-out;
}

.nav-right a:hover,
.nav-right a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.nav-right a::after {
    display: none;
}

/* Language switcher: verder naar rechts */
.lang-switcher {
    margin-left: auto !important;
}

/* Tablet / small desktop: nav kan al wat compacter */
@media (max-width: 900px) {
    .nav {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .nav-right a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Mobile: stapel logo + menu onder elkaar */
@media (max-width: 700px) {
    header {
        min-height: 7rem; /* ruimte voor titel + menu onder elkaar */
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem;
    }

    .nav-left {
        font-size: 0.9rem;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .lang-switcher {
        margin-left: auto !important;
    }
}

/* CONTENT */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto 3rem 1.5rem;
    padding: 2.5rem 0 0 1rem;
    padding-top: 1.25rem; /* vaste afstand onder header; header heeft min-height voor 2 regels */
}
.page-about main {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.dev-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    width: 100%;
    margin: 0.25rem auto 2.35rem;
    white-space: nowrap;
    color: rgba(255,255,255,0.9);
}

.dev-label-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    white-space: nowrap;
}
.dev-label-intro {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}
.dev-label-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.trailer-cta-btn {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255,255,255,0.95);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.1s ease-out;
}

.trailer-cta-btn:hover,
.trailer-cta-btn:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.index-trailer-text {
    text-align: center;
    margin: 1.25rem auto 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.index-logline {
    text-align: center;
    margin: -0.55rem auto 2.35rem;
    max-width: 50vw; /* in laptopmodus */
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    line-height: 1.55;
    font-style: italic;
    white-space: pre-line; /* respecteer handmatige regeleinden (\n of Enter) */
}

@media (max-width: 900px) {
    .index-logline {
        max-width: 100%;
        padding: 0 1rem;
        margin: -0.35rem auto 1.7rem;
    }
}

main h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

main h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    margin-bottom: 0.5rem;
}

main p {
    max-width: 40rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.section-spacing {
    margin-top: 2.5rem;
}

/* Over ons sectie */
.over-ons {
    max-width: 56rem;               /* zelfde breedte als contactblok */
    margin: 1rem auto 2.5rem;       /* ietsje lager en gecentreerd */
    padding: 0 1.5rem 0 1.5rem;     /* zelfde binnenmarge als over-ons-contact */
}

.over-ons-title {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.over-ons-body p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    margin: 0 0 0.75rem 0;
}

.over-ons-body p:last-child {
    margin-bottom: 0;
}

.over-ons-video {
    display: none; /* zichtbaar maken via JS wanneer er een geldige Vimeo-URL is */
    width: 60vw; /* responsive (groot scherm) */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.25rem; /* video iets lager */
}

.over-ons-video.is-visible {
    display: block;
}

.over-ons-video .vimeo-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect-ratio */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.over-ons-video .vimeo-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* HORIZONTALE STRIP MET 6 VELDEN */
.projects-strip {
    margin-top: 2.25rem;
}

/* Ultra-wide desktops (o.a. iMac): geef de strip duidelijk meer kijkruimte */
@media (min-width: 1700px) {
    .nav {
        max-width: 1850px;
    }

    main {
        max-width: 2050px;
        margin: 0 auto 3rem auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .projects-layout {
        gap: 3rem;
    }

    .photo-carousel {
        flex: 0 0 min(560px, 31vw);
    }

    .strip-card {
        flex: 0 0 300px;
    }
}

.projects-layout {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    min-width: 0; /* strip kan krimpen zodat pijlen links en rechts zichtbaar blijven */
}

.photo-carousel {
    flex: 0 0 min(520px, 60vw); /* ongeveer 2x een kaartbreedte (2×260px) */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-frame {
    position: relative;
    width: 100%;
    height: 475px; /* vaste grootte */
    border-radius: 12px;
    overflow: visible; /* zoom mag iets buiten het frame lopen */
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    perspective: 1200px;
    transform-style: preserve-3d;
}

@keyframes photoSubtleZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Elke foto in eigen div: img zoomt binnen de div, de hele div slaat om */
.photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.photo-zoom-clip {
    z-index: 1;
}

.photo-fly-wrap {
    z-index: 2;
    transform-origin: left center; /* omslaan vanaf linkerkant */
}

.photo-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-back {
    transform-origin: center center;
    animation: photoSubtleZoom 14s ease-in-out infinite;
}

.photo-front {
    transform-origin: center center;
    animation: photoSubtleZoom 14s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.photo-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.photo-arrow {
    border: none;
    background: rgba(0,0,0,0.35);
    color: var(--text);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s ease-out, transform 0.1s ease-out;
}

.photo-arrow:hover {
    background: rgba(0,0,0,0.55);
    transform: translateY(-1px);
}

.strip-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0; /* laat de shell binnen de parent passen */
}

.strip-arrow {
    flex-shrink: 0;
    align-self: center;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    width: 1.75rem;
    min-width: 1.75rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.1s ease-out;
}

.strip-arrow:not(:disabled):hover {
    background: rgba(255,255,255,0.14);
    color: var(--text);
    transform: translateY(-1px);
}

.strip-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.strip-viewport {
    flex: 1 1 0;
    min-width: 0;         /* zorgt dat viewport kan krimpen, pijlen blijven zichtbaar */
    overflow-x: auto;     /* horizontaal scrollen in de strip */
    overflow-y: hidden;
}

.strip-track {
    display: flex;
    align-items: flex-start; /* alle kaarten bovenaan uitgelijnd, korte teksten niet lager */
    gap: 1rem;
    padding-block: 0.25rem;
}

.strip-card {
    flex: 0 0 260px;   /* vaste kolombreedte zodat er echt gescrold kan worden */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    min-height: 190px;
}

.strip-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    color: #ffffff;
    min-height: 2.5em; /* ruimte voor twee regels, tekst begint overal op dezelfde hoogte */
}

.strip-card-subheader {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.strip-card-subheader:empty {
    display: none;
}

.strip-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* Content + strip responsive */
@media (max-width: 900px) {
    main {
        padding: 2rem 1rem 2rem 1rem;
        padding-top: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }

    .dev-label {
        white-space: normal;
        gap: 0.35em;
        margin-top: 0.35rem;
    }
    .dev-label-buttons { flex-wrap: wrap; justify-content: center; }

    .dev-label-intro {
        font-size: 1rem;
    }

    .dev-label-title {
        font-size: 1.45rem;
    }

    .projects-strip {
        margin-top: 1.75rem;
    }

    .projects-layout {
        flex-direction: column;
        gap: 1.25rem;
    }

    .photo-carousel {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .photo-frame {
        height: 400px;
    }

    .strip-shell {
        gap: 0.5rem;
    }

    .strip-arrow {
        width: 1.65rem;
        min-width: 1.65rem;
        height: 2rem;
        font-size: 0.95rem;
    }

    .strip-card {
        flex: 0 0 240px;
        min-height: 170px;
        padding: 0.95rem 0.9rem;
        font-size: 0.92rem;
    }

    .strip-card h3 {
        font-size: 1.02rem;
    }

    .strip-card-subheader {
        font-size: 0.86rem;
    }

    .strip-card p {
        font-size: 0.87rem;
    }

    /* Over ons: tekst in compacte kolom (tablet), max 50vw */
    .over-ons {
        max-width: 50vw;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .over-ons-body {
        max-width: 50vw;
        margin-left: auto;
        margin-right: auto;
    }

    /* Over ons contactblok hoeft niet mee in 50vw */
    .over-ons-contact {
        max-width: 100%;
    }

    .index-trailer-text {
        margin-top: 0.9rem;
        font-size: 1rem;
    }
}
@media (max-width: 700px) {
    main {
        padding: 1.5rem 0.75rem 2rem 0.75rem;
        padding-top: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }

    .dev-label {
        white-space: normal;
        gap: 0.35em;
        margin-top: 0.35rem;
    }
    .dev-label-buttons { flex-wrap: wrap; justify-content: center; }

    .dev-label-intro {
        font-size: 0.95rem;
    }

    .dev-label-title {
        font-size: 1.25rem;
    }

    .index-trailer-text {
        margin-top: 0.75rem;
        font-size: 0.98rem;
    }

    .projects-strip {
        margin-top: 1.35rem;
    }

    .projects-layout {
        flex-direction: column;
        gap: 1.25rem;
    }

    .photo-carousel {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .photo-frame {
        height: 320px;
    }

    .strip-shell {
        gap: 0.5rem;
    }

    .strip-arrow {
        width: 1.6rem;
        min-width: 1.6rem;
        height: 2rem;
        font-size: 0.95rem;
    }

    .strip-card {
        min-height: 160px;
        padding: 0.9rem 0.85rem;
        font-size: 0.9rem;
    }

    .strip-card h3 {
        font-size: 1rem;
    }

    .strip-card-subheader {
        font-size: 0.82rem;
    }

    .strip-card p {
        font-size: 0.85rem;
    }

    /* Over ons: terug naar volledige breedte (mobiel) */
    .over-ons {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .over-ons-body {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.index-video-divider {
    width: 75vw;
    max-width: 900px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 2.5rem auto 0;
}

.support-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
}

.support-popup-overlay.is-open {
    display: flex;
}

.support-popup {
    width: 100%;
    max-width: 560px;
    background: rgba(8, 21, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
    position: relative;
}

.support-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    cursor: pointer;
    line-height: 34px;
    text-align: center;
}

.support-popup-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.support-popup-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.support-popup-text a {
    color: var(--accent);
    text-decoration: underline;
}

.support-popup-email {
    display: block;
    margin-top: 0.35rem;
}

/* Zeer kleine schermen: nog compacter */
@media (max-width: 480px) {
    header {
        min-height: 7.5rem;
    }

    main {
        padding: 1rem 0.5rem 1.5rem 0.5rem;
        padding-top: 1.25rem;
    }

    .dev-label-title {
        font-size: 1.1rem;
    }

    .photo-frame {
        height: 260px;
    }

    .strip-card {
        flex: 0 0 220px;
        min-height: 140px;
        padding: 0.75rem 0.7rem;
    }
}

footer {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
}
footer .footer-copy {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* Contactblok onderaan Over ons: alles dezelfde grijs */
.over-ons-contact,
.over-ons-contact p,
.over-ons-contact span,
.over-ons-contact .contact-col,
.over-ons-contact .footer-bestuursleden-list,
.over-ons-contact .footer-rvt-list,
.over-ons-contact .footer-org-kop,
.over-ons-contact .footer-org-naam,
.over-ons-contact .bestuursleden-naam {
    color: #a0a8b5 !important; /* eenduidige grijstint */
}
.over-ons-contact {
    max-width: 56rem;
    width: 100%;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
}
.over-ons-contact .contact-col-1 {
    margin-top: 0.4rem;      /* tekst ietsje lager onder het kopje */
    margin-left: -0.35rem;   /* kolom een tikje meer naar links */
}
.over-ons-contact .contact-col p { margin: 0.35rem 0; }
.over-ons-contact .footer-address-line { margin-top: 0.15rem; margin-bottom: 0; }
.over-ons-contact .footer-address-line:last-of-type { margin-bottom: 0.35rem; }
.over-ons-contact a {
    color: #a0a8b5 !important;
    text-decoration: none;
}
.over-ons-contact a:hover {
    text-decoration: underline;
    color: #c0c8d5 !important;
}
.contact-pdf-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: #a0a8b5 !important;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-pdf-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #c0c8d5 !important;
    border-color: rgba(255,255,255,0.4);
}
.contact-pdf-btn[disabled],
.contact-pdf-btn[style*="display: none"] { display: none !important; }
.footer-bestuursleden-list,
.footer-rvt-list { margin-top: 0.2rem; }
.over-ons-contact .contact-col-3 {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.over-ons-contact .footer-org-block { margin-top: 0; }
.over-ons-contact .footer-org-kop {
    margin: 0 0 0.15rem;
    font-weight: 600;
}
.over-ons-contact .footer-org-naam { margin: 0; white-space: nowrap; }
.over-ons-contact .bestuursleden-naam { display: block; margin: 0.15rem 0 0; white-space: nowrap; }

@media (min-width: 1250px) {
    .over-ons-contact {
        grid-template-columns: 1fr 1fr 1.8fr auto;
    }

    .over-ons-contact .contact-col-3 {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .over-ons-contact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
        padding: 1rem 1rem 1.5rem;
    }

    .over-ons-contact .contact-col-3 {
        grid-column: span 1;
    }

    .over-ons-video {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .over-ons-contact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .over-ons-contact .contact-col-3 {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .over-ons-video {
        width: 100%;
        max-width: 100%;
        margin-top: 1.25rem;
    }
}
