/* ========== Algemene instellingen ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
}

/* ========== Header en Navigatie ========== */
header {
    background-color: #000;
    padding: 10px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #333;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
}

/* ========== Pagina-inhoud ========== */
main {
    max-width: 900px;
    margin: 30px auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

main h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

main h2 {
    font-size: 1.5em;
    margin-top: 30px;
}

main p {
    margin-bottom: 20px;
}

ul,
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

ul li,
ol li {
    margin-bottom: 10px;
}

/* ========== Formulieren ========== */
form {
    margin-top: 20px;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

legend {
    font-weight: bold;
    padding: 0 8px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: #fff;
    resize: vertical;
    font-size: 1em;
}

textarea {
    min-height: 100px;
}

input[type="file"] {
    padding: 4px;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: url('calendar-icon.svg') no-repeat center;
    background-size: 20px 20px;
    color: transparent;
    opacity: 1;
    cursor: pointer;
    height: 100%;
    width: 32px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

input[type="date"]:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

button[type="submit"] {
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #333;
}

/* ========== Bestandsvoorvertoning ========== */
.file-preview {
    margin-top: 10px;
    padding-left: 0;
    list-style: none;
}

.file-preview li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.file-preview button {
    background: none;
    border: none;
    color: red;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* ========== Footer ========== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* ========== Contactpagina ========== */
.contact-info {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

/* ========== Producten en Voorbeelden ========== */
.product-grid,
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card,
.example-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.product-card:hover,
.example-item:hover {
    transform: scale(1.02);
}

.product-card img,
.example-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.product-card h3,
.example-item figcaption {
    margin-top: 10px;
    font-size: 1.1em;
    color: #333;
}

/* ========== Placeholder afbeelding ========== */
.placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    border: 1px dashed #ccc;
    border-radius: 6px;
    font-size: 0.95em;
}

/* ========== Externe links lijst (bijv. overige producten) ========== */
.external-links {
    margin-bottom: 30px;
    padding-left: 20px;
}

.external-links li {
    margin-bottom: 10px;
    font-size: 1em;
}

/* ========== Responsive ontwerp ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul,
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        padding: 20px;
        margin: 20px 10px;
    }

    button[type="submit"] {
        width: 100%;
    }

    nav {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    nav ul {
        gap: 8px;
    }

    main h1 {
        font-size: 1.5em;
    }

    legend,
    label {
        font-size: 0.95em;
    }

    textarea {
        min-height: 80px;
    }
}


/* ========== Lightbox functionaliteit ========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Voorbeelden-grid: gelijke kaart-hoogtes en nette captions */
.examples-grid .example-item img{
  width: 100% !important;
  height: clamp(260px, 30vw, 420px) !important; /* mobiel → desktop */
  object-fit: contain !important;               /* niet uitrekken, volledig tonen */
  display: block;
  border-radius: 8px;
}
