#homeProgress__overview{
    width: 15em;
}
#homeProgress__statistics{
    width: 21em;
}

.homeProgress{
    display: flex;
        flex-direction: row;
        justify-content:space-around ;
        flex-wrap: wrap;
        padding: 1em 0px;
        width: 0;
        flex-grow: 1;
        min-width: 15em;
}

.homeProgress__block {
    width: 100%;
    padding: 1em;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    /* background: rgba(var(--colUIBack03), 0.6); */
    /* border-radius: 0.5em; */
}







.statistic{

}

.statisticList{
    /* padding: 1em 0px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100%;
    width: 0;
    flex-grow: 1;
}

.statisticList__item{
    /* margin: 0.5em 0.5em 0px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;

}

.statisticList__directLink{
    display: flex;
    align-items: center;
    flex-direction: row;
    overflow: hidden;
}

.statisticList__directLink>svg{
    margin-left: 0.25em;
    width: calc(var(--ButtonIconSize) / 1.3);
    stroke-width: calc(var(--strokeWidth) * 1.5);
}

.statisticList__key{
    white-space: nowrap;
    margin-right: 1em;
}

.statisticList__value{
    font-weight: 400;
    max-width: 18em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.statisticList__barChart{
    width: 100%;
}

.statisticList__headline{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1em;
 }

    .statisticList__headline>span{
        white-space: nowrap;
        margin: 0px 0.5em;
        font-size: 0.9em;
        color: rgb(var(--colAccent01));
    }


.statisticLegend {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    width: 10em;
    align-items: center;
}

    .statisticLegend__container{
        display: flex;
        flex-direction: row;
        gap: 0.25em;
        justify-content: center;
        width: 10em;
        align-items: center;
    }

    .statisticLegend__bar {
        background: rgb(var(--colAccent01));
        height: 0.5em;
        border-radius: 1em;
        width: 1.5em;
    }

    .statisticLegend__text {
        font-size: 0.8rem;
        white-space: nowrap;
    }

/* -------------------- Module Progress ---------------------------*/


    .moduleProgress{
        display: flex;
        flex-direction: row;
        justify-content:space-around ;
        padding: 1em 0px;
        width: 0;
        flex-grow: 1;
        min-width: 15em;
    }

    .moduleProgress__semester{
        margin: 1em 0px;
    }

    .moduleProgress__semTitle{
        font-weight: 400;
        font-size: 1.2rem;
        margin-bottom: 0.5em;
        margin-top: 0;
        text-align: left;
        hyphenate-limit-chars: auto 9;
    }

    .moduleProgress__moduleList{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1em;
    }

    .moduleProgress__moduleBox{
        width: 12em;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        justify-content: space-between;
    }

    .moduleProgress__module{
        text-anchor: middle;
        align-items: center;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
        background: rgba(var(--colUIBack03), 0.6);
        padding: 1em;
        border-radius: 0.5em;
    }

    .moduleProgress__moduleTitle{
        font-weight: 400;
        font-size: 1rem;
        color: rgb(var(--colAccent01));
        margin-bottom: 0.5em;
        text-align: center;
        hyphenate-limit-chars: auto 5;
    }

    .moduleProgress__moduleTitle--small{
        font-size: 1rem;
    }

    .moduleProgress__moduleGrade{
        background: rgba(var(--colUIBack03), 0.6);
        padding: 1em;
        border-radius: 0.5em;
    }

    .moduleProgress__gradeInput{
        resize: vertical;
        max-height: 100%;
        height: 2.3rem;
        -webkit-hyphens: auto;
        hyphens: auto;
        text-align: center;
        font-size: 1.3em;
        font-weight: 400;
        overflow-wrap: anywhere;
    }
    .moduleProgress__gradeInput::placeholder{
        font-weight: 200;
        font-size: 1rem;
    }

    .moduleProgress__gradeInput--green{
        color: rgb(var(--colPro01));
    }

    .moduleProgress__gradeInput--yellow{
        color: rgb(var(--colAttention01));
    }

    .moduleProgress__gradeInput--red{
        color: rgb(var(--colContra01));
    }

    .pieChart__moduleStats{
        width: 10em;
    }



#statisticsStudy_boxContent{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#statisticsModules_boxContent{
    display: flex;
    flex-direction: column;
}



/* -----------------------Studienübersicht ----------------- */


#studyStats__overview{
    width: 15em;
}

#studyStats__progress{
    width: 21em;
}

#studyStats__grades{
    width: 13em;
}


.studyStats{
    display: flex;
    gap: 1em;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-grow: 1;
    max-width: 51em;
    background: rgba(var(--colUIBack03), 0.6);
    border-radius: 0.5em;
}

    .studyStats__block {
        width: 100%;
        padding: 1em;
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        align-items: center;
        /* background: rgba(var(--colUIBack03), 0.6); */
        /* border-radius: 0.5em; */
    }

        .studyStats__studyName{
        font-weight: 400;
        color: rgb(var(--colAccent01));
        hyphenate-limit-chars: auto 9;
        font-size: 1.2em;
        text-align: center;
        margin-top: 0;
    }

    .studyStats__blockTitle{
        font-weight: 400;
        font-size: 1.2rem;
        text-align: left;
        hyphenate-limit-chars: auto 9;
        margin-top: 0;
    }

    #studyStats_progress>.studyStats__blockTitle{
        align-self: flex-start;
    }


    .studyStats__gradesList{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        gap: 1em;
    }

    .studyStats__grade{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25em;
    }

    .studyStats__gradeLabel{
        font-size: 0.9em;
    }

    .studyStats__gradeDigit{
        font-size: 1.5em;
        font-weight: 400;
        text-align: center;
        width: 2.5em;
        height: 2.5em;
        padding: 0.5em;
        border-radius: 2.5em;
        color: rgb(var(--colUIText02));
        background: rgb(var(--colUIBack02));
    }

    .studyStats__gradeDigit--large{
        font-size: 2.5em;
        font-weight: 600;
        color: rgb(var(--colBG));
        background: rgb(var(--colAccent01));
    }

    .studyStats__ECTS{
        max-width: 15em;
    }


.homeProgress__chapterDropdown{
    width: 100%;
    position: relative;
    z-index: 1;
    height: 3.5em;
}

.homeProgress__chapterButtons{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    position: absolute;
    background: rgb(var(--colUIBack04));
    padding: 0.5em;
    border-radius: 1.75em;
}

.homeProgress__chapterDropdown--closed>.homeProgress__chapterButtons{
    gap: 0px;
    overflow: visible;
}

.button.homeProgress__chapterButton{
    --chapterButtonMaxWidth: 100%;
    max-width: var(--chapterButtonMaxWidth);
    background: rgba(var(--colUIBack03), 0.8);
    width: 100%;
    padding: 0.7em;
    padding-right: 2em;
    padding-left: 2.7em;
    display: flex;
    border: 0px solid transparent;
    text-align: left;
    overflow: hidden;
}

/* .noTouch .button.homeProgress__chapterButton:hover {
    overflow: visible;
    } */


    .button.homeProgress__chapterButton--active{
        color: rgb(var(--colUIText01));
    }

    .homeProgress__chapterDropdown--closed>.homeProgress__chapterButtons>.button.homeProgress__chapterButton:not(.homeProgress__chapterButton--active){
        height: 0px;
        padding: 0px;
        border: none;
    }

    .homeProgress__chapterDropdown--closed>.homeProgress__chapterButtons>.button.homeProgress__chapterButton--active:before{
        --arrowSize: 0.5em;
        position: absolute;
        right: 0.75em;
        content: "";
        width: 0px;
        height: 0px;
        border: 0px solid transparent;
        border-top: var(--arrowSize) solid rgb(var(--colUIText01));
        border-left: var(--arrowSize) solid transparent;
        border-right: var(--arrowSize) solid transparent;
    }


    .homeProgress__chapterIcon{
        position: absolute;
        left: 0.7em;
        top: 52%;
        transform: translateY(-50%);
        z-index: 2;
        flex-shrink: 0;
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        border-radius: 0.2em;
        fill: rgb(var(--colUIText03));
        margin-top: -0.125em;
    }



    .button.homeProgress__chapterButton--active>.homeProgress__chapterIcon{
        fill: rgb(var(--colUIText01));
    }

    .button.homeProgress__chapterButton:not(:hover)>.homeProgress__chapterTileContainer{
        text-overflow: ellipsis;
    }


    .homeProgress__chapterTileContainer{
        width: 100%;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


        .homeProgress__chapterTitle{
        transform: translateX(0%);
    }

        .homeProgress__chapterButton:hover>.homeProgress__chapterTileContainer>.homeProgress__chapterTitle--scrollable,
        .homeProgress__chapterButton:focus>.homeProgress__chapterTileContainer>.homeProgress__chapterTitle--scrollable{
            background-color: inherit;
            display: inline-block;
            transition: transform 1s 0.5s linear;
            transform: translateX(calc(var(--chapterButtonMaxWidth) - (100% + 4.7em)));
        }

    .button.homeProgress__chapterButton--active>.studyStats__title>svg{
        fill: white;
    }



@media (max-width: 30em) {
    .moduleProgress__moduleBox {
        flex-grow: 1;
    }
}