/* ================================
   BASIS
================================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

/* ================================
   HEADER
================================ */
.topbar {
    background: #f2f2f2;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    max-height: 80px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* ================================
   CONTENT
================================ */
.content {
    background-color: #f2f2f2;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px 40px;
}

.content h1 {
    color: #3a4b5c;
    font-weight: 600;
}

.content h2 {
    color: #2567aa;
    font-weight: 600;
}

/* ================================
   GRID
================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blok img {
    width: 100%;
    height: auto;
}

/* ================================
   BUTTONS
================================ */
.button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* ================================
   SLIDER
================================ */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 14px;
    cursor: pointer;
}

.prev { left: 15px; }
.next { right: 15px; }

/* ================================
   OVER PAGINA
================================ */
.over-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.over-text {
    font-size: 18px;
    line-height: 1.7;
}

.contact-box {
    background: #fff;
    padding: 20px;
}

/* ================================
   PROJECTEN
================================ */
.projecten-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.project {
    cursor: pointer;
}

.project .thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.project .thumb img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

/* ================================
   LIGHTBOX
================================ */
/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 40px black;
    cursor: pointer;
}
/* ================================
   FOOTER
================================ */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1000px) {
    .projecten-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projecten-grid {
        grid-template-columns: 1fr;
    }

    .over-layout {
        grid-template-columns: 1fr;
    }
}

.contact-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zwarte navigatiebalk */
.top-nav {
    background: #333;
    display: flex;
    justify-content: center;
}

.top-nav a {
    color: #fff;
    padding: 18px 35px;
    font-weight: bold;
    text-decoration: none;
    border-left: 1px solid #555;
}

.top-nav a:last-child {
    border-right: 1px solid #555;
}

.top-nav a:hover,
.top-nav a.active {
    background: #000;
}

/* Logo + contactbalk */
.logo-bar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.logo-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-inner img {
    height: 80px;
}

.header-contact {
    font-size: 16px;
    color: #333;
}

.header-contact a {
    color: #2567aa;
    text-decoration: none;
}

/* ================================
   MOBIEL
================================ */
@media (max-width: 900px) {

    /* Logo + contact onder elkaar */
    .logo-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Menu over volle breedte */
    .top-nav {
        flex-wrap: wrap;
    }

    .top-nav a {
        flex: 1 1 50%;
        text-align: center;
        border-left: none;
        border-right: none;
        border-top: 1px solid #555;
    }

    /* Home blokken 1 kolom */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Over-pagina kolommen onder elkaar */
    .over-layout {
        grid-template-columns: 1fr;
    }

    /* Projecten 2 per rij */
    .projecten-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Extra klein scherm */
@media (max-width: 480px) {
    .projecten-grid {
        grid-template-columns: 1fr;
    }

    .logo-inner img {
        height: 60px;
    }

    .header-contact {
        font-size: 14px;
    }
}
@media (max-width: 700px) {
    .over-layout img {
        width: 100%;
        margin-bottom: 20px;
    }
}
@media (max-width: 900px) {
    .slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #000;   /* zwarte balken links/rechts */
    }
}

@media (max-width: 900px) {
    .slider {
        height: 260px;
    }
}
