* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f4f4f4; 

}


header {
    background: white;
    color: #1351a4;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

header.visible {
    transform: translateY(0);
    opacity: 1;
}

nav {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-toggle {
    background: #1351a4;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    display: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.nav-links a {
    color: #1351a4;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    line-height: 1.5;
    font-size: 1.1em;
}

.logo {
    height: 80px;
    margin-left: auto;
}

.logo-mobile {
    display: none;
    height: 50px;
}

section {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.text-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.text-box:hover {
    transform: scale(1.02);
}

h2 {
    color: #1351a4;
    text-align: center;
}

.center-subtitle {
    text-align: center;
    margin-top: 1em;
}

#procedure .text-box {
    text-align: center;
}

.center-contact {
    text-align: center;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}

.procedure-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    position: relative;
}

.step-number {
    font-weight: bold;
    color: #1351a4;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #1351a4;
}

.step-content {
    max-width: 600px;
    text-align: left;
    padding: 10px;
    border: 1px solid #1351a4;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.portrait-container,
.logo-container {
    float: right;
    margin-left: 10px;
    margin-right: 80px;
    max-width: 50%;
    position: relative;
    z-index: 3;
}

.portrait {
    width: 400px;
    height: 400px;
    border: 5px solid #1351a4;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 540px;
    height: 339px;
    border: 5px solid #1351a4;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 10px 20px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f4f4f4;
    }
    .logo-mobile {
        display: block;
        margin-right: auto;
        margin-left: 20px;
    }
    .logo {
        display: none;
    }
    body {
        background: linear-gradient(#f7f9fc, #ffffff);
    }
    .portrait-container,
    .logo-container {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
        text-align: center;
    }
    .portrait,
    .logo-image {
        display: block;
        margin: 0 auto 20px auto;
        width: 90%;
        height: auto;
        border: 3px solid #1351a4;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    }
    #over-trust,
    #over-mies {
        display: flex;
        flex-direction: column;
    }
    #over-trust .text-box,
    #over-mies .text-box {
        order: 1;
    }
    #over-trust .logo-container,
    #over-mies .portrait-container {
        order: 2;
    }
}


@media (min-width: 768px) and (max-width: 992px) {
    body {
        background: url('../afbeeldingen/Vuurtoren.jpg') no-repeat center center;
        background-size: cover;
        background-attachment: scroll;
    }
    .menu-toggle {
        display: none;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        position: static;
        background: none;
        box-shadow: none;
        justify-content: flex-start;
    }
    .nav-links a {
        margin: 5px;
        text-align: left;
        border: none;
        font-size: 0.9em;
    }
    .logo-mobile {
        display: none;
    }
    .logo {
        display: block;
        height: 60px;
    }
    .text-box {
        max-width: 90%;
        margin: 20px auto;
    }
    .portrait-container,
    .logo-container {
        float: none;
        display: block;
        margin: 30px auto;
        max-width: 80%;
        text-align: center;
    }
    .portrait,
    .logo-image {
        width: 80%;
        height: auto;
        margin: 0 auto 20px auto;
        border: 3px solid #1351a4;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    }
    #over-trust,
    #over-mies {
        display: flex;
        flex-direction: column;
    }
    #over-trust .text-box,
    #over-mies .text-box {
        order: 1;
    }
    #over-trust .logo-container,
    #over-mies .portrait-container {
        order: 2;
    }
}


@media (min-width: 993px) {
    body {
        background: url('../afbeeldingen/Vuurtoren.jpg') no-repeat center center fixed;
        background-size: cover;
    }
}
