/* Site slice S0 — minimal shell styles until Yii assets are replaced. */

.site-shell {
    margin: 0;
    min-height: 100vh;
}

/* S0 placeholder shell header only — not Yii page title blocks (div.site-header). */
header.site-header.row {
    border-bottom: 1px solid #e6e6e6;
    padding: 1rem 0;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.site-header__logo {
    color: #e6007e;
    font-weight: 700;
    text-decoration: none;
}

.site-header__lang-form select {
    margin: 0;
}

.site-main {
    padding: 2rem 0 3rem;
}

.site-main--centered {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.site-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 2rem;
}

.site-home__meta,
.site-home__dev-note {
    color: #666;
    font-size: 0.95rem;
}

.site-footer {
    border-top: 1px solid #e6e6e6;
    color: #666;
    font-size: 0.875rem;
    padding: 1rem 0 2rem;
}

.site-error {
    max-width: 32rem;
    text-align: center;
}

.site-error h1 {
    color: #e6007e;
}

.show-for-sr {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.site-menu-lang-form {
    margin: 0;
}

.site-menu-lang-form button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
    width: 100%;
}

/* Me/invoices: action buttons stay inside the column with Yii-like spacing. */
.course-playlist-item .invoice-download__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.course-playlist-item .invoice-download__actions .button {
    display: inline-block;
    flex: 0 1 auto;
    max-width: 100%;
}

.course-playlist-item .invoice-download__actions .button + .button {
    margin-left: 10px !important;
}

/* Me/membership: destructive primary action stays magenta (legacy CSS greys all :focus/:hover). */
#delete-account-button,
#delete-account-button:hover,
#delete-account-button:focus {
    background-color: #e6007e;
    border-color: #b80065;
    color: #fff;
}

/* Me/membership: keep cancel + delete buttons from overlapping during column animation. */
.delete-account-actions {
    overflow: hidden;
}

#slider-zoom-overlay .zoom-clone {
    position: relative;
}

#slider-zoom-overlay .fs-slider-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
    text-decoration: none;
}

/* /newhome hero — full width, 16:9 video height from browser width */
#intro-welcome-div.intro-welcome-div--has-video {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background-image: none;
    background-color: transparent;
}

.intro-welcome-hero__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.intro-welcome-hero__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
}

.intro-welcome-hero__media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    z-index: 1;
}

.intro-welcome-hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.intro-welcome-hero__poster.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Vimeo mute toggle — hero video only (overlays follow hero sound preference) */
.fs-video-mute-toggle,
.fs-video-mute-toggle:hover,
.fs-video-mute-toggle:focus,
.fs-video-mute-toggle:active {
    position: absolute;
    right: clamp(12px, 2vw, 22px);
    bottom: clamp(12px, 2vw, 22px);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.fs-video-mute-toggle__ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    transition: background-color 0.15s ease;
}

.fs-video-mute-toggle:hover .fs-video-mute-toggle__ring,
.fs-video-mute-toggle:focus-visible .fs-video-mute-toggle__ring,
.fs-video-mute-toggle:active .fs-video-mute-toggle__ring {
    background: rgba(0, 0, 0, 0.45);
}

.fs-video-mute-toggle:focus-visible {
    outline: none;
}

.fs-video-mute-toggle:focus-visible .fs-video-mute-toggle__ring {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.fs-video-mute-toggle__icon {
    width: 20px;
    height: 20px;
}

.fs-video-mute-toggle__icon--unmuted,
.fs-video-mute-toggle__icon--muted {
    display: none;
}

/* Icon shows the click action: waves = einschalten, X = ausschalten */
.fs-video-mute-toggle.is-muted .fs-video-mute-toggle__icon--unmuted {
    display: block;
}

.fs-video-mute-toggle.is-unmuted .fs-video-mute-toggle__icon--muted {
    display: block;
}

.intro-welcome-hero__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(24px, 10vh, 80px) clamp(16px, 5vw, 72px);
    pointer-events: none;
}

.intro-welcome-hero__signin {
    margin-left: 0;
    width: auto;
    max-width: 92vw;
    pointer-events: auto;
}

.intro-welcome-hero__signin-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    max-width: 92vw;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.125rem 1.125rem;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Shared bordered inputs + pill actions (hero overlay + voucher bar) */
.newhome-promo-input,
.intro-welcome-hero__signin-form input[type="email"],
.voucher-bar--compact .voucher-bar__input {
    width: 100%;
    max-width: 100%;
    height: 38px !important;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    font-size: 15px;
    line-height: normal;
    vertical-align: middle;
    box-sizing: border-box;
}

.intro-welcome-hero__signin-form .newhome-promo-input,
.intro-welcome-hero__signin-form input[type="email"] {
    width: 250px;
    max-width: 100%;
    margin: 0 0 0.75rem;
}

.newhome-promo-input:focus,
.intro-welcome-hero__signin-form input[type="email"]:focus,
.voucher-bar--compact .voucher-bar__input:focus {
    background: #fafafa !important;
    border-color: #999 !important;
    outline: none;
}

.intro-welcome-hero__signin-form .errorMessage {
    margin: -0.25rem 0 0.75rem;
}

.newhome-promo-submit,
.intro-welcome-hero__signin-form .intro-welcome-hero__signin-submit,
.voucher-bar--compact .voucher-bar__submit {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    line-height: 38px !important;
    border: 0 !important;
    border-radius: 1000px !important;
    font-size: 15px !important;
    font-weight: normal !important;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    color: #fff !important;
    background-color: #e6007e !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.newhome-promo-submit:hover,
.newhome-promo-submit:focus,
.newhome-promo-submit:active,
.intro-welcome-hero__signin-form .intro-welcome-hero__signin-submit:hover,
.intro-welcome-hero__signin-form .intro-welcome-hero__signin-submit:focus,
.intro-welcome-hero__signin-form .intro-welcome-hero__signin-submit:active,
.voucher-bar--compact .voucher-bar__submit:hover,
.voucher-bar--compact .voucher-bar__submit:focus,
.voucher-bar--compact .voucher-bar__submit:active {
    height: 38px !important;
    padding: 0 18px !important;
    line-height: 38px !important;
    border: 0 !important;
    border-radius: 1000px !important;
    margin: 0 !important;
    color: #fff !important;
    background-color: #c9006c !important;
    box-shadow: none !important;
    transform: none;
    outline: none;
}

.intro-welcome-hero__content .login-form,
.intro-welcome-hero__content a,
.intro-welcome-hero__content button,
.intro-welcome-hero__content input,
.intro-welcome-hero__content select,
.intro-welcome-hero__content textarea,
.intro-welcome-hero__content label {
    pointer-events: auto;
}

@media only screen and (max-width: 40em) {
    #intro-welcome-div.intro-welcome-div--has-video {
        display: flex;
        flex-direction: column;
    }

    .intro-welcome-hero__content {
        position: static;
        display: block;
        align-items: stretch;
        padding: 1rem;
        pointer-events: auto;
    }

    .intro-welcome-hero__signin {
        margin-left: 0;
        width: 100%;
        max-width: none;
    }

    .intro-welcome-hero__signin-form {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .intro-welcome-hero__signin-form .newhome-promo-input,
    .intro-welcome-hero__signin-form input[type="email"] {
        width: 100%;
    }
}

/* /newhome course sliders — Netflix-style full viewport width */
.course-slider-section {
    --course-slider-gutter: clamp(12px, 3vw, 56px);
    --slider-nav-lane: clamp(52px, 4.5vw, 68px);
    --course-slider-content-start: max(var(--course-slider-gutter), var(--slider-nav-lane));
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
}

.course-slider-section__header {
    padding: 0 var(--course-slider-gutter);
    padding-left: var(--course-slider-content-start);
    text-align: left;
}

.course-slider-section__header .slider-header {
    display: block;
    text-align: left;
    margin: 0;
}

.course-slider-section__headline-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.course-slider-section__headline-link:hover,
.course-slider-section__headline-link:focus {
    color: inherit;
    text-decoration: underline;
}

.course-slider-section__track {
    width: 100%;
    padding-left: calc(var(--course-slider-content-start) - var(--slider-nav-lane));
    padding-right: max(0px, calc(var(--course-slider-gutter) - var(--slider-nav-lane)));
    box-sizing: border-box;
    overflow: visible;
}

.course-slider-section .slider-viewport {
    display: flex;
    align-items: stretch;
    width: 100%;
    --swiper-navigation-sides-offset: 0px;
}

.course-slider-section .slider-nav-lane {
    position: relative;
    flex: 0 0 var(--slider-nav-lane);
    width: var(--slider-nav-lane);
    min-width: var(--slider-nav-lane);
    z-index: 2;
}

.course-slider-section .swiper {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

/* Before Swiper JS runs — prevent first slide from filling the viewport (FOUC on reload) */
.course-slider-section .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.course-slider-section .swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 6px * 1.15) / 2.15);
    width: calc((100% - 6px * 1.15) / 2.15);
    margin-right: 6px;
    min-width: 0;
    box-sizing: border-box;
}

.course-slider-section .swiper:not(.swiper-initialized) .swiper-slide:hover {
    transform: none;
    box-shadow: none;
}

@media only screen and (min-width: 640px) {
    .course-slider-section .swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc((100% - 8px * 2.15) / 3.15);
        width: calc((100% - 8px * 2.15) / 3.15);
        margin-right: 8px;
    }
}

@media only screen and (min-width: 1024px) {
    .course-slider-section .swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc((100% - 8px * 3.15) / 4.15);
        width: calc((100% - 8px * 3.15) / 4.15);
        margin-right: 8px;
    }
}

@media only screen and (min-width: 1280px) {
    .course-slider-section .swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc((100% - 10px * 4.15) / 5.15);
        width: calc((100% - 10px * 4.15) / 5.15);
        margin-right: 10px;
    }
}

@media only screen and (min-width: 1536px) {
    .course-slider-section .swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc((100% - 10px * 5.15) / 6.15);
        width: calc((100% - 10px * 5.15) / 6.15);
        margin-right: 10px;
    }
}

.course-slider-section .slider-nav-lane .swiper-button-prev,
.course-slider-section .slider-nav-lane .swiper-button-next {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    top: 38%;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    color: #888;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    transition: color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-slider-section .slider-nav-lane .swiper-button-prev:hover,
.course-slider-section .slider-nav-lane .swiper-button-next:hover {
    background: transparent;
    color: #555;
}

/* Peek tiles at the edges — no hover zoom on clipped slides */
.course-slider-section .swiper-slide.is-peek-slide .slider-thumb {
    pointer-events: none;
}

.course-slider-section .swiper-slide.is-peek-slide .slider-thumb * {
    pointer-events: none;
}

/* Zoom overlay alignment — left/right edge tiles stay clear of nav arrows */
#slider-zoom-overlay .zoom-clone.zoom-align-left {
    transform-origin: left center;
    transform: translate(0, -50%) scale(1);
}

#slider-zoom-overlay.is-active .zoom-clone.zoom-align-left {
    animation: none;
    transform: translate(0, -50%) scale(var(--zoom-scale, 1.5));
    opacity: 1;
}

#slider-zoom-overlay .zoom-clone.zoom-align-right {
    transform-origin: right center;
    transform: translate(-100%, -50%) scale(1);
}

#slider-zoom-overlay.is-active .zoom-clone.zoom-align-right {
    animation: none;
    transform: translate(-100%, -50%) scale(var(--zoom-scale, 1.5));
    opacity: 1;
}

#slider-zoom-overlay .zoom-clone.zoom-align-center {
    transform-origin: center center;
}

.course-slider-section .slider-nav-lane .swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: auto;
}

.course-slider-section .slider-nav-lane .swiper-button-prev::after,
.course-slider-section .slider-nav-lane .swiper-button-next::after {
    content: none;
}

.course-slider-section .slider-nav-lane .swiper-button-prev svg,
.course-slider-section .slider-nav-lane .swiper-button-next svg {
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.course-description-text {
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
}

.course-description-text ul,
.course-description-text ol {
    margin: 0.5em 0;
    padding-left: 1.25em;
}

.course-description-text blockquote {
    margin: 0.5em 0;
    padding-left: 0.75em;
    border-left: 2px solid rgba(0, 0, 0, 0.15);
}

/* /newhome — compact voucher bar (inline on large screens) */
.voucher-bar--compact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 20px;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.voucher-bar--compact .voucher-bar__label {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.25;
}

.voucher-bar--compact .voucher-bar__fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

@media only screen and (min-width: 40em) {
    .voucher-bar--compact .voucher-bar__fields {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
    }

    .voucher-bar--compact .voucher-bar__input {
        flex: 0 1 140px;
        width: auto;
        max-width: 180px;
        min-width: 0;
    }

    .voucher-bar--compact .newhome-promo-submit,
    .voucher-bar--compact .voucher-bar__submit {
        width: auto !important;
        margin-left: auto;
    }
}

@media only screen and (min-width: 64em) {
    .voucher-bar--compact {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .voucher-bar--compact .voucher-bar__fields {
        display: contents;
    }

    .voucher-bar--compact .voucher-bar__label {
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
        padding-right: 0;
    }

    .voucher-bar--compact .voucher-bar__input {
        flex: 0 0 140px;
        width: 140px;
        max-width: 140px;
        min-width: 0;
    }

    .voucher-bar--compact .voucher-bar__submit {
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
    }
}

/* Catalog thumbs — infobar (videos / duration / language) */
span.thumb_infobar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: auto;
    min-height: 40px;
    padding: 10px 25px;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
    overflow: hidden;
}

span.thumb_infobar > span:not(.glyphicon) {
    display: block;
    float: none !important;
    min-width: 0;
    width: auto !important;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

span.thumb_infobar > span.text-left,
span.thumb_infobar > span.left {
    flex: 1 1 0;
    text-align: left;
}

span.thumb_infobar > span.text-center {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 6px;
}

span.thumb_infobar > span.text-right,
span.thumb_infobar > span.right {
    flex: 1 1 0;
    text-align: right;
}

/* /newhome — footer link columns: equal-width grid (count set inline in blade) */
#footer-link-columns-container .footer-link-columns {
    display: grid;
    width: 100%;
    gap: 24px;
    align-items: start;
    margin: 0;
}

#footer-link-columns-container .footer-link-column {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

#footer-link-columns-container .footer-link-column ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

#footer-link-columns-container .footer-link-column ul.menu li {
    display: block;
    list-style: none;
    padding: 5px 0;
}

#footer-link-columns-container .footer-link-column ul.menu li a {
    color: #bdbdbd;
    text-decoration: none;
    font-size: 1.05em;
    letter-spacing: -0.25px;
    transition: color 0.15s ease;
}

#footer-link-columns-container .footer-link-column ul.menu li a:hover,
#footer-link-columns-container .footer-link-column ul.menu li a:focus {
    color: #808080;
    text-decoration: none;
    outline: none;
}

@media only screen and (max-width: 40em) {
    #footer-link-columns-container .footer-link-columns {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
}
