@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Waterfall&display=swap');

:root {
    --primary-color: #fdf7f2;
    --secondary-color: #404d3c;
    --button-color: #ad593c;
}


*, html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

p {
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
}

h1, h2 {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 48px;
}

.quote {
    color: #555;
}

body {
    max-width: 100vw;
    font-family: "Cormorant Garamond", serif;
}

header {
    background-color: var(--primary-color);
    height: 5em;
    padding: .5em 1em;
    width: 100%;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 10;
    border-bottom: 2px solid var(--secondary-color);
}

header img {
    height: 4em;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

header ul li {
    margin-left: 1em;
    font-size: 22px;
}

header a {
    color: var(--secondary-color);
    text-decoration: none;
}

main {
    background-color: var(--secondary-color);
    padding-top: 5em;
}

main article {
    height: calc(100vh - 5em);
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

main article p {
    font-size: clamp(.5rem, 1vw, 1rem); /* schaalbare tekst */
    max-width: 30vw;
    margin-bottom: 1em;
}

.box {
    background: url('../img/achtergrond.png') no-repeat right center;
    background-size: cover;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

main article .outer {
    justify-content: flex-start;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

main article .inner {
    /* optioneel padding, nu in rems */
    padding: 3rem 2rem;
    border-radius: 2rem;
}

main article .main-img {
    width: 40%;
    aspect-ratio: 1/1; /* zorgt dat height automatisch gelijk blijft aan width */
    object-fit: cover;
}

main article a {
    padding: 0.5em 1em;
    border-radius: 10px;
    color: #fff;
    background-color: var(--button-color);
    font-size: clamp(1rem, 2vw, 1.5rem); /* schaalbare knoptekst */
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 1em 0;
}

.ksp li {
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 0.5em;
    font-size: clamp(1rem, 1.5vw, 1.5rem); /* schaalbare lijstitems */
}

.buttons {
    display: flex;
    gap: 1em; /* vervangt nth-of-type margin */
}

.buttons li {
    padding: 1em 0;
}

/* container voor de foto's */
.photo-stack {
    position: absolute;
    width: 40%; /* past naast tekst */
    min-width: 200px; /* voorkomt dat het te klein wordt */
    height: auto;
    right: 0;
    bottom: 60%;
}

.pic {
    width: 13vw;       /* schaalbaar met scherm */
    min-width: 150px;  /* nooit kleiner dan originele grootte */
    aspect-ratio: 1/1; /* altijd vierkant */
    border: 0.5vw solid #fff;
    box-shadow: 0 0.5vw 1vw #aaa;
    object-fit: cover;
    position: absolute;
}

.pic-1 {
    transform: rotate(5deg);
    right: 4vw;
    top: 8em;
    z-index: 1;
}

.pic-2 {
    top: calc(50% + 3em);
    right: 6vw;
    transform: translateY(-50%) rotate(-3deg);
    z-index: 2;
    width: 12vw;
    min-width: 140px;
}

.pic-3 {
    right: 15vw;
    bottom: calc(55% - 1em);
    width: 9vw;
    min-width: 120px;
    transform: rotate(3deg);
    z-index: 3;
}

.pic-4 {
    bottom: calc(50% + 2em);
    width: 11.5vw;
    min-width: 130px;
    right: 4vw;
    transform: rotate(2deg);
}

/* SECTIONS */

main section {
    width: 80%;
    max-width: 1100px;
    margin: 2em auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background-color: var(--primary-color);

}

section a {
    color: #000;
}

main section div {
    width: 60%;
    min-width: 400px;
    padding: 0 3em;
}

main section img {
    width: 400px;
    border-radius: 0 20px 20px 0;
}

main section:not(:last-child):not(.main-img) img {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: bottom;
}

main section:nth-of-type(2n) {
    flex-direction: row-reverse;
}

main section:nth-of-type(2n) img {
    border-radius: 20px 0 0 20px;
}

main section:last-of-type {
    padding: 4em 0;
    background-color: var(--secondary-color);
    border-radius: 0;
    color: #fff;
    margin-bottom: 0;
}

main section:last-of-type img {
    border-radius: 0;
}

main section:last-of-type a {
    color: #fff;
}

/* MENU */

#menu {
    background-color: var(--primary-color);
    width: 100%;
    max-width: 100vw;
    flex-direction: column;
    border-radius: 0;
}

#menu ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 24px;
}

#menu li {
    background-color: var(--button-color);
    width: 300px;
    text-align: center;
    cursor: pointer;
    padding: 1em 2em;
    border-radius: 10px;
    color: #fff;
}

#menu table {
    color: #000;
    font-size: 22px;
    padding: 1em;
    background-color: #fff;
    max-width: 1100px;
    width: 100%;
    border-radius: 10px;
}

#menu td {
    vertical-align: top;
    padding-bottom: .5em;
    padding-top: .5em;
    border-bottom: 1px solid var(--secondary-color);
}

#menu i {
    color: #666;
}

#menu .head td {
    border-bottom: none;
    padding: 1em 0;
}

#menu .head-2 td {
    padding: 2em 0 1em 0;
}

.menu-list {
    flex-direction: column;
}

.menu-list li {
    margin-bottom: 1em;
    width: 100%!important;
    border: 2px solid var(--button-color)!important;
    background-color: var(--primary-color)!important;
    text-align: left;
    display: flex;
    color: #000!important;
    justify-content: space-between;
    align-items: center;
}

.menu-list button {
    background-color: var(--button-color);
    border: none;
    outline: none;
    display: flex;
    height: 4em;
    width: 4em;
    color: #fff;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-list i {
    color: #fff!important;
    font-size: 1.5em;
}

.menu-list a {
    color: #000;
    text-decoration: none;
}

footer {
    background-color: var(--button-color);
    color: #fff;
    display: flex;
    justify-content: center;
}

footer section {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    padding: 1em 0;
}

footer i {
    font-size: 35px;
    margin-top: .25em;
}

footer a {
    color: #fff;
}


@media screen and (max-width: 768px) {
    main article {
        flex-direction: column;
    }

    main article {
        height: auto;
        min-height: unset;
    }

    main .main-img {
        width: 100%!important;
        aspect-ratio: unset!important;
    }

    .inner {
        padding: 1em!important;
    }

    .inner h1 {
        font-size: 48px;
    }

    .inner li {
        font-size: 22px;
    }

    .inner p {
        width: 100%;
        max-width: 100%;
        font-size: 22px;
    }

    .pic, .photo-stack {
        position: static;
    }

    .photo-stack {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }

    .pic-1, .pic-2, .pic-3, .pic-4 {
        transform: none;
        width: 48%;
        top: unset; bottom: unset;
        left: unset; right: unset;
        margin-bottom: 1em;
    }

    main section {
        flex-direction: column-reverse!important;
        padding: 1em;
    }

    main section img {
        width: 100%;
        border-radius: 20px!important;
    }

    main section div {
        padding: 1em!important;
        min-width: 100%;
    }

    #menu {
        flex-direction: column!important;
    }

    #menu ul {
        display: flex;
        flex-direction: column;
    }

    #menu li {
        margin: .5em 0;
        width: 100%;
    }

    footer section {
        flex-direction: column!important;
        padding: 1em;
    }

    footer ul:not(:last-child) {
        margin-bottom: .25em;
        border-bottom: 1px solid #fff;
    }
}