@font-face {
    font-family: AmaticSC;
    font-weight: 700;
    font-style: normal;
    src: url(/assets/fonts/AmaticSC-Bold.ttf);
}

@font-face {
    font-family: Raleway;
    font-weight: 600;
    font-style: normal;
    src: url(/assets/fonts/Raleway-SemiBold.ttf);
}

@font-face {
    font-family: Raleway;
    font-weight: 400;
    font-style: normal;
    src: url(/assets/fonts/Raleway-Regular.ttf);
}

@font-face {
    font-family: Raleway;
    font-weight: 500;
    font-style: italic;
    src: url(/assets/fonts/Raleway-MediumItalic.ttf);
}

html[lang="de-CH"] q {
    quotes: '«' '»' '‹' '›';
}

html[lang="de"] q {
    quotes: '„' '“' '‚' '‘';
}

html[lang="fr"] q {
    quotes: '»' '«' '›' '‹';
}

:root {
    background-color: hsl(48, 100%, 50%);
    box-sizing: border-box;
    scroll-behavior: smooth;
}

* {
    box-sizing: inherit;
    margin: 0;
}

body {
    p {
        font-size: 1.4rem;
        font-family: Raleway;
        color: rgb(84, 83, 67, 100%);
        line-height: 1.4;
    }

    h1 {
        font-size: 4rem;
        font-family: AmaticSC;
        color: rgb(255, 255, 255, 100%);
    }

    h2 {
        font-size: 4rem;
        font-family: AmaticSC;
        color: rgb(255, 255, 255);
    }

    a {
        font-size: 1.4rem;
        font-family: Raleway;
        text-decoration: none;
        color: rgb(84, 83, 67, 100%);
        line-height: 1.5;
    }
}

.Logoandtext-top {
    display: block;
    max-width: 60vw;
    max-height: auto;
    margin-top: 5vw;
    margin-left: auto;
    margin-right: auto;
}

.arrows {
    display: flex;
    justify-content: flex-end;
    gap: 24.5vw;
    margin-right: 8vw;
}

.arrow {
    height: 12vw;
}

.nextevent-top{
    display: none;
}

.Page-divider2{
    display: none;
}

.arrowevents {
    margin-top: 3vw;
    margin-bottom: 2vw;
    width: 10vw;
    height: fit-content;
}

.thatsus {
    margin-left: 10vw;
    margin-right: 10vw;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text1 {
    background-color: hsla(0, 0%, 100%, 0.85);
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 30.5px;
    padding-bottom: 30.5px;
    border-radius: 20px;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;

    h2 {
        font-size: 1.5rem;
        font-family: Raleway;
        color: rgb(84, 83, 67, 100%);
        line-height: 1.2;
    }
}

.precious {
    margin-top: 2.05rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: balance;
}

.Page-divider1 {
    display: block;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.4rem;
    margin-bottom: 2.4rem;
}

.boxes-events-projects,
.boxes-support {
    margin-left: 10vw;
    margin-right: 10vw;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    gap: 3.3rem;
    align-items: center;
}

.text2 {
    background-color: hsla(0, 0%, 100%, 0.85);
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 30.5px;
    padding-bottom: 30.5px;
    border-radius: 20px;
    width: 24vw;
    aspect-ratio: 9/9.5;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h2 {
        font-size: 1.5rem;
        font-family: Raleway;
        color: rgb(84, 83, 67, 100%);
        line-height: 1.2;
        text-align: center;
    }

    p {
        text-align: center;
    }
}

.title {
    margin-left: 10vw;
}

.follow {
    p {
        font-style: italic;
    }
}

.text3 {
    background-color: hsla(0, 0%, 100%, 0.85);
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 30.5px;
    padding-bottom: 30.5px;
    border-radius: 20px;
    width: 24vw;
    aspect-ratio: 9/9.5;
    margin-left: auto;
    margin-right: auto;

    h2 {
        font-size: 1.5rem;
        font-family: Raleway;
        color: hsl(56, 11%, 30%);
        line-height: 1.2;
        text-align: center;
    }

    p {
        text-align: center;
    }

    a {
        display: block;
        text-align: center;
        text-wrap: balance;
        font-size: (15px + 0.390625vw);
    }
}

.freewheels-logo {
    display: block;
    max-width: 98%;
    padding-bottom: 2.3rem;
    padding-top: 4.5rem;
    margin-left: auto;
    margin-right: auto;
}

.maratonabili-logo {
    display: block;
    max-width: 98%;
    padding-bottom: 2.7rem;
    padding-top: 5.5rem;
    margin-left: auto;
    margin-right: auto;
}

.sbw-media-logo {
    display: block;
    max-width: 98%;
    padding-bottom: 1.05rem;
    padding-top: 4.5rem;
    margin-left: auto;
    margin-right: auto;
}

.arrowsbacktotop {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 9em;
    padding-right: 4em;
    transform: translateY(5em);
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range-start: 100vh;
    animation-range-end: 155vh;
}

.arrowbacktotop {
    width: 3vw;
}

.boxes-support {
    margin-bottom: 0;
}

footer {
    background-color: hsl(0, 0%, 100%);
    display: grid;
    grid-template-areas: "name adress icons";
    grid-template-columns: 1fr 1.5fr 2em;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
    margin-top: 7.1rem;
}

footer p {
    font-size: 1.5rem;
    color: hsl(0, 0%, 0%);
}

footer a {
    font-size: 1.5rem;
    color: hsl(0, 0%, 0%);
}

.name-telefon {
    grid-area: name;
}

.email {
    grid-area: adress;
}

.socialmedia {
    grid-area: icons;
    text-align: right;
    align-self: center;
}

.instagram {
    max-width: 2em;
}

.facebook {
    max-width: 2em;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (width > 430px) {
    .nextevent-top {
        display: none;
    }

    .Page-divider2 {
        display: none;
    }
}

@media screen and (width <=1024px) {
    .arrowsbacktotop {
        padding-right: 3em;
    }
    .freewheels-logo {
        padding-bottom: 1.5rem;
        padding-top: 1rem;
    }

    .maratonabili-logo {
        padding-bottom: 1.9rem;
        padding-top: 1rem;
    }

    .sbw-media-logo {
        padding-bottom: 1.3rem;
        padding-top: 1rem;
    }

    body {
        a {
            font-size: 1.3rem;
        }
    }
}

@media screen and (width <=849px) {

    .boxes-events-projects,
    .boxes-support {
        gap: 2rem;
    }
}

@media screen and (width <=768px) {
    .Logoandtext-top {
        margin-top: 7vw;
    }

    body {
        p {
            font-size: 1.1rem;
            line-height: 1.16;
        }

        h1 {
            font-size: 3.5rem;
        }

        h2 {
            font-size: 3.5rem;
        }
    }

    .text1 {
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 23.5px;
        padding-bottom: 23.5px;

        h2 {
            font-size: 1.1rem;
            line-height: 1.16;
        }
    }

    .text2 {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;

        h2 {
            font-size: 1rem;
            font-family: Raleway;
            color: hsl(56, 11%, 30%);
            line-height: 1.2;
            text-align: center;
        }

        p {
            font-size: 1rem;
            text-align: center;
        }
    }

    .text3 {
        width: 77vw;
        aspect-ratio: 0;
    }

    .boxes-support {
        flex-direction: column;
        gap: 1rem;
    }

    .freewheels-logo {
        padding-bottom: 2.3rem;
        padding-top: 2.3rem;
        margin-left: auto;
        margin-right: auto;
        width: 50vw;
    }

    .maratonabili-logo {
        padding-bottom: 2.3rem;
        padding-top: 2.3rem;
        margin-left: auto;
        margin-right: auto;
        width: 50vw;
    }

    .sbw-media-logo {
        padding-bottom: 2.3rem;
        padding-top: 2.3rem;
        margin-left: auto;
        margin-right: auto;
        width: 50vw;
    }

    .arrowsbacktotop {
        padding-right: 2em;
    }

    .name-telefon {
        p {
            font-size: 1.2rem;
        }
    }

    .email {
        p {
            font-size: 1.2rem;
        }
    }

    .instagram {
        max-width: 1.5em;
    }

    .facebook {
        max-width: 1.5em;
    }

    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media screen and (width <=642px) {
    .arrowbacktotop {
        width: 3.5vw;
    }
}


@media screen and (width <=582px) {
    .name-telefon {
        p {
            font-size: 1rem;
        }

        a {
            font-size: 1rem;
        }
    }

    .email {
        p {
            font-size: 1rem;
        }

        a {
            font-size: 1rem;
        }
    }

    .instagram {
        max-width: 1.3em;
    }

    .facebook {
        max-width: 1.3em;
    }

    footer {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media screen and (width <=550px) {
    .arrowsbacktotop {
        a {
            font-size: 1rem;
        }
    }
}

@media screen and (width <=527px) {
    .boxes-events-projects {
        flex-direction: column;
        gap: 1rem;
    }

    .text2 {
        width: 80vw;
        height: 207px;
        aspect-ratio: 0/0;
        padding-left: 50px;
        padding-right: 50px;
        padding-top: 37px;
        padding-bottom: 37px;

        h2 {
            font-size: 1.5rem;
        }

        p {
            font-size: 1.5rem;
        }
    }
}

@media screen and (width <=425px) {
    body {
        p {
            line-height: 1.16;
        }

        h1 {
            font-size: 3rem;
        }

        h2 {
            font-size: 2.5rem;
        }
    }

    .Logoandtext-top {
        margin-top: 32px;
        max-width: 79vw;
        max-height: auto;
    }

    .arrows {
        display: none;
    }

    .Page-divider1 {
        display: none;
    }

    .Page-divider2 {
        display: block;
        max-width: 80vw;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.4rem;
        margin-bottom: 2.4rem;
    }

    .nextevent-top {
        display: block;
        max-width: 22vw;
        margin-right: 9vw;
        margin-left: auto;
    }

    .thatsus {
        margin-left: 5.5vw;
        margin-right: 5.5vw;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .text1 {
        width: 89vw;
    }

    .boxes-events-projects {
        flex-direction: column;
        gap: 1rem;
    }

    .arrowbacktotop {
        width: 5vw;
    }

    .arrowsbacktotop {
        margin-top: 5vw;
        justify-content: center;
        padding-right: 0em;
        transform: none;
        opacity: 1;
        position: static;
    }

    footer {
        padding-left: 10vw;
        padding-right: 10vw;
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
        grid-template-columns: 1fr 2.3em;
        grid-template-areas: "name icons"
            "adress icons";
        row-gap: 0.5rem;
    }

    .instagram {
        max-width: 2.1em;
        padding-bottom: 0.5rem;
    }

    .facebook {
        max-width: 2.1em;

    }
}

@media screen and (width <=375px) {
    .arrowsbacktotop {
        a {
            font-size: 10px;
        }
    }
}

@media screen and (width <=320px) {
    .name-telefon {
        p {
            font-size: 0.8rem;
        }
    }

    .email {
        p {
            font-size: 0.8rem;
        }
    }

    .arrowbacktotop {
        width: 6vw;
    }

    footer {
        padding-top: 1.3rem;
        padding-bottom: 1.3rem;
    }

    .instagram {
        max-width: 1.8em;
        padding-bottom: 0.3rem;
    }

    .facebook {
        max-width: 1.8em;

    }
}