
h1{
    color: white;
    font-size: 37px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    width: 410px;
    line-height: 1.3;
}

h2{
    color: rgba(255, 255, 255, 0.833);
    font-size: 19px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-top: 15px;
    width: 75%;
}


body{
    display: flex;
    height: 2000px;
    width: 100%;
    background-color: #212121;
    flex-direction: column;
}

.box{
    background-color: #1C1C1C;
    width: 1146px;
}

#main{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: calc(100vh - 50px);
    min-height: 680px;
    max-height: 850px;
    background-color: #212121;
    padding-top: 65px;
    border-bottom: 1px solid #404040;
    margin: 0 auto;
}

#top{
    height: 382px;
    display: flex;
}

#top-left{
    width: 50%;
    display: flex;
    flex-direction: column;
}

#top-left h1{
    width: 100%;
}



#chart-a{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
    background-color: #6cb3ffed;
    height: 51px;
    width: 140px;
    border-radius: 999px;
    color: #212121;
    font-size: 16px;
    font-weight: 800;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#chart-a:hover{
    background-color: #6cc9ff;
    box-shadow: 0 0 30px #6cb3ff1a;
}

#candle{
    display: flex;
    width: 397px;
    height: 353px;
    border: 1px solid #404040;
    border-radius: 30px;
    box-shadow: 29px 29px 0 #6cb3ffb3;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: 29px;
}

#img-cndl{
    width: 80%;
}


#bottom{
    display: flex;
    flex: 1;
    justify-content: space-between;
}


.info{
    display: flex;
    flex-direction: column;
    background-color: #1C1C1C;
    height: 147px;
    width: 353px;
    border-radius: 40px;
    margin-top: auto;
    margin-bottom: 40px;
    border: solid 1px #404040;
    justify-content: center;
    box-shadow: 0 0 30px #6cb3ff08;
}

.info:hover{
    cursor: pointer;
}

.info h3{
    font-weight: 600;
    font-size: 19px;
    line-height: 37px;
    margin: 0 40px 0 40px;
    color: white;
}

.info p{
    margin: 0 40px 0 40px;
    color: #A3A3A3;
    line-height: 19px;
    font-size: 15px;
}

#lower{
    flex: 1;
    margin: 0 auto;
    background-color: #212121;
}

.y{
    display: flex;
    scroll-margin-top: 160px;
}


.title{
    background-color: #212121;
    color: white;
    display: flex;
    align-items: center;
    font-weight: 800;
    width: fit-content;
    padding: 20px 20px;
    border-radius: 8px;
    font-size: 21px;
    cursor: default;
    margin: 0 100px 0 0;
    border: 1px solid #404040;
    box-shadow: 15px 15px 0 #6cb3ffd2;
    text-align: center;
}

#f{
    display: flex;
    height: 115px;
    background-color: #1C1C1C;
    flex-direction: row;
    padding: 0 calc((100vw - 1146px) / 2);
}


.f_box{
    display: flex;
    height: 115px;
    flex-direction: column;
    margin-right: 60px;

}

.f_text{
    display: inline-block;
    color: #A3A3A3;
    margin-top: 12px;
    text-decoration: none;
    width: fit-content;
}

.f_text:hover{
    text-decoration: underline;
}

#f_h{
    font-size: 15px;
    margin-top: 16px;
    color: #A3A3A3;
    font-weight: 600;
}

.y{
    margin-top: 160px;
}

.wrapper{
    display: flex;
    width: 50%;
    justify-content: flex-end;
    flex: 1;
}

.text_l{
    width: 50%;
    color: rgba(255, 255, 255, 0.833);
    font-size: 16px;
}



@media (max-width: 1200px){

    h1{
        font-size: 35px;
        line-height: 1.2;
    }

    #top-left h2{
        margin-top: 8px;
        font-size: 18px;
    }

    .box{
        width: 950px;
    }

    .info{
        width: 300px;
    }

    .info h3{
    font-weight: 600;
    font-size: 18px;
    line-height: 37px;
    margin: 0 45px 0 45px;
    color: white;
    }

    .info p{
    margin: 0 45px 0 45px;
    color: #A3A3A3;
    line-height: 19px;
    font-size: 15px;
    }

    #candle{
    width: 357px;
    height: 318px;
    box-shadow: 26px 26px 0 #6cb3ffb3;

    }

    #f{
    padding: 0 calc((100vw - 950px) / 2);
    }
}

@media (max-width: 1023px){

      body{
        display: block;
        height: auto;
    }

    #main{
        height: auto;        /* mobile: nach Inhalt */
        border: none;
        max-height: none;
    }

    .box{
        width: 85%;
        margin: 0 auto;
    }

    #top{
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    #top-right{
        order: 1;
    }

    #top-left{
        margin-top: 60px;
        order: 2;
        width: 100%;
    }

    #candle{
        margin: 0 auto;
        width: 60vw;
        height: 27vw;
        box-shadow: 24px 24px 0 #6cb3ffb3;
    }

    #img-cndl{
        width: 80%;
        height: 80%;
    }

    h1{
        font-size: 33px;
        text-align: center;
    }

    h2{
        display: block;
        width: fit-content;
        margin: 16px auto 0;
    }

    #chart-a{
        margin: 40px auto 0; 
        width: 40vw;
        height: 60px;
    }

    #bottom{
        flex: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 30px;
        margin-top: 60px;
        height: auto;
    }

    .info{
        height: 147px;
        width: 290px;
        margin: 0;
        margin-bottom: 0;
    }

     #lower{
        flex: 0;           /* Flex-Einfluss weg */
        margin: 0 auto;
    }

    .y{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 160px 0;
    }

    .wrapper{
        display: flex;
        width: 100%;
        justify-content: center;
        flex: 1;
    }

    .text_l{
        width: 100%;
        color: rgba(255, 255, 255, 0.833);
        font-size: 16px;
        margin: 28px 0;
    }

    .title{
        margin: 0;
    }

    #f{
    padding: 0 7.5vw;
}
}


@media (max-width: 600px){
    #candle{
        margin: 0 auto;
        width: 80vw;
        height: 36vw;
        box-shadow: 18px 18px 0 #6cb3ffb3;
    }

    h1{
        font-size: 28px;
        text-align: center;
    }

}