/* =========================================
   LearnDash Kursseite
   ========================================= */

.post-content_course .learndash-wrapper {
    font-size: 15px;
}

.post-content_course .learndash-wrapper .ld-progress {
    font-size: 13px;
}

.post-content_course .learndash-wrapper :is(
    .ld-progress-heading,
    .ld-progress-label,
    .ld-progress-percentage,
    .ld-progress-steps
) {
    font-size: 12px;
}

.post-content_course .learndash-wrapper .ld-item-list,
.post-content_course .learndash-wrapper .ld-item-list .ld-item-list-item {
    font-size: 14px;
}

.post-content_course .learndash-wrapper .ld-item-list .ld-item-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.4;
}

.post-content_course .learndash-wrapper .ld-item-list .ld-section-heading :is(h2, h3) {
    font-size: 22px;
}

.post-content_course .learndash-wrapper .ld-item-list .ld-item-list-item-preview {
    display: flex;
    align-items: center;
}

.post-content_course .learndash-wrapper .ld-item-list .ld-status-icon {
    flex-shrink: 0;
}

.post-content_course .learndash-wrapper .ld-item-list .ld-item-name {
    gap: 14px;
}


/* =========================================
   LearnDash Schriftart
   ========================================= */

:is(
    .learndash-wrapper,
    .ld-focus,
    .ld-focus-main,
    .ld-focus-content,
    .ld-focus-sidebar,
    .ld-focus-header,
    .ld-focus-content :is(h1, h2, h3, h4, h5, h6, p, li, a, span),
    .ld-focus-sidebar :is(h1, h2, h3, h4, h5, h6, p, li, a, span),
    .learndash-wrapper :is(
        button,
        input,
        select,
        textarea,
        .ld-button,
        .ld-item-title,
        .ld-course-step-back,
        .ld-content-action
    )
) {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}


/* =========================================
   LearnDash Videos / Vimeo
   ========================================= */

.ld-focus .ld-focus-content :is(iframe, video, embed, object),
.learndash-wrapper :is(iframe, video, embed, object) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.ld-focus .ld-focus-content :is(
    .wp-block-embed,
    .wp-block-embed-vimeo,
    .wp-block-embed__wrapper,
    figure.wp-block-embed,
    figure.wp-block-embed-vimeo
) {
    width: 100% !important;
    max-width: 100% !important;
}

.ld-focus .ld-focus-content :is(
    figure.wp-block-embed,
    figure.wp-block-embed-vimeo,
    .wp-block-embed,
    .wp-block-embed-vimeo
) {
    margin: 30px 0 !important;
}

.ld-focus .ld-focus-content .wp-block-embed__wrapper {
    position: relative;
    width: 100% !important;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
}

.ld-focus .ld-focus-content .wp-block-embed__wrapper iframe[src*="vimeo"] {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}


/* =========================================
   LearnDash Lektionsseiten: Aktionsbereich & Buttons
   ========================================= */

.ld-focus .ld-focus-content .ld-content-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.ld-focus .ld-focus-content .ld-content-actions .ld-content-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.ld-focus .ld-focus-content .ld-content-actions .ld-content-action:first-child {
    align-items: flex-start;
    justify-content: flex-start;
}

.ld-focus .ld-focus-content .ld-content-actions .ld-content-action:last-child {
    align-items: flex-end;
    justify-content: flex-end;
}

.ld-focus .ld-focus-content :is(
    .ld-content-actions form,
    form.sfwd-mark-complete
) {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}


/* Gemeinsame Button-Basis */

.ld-focus .ld-focus-content :is(
    .ld-content-actions .ld-button,
    input.learndash_mark_complete_button
) {
    box-sizing: border-box;
    width: auto;
    min-width: 240px;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 28px !important;
    border-radius: 999px !important;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center;
    white-space: nowrap;
}


/* Goldene Vorherige-/Nächste-Lektion-Buttons */

.ld-focus .ld-focus-content .ld-content-actions .ld-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    background-color: #ac8d3f !important;
    color: #fff !important;
    border: 2px solid #ac8d3f !important;
}

.ld-focus .ld-focus-content .ld-content-actions .ld-button :is(
    .ld-text,
    span,
    i,
    svg
) {
    color: #fff !important;
    fill: #fff !important;
}

.ld-focus .ld-focus-content .ld-content-actions .ld-button:hover {
    background-color: #967a35 !important;
    border-color: #967a35 !important;
    color: #fff !important;
}


/* Roter Button: Als vollständig markieren */

.ld-focus .ld-focus-content input.learndash_mark_complete_button {
    display: inline-block !important;
    line-height: 42px !important;
    background-color: #e3000b !important;
    color: #fff !important;
    border: 2px solid #e3000b !important;
    appearance: none;
    -webkit-appearance: none;
}

.ld-focus .ld-focus-content input.learndash_mark_complete_button:hover {
    background-color: #c9000a !important;
    border-color: #c9000a !important;
    color: #fff !important;
}


/* Link "Zurück zu Kurs" unter dem roten Button */

.ld-focus .ld-focus-content .ld-content-actions .ld-course-step-back {
    display: block;
    width: 100%;
    margin-top: 30px !important;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================
   Mobile Darstellung
   ========================================= */

@media (max-width: 768px) {
    .ld-focus .ld-focus-content .ld-content-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ld-focus .ld-focus-content .ld-content-actions .ld-content-action,
    .ld-focus .ld-focus-content .ld-content-actions .ld-content-action:first-child,
    .ld-focus .ld-focus-content .ld-content-actions .ld-content-action:last-child {
        align-items: center;
        justify-content: center;
    }

    .ld-focus .ld-focus-content :is(
        .ld-content-actions .ld-button,
        input.learndash_mark_complete_button
    ) {
        width: 100%;
        max-width: 320px;
        min-width: 0;
    }
}