

.button-fill {
    background-color: #F85628;
    border-radius: 6.25rem;
    color: var(--gray-0);
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    padding: .75rem 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 2.75rem;
    flex-grow: 1;
    transition: 0.4s ease;

    &:disabled {
        opacity: 0.3;
        pointer-events: none;
    }

    &:hover {
        background-color: #C7360D;
    }

    &.icon {
        max-width: fit-content;
        height: 100%;
        aspect-ratio: 1/1;
        padding: .625rem;
    }
}

.button-outline {
    background-color: var(--gray-0);
    border-radius: 6.25rem;
    color: #F85628;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    padding: calc(.75rem - .0625rem) 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    border: .0625rem solid var(--gray-25);
    cursor: pointer;
    width: 100%;
    height: 2.75rem;
    flex-grow: 1;
    transition-property: border, color;
    transition-duration: .2s;
    transition-timing-function: ease-in-out;

    &:hover {
        border: .0625rem solid #C7360D;
        color: #C7360D;
    }

    &:disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    &.icon {
        width: 2.75rem;
        height: 2.75rem;
        aspect-ratio: 1/1;
        padding: .625rem;
        flex-grow: 0;
    }
}




.exercises-option {
    max-width: 77.875rem;
    margin: 0 auto;
    box-sizing: content-box;

    .header:not(.exercise-header) {
        display: flex;
        align-items: end;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        gap: 1rem;

        .title {
            font-size: 2rem;
            font-weight: 700;
            color: #2A1C14;
            font-family: "Source Serif 4", serif;
            min-width: 0;
        }

        .top-bar {
            max-width: 31.875rem;
            width: 100%;
            height: 5.75rem;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-direction: row;
            gap: 1.5rem;

            .button-prev {
                color: #919292;
                padding: .875rem;

                &:hover {
                    color: #C7360D;
                }
            }

            .box {
                display: flex;
                align-items: center;
                gap: 1.625rem;

                .counter {
                    color: #000000;
                    font-size: 1.125rem;
                    font-weight: 600;
                    white-space: nowrap;

                    .current {
                        color: #F85628;
                    }
                }

                .button-check {
                    width: 10.6875rem;
                    flex-grow: 0;
                }

                .button-repeat {
                    display: none;
                    max-width: 9.125rem;
                    width: 100%;
                    flex-grow: 1;
                }

                .button-next {
                    display: none;
                    flex-grow: 1;
                    width: 100%;
                    max-width: 15rem;
                }
            }
        }
    }

    .exercises-explanation {
        background-color: var(--gray-15);
        border-radius: 1.5rem;
        padding: .75rem 1.5rem;
        margin-bottom: 1.5rem;
        font-size: .875rem;
        font-weight: 400;

        .explanation {
            color: var(--gray-600);

            &:not(:last-child) {
                margin-bottom: .5rem;
            }
        }

        .statistics {
            color: #F85628;
        }
    }

    .task-wrapper {
        display: flex;
        gap: 1rem;

        &.is-single-card {
            justify-content: center;

            .answer {
                width: 100%;
                max-width: 100%;
                height: auto;
                min-height: 0;
            }
        }

        .task {
            max-width: 45rem;
            height: auto;
            min-height: 20rem;
            max-height: 30rem;
            flex-grow: 1;
            padding: 1.5rem 1.5rem 1.5rem 1.5rem;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                box-shadow: inset 0rem -5rem 1.6875rem -2rem #fff;
            }

            .scroll-container {
                height: 100%;
                overflow: auto;
                padding: 1.5rem;
                padding: 0 .5rem;

                &::-webkit-scrollbar {
                    width: .25rem;
                    background-color: transparent;
                    border-radius: .1875rem;
                }

                &::-webkit-scrollbar-thumb {
                    width: .25rem;
                    background-color: var(--gray-100);
                    border-radius: .1875rem;
                }

                .text-block {
                    margin-bottom: 1.875rem;

                    .text-title {
                        color: #000000;
                        font-size: 1.25rem;
                        font-weight: 600;
                    }

                    .text {
                        color: #000000;
                        font-size: 1.25rem;
                        font-weight: 400;
                    }
                }
            }
        }

        .answer {
            max-width: 31.875rem;
            flex-grow: 1;
            height: auto;
            min-height: 20rem;
            max-height: 30rem;
            padding: 0;
            overflow: hidden;
            padding: 1.5rem 1.5rem 1.5rem 1.5rem;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                box-shadow: inset 0rem -5rem 1.6875rem -2rem #fff;
            }

            .correct-answers {
                display: none;
                position: absolute;
                left: -1rem;
                top: 0;
                padding: 1rem 0 0 2rem;
                width: 100%;
                z-index: 1;
                background-image: linear-gradient(#ffffff 50%, #FFFFFF00 100%);


}

            .scroll-container {
                height: 100%;
                overflow: auto;
                padding: 0 .5rem;

                &::-webkit-scrollbar {
                    width: .25rem;
                    background-color: transparent;
                    border-radius: .1875rem;
                }

                &::-webkit-scrollbar-thumb {
                    width: .25rem;
                    background-color: var(--gray-100);
                    border-radius: .1875rem;
                }

                .questions-title {
                    color: #000000;
                    font-size: 1.125rem;
                    font-weight: 600;
                    margin-bottom: .6875rem;
                }

                .article-word {
                    color: #000000;
                    font-size: 1.35rem;
                    font-weight: 600;
                    line-height: 1.35;
                    margin-bottom: .75rem;
                }

                .questions {
                    display: flex;
                    flex-direction: column;
                    height: fit-content;
                    flex-shrink: 0;
                    gap: 1.5rem;

                    .question-wrapper {
                        .question {
                            display: flex;
                            gap: .5rem;

                            .question-number {
                                background-color: #F85628;
                                border-radius: .875rem;
                                width: 1.75rem;
                                height: 1.75rem;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                color: #FFFFFF;
                                font-size: .875rem;
                                font-weight: 500;
                                flex-shrink: 0;
                            }

                            .question-content {
                                .question-title {
                                    color: #000000;
                                    font-size: 1rem;
                                    font-weight: 500;
                                    margin-bottom: .5rem;
                                }

                                .radio-list {
                                    display: flex;
                                    flex-direction: column;
                                    gap: .25rem;
                                }
                            }
                        }

                        .explanation {
                            display: none;

                            .collapsible-content {
                                transition: none;

                                p {
                                    color: #F85628;
                                    font-size: .875rem;
                                    font-weight: 400;
                                    margin-top: 1rem;
                                    margin-bottom: 1.5rem;
                                }

                                pre {
                                    font-family: var(--font-onest);
                                    font-weight: 400;
                                    font-size: .875rem;
                                    white-space: pre-wrap;
                                    word-break: break-all;
                                    color: #000000;
                                }
                            }
                        }
                    }
                }
            }
        }    }}

.result {
    .header:not(.exercise-header) {
        .top-bar {
            .box {
                width: 100%;
                gap: .5rem;

                .counter {
                    display: none;
                }

                .button-check {
                    display: none;
                }

                .button-repeat {
                    display: flex;
                }

                .button-next {
                    display: flex;
                }
            }
        }
    }

    .task-wrapper {
        .answer {
            position: relative;

            .correct-answers {
                display: block;

            }

            .scroll-container {
                padding-top: 3.4375rem;

                .questions {
                    .question-wrapper {
                        .question {
                            margin-bottom: .5rem;
                        }

                        .explanation {
                            display: block;
                        }
                    }
                }
            }
        }
    }}

.exercises-option.variant-compact-choice {
    .task-wrapper {
        justify-content: center;

        .answer {
            width: 100%;
            max-width: 100%;
            height: auto;
            min-height: 0;

            &::after {
                display: none;
            }

            .scroll-container {
                height: auto;
                overflow: visible;
            }
        }
    }
}

.exercises-option [data-extra-body-content] strong {
    color: var(--action-green);
}

.exercises-option.extra-kind-verb [data-extra-body-content] {
    margin-top: 1rem;
}

.exercises-option.extra-kind-article .task-wrapper .answer .scroll-container .questions-title {
    font-weight: 400 !important;
}

.exercises-option.variant-word-choice {
    .task-wrapper {
        justify-content: center;

        .answer {
            width: 100%;
            max-width: 100%;
            height: auto;
            min-height: 0;

            &::after {
                display: none;
            }

            .scroll-container {
                height: auto;
                overflow: visible;

                .questions {
                    .question-wrapper {
                        .question {
                            .question-number {
                                display: none;
                            }

                            .question-content {
                                width: 100%;

                                .question-title {
                                    margin-bottom: .25rem;
                                }

                                .question-subtitle {
                                    margin-bottom: 1rem;
                                }
                            }

                            &.extra-explanation-direct {
                                margin-top: 1rem;
                            }
                        }
                    }
                }
            }
        }
    }
}

.exercises-option.has-media {
    .task-wrapper {
        .task {
            .scroll-container {
                .media-grid {
                    display: grid;
                    gap: 1rem;
                    margin-bottom: 1.5rem;

                    &.is-double {
                        grid-template-columns: repeat(2, minmax(0, 1fr));
                    }

                    img {
                        width: 100%;
                        border-radius: 1rem;
                        object-fit: cover;
                        background-color: var(--gray-15);
                    }
                }
            }
        }
    }
}

.exercises-option.variant-image-choice {
    .task-wrapper {
        .task {
            height: auto;

            &::after {
                display: none;
            }

            .scroll-container {
                height: auto;
                overflow: visible;
            }
        }
    }
}

.exercises-option.variant-image-choice.has-media {
    .task-wrapper {
        .task {
            .scroll-container {
                .media-grid {
                    &.is-single {
                        grid-template-columns: minmax(0, 1fr);
                    }

                    img {
                        max-height: 26.25rem;
                    }
                }
            }
        }
    }
}

.exercises-option.variant-compact-choice,
.exercises-option.variant-image-choice,
.exercises-option.variant-default {
    .task-wrapper {
        .task {
            .scroll-container {
                .text-block {
                    .rich-text {
                        color: #000000;
                        font-size: 1.25rem;
                        font-weight: 400;
                        line-height: 1.5;

                        p {
                            margin-bottom: 1rem;
                        }

                        p:last-child {
                            margin-bottom: 0;
                        }

                        strong {
                            font-weight: 700;
                        }

                        em {
                            font-style: italic;
                        }
                    }
                }
            }
        }
    }
}

@media (min-width: 64.0625rem) {
    .exercises-option.extra-kind-article,
    .exercises-option.extra-type-redewendung {
        .task-wrapper {
            .answer.paper.toggle-shadow {
                height: auto;
            }
        }
    }

    .exercises-option.extra-type-praeposition,
    .exercises-option.extra-type-woerter {
        .task-wrapper {
            .task.paper.toggle-shadow.end,
            .answer.paper.toggle-shadow.end {
                height: auto;
            }
        }
    }
}

@media (max-width: 64rem) {
    .exercises-option {
        .task-wrapper {
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;

            .paper {
                border: none;
                padding: 0;
            }

            .task {
                max-width: 100%;
                height: auto;
                min-height: auto;
                max-height: 100%;
                padding: 0;
                padding-bottom: 1.5rem;
                border-bottom: .0625rem solid var(--gray-25);
                border-radius: 0;

                .scroll-container {
                    .text-block {
                        margin-bottom: 0;

                        .text-title {
                            font-size: 1rem;
                        }

                        .text {
                            font-size: 1rem;
                        }
                    }
                }
            }

            .answer {
                max-width: 100%;
                height: auto;
                width: 100%;
                border-radius: 0;
                min-height: 0;
                max-height: 100%;

                &::after {
                    display: none;
                }

                .correct-answers {
                    position: relative;
                    background-image: none;
                    padding: 0;
                    margin-bottom: 1rem;
                    left: 0;
                }

                .scroll-container {
                    max-height: 100%;
                    overflow: auto;
                    overscroll-behavior: auto !important;
                    padding: 0;

                    .questions {
                        padding: 0;
                        gap: 1rem;

                        .question-wrapper {
                            padding-bottom: 1.25rem;
                            border-bottom: .0625rem solid var(--gray-25);

                            &:last-child {
                                border-bottom: none;
                                padding-bottom: .25rem;
                            }
                        }
                    }
                }
            }        }
    }

    .result {
        .task-wrapper {
            gap: 1rem;

            .answer {
                .scroll-container {
                    .questions {
                        .question-wrapper {
                            padding-bottom: .75rem;

                            .question {
                                margin-bottom: 1rem;
                            }
                        }
                    }
                }
            }

            .button-to-transcription {
                display: flex;
                margin-top: .5rem;
            }
        }
    }

    .exercises-option.variant-compact-choice {
        .task-wrapper {
            .task {
                height: auto;
                padding-bottom: 0;
                border-bottom: none;
            }

            .answer {
                min-height: 0;

                .scroll-container {
                    max-height: none;
                }
            }
        }
    }

    .exercises-option.variant-word-choice {
        margin-bottom: .75rem;

        .task-wrapper {
            .answer {
                overflow: visible;

                .scroll-container {
                    height: auto;
                    max-height: none;
                    overflow: visible;
                }
            }
        }
    }

    .exercises-option.extra-kind-article {
        .task-wrapper {
            .answer.paper.toggle-shadow {
                height: auto;
                min-height: 0;
            }
        }
    }

    .exercises-option.extra-type-redewendung {
        .task-wrapper {
            .answer {
                height: auto;
                min-height: 0;
                max-height: none;

                .scroll-container {
                    height: auto;
                    max-height: none;
                    overflow: visible;
                }
            }
        }
    }

    .exercises-option.has-media {
        .task-wrapper {
            .task {
                .scroll-container {
                    .media-grid {
                        &.is-double {
                            grid-template-columns: minmax(0, 1fr);
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 48rem) {
    .exercises-option {
    .header:not(.exercise-header) {
            flex-direction: column-reverse;
            align-items: start;
            margin-bottom: 2rem;

            .title {
                font-family: "Onest", sans-serif;
                font-size: 1.5rem;
                font-weight: 600;
            }

            .top-bar {
                justify-content: start;
                border: none;
                padding: 0;
                gap: 1rem;
                height: fit-content;

                .box {
                    .counter {
                        font-size: 1rem;
                    }

                    .button-check {
                        display: none;
                    }
                }
            }
        }

        .exercises-explanation {
            padding: .75rem;
            margin-bottom: 2rem;
            border-radius: .75rem;
        }
    }

    .result {
    .header:not(.exercise-header) {
            .top-bar {
                .box {
                    .counter {
                        display: block;
                    }

                    .button-repeat {
                        display: none;
                    }

                    .button-next {
                        display: none;
                    }
                }
            }
        }

    }
}
