/* X-Ray Course Calendar v1.2.0 */

.xray-calendar-app {
    --xray-bg: #101010;
    --xray-panel: #151515;
    --xray-line: rgba(255,255,255,.72);
    --xray-soft-line: rgba(255,255,255,.12);
    --xray-text: #ffffff;
    --xray-muted: #666666;
    --xray-subtle: #c8c8c8;
    --xray-orange: #ff6500;
    --xray-orange-hover: #ff7a20;

    width: 100%;
    color: var(--xray-text);
    background: var(--xray-bg);
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
}

.xray-calendar-app *,
.xray-calendar-app *::before,
.xray-calendar-app *::after {
    box-sizing: border-box;
}

.xray-calendar-loading {
    color: #fff;
}

.xray-head {
    position: relative;
    display: block;
    margin-bottom: 20px;
    padding-left: 108px;
    padding-right: 108px;
    text-align: center;
}

.xray-title-wrap {
    width: 100%;
    text-align: center;
}

.xray-title-wrap h2 {
    margin: 0;
    color: #fff;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: .01em;
}

.xray-title-wrap p {
    margin: 10px 0 0;
    color: var(--xray-subtle);
    font-size: 17px;
    font-weight: 300;
}

.xray-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xray-nav-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--xray-soft-line);
    border-radius: 10px;
    background: #1e1e1e;
    color: #fff;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.xray-nav-btn:hover,
.xray-nav-btn:focus-visible {
    background: var(--xray-orange);
    border-color: var(--xray-orange);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.xray-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(310px, .8fr);
    gap: 26px;
    align-items: start;
}

.xray-month {
    border: 2px solid var(--xray-line);
    background: #111;
}

.xray-month-title {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--xray-line);
    color: #fff;
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 500;
    letter-spacing: .01em;
}

.xray-weekdays,
.xray-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.xray-weekdays > div {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--xray-line);
    border-bottom: 1px solid var(--xray-line);
    color: #fff;
    font-size: clamp(18px, 1.7vw, 27px);
    font-weight: 500;
}

.xray-weekdays > div:nth-child(7n),
.xray-days > :nth-child(7n) {
    border-right: 0;
}

.xray-day {
    position: relative;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--xray-line);
    border-bottom: 1px solid var(--xray-line);
    color: var(--xray-text) !important;
    background: transparent;
    font-size: clamp(24px, 2.4vw, 40px);
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
}

.xray-muted {
    color: var(--xray-muted) !important;
}

.xray-course {
    background: var(--xray-orange);
    color: #fff !important;
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease, transform .15s ease;
}

.xray-course:hover,
.xray-course:focus-visible {
    background: var(--xray-orange-hover);
    color: #fff !important;
    outline: none;
    transform: translateY(-1px);
}

.xray-course i {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fff;
}

.xray-course::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 290px;
    padding: 9px 11px;
    border: 1px solid var(--xray-soft-line);
    border-radius: 7px;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 12px 26px rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
    z-index: 50;
}

.xray-course:hover::after,
.xray-course:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.xray-upcoming {
    padding: 20px 18px 18px;
    border: 1px solid var(--xray-soft-line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
}

.xray-upcoming h3 {
    margin: 0;
    padding: 0 0 13px;
    border-bottom: 1px solid var(--xray-soft-line);
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
}

/* 4 sichtbare Einträge à ca. 102 px; weitere Einträge sind scrollbar. */
.xray-upcoming-scroll {
    max-height: 408px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--xray-orange) #242424;
    padding-right: 6px;
}

.xray-upcoming-scroll::-webkit-scrollbar {
    width: 8px;
}

.xray-upcoming-scroll::-webkit-scrollbar-track {
    background: #242424;
    border-radius: 10px;
}

.xray-upcoming-scroll::-webkit-scrollbar-thumb {
    background: var(--xray-orange);
    border-radius: 10px;
}

.xray-upcoming-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--xray-orange-hover);
}

.xray-upcoming-item {
    min-height: 102px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--xray-soft-line);
    color: #fff !important;
    text-decoration: none !important;
}

.xray-upcoming-item:last-child {
    border-bottom: 0;
}

.xray-upcoming-item:hover .xray-upcoming-copy strong,
.xray-upcoming-item:focus-visible .xray-upcoming-copy strong {
    color: var(--xray-orange);
}

.xray-date-badge {
    width: 66px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(180deg, #363636, #242424);
}

.xray-date-month {
    color: #bdbdbd;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
}

.xray-date-day {
    margin-top: 4px;
    color: #fff;
    font-size: 33px;
    font-weight: 500;
    line-height: 1;
}

.xray-upcoming-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xray-upcoming-copy strong {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    transition: color .15s ease;
}

.xray-upcoming-copy > span {
    color: var(--xray-subtle);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
}

.xray-online {
    position: relative;
    padding-left: 14px;
}

.xray-online::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--xray-orange);
}

.xray-chevron {
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.xray-sidebar-empty {
    padding: 20px 0 4px;
    color: var(--xray-subtle);
    font-size: 15px;
    font-weight: 300;
}


@media (max-width: 1050px) {
    .xray-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .xray-calendar-app {
        padding: 20px 12px;
    }

    .xray-head {
        padding-left: 0;
        padding-right: 0;
    }

    .xray-nav {
        position: static;
        justify-content: center;
        margin-top: 14px;
    }

    .xray-day {
        min-height: 62px;
        font-size: 26px;
    }

    .xray-weekdays > div {
        min-height: 46px;
        font-size: 18px;
    }

    .xray-month-title {
        min-height: 62px;
        font-size: 32px;
    }

    .xray-course::after {
        display: none;
    }

    .xray-upcoming {
        padding: 18px 14px 14px;
    }
}

@media (max-width: 430px) {
    .xray-day {
        min-height: 52px;
        font-size: 22px;
    }

    .xray-upcoming-item {
        grid-template-columns: 56px minmax(0, 1fr) 14px;
        gap: 10px;
    }

    .xray-date-badge {
        width: 56px;
        min-height: 62px;
    }

    .xray-date-day {
        font-size: 28px;
    }
}
