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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-y: auto; /* Herstel normale scrolling buiten lightbox */
}

/* Header Styles */
header {
    text-align: center;
    position: relative;
}

.logo {
    padding: 1rem;
}

.logo-img {
    max-width: 250px;
    height: auto;
}

.hero {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 1.75rem;
    color: white;
}

.hero-text p {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Language Switch */
.language-switch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
}

.lang-option {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lang-flag {
    width: 24px;
    height: 16px;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.lang-option:hover {
    color: #3cb5a5;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
}

.intro,
.signup {
    margin-bottom: 2rem;
    color: #2e3866;
    padding: 0 20px;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #3cb5a5;
}

h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #2e3866;
}

p {
    font-size: 1rem;
    margin-top: 10px;
}

/* Links */
p a:link,
p a:visited,
p a:active {
    color: #3cb5a5;
}

p a:hover {
    color: hotpink;
}

/* Form Styles */
.signup form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 30px;
    border: 1px solid #2e3866;
}

.signup label {
    font-size: 0.9rem;
    color: #2e3866;
    font-weight: bold;
}

.signup input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.signup button {
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #3cb5a5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signup button:hover {
    background-color: #1557b0;
}

.form-note {
    font-size: 0.8rem;
    color: #2e3866;
    margin-top: 0.5rem;
}

/* Preview Section and Lightbox */
.preview-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.preview-item {
    flex: 1 1 30%;
    margin: 0 1.5%;
    box-sizing: border-box;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.preview-link {
    display: block;
    text-decoration: none;
}

.preview-link:hover img {
    transform: scale(1.1);
}

.zoom-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(60, 181, 165, 0.5);
    padding: 4px; /* Gelijke padding voor een cirkel */
    width: 30px; /* Vaste breedte */
    height: 30px; /* Vaste hoogte, gelijk aan breedte */
    border-radius: 50%;
    cursor: pointer;
    display: flex; /* Optioneel: om het icoontje te centreren */
    align-items: center; /* Optioneel: verticale centrering */
    justify-content: center; /* Optioneel: horizontale centrering */
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.lightbox:target,
.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(100vh - 40px); /* Trek padding en knoppenhoogte af */
    text-align: center;
    background: #fff; /* Contrast voor knoppen */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Scroll alleen als nodig */
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: #2e3866;
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #3cb5a5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(60, 181, 165, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

#mc_embed_signup form {
    margin: 0 !important;
}

/* Blog Image Styles */
.blog-image {
    width: 100%;
    margin-bottom: 1rem;
}

.blog-image img {
    width: 100%;
    height: auto;
    display: block; /* Verwijdert onderliggende ruimte */
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2e3866;
    color: #fff;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-img {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .signup form {
        max-width: 400px;
        margin: 0 auto;
    }

    .preview-section h2 {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-section {
        flex-direction: column;
    }

    .preview-item {
        flex: 1 1 100%;
        margin: 1rem 0;
    }

    .language-switch {
        top: 0.5rem;
        right: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .lang-option {
        font-size: 0.8rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: calc(100vh - 20px);
        padding: 10px;
    }

    .zoom-icon {
        display: none; /* Verberg de zoom-icoon op mobiel */
    }

    .lightbox,
    .lightbox:target,
    .lightbox.active {
        display: none !important; /* Forceer lightbox uit op mobiel, zelfs als geactiveerd */
    }

    .preview-link:hover img {
        transform: none; /* Schakel hover-effect uit op mobiel */
    }
}