.sgs-videos {
    --sgs-videos-content-max: 1140px;
    background: #efede8;
}

body.sgs-erklaervideos-page:not(:has([role="alertdialog"])) #BorlabsDialogBackdrop {
    pointer-events: none;
}

.sgs-videos {
    color: #343334;
    font-family: "Poppins", "Montserrat", Helvetica, Arial, sans-serif;
    left: 50%;
    margin: 0 0 0 -50vw;
    max-width: 100vw;
    padding: 0;
    position: relative;
    width: 100vw;
}

@supports (width: 100dvw) {
    .sgs-videos {
        margin-left: -50dvw;
        max-width: 100dvw;
        width: 100dvw;
    }
}

.sgs-videos *,
.sgs-videos *::before,
.sgs-videos *::after {
    box-sizing: border-box;
}

.sgs-videos-hero {
    background: #fff;
    border-bottom: 1px solid #ede8df;
    padding: 72px clamp(24px, 4vw, 58px) 54px;
}

.sgs-videos-hero__inner {
    align-items: end;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    margin: 0 auto;
    max-width: var(--sgs-videos-content-max);
}

.sgs-videos-kicker {
    color: #f08b25;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.sgs-videos-hero h1 {
    color: #343334;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    margin: 0;
    padding: 0;
}

.sgs-videos-hero__copy {
    color: #6c6a68;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

.sgs-video-section {
    --sgs-accent: #f08b25;
    --sgs-soft: #f3dfbd;
    --sgs-bg: #fbf8f3;
    --sgs-line: rgba(52, 51, 52, .12);
    --sgs-title: #343334;
    --sgs-muted: #8a8782;
    background: var(--sgs-bg);
    padding: 58px clamp(24px, 4vw, 58px);
}

.sgs-video-section--rose {
    --sgs-accent: #bf1528;
    --sgs-soft: #edcbcc;
    --sgs-bg: #fff;
}

.sgs-video-section--dark {
    --sgs-accent: #f08b25;
    --sgs-soft: #655b4b;
    --sgs-bg: #302b25;
    --sgs-line: rgba(255, 255, 255, .13);
    --sgs-title: #fff;
    --sgs-muted: #b9b0a6;
}

.sgs-video-section__inner {
    margin: 0 auto;
    max-width: var(--sgs-videos-content-max);
}

.sgs-video-section__header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin-bottom: 28px;
}

.sgs-video-section__number {
    color: color-mix(in srgb, var(--sgs-accent) 28%, #fff);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 800;
    line-height: 1;
}

.sgs-video-section--dark .sgs-video-section__number {
    color: rgba(255, 255, 255, .2);
}

.sgs-video-section__header h2 {
    color: var(--sgs-title);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.sgs-video-section__header p {
    color: var(--sgs-muted);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.sgs-video-section__grid {
    align-items: center;
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    grid-template-columns: minmax(0, 1.24fr) minmax(310px, .86fr);
}

.sgs-video-section--media-right .sgs-video-feature {
    order: 2;
}

.sgs-video-section--media-right .sgs-video-list {
    order: 1;
}

.sgs-video-section--compact .sgs-video-section__grid {
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}

.sgs-video-section--compact .sgs-video-list {
    display: grid;
    gap: 0 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sgs-video-feature {
    min-width: 0;
    position: relative;
}

.sgs-video-feature__stage,
.sgs-video-embed,
.sgs-video-local-placeholder,
.sgs-video-feature__stage .brlbs-cmpnt-container {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    min-height: 280px;
    overflow: hidden;
    width: 100%;
}

.sgs-video-feature__stage {
    background: var(--sgs-soft);
    position: relative;
}

.sgs-video-embed iframe,
.sgs-video-embed video {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.sgs-video-embed video {
    background: #000;
    object-fit: contain;
}

.sgs-video-feature:has(.sgs-video-embed video) .sgs-video-feature__caption {
    bottom: 58px;
}

.sgs-video-feature__stage .brlbs-cmpnt-container {
    display: grid;
    place-items: center;
}

.sgs-video-feature__caption {
    background: #fff;
    border-radius: 8px;
    bottom: 22px;
    box-shadow: 0 12px 30px rgba(42, 36, 28, .12);
    left: 22px;
    max-width: min(320px, calc(100% - 44px));
    padding: 12px 18px 14px;
    position: absolute;
    z-index: 3;
}

.sgs-video-feature__caption span {
    color: var(--sgs-accent);
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.sgs-video-feature__caption strong {
    color: #343334;
    display: block;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    line-height: 1.2;
}

.sgs-video-local-placeholder {
    align-items: center;
    background: var(--sgs-soft);
    color: var(--sgs-title);
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.sgs-video-local-placeholder p {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    max-width: 420px;
}

.sgs-video-local-placeholder__play {
    align-items: center;
    background: var(--sgs-accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(42, 36, 28, .18);
    display: inline-flex;
    height: 76px;
    justify-content: center;
    width: 76px;
}

button.sgs-video-local-placeholder__play {
    cursor: pointer;
}

.sgs-video-local-placeholder__play::before,
.sgs-video-item__play::before {
    border-bottom: 7px solid transparent;
    border-left: 10px solid currentColor;
    border-top: 7px solid transparent;
    color: #fff;
    content: "";
    display: block;
    height: 0;
    margin-left: 3px;
    width: 0;
}

.sgs-video-list {
    min-width: 0;
}

.sgs-video-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--sgs-line);
    color: var(--sgs-title);
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 14px 0;
    text-align: left;
    width: 100%;
}

.sgs-video-item:first-child {
    border-top: 1px solid var(--sgs-line);
}

.sgs-video-item__play {
    align-items: center;
    border: 3px solid var(--sgs-accent);
    border-radius: 999px;
    color: var(--sgs-accent);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    transition: background .16s ease, color .16s ease;
    width: 46px;
}

.sgs-video-item__play::before {
    border-bottom-width: 5px;
    border-left-color: currentColor;
    border-left-width: 7px;
    border-top-width: 5px;
    color: inherit;
}

.sgs-video-item__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
}

.sgs-video-item__duration {
    color: var(--sgs-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sgs-video-item:hover .sgs-video-item__play,
.sgs-video-item:focus-visible .sgs-video-item__play,
.sgs-video-item.is-active .sgs-video-item__play {
    background: var(--sgs-accent);
    color: #fff;
}

.sgs-video-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sgs-accent) 45%, #fff);
    outline-offset: 4px;
}

.sgs-videos-empty {
    background: #fff;
    color: #343334;
    font-size: 18px;
    font-weight: 700;
    padding: 58px;
}

@media (max-width: 1120px) {
    .sgs-videos-hero,
    .sgs-video-section {
        padding-left: 34px;
        padding-right: 34px;
    }

    .sgs-videos-hero__inner,
    .sgs-video-section__grid,
    .sgs-video-section--compact .sgs-video-section__grid {
        grid-template-columns: 1fr;
    }

    .sgs-video-section--media-right .sgs-video-feature,
    .sgs-video-section--media-right .sgs-video-list {
        order: initial;
    }
}

@media (max-width: 760px) {
    .sgs-videos-hero,
    .sgs-video-section,
    .sgs-videos-empty {
        padding: 36px 20px;
    }

    .sgs-videos-hero__inner {
        align-items: start;
        gap: 18px;
    }

    .sgs-videos-hero__copy {
        font-size: 16px;
    }

    .sgs-video-section__header {
        align-items: flex-start;
        display: grid;
        gap: 8px;
    }

    .sgs-video-section--compact .sgs-video-list {
        grid-template-columns: 1fr;
    }

    .sgs-video-feature__stage,
    .sgs-video-embed,
    .sgs-video-local-placeholder,
    .sgs-video-feature__stage .brlbs-cmpnt-container {
        min-height: 210px;
    }

    .sgs-video-feature__caption {
        bottom: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 10px 12px 12px;
    }

    .sgs-video-feature:has(.sgs-video-embed video) .sgs-video-feature__caption {
        bottom: 48px;
    }

    .sgs-video-local-placeholder--empty p {
        display: none;
    }

    .sgs-video-item {
        gap: 12px;
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 68px;
    }

    .sgs-video-item__duration {
        grid-column: 2;
        margin-top: -10px;
    }

    .sgs-video-item__play {
        height: 40px;
        width: 40px;
    }
}
