body {
    background-color: black;
    color: white;
    font-family: Calibri, Arial, sans-serif;
    margin-left: 0px;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 16px);
}

/* menu */
section {
    margin: 0px 3vw;
    min-width: 230px;
    flex-shrink: 0;
}

img.logo{
    position: absolute;
    top: -18px;
    left: 3vw;
    display: block;
    width: 100px;
}

.small-logo {
    display:none;
}


nav {
    padding-right: 20px;
    margin-top: 7px;
    border: solid 2px red;

    background-color: #111;
    /*background-color: black;*/

    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5), 
                0 0 10px rgba(255, 0, 0, 0.2);
}

nav ul li {
    list-style: none;
    color: white;
    line-height: 40px;
}
nav ul li:hover {
    list-style: disc;
    color: red;
    font-size: 1.11em;
}

#special:hover {
    color: white;
    list-style: none;
    font-size: 1em;
}

#page {
    color: red;
}

a.menu {
    text-decoration: none;
    color: white;
}

article {
    margin: auto;
}


/* content */

p{
    width: 900px;
    text-align: justify;
    line-height: 25px;
}

article img {
    float: left;
    padding-right: 20px;
}

h1 {
    color: red;
    font-size: 1.5rem;
    width: 900px;
}


h3, h5 {
    color: gray;
    width: 900px;
}


h5 {
    font-size: 1rem;
    width: 900px;
}


/* footer */
article.center {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin: 30px 0 20px;
    text-align: center;

}



footer p {
    display: inline-block;
    color: grey;
    width: auto;
    text-align: center;
    line-height: normal;
}

p.footer:nth-child(even) {
    color: red;
}

footer p.footer:last-child {
    color: red;
    text-decoration: none;
}

a.email {
    text-decoration: none;
    color: red;
}

a.email:hover {
    text-decoration: underline;
}

.footer-text {
	display:block;
}

.footer-icons {
	display:none;
}


p.footer-namen {
    margin: 0 0 12px;
    color: grey;
    width: auto;
    text-align: center;
    line-height: normal;
}

/* copyright onder de contactgegevens */
p.footer-copyright {
    margin-top: 10px;
    font-size: 0.75em;
    color: #555;
    width: auto;
    text-align: center;
    line-height: normal;
}

/* positioning */
.flex-container {
    margin-top: 1vw;
    display: grid;
    grid-template-columns: minmax(auto, 1fr) auto minmax(auto, 1fr);
    flex-grow: 1;
    align-content: start;
}

section {
    justify-self: start;
}

nav {
    font-size: 1.1em;
    min-height: 420px;
    margin-top: 140px;
}

article.main {
    flex-shrink: 0;
    align-self:center;
}


/*phone compatibility*/
/* Verberg het hamburger icoon standaard (voor desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 10px;
    color: white;
    border-bottom: 1px solid red;
}

.scroll-up-container {
    display: none;
}

/* Media Query voor GSM/Mobiel */
@media screen and (max-width: 768px) {
    #divbigParent {
        scroll-margin-top: 150px;

        touch-action: pan-y; /* Allows vertical scrolling but prevents browser interference with horizontal swipes */
        cursor: pointer;
    }

    #divbigParent::after {
        content: "swipe ↔";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 5px;
    }

    .floating-bubble {
    display: none;
    }

    /* Stapel de flexbox elementen onder elkaar */
    .flex-container {
        display: block;
	margin-top:0px;
    }

    section {
        margin: 10px auto;
	margin-top: 0px;
        padding-right: 0px;
        width: 100%;
        background-color: black;

        position: fixed;
        top: 0;
        z-index: 1000;
    }

    img.logo {
    display:none;
    }

    .small-logo {
        position: fixed;
        top: 8px;
	    right:8px;
	    display: block;
	    height: 50px;

	    opacity:1;
	    transition: opacity 0.5s ease-in-out;
    }

    header {
        width:100%;
        word-wrap: break-word;
    }

    nav {
	    margin: auto;
	    margin-left: 8px;
        margin-top: 10px; /* Verwijder de marge aan de bovenkant voor een naadloze aansluiting */
        min-height: auto;
        padding-right: 0;
        width: 10%;
        box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);

	    transition: width 0.5s ease-in-out;
    }

    /* Toon het hamburger icoon */
    .hamburger {
        display: block;
    }

    /* Verberg het menu standaard op mobiel */

    nav ul.first {
        display: block;
	opacity:0;
	max-height:0;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out, opacity 0.3s ease;

        padding: 0;
        margin: 0;
	margin-left: 30px;
    }

    /* Toon het menu als de checkbox is aangevinkt */
    #menu-toggle:checked ~ ul {
        max-height:1200px;
	opacity:1;
    }

    nav:has(#menu-toggle:checked) {
        width: 95%;
    }

    #menu-toggle:checked ~ .small-logo {
        opacity:0;
    }


    /* Sub-lijst (zorg, wonen, etc.) aanpassen voor mobiel */
    nav ul ul {
        display: block; /* Altijd tonen als het hoofdmenu open is */
    }

    article.main {
        display: flex;
	flex-direction: column;
	padding-right: 0px;
	margin-top:53px;
        margin-left:8px;
        margin-right:8px;
        width: 98%;
    }

    article p , article h1, article h2, article h3, article h5{
	width:95%;
    }

    header {
    margin-bottom: 0px;
    margin-top: 25px;
    }

    header.title {
    margin-bottom: 50px;
    margin-top: 0px;
    order: -2;
    }

    article.center {
        position: relative !important;
        top: 0 !important;
        margin: 40px 0 !important;
        transform: none !important;
        left: 0 !important;
    }


    .footer-text {
        display: none;
    }

    .footer-icons {
        display: flex;
        justify-content: center;
        gap: 30px; /* Ruimte tussen de iconen */
        margin-bottom: 15px;
    }

    .footer-icons a {
        color: red; /* Primaire kleur uit het ontwerp */
        font-size: 1.8rem;
        transition: transform 0.3s ease, color 0.3s ease;
        text-decoration: none;
    }

    .footer-icons a:hover {
        transform: scale(1.2);
        color: white; /* Kleurverandering bij hover */
    }

    .footer-icons {
        gap: 30px;
    }
    
    .footer-icons a {
        font-size: 1.2rem;
    }

}
@media screen and (min-width: 769px) {
    nav {
        width: 220px;
        padding-right: 0;
        border: none;
        background-color: transparent;
        box-shadow: none;
        font-size: 18px;
    }

    nav ul.first, nav ul.first ul {
        margin: 0;
        padding: 0;
    }

    nav ul.first {
        position: relative;
        padding-left: 14px;
    }

    nav ul.first li {
        position: relative;
        box-sizing: border-box;
        height: 42px;
        line-height: 41px;
        padding-left: 16px;
        text-transform: capitalize;
    }

    nav ul.first ul li {
        padding-left: 38px;
    }

    nav ul li:hover {
        list-style: none;
        color: white;
        font-size: 1em;
    }

    #special, #special:hover {
        color: #999;
    }

    a.menu {
        transition: color 0.2s;
    }

    a.menu:hover {
        color: red;
    }

    #page {
        font-weight: bold;
    }

    nav ul.first::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: #444;
    }

    nav ul.first::after {
        content: "";
        position: absolute;
        left: -1px;
        top: 10px;
        width: 3px;
        height: 22px;
        background-color: red;
        transition: top 0.45s cubic-bezier(0.6, 0, 0.2, 1);
    }

    nav ul.first:has(> li:nth-child(2) [id="page"])::after { top: 52px; }
    nav ul.first:has(> li:nth-child(3) [id="page"])::after { top: 94px; }
    nav ul.first:has(> ul > li:nth-child(1) [id="page"])::after { top: 178px; }
    nav ul.first:has(> ul > li:nth-child(2) [id="page"])::after { top: 220px; }
    nav ul.first:has(> ul > li:nth-child(3) [id="page"])::after { top: 262px; }
    nav ul.first:has(> ul > li:nth-child(4) [id="page"])::after { top: 304px; }
    nav ul.first:has(> ul > li:nth-child(5) [id="page"])::after { top: 346px; }

    section nav ul.first:has(> li:nth-child(1):hover)::after { top: 10px; }
    section nav ul.first:has(> li:nth-child(2):hover)::after { top: 52px; }
    section nav ul.first:has(> li:nth-child(3):hover)::after { top: 94px; }
    section nav ul.first:has(> ul > li:nth-child(1):hover)::after { top: 178px; }
    section nav ul.first:has(> ul > li:nth-child(2):hover)::after { top: 220px; }
    section nav ul.first:has(> ul > li:nth-child(3):hover)::after { top: 262px; }
    section nav ul.first:has(> ul > li:nth-child(4):hover)::after { top: 304px; }
    section nav ul.first:has(> ul > li:nth-child(5):hover)::after { top: 346px; }
}
