@font-face {
    font-family: 'Fergila';
    src: url('../../assets/fonts/fergila-font/fergila.otf');
    font-display: swap;
}

@font-face {
    font-family: "Arapey", serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Ovo", serif;
    font-weight: 400;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

h3 {
    font-weight: initial;
}

header {
    background: url("../../assets/pictures/alex-verena.jpg") no-repeat center;
    background-size: cover;
    height: min(60vw, 500px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 1rem;
    padding-bottom: 1rem;
}

header h1, header h2 {
    margin: 0;
    color: white;
    font-family: 'Ovo', sans-serif;
    line-height: 0.75em;
    font-weight: unset;
}

header h1 {
    font-size: clamp(1.8rem, 4vw, 5rem);
}

header h1 span {
    font-family: initial;
}

header h2 {
    font-size: clamp(1.5rem, 2vw, 3rem);
    color: #c29751;
    font-weight: bold;
}

header img {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    max-width: 50px;
}

.welcome-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 1rem;
}

.welcome-content {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 800px;
}

.welcome-content h3 {
    font-family: 'Ovo', sans-serif;
    font-size: 40px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    z-index: -1;
}

.welcome-content h3:first-letter {
    color: rgba(220, 192, 169, 0.5);
    font-family: 'Fergila', sans-serif;
    font-size: 5em;
    float: left;
    margin-right: 0;
    line-height: 0.85;
    letter-spacing: -1rem;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.welcome-content p {
    margin-top: 3rem;
    padding: 0 1rem 0 2rem;
    text-align: justify;
    line-height: 1.5;
    /*font-size: 0.9rem;*/
    font-size: 17px;
}

.welcome-pictures {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem 2rem 0;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas: "img1 img1 img1 img2 img2";
}

.welcome-pictures img {
    width: 100%;
}

.welcome-pictures img:nth-child(1) {
    justify-self: end;
    align-self: center;
    grid-area: img1;
}

.welcome-pictures img:nth-child(2) {
    justify-self: start;
    align-self: center;
    grid-area: img2;
}

.planning-intro-wrapper {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 8px;
}

.planning-intro-background {
    grid-area: 3 / 1 / 8 / 4;
    display: flex;
}

.planning-intro-background img {
    max-width: 100%;
    object-fit: cover;
}

.planning-intro-picture {
    grid-area: 1 / 1 / 10 / 2;
    display: flex;
    padding: 0 0.5rem;
}

.planning-intro-picture img {
    max-width: 125px;
    margin: auto;
}

.planning-intro-text {
    background-color: #fbeee3;
    padding: 0.5rem 0.5rem 0;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.3;
    grid-area: 2 / 2 / 9 / 4;
    margin-right: 1rem;
    /*font-size: 0.8em;*/
    font-size: 16px;
}

.planning-intro-text p, .planning-intro-text h3, .planning-intro-text h5 {
    margin: 0;
}

.planning-intro-text h5 {
    font-size: 1rem;
}

.planning-intro-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 0.5;
}

.planning-intro-text h3 + p {
    margin-bottom: 0.5rem;
}

.planning-intro-text svg {
    width: 1.25rem;
    margin: 0 auto;
}

.jour1-wrapper {
    padding: 1rem 1rem;
    margin: 0 10%;
    text-align: center;
    /*font-size: 0.9rem;*/
    font-size: 16px;
    background-color: #effaff;
}

.jour1-wrapper * {
    margin: 0;
}

.jour1-wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.jour1-wrapper h5 {
    font-size: 1.5rem;
    color: #a9805e;
    margin-top: 1rem;
}

.jour1-wrapper p {
    /*font-size: 0.9rem;*/
    font-size: 16px;
}

.jour1-wrapper p:first-of-type {
    margin-bottom: 1rem;
}

.jour1-wrapper p:last-of-type {
    margin: 0.5rem 0 1rem;
}

.jour1-wrapper img {
    max-width: 100%;
}

.jour1-2-intersection-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "title";
    text-align: center;
    margin: 1rem 0;
}

.jour1-2-intersection-wrapper h3 {
    grid-area: title;
    font-size: 2.5rem;
    letter-spacing: -2px;
    margin: 0;
    color: #eae1d2;
}

.jour1-2-intersection-wrapper h5 {
    grid-area: title;
    align-self: center;
    margin: auto;
    font-size: 0.75rem;
    font-weight: initial;
    letter-spacing: 4px;
    color: #0000009c;
}

.jour2-wrapper {
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    grid-template-rows: 50px 50px 1fr;
}

.jour2-wrapper video {
    max-width: 100%;
    margin: auto;
    grid-area: 1 / 1 / 3 / 4;
    z-index: -1;
}

.jour2-content-wrapper {
    grid-area: 2 / 2 / 4 / 3;
}

.jour2-text-wrapper {
    background-color: #fbeee3;
    padding: 1rem;
}

.jour2-text-wrapper * {
    margin: 0;
}

.jour2-text-wrapper h3 {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.jour2-text-wrapper h5 {
    text-align: center;
    font-size: 1.5rem;
    color: #a9805e;
    margin-top: 1rem;
}

.jour2-text-wrapper p {
    /*font-size: 0.9rem;*/
    font-size: 16px;
    text-align: center;
}

.jour2-text-wrapper img {
    max-width: 100%;
    margin: 0.75rem auto;
}

.jour3-wrapper {
    margin: 3rem 10% 0;
    padding: 1rem 1rem 2rem;
    background-color: #effaff;
}

.jour3-wrapper * {
    margin: 0;
}

.jour3-wrapper h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.jour3-wrapper h5 {
    text-align: center;
    font-size: 1.5rem;
    color: #a9805e;
}

.jour3-wrapper p {
    /*font-size: 0.9rem;*/
    font-size: 16px;
    text-align: center;
    margin-bottom: 1rem;
}

.jour3-wrapper img {
    max-width: 100%;
}

.form-section-wrapper form p {
    text-align: center;
}

.form-section-wrapper form.hidden {
    display: none;
}

.form-section-wrapper {
    margin-top: 2rem;
    padding: 1rem 1rem 1rem;
    background-color: rgba(220, 192, 169, 0.5);
}

.form-section-wrapper .title {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "title";
    margin: 1rem 0;
}

.form-section-wrapper .title h3 {
    grid-area: title;
    font-size: 3.5rem;
    margin: 0;
    color: #fff;
    align-self: center;
    justify-self: center;
}

.form-section-wrapper .title h5 {
    grid-area: title;
    margin: 0;
    font-size: 0.85rem;
    align-self: center;
    justify-self: center;
    letter-spacing: 5px;
    font-weight: unset;
}

.form-section-wrapper .title + p, .form-section-wrapper .title + p + p {
    text-align: center;
    margin-top: 1rem;
}

.form-section-wrapper form {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
}

.form-section-wrapper form input:not([type="checkbox"]):not([type="submit"]) {
    background: #fefdfb;
    border: 2px solid #f4ebe4;
    padding: 10px 5px;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.checkbox-wrapper {
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    margin-bottom: 0.75rem;
    gap: 1rem;
    grid-template-areas:
        ". form  ."
        ". form2 ."
        ". form3 ."
        ". form4 .";
    grid-template-rows: repeat(4, 1fr);
}

.checkbox-wrapper label {
    font-size: 16px;
}

.checkbox-wrapper label:nth-child(1) {
    grid-area: form;
}

.checkbox-wrapper label:nth-child(2) {
    grid-area: form2;
}

.checkbox-wrapper label:nth-child(3) {
    grid-area: form3;
}

.checkbox-wrapper label:nth-child(4) {
    grid-area: form4;
}

.checkbox-wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fefdfb;
    margin: 0 0.15rem 0 0;
    font: inherit;
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #f4ebe4;
    border-radius: 0;
    transform: translateY(-0.075em);
    vertical-align: middle;
    display: inline-grid;
    place-content: center;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.75em;
    height: 0.75em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em orange;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.form-section-wrapper form textarea {
    background: #fefdfb;
    border: 2px solid #f4ebe4;
    padding: 0.5rem 0.5rem;
    margin: 1rem 0;
    font-size: 16px;
}

.form-response-message {
    display: none;
    text-align: center;
    background-color: #c1944ca3;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.form-response-message.show {
    display: block;
}

input[type="submit"] {
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: 0;
    color: #fff;
    background-color: #a9805e;
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 0.5rem 0;
}

footer h3 {
    margin: 0.5rem 0 1.5rem;
    font-size: 2rem;
}

footer h5 {
    margin: 0;
    font-size: 1rem;
}

footer h3 + p, footer h5 + p {
    margin-top: 0.5rem;
}

footer h5 + p {
    /*font-size: 0.9rem;*/
    font-size: 16px;
}

footer .contact-mail a {
    color: #000;
}

@media (min-width: 500px) {
    body {
        max-width: 500px;
        margin: auto;
    }

    header {
        height: 300px;
        max-width: 800px;
        margin: auto;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.75rem;
    }

    .welcome-wrapper {
        max-width: 800px;
        margin: auto;
    }

    .planning-intro-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .planning-intro-background {
        grid-area: 3 / 1 / 8 / 5;
    }

    .planning-intro-picture {
        grid-area: 1 / 1 / 10 / 3;
    }

    .planning-intro-picture img {
        max-width: 150px;
    }

    .planning-intro-text {
        grid-area: 2 / 3 / 9 / 5;
        padding: 2rem 0.5rem;
        align-self: center;
    }
}
